flat: 国庆节暂存

This commit is contained in:
史典卓
2024-10-09 09:39:34 +08:00
parent c40af81ac4
commit 9d9d7972c9
24 changed files with 571 additions and 285 deletions

View File

@@ -4,4 +4,5 @@ VUE_APP_REPLACE_STR = {"{oss_file_url}": "http://10.165.0.173:8000", "https://dy
VUE_APP_LOGIN_NEXT = http://10.160.7.216:9920/casserver/login?service=http://10.165.0.54:8300/manage/login&stService=http%3A%2F%2F10.165.0.54%3A8300%2Fmanage%2Flogin VUE_APP_LOGIN_NEXT = http://10.160.7.216:9920/casserver/login?service=http://10.165.0.54:8300/manage/login&stService=http%3A%2F%2F10.165.0.54%3A8300%2Fmanage%2Flogin
VUE_APP_SUPPER_MAP = http://10.165.0.44:1205/proxy/rest/maps/c02c6f51f3ab4190bffd5e3e54cf5ac4/111013e9067749488d44841208771768 VUE_APP_SUPPER_MAP = http://10.165.0.44:1205/proxy/rest/maps/c02c6f51f3ab4190bffd5e3e54cf5ac4/111013e9067749488d44841208771768
VUE_APP_TIANDITU_APIKEY = e4266a5e84fe6c10f60c559967f0a03f VUE_APP_TIANDITU_APIKEY = e4266a5e84fe6c10f60c559967f0a03f
#VUE_APP_LARGESCREEN = http://10.165.0.173/largescreen/
VUE_APP_LARGESCREEN = http://10.165.0.77/largescreen/ VUE_APP_LARGESCREEN = http://10.165.0.77/largescreen/

View File

@@ -5,6 +5,7 @@
"scripts": { "scripts": {
"serve": "vue-cli-service serve", "serve": "vue-cli-service serve",
"build": "vue-cli-service build", "build": "vue-cli-service build",
"build:test": "vue-cli-service build --mode development",
"lint": "vue-cli-service lint", "lint": "vue-cli-service lint",
"analyz": "npm_config_report=true npm run build", "analyz": "npm_config_report=true npm run build",
"test:unit": "vue-cli-service test:unit", "test:unit": "vue-cli-service test:unit",

View File

@@ -365,3 +365,17 @@ export const listCompany = (params) => {
export const upload = () => { export const upload = () => {
return `/api/jobslink-api/missions/mission/importMission?isCovered=1` return `/api/jobslink-api/missions/mission/importMission?isCovered=1`
} }
export const missionHistory = () => {
return request({
url: `/api/jobslink-api/missions/mission/history`,
method: 'get',
})
}
export const jkWorksHistory = () => {
return request({
url: `/api/jobslink-api/jkWorks/jkWorks/history`,
method: 'get',
})
}

View File

@@ -1,6 +1,6 @@
<template> <template>
<el-cascader <el-cascader
:options="area.labelData" :options="areaDY"
:show-all-levels="showAllLevels" :show-all-levels="showAllLevels"
v-model="county" v-model="county"
:filterable="filterable" :filterable="filterable"
@@ -24,7 +24,8 @@ export default {
splicer: { splicer: {
type: String, type: String,
default: "-" default: "-"
} },
filterCity: Array
}, },
data() { data() {
return { return {
@@ -33,10 +34,27 @@ export default {
}, },
created() { created() {
this.$store.dispatch("InitArea"); this.$store.dispatch("InitArea");
console.log(this.areaDY)
}, },
watch: {}, watch: {},
computed: { computed: {
...mapGetters(["area"]), ...mapGetters(["area"]),
areaDY: {
get() {
if (this.filterCity) {
const [Province, city, district] = this.filterCity
let nextProvince = this.area.labelData.find((area) => area.label === Province)
if (city) {
nextProvince.children = nextProvince.children.filter((area) => area.label === city)
}
if (district) {
nextProvince.children[0].children = nextProvince.children[0].children.find((area) => area.label === district)
}
return nextProvince
}
return this.area.labelData
}
},
county: { county: {
get() { get() {
if (this.value) { if (this.value) {

View File

@@ -6,24 +6,32 @@
v-if="showInput" v-if="showInput"
:placeholder="placeholder || '如北京市延庆区延庆镇莲花池村前街50夕阳红养老院'" :placeholder="placeholder || '如北京市延庆区延庆镇莲花池村前街50夕阳红养老院'"
></el-input> ></el-input>
<div class="mapDiv" id="mapDiv" style="width: 100%;height: 300px;"></div> <div class="mapDiv" id="mapDiv" ref="mapDiv" style="width: 100%;height: 300px;"></div>
</div> </div>
</template> </template>
<script> <script>
import {debounce} from '@/util/util'; import {debounce} from '@/util/util';
const script = document.createElement('script')
let origin = '' let origin = ''
if (window.location.origin.search('localhost') > 0) { if (window.location.origin.search('localhost') > 0) {
origin = 'http://10.165.0.173' origin = 'http://10.165.0.173'
} else { } else {
origin = window.location.origin origin = window.location.origin
} }
loadJS()
function loadJS() {
const script = document.createElement('script')
script.type = 'text/javascript';
script.src = origin + '/tianditu/api?v=4.0&tk=' + process.env.VUE_APP_TIANDITU_APIKEY script.src = origin + '/tianditu/api?v=4.0&tk=' + process.env.VUE_APP_TIANDITU_APIKEY
script.onload = () => console.warn('-----------天地图加载完成-----------') script.onload = function () {
document.head.appendChild(script) T.Protocol.value = origin + '/'
let Tmap = null; console.warn('-----------天地图加载完成-----------')
};
document.head.appendChild(script);
}
export default { export default {
data() { data() {
return { return {
@@ -31,6 +39,7 @@ export default {
addressLocation: '', addressLocation: '',
baseUrl: '', baseUrl: '',
isInput: true, isInput: true,
Tmap: null,
} }
}, },
props: { props: {
@@ -172,10 +181,10 @@ export default {
}).then(({data}) => { }).then(({data}) => {
if (data.status === '0') { if (data.status === '0') {
const {keyWord, lon, lat, level} = data.location const {keyWord, lon, lat, level} = data.location
if (!Tmap) { if (!this.Tmap) {
this.createTmap(lon, lat) this.createTmap(lon, lat)
} else { } else {
Tmap.centerAndZoom(new T.LngLat(lon, lat), 15); this.Tmap.centerAndZoom(new T.LngLat(lon, lat), 15);
this.setIcon(lon, lat); this.setIcon(lon, lat);
this.$emit('addAddress', { this.$emit('addAddress', {
address: this.addressLocation, address: this.addressLocation,
@@ -191,23 +200,23 @@ export default {
createTmap(lng, lat) { createTmap(lng, lat) {
const _this = this const _this = this
this.$nextTick(() => { this.$nextTick(() => {
console.log(Tmap) if (!this.Tmap) {
if (!Tmap) { this.Tmap = new T.Map(this.$refs.mapDiv, {
Tmap = new T.Map('mapDiv', {
projection: 'EPSG:4326', projection: 'EPSG:4326',
minZoom: this.minZoom, minZoom: this.minZoom,
maxZoom: this.maxZoom maxZoom: this.maxZoom
}); });
Tmap.addEventListener('click', (e) => { this.Tmap.addEventListener('click', (e) => {
_this.nextPoint(e.lnglat) _this.nextPoint(e.lnglat)
}); });
} }
Tmap.centerAndZoom(new T.LngLat(lng, lat), 15); console.log(this.Tmap)
this.Tmap.centerAndZoom(new T.LngLat(lng, lat), 15);
this.setIcon(lng, lat); this.setIcon(lng, lat);
}) })
}, },
setIcon(lng, lat) { setIcon(lng, lat) {
Tmap.clearOverLays() this.Tmap.clearOverLays()
const icon = new T.Icon({ const icon = new T.Icon({
iconUrl: '/img/point.png', iconUrl: '/img/point.png',
iconSize: new T.Point(30, 30), iconSize: new T.Point(30, 30),
@@ -216,7 +225,7 @@ export default {
const marker = new T.Marker(new T.LngLat(lng, lat), { const marker = new T.Marker(new T.LngLat(lng, lat), {
icon icon
}); });
Tmap.addOverLay(marker); this.Tmap.addOverLay(marker);
}, },
nextPoint(lnglat) { nextPoint(lnglat) {
var that = this; var that = this;

View File

@@ -95,7 +95,6 @@
}}</span> }}</span>
<span v-else>-</span> <span v-else>-</span>
</template> </template>
<!--商报状态搜索栏--> <!--商报状态搜索栏-->
<!-- <template slot="insuranceOnSearch"> <!-- <template slot="insuranceOnSearch">
<el-select <el-select
@@ -112,12 +111,10 @@
> >
</el-select> </el-select>
</template> --> </template> -->
<!--保证金状态搜索栏trialOn--> <!--保证金状态搜索栏trialOn-->
<template slot="trialOnSearch"> <template slot="trialOnSearch">
<el-select v-model="query.trialOn" placeholder="保证金" @change="selectTrailTyepChange"> <el-select v-model="query.trialOn" placeholder="保证金" @change="selectTrailTyepChange">
<el-option v-for="(item, index) in bondList" :key="index" :label="item.label" :value="item.value">{{ <el-option v-for="(item, index) in bondList" :key="item.value" :label="item.label" :value="item.value">{{
item.label item.label
}} }}
</el-option> </el-option>
@@ -150,6 +147,7 @@ import {check18IdCardNo, isvalidatemobile} from "@/util/validate";
import {moneyFormat} from "@/util/money"; import {moneyFormat} from "@/util/money";
import companyRecord from "./companyRecord"; import companyRecord from "./companyRecord";
import {companyStatus} from "@/const/company"; import {companyStatus} from "@/const/company";
import {getDeptMyTree} from "@/api/tenant/talents";
const accept = [ const accept = [
"image/png", "image/png",
@@ -209,7 +207,7 @@ export default {
form: {}, form: {},
selectionList: [], selectionList: [],
query: {}, query: {},
loading: true, loading: false,
page: { page: {
pageSize: 10, pageSize: 10,
currentPage: 1, currentPage: 1,
@@ -218,8 +216,12 @@ export default {
obj: {}, obj: {},
data: [], data: [],
selectJW: null, selectJW: null,
depTree: [],
}; };
}, },
created() {
this.getDept()
},
computed: { computed: {
...mapGetters(["userInfo", "permission"]), ...mapGetters(["userInfo", "permission"]),
permissionList() { permissionList() {
@@ -274,6 +276,7 @@ export default {
editBtn: true, editBtn: true,
addBtnText: "社区街道登记", addBtnText: "社区街道登记",
addTitle: "新增机构名称", addTitle: "新增机构名称",
rowKey: "$index",
delBtn: false, delBtn: false,
menuWidth: 300, menuWidth: 300,
labelWidth: 151, labelWidth: 151,
@@ -282,12 +285,25 @@ export default {
dialogFullscreen: true, dialogFullscreen: true,
column: [ column: [
{ {
label: "机构名称", label: "所属机构",
prop: "companyName", prop: "deptId",
type: "tree",
multiple: false,
dicData: this.depTree,
props: {
label: "title",
value: 'value'
},
checkStrictly: true,
search: true, search: true,
span: 20,
hide: true,
searchLabelWidth: 80,
searchSpan: 6, searchSpan: 6,
searchLabelWidth: 100, },
display: false, {
label: '机构名称',
prop: 'companyName',
}, },
{ {
label: "联系人姓名", label: "联系人姓名",
@@ -299,12 +315,6 @@ export default {
display: false, display: false,
prop: "phone", prop: "phone",
}, },
{
label: "地区",
display: false,
prop: "cityId",
slot: true,
},
], ],
group: [ group: [
{ {
@@ -334,13 +344,6 @@ export default {
display: true, display: true,
size: "small", size: "small",
prop: "masterName", prop: "masterName",
rules: [
{
required: true,
whitespace: true,
message: "请输入联系人姓名",
},
],
}, },
{ {
type: "input", type: "input",
@@ -352,21 +355,6 @@ export default {
{required: true, trigger: "blur", validator: validatePhone}, {required: true, trigger: "blur", validator: validatePhone},
], ],
}, },
{
type: "input",
label: "所在地区",
span: 20,
prop: "cityId",
slot: true,
formslot: true,
display: false,
rules: [
{
required: true,
message: "请选择所在地区",
},
],
},
{ {
type: "textarea", type: "textarea",
label: "备注", label: "备注",
@@ -390,6 +378,15 @@ export default {
} }
}, },
methods: { methods: {
async getDept() {
let params = {
tenantId: '000000'
}
let resData = await getDeptMyTree(params)
if (resData.data.code === 200) {
this.depTree = resData.data.data
}
},
/*地图*/ /*地图*/
addAddress(form) { addAddress(form) {
this.obj.address = form.address + (form.title || ""); this.obj.address = form.address + (form.title || "");
@@ -639,11 +636,10 @@ export default {
page.pageSize, page.pageSize,
Object.assign(this.query, params) Object.assign(this.query, params)
).then((res) => { ).then((res) => {
this.loading = false;
const data = res.data.data; const data = res.data.data;
this.page.total = data.total; this.page.total = data.total;
this.data = data.records; this.data = data.records;
this.loading = false;
}); });
}, },
moneyFormat, moneyFormat,

View File

@@ -275,6 +275,7 @@ export default {
label: "title", label: "title",
value: 'value' value: 'value'
}, },
hide: true,
checkStrictly: true, checkStrictly: true,
span: 24, span: 24,
search: true, search: true,

View File

@@ -353,11 +353,6 @@ export default {
}, },
span: 6, span: 6,
}, },
{
label: '机构名称',
prop: 'companyName',
span: 6,
},
{ {
label: '岗位名称', label: '岗位名称',
prop: 'missionTitle', prop: 'missionTitle',
@@ -366,7 +361,7 @@ export default {
{ {
label: '地址', label: '地址',
prop: 'address', prop: 'address',
placeholder: "北京-北京市-崇文区", placeholder: "请输入地址",
span: 6, span: 6,
}, { }, {
label: '零工工种', label: '零工工种',

View File

@@ -119,6 +119,7 @@ import lodash from "lodash";
import {recruitStatus} from "@/common/dic"; import {recruitStatus} from "@/common/dic";
import {Auditing} from "@/api/manage/mission"; import {Auditing} from "@/api/manage/mission";
import PromptDialog from "@/components/promptDialog/index.vue"; import PromptDialog from "@/components/promptDialog/index.vue";
import {getDeptMyTree} from "@/api/tenant/talents";
const inviteCodeRules = { const inviteCodeRules = {
stationId: [ stationId: [
@@ -139,7 +140,48 @@ const inviteCodeRules = {
} }
], ],
} }
const curdOptions = { const page = {
pageSize: 10,
currentPage: 1,
total: 0,
}
const message = lodash.throttle(
function (options) {
Message(options);
},
3000,
{trailing: false}
);
export default {
name: "manage_station_inviteCode",
components: {PromptDialog},
data() {
return {
dialogFlag: false,
selectIdList: [],
distributionCodeDialog: false,
inviteCodeRules: Object.assign({}, inviteCodeRules),
enterpriseList: [], // 用工单位列表
inviteCodeForm: {},
inviteCodeList: [],
selectionList: [],
page: Object.assign({}, page),
searchData: {},
isEdit: false,
loading: false,
depTree: []
}
},
created() {
this.getDept()
},
activated() {
this.getList() // 用工单位
},
computed: {
...mapGetters(["permission"]),
option() {
return {
dateBtn: false, dateBtn: false,
addBtn: false, addBtn: false,
tip: false, tip: false,
@@ -154,7 +196,25 @@ const curdOptions = {
indexLabel: "序号", indexLabel: "序号",
dialogType: "drawer", dialogType: "drawer",
align: 'center', align: 'center',
column: [{ column: [
{
label: "所属机构",
prop: "deptId",
type: "tree",
multiple: false,
dicData: this.depTree,
props: {
label: "title",
value: 'value'
},
checkStrictly: true,
search: true,
span: 20,
hide: true,
searchLabelWidth: 80,
searchSpan: 6,
},
{
label: '机构名称', label: '机构名称',
prop: 'companyName', prop: 'companyName',
search: true, search: true,
@@ -215,45 +275,18 @@ const curdOptions = {
} }
] ]
} }
const page = {
pageSize: 10,
currentPage: 1,
total: 0,
} }
const message = lodash.throttle(
function (options) {
Message(options);
},
3000,
{trailing: false}
);
export default {
name: "manage_station_inviteCode",
components: {PromptDialog},
data() {
return {
dialogFlag: false,
selectIdList: [],
distributionCodeDialog: false,
inviteCodeRules: Object.assign({}, inviteCodeRules),
enterpriseList: [], // 用工单位列表
inviteCodeForm: {},
inviteCodeList: [],
selectionList: [],
option: Object.assign({}, curdOptions),
page: Object.assign({}, page),
searchData: {},
isEdit: false,
loading: false,
}
},
activated() {
this.getList() // 用工单位
},
computed: {
...mapGetters(["permission"]),
}, },
methods: { methods: {
async getDept() {
let params = {
tenantId: '000000'
}
let resData = await getDeptMyTree(params)
if (resData.data.code === 200) {
this.depTree = resData.data.data
}
},
diaLogCancel(value) { diaLogCancel(value) {
if (!value) { if (!value) {
return this.$message({ return this.$message({

View File

@@ -50,6 +50,7 @@ import {isMobile, check18IdCardNo, validatenull} from "@/util/validate";
import {putFile} from "@/api/resource/oss"; import {putFile} from "@/api/resource/oss";
import {getTradeDic} from "@/api/manage/trade"; import {getTradeDic} from "@/api/manage/trade";
import {addressColumn, companyEnum} from "@/common/dic" import {addressColumn, companyEnum} from "@/common/dic"
import {getDeptMyTree} from "@/api/tenant/talents";
const accept = [ const accept = [
"image/png", "image/png",
@@ -68,6 +69,7 @@ export default {
name: "manage_station_mainList", name: "manage_station_mainList",
data() { data() {
return { return {
depTree: [],
form: {}, form: {},
query: {}, query: {},
loading: true, loading: true,
@@ -77,7 +79,29 @@ export default {
total: 0, total: 0,
}, },
checkDrawer: false, checkDrawer: false,
option: { data: [],
};
},
computed: {
...mapGetters(["userInfo", "permission"]),
permissionList() {
return {
addBtn: this.vaildData(
this.permission.manage_station_mainList_add,
false
),
viewBtn: this.vaildData(
this.permission.manage_station_mainList_view,
false
),
editBtn: this.vaildData(
this.permission.manage_station_mainList_edit,
false
),
};
},
option() {
return {
height: "auto", height: "auto",
tip: false, tip: false,
searchShow: true, searchShow: true,
@@ -94,10 +118,21 @@ export default {
dialogFullscreen: true, dialogFullscreen: true,
column: [ column: [
{ {
label: "机构名称", label: "所属机构",
prop: "companyName", prop: "deptId",
type: "tree",
multiple: false,
dicData: this.depTree,
props: {
label: "title",
value: 'value'
},
checkStrictly: true,
search: true, search: true,
display: false, span: 20,
hide: true,
searchLabelWidth: 80,
searchSpan: 6,
}, },
{ {
label: "用工单位", label: "用工单位",
@@ -420,30 +455,22 @@ export default {
], ],
}, },
], ],
}
}
}, },
data: [], created() {
}; this.getDept()
},
computed: {
...mapGetters(["userInfo", "permission"]),
permissionList() {
return {
addBtn: this.vaildData(
this.permission.manage_station_mainList_add,
false
),
viewBtn: this.vaildData(
this.permission.manage_station_mainList_view,
false
),
editBtn: this.vaildData(
this.permission.manage_station_mainList_edit,
false
),
};
},
}, },
methods: { methods: {
async getDept() {
let params = {
tenantId: '000000'
}
let resData = await getDeptMyTree(params)
if (resData.data.code === 200) {
this.depTree = resData.data.data
}
},
initData() { initData() {
this.onLoad(this.page, this.query); this.onLoad(this.page, this.query);
}, },

View File

@@ -365,23 +365,19 @@ export default {
}, },
span: 6, span: 6,
}, },
{
label: '机构名称',
prop: 'companyName',
span: 6,
},
{ {
label: '岗位名称', label: '岗位名称',
prop: 'missionTitle', prop: 'jobName',
span: 6, span: 6,
}, },
{ {
label: '地址', label: '地址',
prop: 'address', prop: 'address',
placeholder: "北京-北京市-崇文区", placeholder: "请输入地址",
span: 6, span: 6,
}, { },
label: '零工工种', {
label: '岗位工种',
prop: 'worktypeNames', prop: 'worktypeNames',
span: 6, span: 6,
}, },
@@ -494,7 +490,7 @@ export default {
getList( getList(
page.currentPage, page.currentPage,
page.pageSize, page.pageSize,
Object.assign(this.query, params) params
).then((res) => { ).then((res) => {
const data = res.data.data; const data = res.data.data;
this.page.total = data.total; this.page.total = data.total;

View File

@@ -278,7 +278,7 @@ import PushService from './Dialog/pushService2.vue'
import {getDeptMyTree} from "@/api/tenant/talents"; import {getDeptMyTree} from "@/api/tenant/talents";
const page = { const page = {
pageSize: 10, size: 10,
currentPage: 1, currentPage: 1,
total: 0, total: 0,
} }
@@ -893,7 +893,7 @@ export default {
this.loading = true; this.loading = true;
let paramsed = { let paramsed = {
current: page.currentPage, current: page.currentPage,
pageSize: page.pageSize, size: page.size,
id: this.tenantId, id: this.tenantId,
...params ...params
} }
@@ -930,10 +930,12 @@ export default {
this.query = {} this.query = {}
this.onLoad(this.page, this.query); this.onLoad(this.page, this.query);
}, },
infoSizeChange(pageSize) { infoSizeChange(size) {
this.page.size = size;
this.onLoad(this.page, this.query); this.onLoad(this.page, this.query);
}, },
infoCurrentChange(currentPage) { infoCurrentChange(currentPage) {
this.page.currentPage = currentPage;
this.onLoad(this.page, this.query); this.onLoad(this.page, this.query);
}, },
// 匹配任务和岗位 // 匹配任务和岗位
@@ -971,7 +973,7 @@ export default {
serveId: this.selectInfo.id, serveId: this.selectInfo.id,
companyId: this.selectInfo.companyId, companyId: this.selectInfo.companyId,
current: this.logPage.currentPage, current: this.logPage.currentPage,
size: this.logPage.pageSize size: this.logPage.size
}).then(res => { }).then(res => {
let _this = this; let _this = this;
const {records, current, size, total} = res.data.data const {records, current, size, total} = res.data.data
@@ -1039,8 +1041,8 @@ export default {
}); });
}); });
}, },
logSizeChange(pageSize) { logSizeChange(size) {
this.logPage.pageSize = pageSize; this.logPage.size = size;
this.serveLog(this.selectUserServeLog) this.serveLog(this.selectUserServeLog)
}, },
logCurrentChange(currentPage) { logCurrentChange(currentPage) {

View File

@@ -31,7 +31,7 @@ import {addServeLog, getMainServeUserLog, removeServeLog, updateServeLog} from "
import {getTenantTalentsWarn, tenantTalentsWarn, updateTenantTalentsWarn} from "@/api/tenant/LocalWarningDisposal"; import {getTenantTalentsWarn, tenantTalentsWarn, updateTenantTalentsWarn} from "@/api/tenant/LocalWarningDisposal";
const page = { const page = {
pageSize: 10, size: 10,
currentPage: 1, currentPage: 1,
total: 0, total: 0,
} }
@@ -190,15 +190,15 @@ export default {
this.page.currentPage = currentPage; this.page.currentPage = currentPage;
this.onLoad(this.page, this.query); this.onLoad(this.page, this.query);
}, },
sizeChange(pageSize) { sizeChange(size) {
this.page.pageSize = pageSize; this.page.size = size;
this.onLoad(this.page, this.query); this.onLoad(this.page, this.query);
}, },
onLoad(page, params = {}) { onLoad(page, params = {}) {
const {releaseTimeRange} = params; const {releaseTimeRange} = params;
let paramsed = { let paramsed = {
current: page.currentPage, current: page.currentPage,
pageSize: page.pageSize, size: page.size,
...this.query ...this.query
}; };
this.loading = true; this.loading = true;
@@ -207,7 +207,7 @@ export default {
this.dataSource = records; this.dataSource = records;
this.loading = false; this.loading = false;
this.page = { this.page = {
pageSize: size, size: size,
currentPage: current, currentPage: current,
total: total, total: total,
} }

View File

@@ -882,13 +882,15 @@ export default {
}, },
dateFormat: dateFormat, dateFormat: dateFormat,
rowStyle(column) { rowStyle(column) {
const groupId = column.row.groupId // const groupId = column.row.groupId
const groupInfo = this.treeData.find((item) => item.id === groupId) // const groupInfo = this.treeData.find((item) => item.id === groupId)
if (groupInfo.groupName === '潜在就业困难人员' || groupInfo.groupName === '潜在就业见习申请人员') { // if (groupInfo.groupName === '潜在就业困难人员' || groupInfo.groupName === '潜在就业见习申请人员') {
this.option.column[15].viewDisplay = true // console.log(this.option.column[15])
} else { // // this.option.column[15].viewDisplay = true
this.option.column[15].viewDisplay = false // } else {
} // console.log(this.option.column[15])
// // this.option.column[15].viewDisplay = false
// }
}, },
checkUserInfo(row) { checkUserInfo(row) {
this.dialogInfo = row this.dialogInfo = row

View File

@@ -14,7 +14,6 @@
@current-change="currentChange" @current-change="currentChange"
@size-change="sizeChange" @size-change="sizeChange"
class="customPage" class="customPage"
:row-style="rowStyle"
:before-open="beforeOpen" :before-open="beforeOpen"
> >
<template slot-scope="{row}" slot="employInfoListForm"> <template slot-scope="{row}" slot="employInfoListForm">
@@ -95,7 +94,7 @@ import {addServeLog, getMainServeUserLog, removeServeLog, updateServeLog} from "
import {dateFormat} from "@/util/date"; import {dateFormat} from "@/util/date";
const page = { const page = {
pageSize: 10, size: 10,
currentPage: 1, currentPage: 1,
total: 0, total: 0,
} }
@@ -404,12 +403,12 @@ export default {
this.page.currentPage = currentPage; this.page.currentPage = currentPage;
this.onLoad(this.page, this.query); this.onLoad(this.page, this.query);
}, },
sizeChange(pageSize) { sizeChange(size) {
this.page.pageSize = pageSize; this.page.size = size;
this.onLoad(this.page, this.query); this.onLoad(this.page, this.query);
}, },
logSizeChange(pageSize) { logSizeChange(size) {
this.logPage.pageSize = pageSize; this.logPage.size = size;
this.serveLog(this.selectUserServeLog); this.serveLog(this.selectUserServeLog);
}, },
logCurrentChange(currentPage) { logCurrentChange(currentPage) {
@@ -420,7 +419,7 @@ export default {
const {releaseTimeRange} = params; const {releaseTimeRange} = params;
let paramsed = { let paramsed = {
current: page.currentPage, current: page.currentPage,
pageSize: page.pageSize, size: page.size,
...this.query ...this.query
}; };
this.loading = true; this.loading = true;
@@ -429,7 +428,7 @@ export default {
this.dataSource = records; this.dataSource = records;
this.loading = false; this.loading = false;
this.page = { this.page = {
pageSize: size, size: size,
currentPage: current, currentPage: current,
total: total, total: total,
} }
@@ -442,14 +441,14 @@ export default {
getMainServeUserLog({ getMainServeUserLog({
idNumber: row.idNumber, idNumber: row.idNumber,
current: this.logPage.currentPage, current: this.logPage.currentPage,
size: this.logPage.pageSize size: this.logPage.size
}).then(res => { }).then(res => {
this.loadingLog = false this.loadingLog = false
const {records, current, size, total} = res.data.data const {records, current, size, total} = res.data.data
this.logDataSource = records this.logDataSource = records
this.innerDrawerLog = true this.innerDrawerLog = true
this.logPage = { this.logPage = {
pageSize: size, size: size,
currentPage: current, currentPage: current,
total: total, total: total,
} }

View File

@@ -75,9 +75,10 @@ import {getList} from "@/api/tenant/personnelserve";
import {isvalidatemobile} from "@/util/validate"; import {isvalidatemobile} from "@/util/validate";
import {getDept, getDeptMyTree} from "@/api/tenant/talents"; import {getDept, getDeptMyTree} from "@/api/tenant/talents";
import {addServeLog, getMainServeUserLog, removeServeLog, updateServeLog} from "@/api/tenant/serve"; import {addServeLog, getMainServeUserLog, removeServeLog, updateServeLog} from "@/api/tenant/serve";
import {cloneDeep} from "lodash";
const page = { const page = {
pageSize: 10, size: 10,
currentPage: 1, currentPage: 1,
total: 0, total: 0,
} }
@@ -123,7 +124,8 @@ export default {
loadingLog: false, loadingLog: false,
innerDrawerLog: false, innerDrawerLog: false,
innerDrawerAddLog: false, innerDrawerAddLog: false,
logValues: {} logValues: {},
query: {}
} }
}, },
computed: { computed: {
@@ -176,6 +178,7 @@ export default {
prop: "name", prop: "name",
// search: true, // search: true,
span: 24, span: 24,
searchLabelWidth: 80,
rules: [ rules: [
{ {
required: true, required: true,
@@ -190,6 +193,7 @@ export default {
label: "姓别", label: "姓别",
prop: "aac004", prop: "aac004",
type: 'select', type: 'select',
searchLabelWidth: 80,
dicUrl: "/api/jobslink-api/system/dict-biz/tadict?code=AAC004", dicUrl: "/api/jobslink-api/system/dict-biz/tadict?code=AAC004",
props: { props: {
label: "dictValue", label: "dictValue",
@@ -215,6 +219,20 @@ export default {
], ],
search: true, search: true,
}, },
{
label: "是否核实",
prop: "isConfirm",
type: 'select',
hide: true,
search: true,
dicData: [
{value: "", label: "全部"},
{label: '未核实', value: 0},
{label: '已核实', value: 1},
],
searchLabelWidth: 100,
display: false,
},
{ {
label: "手机号", label: "手机号",
prop: "telphone", prop: "telphone",
@@ -301,6 +319,28 @@ export default {
maxlength: 100, maxlength: 100,
showWordLimit: true, showWordLimit: true,
}, },
{
label: "日志时间",
prop: "Time",
search: true,
type: 'date',
searchRange: true,
hide: true,
display: false,
searchLabelWidth: 80,
minWidth: 100,
searchSpan: 7,
startPlaceholder: "日期开始范围",
endPlaceholder: "日期结束范围",
format: "yyyy-MM-dd",
valueFormat: "yyyy-MM-dd",
change: ({value}) => {
if (value) {
this.query.stime = value[0]
this.query.etime = value[1]
}
}
},
], ],
} }
}, },
@@ -419,9 +459,15 @@ export default {
}); });
}, },
searchChange(params, done) { searchChange(params, done) {
this.query = params; let newObj = Object.assign({}, params);
if (params.Time) {
newObj.stime = params.Time[0]
newObj.etime = params.Time[1]
delete newObj.Time;
}
this.query = newObj;
this.page.currentPage = 1; this.page.currentPage = 1;
this.onLoad(this.page, params); this.onLoad(this.page, newObj);
done(); done();
}, },
searchReset() { searchReset() {
@@ -432,12 +478,12 @@ export default {
this.page.currentPage = currentPage; this.page.currentPage = currentPage;
this.onLoad(this.page, this.query); this.onLoad(this.page, this.query);
}, },
sizeChange(pageSize) { sizeChange(size) {
this.page.pageSize = pageSize; this.page.size = size;
this.onLoad(this.page, this.query); this.onLoad(this.page, this.query);
}, },
logSizeChange(pageSize) { logSizeChange(size) {
this.logPage.pageSize = pageSize; this.logPage.size = size;
this.serveLog(this.selectUserServeLog); this.serveLog(this.selectUserServeLog);
}, },
logCurrentChange(currentPage) { logCurrentChange(currentPage) {
@@ -448,7 +494,7 @@ export default {
const {releaseTimeRange} = params; const {releaseTimeRange} = params;
let paramsed = { let paramsed = {
current: page.currentPage, current: page.currentPage,
pageSize: page.pageSize, size: page.size,
...this.query ...this.query
}; };
this.loading = true; this.loading = true;
@@ -457,7 +503,7 @@ export default {
this.dataSource = records; this.dataSource = records;
this.loading = false; this.loading = false;
this.page = { this.page = {
pageSize: size, size: size,
currentPage: current, currentPage: current,
total: total, total: total,
} }
@@ -470,14 +516,14 @@ export default {
getMainServeUserLog({ getMainServeUserLog({
idNumber: row.idNumber, idNumber: row.idNumber,
current: this.logPage.currentPage, current: this.logPage.currentPage,
size: this.logPage.pageSize size: this.logPage.size
}).then(res => { }).then(res => {
this.loadingLog = false this.loadingLog = false
const {records, current, size, total} = res.data.data const {records, current, size, total} = res.data.data
this.logDataSource = records this.logDataSource = records
this.innerDrawerLog = true this.innerDrawerLog = true
this.logPage = { this.logPage = {
pageSize: size, size: size,
currentPage: current, currentPage: current,
total: total, total: total,
} }

View File

@@ -31,7 +31,7 @@ import {getTenantTalentsWarn, tenantTalentsWarn, updateTenantTalentsWarn} from "
import {getServeLogList} from '@/api/tenant/serverRecords' import {getServeLogList} from '@/api/tenant/serverRecords'
const page = { const page = {
pageSize: 10, size: 10,
currentPage: 1, currentPage: 1,
total: 0, total: 0,
} }
@@ -221,15 +221,15 @@ export default {
this.page.currentPage = currentPage; this.page.currentPage = currentPage;
this.onLoad(this.page, this.query); this.onLoad(this.page, this.query);
}, },
sizeChange(pageSize) { sizeChange(size) {
this.page.pageSize = pageSize; this.page.size = size;
this.onLoad(this.page, this.query); this.onLoad(this.page, this.query);
}, },
onLoad(page, params = {}) { onLoad(page, params = {}) {
const {releaseTimeRange} = params; const {releaseTimeRange} = params;
let paramsed = { let paramsed = {
current: page.currentPage, current: page.currentPage,
pageSize: page.pageSize, size: page.size,
...params ...params
}; };
this.loading = true; this.loading = true;
@@ -238,7 +238,7 @@ export default {
this.dataSource = records; this.dataSource = records;
this.loading = false; this.loading = false;
this.page = { this.page = {
pageSize: size, size: size,
currentPage: current, currentPage: current,
total: total, total: total,
} }

View File

@@ -23,6 +23,7 @@
filterable filterable
v-model="obj.cityId" v-model="obj.cityId"
placeholder="请选择 工作地址" placeholder="请选择 工作地址"
:filterCity="['四川省', '德阳市']"
></jl-cityLabel-cascader> ></jl-cityLabel-cascader>
</template> </template>
@@ -133,6 +134,7 @@
</template> </template>
<!--/自定义表单--> <!--/自定义表单-->
<template slot-scope="{ disabled }" slot="menuForm"> <template slot-scope="{ disabled }" slot="menuForm">
<el-button type="warning" icon="el-icon-close" @click="closed">重置</el-button>
<el-button <el-button
icon="el-icon-circle-close" icon="el-icon-circle-close"
@click="drawer = false" @click="drawer = false"
@@ -154,7 +156,8 @@ import {
workListAdd, workListAdd,
getMounthDays, getMounthDays,
getDictionary, getDictionary,
listCompany listCompany,
missionHistory
} from "@/api/tenant/mission"; } from "@/api/tenant/mission";
import {getTrade, getWork, getWorkTypes} from "@/api/tenant/common"; import {getTrade, getWork, getWorkTypes} from "@/api/tenant/common";
import SkillSelect from "../Dialog/Skill"; import SkillSelect from "../Dialog/Skill";
@@ -199,7 +202,7 @@ export default {
skillIdAttr: [], skillIdAttr: [],
obj: { obj: {
wage: 0, wage: 0,
wageUnitCategory: 3, wageUnitCategory: 1,
sex: 0, sex: 0,
ageDesc: "不限年龄", ageDesc: "不限年龄",
education: 7, education: 7,
@@ -230,6 +233,7 @@ export default {
this.$store.dispatch("InitArea"); this.$store.dispatch("InitArea");
this.initData(); this.initData();
this.getMaxAndMin() this.getMaxAndMin()
this.getHistroyCompanyList()
}, },
watch: { watch: {
"obj.tradeId": function (val, oldval) { "obj.tradeId": function (val, oldval) {
@@ -487,6 +491,7 @@ export default {
label: "零工工种", label: "零工工种",
prop: "workSkills", prop: "workSkills",
type: "cascader", type: "cascader",
filterable: true,
search: true, search: true,
display: true, display: true,
dicUrl: `/api/jobslink-api/tenant/worktypes/base/list?type=1`, dicUrl: `/api/jobslink-api/tenant/worktypes/base/list?type=1`,
@@ -642,7 +647,7 @@ export default {
{ {
label: "单位信用代码", label: "单位信用代码",
prop: "missionCompanyScale", prop: "missionCompanyScale",
disabled: true, // disabled: true,
// rules: [ // rules: [
// { // {
// required: true, // required: true,
@@ -655,7 +660,7 @@ export default {
{ {
label: "所属行业", label: "所属行业",
prop: "missionCompanyIndustry", prop: "missionCompanyIndustry",
disabled: true, // disabled: true,
// rules: [ // rules: [
// { // {
// required: true, // required: true,
@@ -674,7 +679,7 @@ export default {
{ {
label: "单位性质", label: "单位性质",
prop: "missionCompanyNature", prop: "missionCompanyNature",
disabled: true, // disabled: true,
type: 'select', type: 'select',
dicUrl: "/api/jobslink-api/system/dict-biz/dictionary?code=company_nature", dicUrl: "/api/jobslink-api/system/dict-biz/dictionary?code=company_nature",
props: { props: {
@@ -786,11 +791,62 @@ export default {
}, },
}, },
methods: { methods: {
getHistroyCompanyList() {
missionHistory().then((res) => {
this.options23 = res.data.data.map((item) => {
return {
...item,
label: item.missionCompanyName,
}
})
})
},
resetForm() {
this.obj.missionTitle = ""
this.obj.stime = ""
this.obj.etime = ""
this.obj.wage = ""
this.obj.workSkills = []
this.obj.missionDesc = ""
this.obj.ageDesc = "不限年龄"
this.obj.education = 7
this.obj.experienceDesc = "不限经验"
// this.obj.missionCompanyName = ""
// this.obj.missionCompanyScale = ""
// this.obj.missionCompanyIndustry = ""
// this.obj.missionCompanyNature = ""
// this.obj.missionCompanyDescription = ""
// this.obj.callName = ""
// this.obj.callTel = ""
// this.obj.callNumber = ""
// this.obj.cityId = ""
// this.obj.address = ""
this.obj.wageUnitCategory = 1
this.obj.sex = 0
this.obj.userNature = "灵活用工"
this.obj.worktypeIds = ""
this.obj.$workSkills = ""
this.obj.$ageDesc = "不限年龄"
this.obj.$education = "初中及以下"
this.obj.$experienceDesc = "不限经验"
this.obj.$missionCompanyIndustry = ""
this.obj.$missionCompanyNature = ""
},
selectMissionCompany(item) { selectMissionCompany(item) {
const value = this.options23.find((vi) => vi.label === item) const value = this.options23.find((vi) => vi.label === item)
this.obj.missionCompanyScale = value.jobCompanyScale this.obj.missionCompanyScale = value.missionCompanyScale
this.obj.missionCompanyIndustry = value.jobCompanyIndustry this.obj.missionCompanyIndustry = value.missionCompanyIndustry
this.obj.missionCompanyNature = value.jobCompanyNature this.obj.missionCompanyNature = value.missionCompanyNature
if (value.callTel) {
this.obj.missionCompanyDescription = value.missionCompanyDescription
this.obj.callName = value.callName
this.obj.callTel = value.callTel
this.obj.callNumber = value.callNumber
this.obj.cityId = value.cityId
this.obj.address = value.address
this.obj.lon = value.lon
this.obj.lat = value.lat
}
}, },
async remoteMethod(query) { async remoteMethod(query) {
this.missionCompanyLoad = true this.missionCompanyLoad = true
@@ -990,7 +1046,7 @@ export default {
this.$refs.form.resetForm(); this.$refs.form.resetForm();
this.$refs.form.clearValidate(); this.$refs.form.clearValidate();
this.obj = { this.obj = {
wageUnitCategory: 3, wageUnitCategory: 1,
sex: 0, sex: 0,
ageDesc: "不限年龄", ageDesc: "不限年龄",
education: 7, education: 7,
@@ -1056,7 +1112,6 @@ export default {
this.$jlEvent("trialCheck") this.$jlEvent("trialCheck")
.then(() => { .then(() => {
add({ add({
missionTitle: row.missionTitle, missionTitle: row.missionTitle,
stime: row.stime, stime: row.stime,
etime: row.etime, etime: row.etime,
@@ -1090,13 +1145,22 @@ export default {
lon: row.lon, lon: row.lon,
}).then( }).then(
() => { () => {
this.drawer = false;
done();
this.$message({ this.$message({
type: "success", type: "success",
message: "操作成功!", message: "操作成功!",
}); });
done()
this.$confirm('是否继续发布岗位?', {
confirmButtonText: "继 续",
cancelButtonText: "取 消",
})
.then(_ => {
this.resetForm()
})
.catch(_ => {
this.drawer = false;
this.$emit("back"); this.$emit("back");
});
}, },
(error) => { (error) => {
window.console.log(error); window.console.log(error);
@@ -1140,13 +1204,22 @@ export default {
lon: row.lon, lon: row.lon,
}).then( }).then(
() => { () => {
this.drawer = false;
done();
this.$message({ this.$message({
type: "success", type: "success",
message: "操作成功!", message: "操作成功!",
}); });
done()
this.$confirm('是否继续发布岗位?', {
confirmButtonText: "继 续",
cancelButtonText: "取 消",
})
.then(_ => {
this.closed()
})
.catch(_ => {
this.drawer = false;
this.$emit("back"); this.$emit("back");
});
}, },
(error) => { (error) => {
window.console.log(error); window.console.log(error);
@@ -1187,7 +1260,7 @@ export default {
} else if (type === "add") { } else if (type === "add") {
this.title = "发布任务"; this.title = "发布任务";
this.obj = { this.obj = {
wageUnitCategory: 3, wageUnitCategory: 1,
sex: 0, sex: 0,
ageDesc: "不限年龄", ageDesc: "不限年龄",
education: 7, education: 7,

View File

@@ -2,8 +2,7 @@
<div> <div>
<avue-crud :option="option" :table-loading="loading" :data="data" ref="crud" v-model="obj" @row-del="rowDel" <avue-crud :option="option" :table-loading="loading" :data="data" ref="crud" v-model="obj" @row-del="rowDel"
@row-update="rowUpdate" @row-save="rowSave" :before-open="beforeOpen" :page.sync="page" @row-update="rowUpdate" @row-save="rowSave" :before-open="beforeOpen" :page.sync="page"
@current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange">
@on-load="onLoad">
<!--自定义按钮--> <!--自定义按钮-->
<template slot="menuLeft"> <template slot="menuLeft">
<save-button type="warning" plain icon="el-icon-plus" size="small" @click="rowCopy('', 'add')" <save-button type="warning" plain icon="el-icon-plus" size="small" @click="rowCopy('', 'add')"
@@ -202,6 +201,7 @@ export default {
}; };
}, },
created() { created() {
this.onLoad(this.page, this.query)
}, },
watch: {}, watch: {},
computed: { computed: {
@@ -469,9 +469,11 @@ export default {
}, },
currentChange(currentPage) { currentChange(currentPage) {
this.page.currentPage = currentPage; this.page.currentPage = currentPage;
this.onLoad(this.page, this.query)
}, },
sizeChange(pageSize) { sizeChange(pageSize) {
this.page.pageSize = pageSize; this.page.pageSize = pageSize;
this.onLoad(this.page, this.query)
}, },
/*刷新本页 带搜索参数*/ /*刷新本页 带搜索参数*/
refreshChange() { refreshChange() {
@@ -480,10 +482,14 @@ export default {
/*加载数据*/ /*加载数据*/
onLoad(page, params = {}) { onLoad(page, params = {}) {
this.loading = true; this.loading = true;
this.query = {
status: this.query.status,
...params
}
getList( getList(
page.currentPage, page.currentPage,
page.pageSize, page.pageSize,
Object.assign(this.query, params) this.query
).then((res) => { ).then((res) => {
const data = res.data.data; const data = res.data.data;
this.page.total = data.total; this.page.total = data.total;

View File

@@ -77,11 +77,6 @@ export default {
}, },
span: 6, span: 6,
}, },
{
label: '机构名称',
prop: 'companyName',
span: 6,
},
{ {
label: '岗位名称', label: '岗位名称',
prop: 'missionTitle', prop: 'missionTitle',
@@ -90,7 +85,7 @@ export default {
{ {
label: '地址', label: '地址',
prop: 'address', prop: 'address',
placeholder: "北京-北京市-崇文区", placeholder: "请输入地址",
span: 6, span: 6,
}, { }, {
label: '零工工种', label: '零工工种',

View File

@@ -54,6 +54,7 @@
filterable filterable
v-model="obj.cityId" v-model="obj.cityId"
placeholder="请选择 工作地址" placeholder="请选择 工作地址"
:filterCity="['四川省', '德阳市']"
></jl-cityLabel-cascader> ></jl-cityLabel-cascader>
</template> </template>
@@ -178,7 +179,8 @@
</template> </template>
<!--/自定义表单--> <!--/自定义表单-->
<template slot-scope="{ disabled }" slot="menuForm"> <template slot-scope="{ disabled }" slot="menuForm">
<!-- <el-button type="primary" icon="el-icon-check" @click="copy" :disabled="formLoading">提交</el-button> --> <!-- <el-button type="primary" icon="el-icon-check" @click="submit">提交</el-button>-->
<el-button type="warning" icon="el-icon-close" @click="closed">重置</el-button>
<el-button <el-button
icon="el-icon-circle-close" icon="el-icon-circle-close"
@click="drawer = false" @click="drawer = false"
@@ -192,7 +194,7 @@
</template> </template>
<script> <script>
import {listCompany} from "@/api/tenant/mission"; import {listCompany, jkWorksHistory, missionHistory} from "@/api/tenant/mission";
import {add, detail, update, tradeListAdd, getMounthDays, getDictionary} from "@/api/tenant/postzp"; import {add, detail, update, tradeListAdd, getMounthDays, getDictionary} from "@/api/tenant/postzp";
import {getTrade, getWork, getSkillList, getWorkTypes} from "@/api/tenant/common"; import {getTrade, getWork, getSkillList, getWorkTypes} from "@/api/tenant/common";
import SkillSelect from "../Dialog/Skill"; import SkillSelect from "../Dialog/Skill";
@@ -271,6 +273,7 @@ export default {
this.$store.dispatch("InitArea"); this.$store.dispatch("InitArea");
this.initData(); this.initData();
this.getMaxAndMin() this.getMaxAndMin()
this.getHistroyCompanyList()
}, },
watch: { watch: {
"obj.tradeId": function (val, oldval) { "obj.tradeId": function (val, oldval) {
@@ -617,6 +620,7 @@ export default {
label: "岗位工种", label: "岗位工种",
prop: "workSkills", prop: "workSkills",
type: "cascader", type: "cascader",
filterable: true,
search: true, search: true,
display: true, display: true,
dicUrl: `/api/jobslink-api/tenant/worktypes/base/list?type=2`, dicUrl: `/api/jobslink-api/tenant/worktypes/base/list?type=2`,
@@ -770,7 +774,7 @@ export default {
{ {
label: "单位信用代码", label: "单位信用代码",
prop: "jobCompanyScale", prop: "jobCompanyScale",
disabled: true, // disabled: true,
// rules: [ // rules: [
// { // {
// required: true, // required: true,
@@ -783,7 +787,7 @@ export default {
{ {
label: "所属行业", label: "所属行业",
prop: "jobCompanyIndustry", prop: "jobCompanyIndustry",
disabled: true, // disabled: true,
// rules: [ // rules: [
// { // {
// required: true, // required: true,
@@ -797,7 +801,7 @@ export default {
prop: "jobCompanyNature", prop: "jobCompanyNature",
label: "单位性质", label: "单位性质",
type: 'select', type: 'select',
disabled: true, // disabled: true,
dicUrl: "/api/jobslink-api/system/dict-biz/dictionary?code=company_nature", dicUrl: "/api/jobslink-api/system/dict-biz/dictionary?code=company_nature",
props: { props: {
label: "dictValue", label: "dictValue",
@@ -908,11 +912,59 @@ export default {
}, },
}, },
methods: { methods: {
getHistroyCompanyList() {
jkWorksHistory().then((res) => {
this.options23 = res.data.data.map((item) => {
return {
...item,
label: item.jobCompanyName,
}
})
})
},
resetForm() {
this.obj.jobName = ""
this.obj.stime = ""
this.obj.etime = ""
this.obj.wage = ""
this.obj.tradeId = ""
this.obj.workSkills = true
this.obj.jobDescription = ""
this.obj.ageDesc = ""
this.obj.education = ""
this.obj.experienceDesc = ""
// this.obj.jobCompanyName = ""
// this.obj.jobCompanyIndustry = ""
// this.obj.jobCompanyNature = ""
// this.obj.jobCompanyDescription = ""
// this.obj.callName = ""
// this.obj.callTel = ""
// this.obj.callNumber = ""
// this.obj.cityId = ""
// this.obj.address = ""
this.obj.selectedSkills = []
this.obj.$tradeId = ""
this.obj.$workSkills = true
this.obj.$ageDesc = ""
this.obj.$education = ""
this.obj.$experienceDesc = ""
this.obj.$jobCompanyNature = ""
},
selectMissionCompany(item) { selectMissionCompany(item) {
const value = this.options23.find((vi) => vi.label === item) const value = this.options23.find((vi) => vi.label === item)
this.obj.jobCompanyScale = value.jobCompanyScale this.obj.jobCompanyScale = value.jobCompanyScale
this.obj.jobCompanyIndustry = value.jobCompanyIndustry this.obj.jobCompanyIndustry = value.jobCompanyIndustry
this.obj.jobCompanyNature = value.jobCompanyNature this.obj.jobCompanyNature = value.jobCompanyNature
if (value.callTel) {
this.obj.jobCompanyDescription = value.jobCompanyDescription
this.obj.callName = value.callName
this.obj.callTel = value.callTel
this.obj.callNumber = value.callNumber
this.obj.cityId = value.cityId
this.obj.address = value.address
this.obj.lon = value.lon
this.obj.lat = value.lat
}
}, },
async remoteMethod(query) { async remoteMethod(query) {
this.missionCompanyLoad = true this.missionCompanyLoad = true
@@ -1229,13 +1281,23 @@ export default {
lon: row.lon, lon: row.lon,
}).then( }).then(
() => { () => {
this.drawer = false;
done();
this.$message({ this.$message({
type: "success", type: "success",
message: "操作成功!", message: "操作成功!",
}); });
done()
this.$confirm('是否继续发布岗位?', {
confirmButtonText: "继 续",
cancelButtonText: "取 消",
})
.then(_ => {
this.resetForm()
})
.catch(_ => {
this.drawer = false;
this.$emit("back"); this.$emit("back");
});
}, },
(error) => { (error) => {
window.console.log(error); window.console.log(error);
@@ -1279,13 +1341,22 @@ export default {
lon: row.lon, lon: row.lon,
}).then( }).then(
() => { () => {
this.drawer = false;
done();
this.$message({ this.$message({
type: "success", type: "success",
message: "操作成功!", message: "操作成功!",
}); });
done()
this.$confirm('是否继续发布岗位?', {
confirmButtonText: "继 续",
cancelButtonText: "取 消",
})
.then(_ => {
this.closed()
})
.catch(_ => {
this.drawer = false;
this.$emit("back"); this.$emit("back");
});
}, },
(error) => { (error) => {
window.console.log(error); window.console.log(error);
@@ -1381,7 +1452,7 @@ export default {
} else if (type === "add") { } else if (type === "add") {
this.title = "发布岗位"; this.title = "发布岗位";
this.obj = { this.obj = {
wageUnitCategory: 2, wageUnitCategory: 3,
sex: 0, sex: 0,
ageDesc: "不限年龄", ageDesc: "不限年龄",
education: 7, education: 7,
@@ -1406,7 +1477,6 @@ export default {
// this.obj.workSkills = [] // this.obj.workSkills = []
// console.log(res.worktypeIds) // console.log(res.worktypeIds)
this.obj.workSkills = !res.worktypeIds || res.worktypeIds.split(',') this.obj.workSkills = !res.worktypeIds || res.worktypeIds.split(',')
console.log(res, this.obj)
// this.obj.workSkills.push(res.worktypeIds) // this.obj.workSkills.push(res.worktypeIds)
// this.obj.workSkills.push(res.skillIds) // this.obj.workSkills.push(res.skillIds)
this.drawer = true; this.drawer = true;

View File

@@ -3,7 +3,7 @@
<avue-crud :option="option" :table-loading="loading" :data="data" ref="crud" v-model="obj" @row-del="rowDel" <avue-crud :option="option" :table-loading="loading" :data="data" ref="crud" v-model="obj" @row-del="rowDel"
@row-update="rowUpdate" @row-save="rowSave" :before-open="beforeOpen" :page.sync="page" @row-update="rowUpdate" @row-save="rowSave" :before-open="beforeOpen" :page.sync="page"
@current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange"
@on-load="onLoad"> >
<!--自定义按钮--> <!--自定义按钮-->
<template slot="menuLeft"> <template slot="menuLeft">
<save-button type="warning" plain icon="el-icon-plus" size="small" @click="rowCopy('', 'add')" <save-button type="warning" plain icon="el-icon-plus" size="small" @click="rowCopy('', 'add')"
@@ -112,6 +112,7 @@
<script> <script>
import {getList, cancel, detail, upload} from "@/api/tenant/postzp"; import {getList, cancel, detail, upload} from "@/api/tenant/postzp";
// import {getList, cancel, detail} from "@/api/tenant/mission";
import CopyMission from "../Dialog/CopyMission"; import CopyMission from "../Dialog/CopyMission";
import Employ from "../Dialog/Employ"; import Employ from "../Dialog/Employ";
import employmentNum from "../Dialog/EmployNumber"; import employmentNum from "../Dialog/EmployNumber";
@@ -203,6 +204,7 @@ export default {
}; };
}, },
created() { created() {
this.onLoad(this.page, this.query)
}, },
watch: {}, watch: {},
computed: { computed: {
@@ -469,9 +471,11 @@ export default {
}, },
currentChange(currentPage) { currentChange(currentPage) {
this.page.currentPage = currentPage; this.page.currentPage = currentPage;
this.onLoad(this.page, this.query)
}, },
sizeChange(pageSize) { sizeChange(pageSize) {
this.page.pageSize = pageSize; this.page.pageSize = pageSize;
this.onLoad(this.page, this.query)
}, },
/*刷新本页 带搜索参数*/ /*刷新本页 带搜索参数*/
refreshChange() { refreshChange() {
@@ -480,16 +484,18 @@ export default {
/*加载数据*/ /*加载数据*/
onLoad(page, params = {}) { onLoad(page, params = {}) {
this.loading = true; this.loading = true;
this.query = {
status: this.query.status,
...params
}
getList( getList(
page.currentPage, page.currentPage,
page.pageSize, page.pageSize,
Object.assign(this.query, params) this.query
).then((res) => { ).then((res) => {
const data = res.data.data; const data = res.data.data;
this.page.total = data.total; this.page.total = data.total;
this.data = data.records; this.data = data.records;
console.log(data.records)
console.log(this.data)
this.loading = false; this.loading = false;
}); });
}, },

View File

@@ -88,23 +88,18 @@ export default {
}, },
span: 6, span: 6,
}, },
{
label: '机构名称',
prop: 'companyName',
span: 6,
},
{ {
label: '岗位名称', label: '岗位名称',
prop: 'missionTitle', prop: 'jobName',
span: 6, span: 6,
}, },
{ {
label: '地址', label: '地址',
prop: 'address', prop: 'address',
placeholder: "北京-北京市-崇文区", placeholder: "请输入地址",
span: 6, span: 6,
}, { }, {
label: '零工工种', label: '岗位工种',
prop: 'worktypeNames', prop: 'worktypeNames',
span: 6, span: 6,
}, },
@@ -145,19 +140,17 @@ export default {
params.stime = this.search.time[0], params.stime = this.search.time[0],
params.etime = this.search.time[1] params.etime = this.search.time[1]
} }
this.$nextTick(() => {
if (this.search.status === 1) { if (this.search.status === 1) {
console.log("1111111");
this.$refs.waiting.onLoad(this.page, params); this.$refs.waiting.onLoad(this.page, params);
} else if (this.search.status === 2) { } else if (this.search.status === 2) {
console.log("222222");
this.$refs.onging.onLoad(this.page, params); this.$refs.onging.onLoad(this.page, params);
} else if (this.search.status === 3) { } else if (this.search.status === 3) {
console.log("3333333");
this.$refs.finished.onLoad(this.page, params); this.$refs.finished.onLoad(this.page, params);
} else if (this.search.status === 4) { } else if (this.search.status === 4) {
console.log("444444444");
this.$refs.expired.onLoad(this.page, params); this.$refs.expired.onLoad(this.page, params);
} }
})
done && done() done && done()
}, },
date() { date() {

View File

@@ -1,4 +1,7 @@
module.exports = { module.exports = {
configureWebpack: {
devtool: 'source-map'
},
//路径前缀 //路径前缀
publicPath: "/manage/", publicPath: "/manage/",
outputDir: "manage", outputDir: "manage",
@@ -24,8 +27,8 @@ module.exports = {
port: 1888, port: 1888,
proxy: { proxy: {
"/api": { "/api": {
// target: 'http://192.168.1.115:8000', target: 'http://192.168.1.115:8000',
target: 'http://10.165.0.173:8000', // target: 'http://10.165.0.173:8000',
ws: true, ws: true,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {