flat: 添加天地图、回访等

This commit is contained in:
Apcallover
2024-07-30 16:53:48 +08:00
parent f48e08ac5c
commit f68d4bb917
13 changed files with 477 additions and 20 deletions

View File

@@ -336,6 +336,12 @@ export default {
this.getLeftUserList('serveCopy')
console.log('leftpages:', this.leftPages)
},
refLeftSearch(userName) {
this.leftPages.currentPage = 1
this.formInline.userName = userName
this.getLeftUserList('serveCopy')
console.log('leftpages:', this.leftPages)
},
leftCurrentPageChange(current) {
this.leftPages.currentPage = current
this.getLeftUserList()

View File

@@ -61,17 +61,29 @@
<el-button type="primary" size="small" @click="selectPushService">推送服务</el-button>
</template>
<template slot-scope="{row,index}" slot="menu">
<!-- <el-button type="text"-->
<!-- icon="el-icon-document"-->
<!-- size="small"-->
<!-- @click="matchWorkStation(row)"-->
<!-- >查看匹配岗位-->
<!-- </el-button>-->
<!-- <el-button type="text"-->
<!-- icon="el-icon-document"-->
<!-- size="small"-->
<!-- @click="matchPolicy(row)"-->
<!-- >查看匹配政策-->
<!-- </el-button>-->
<el-button type="text"
icon="el-icon-document"
size="small"
@click="matchWorkStation(row)"
>查看匹配岗位
@click="phoneDataList(row)"
>回访
</el-button>
<el-button type="text"
icon="el-icon-document"
size="small"
@click="matchPolicy(row)"
>查看匹配政策
@click="selectPushUserService(row)"
>推送服务
</el-button>
<el-button type="text"
icon="el-icon-document"
@@ -204,11 +216,37 @@
<PushService
:visible.sync="PushServiceVisible"
:rowData="selectPushServiceData"
ref="pushRef"
></PushService>
<mission-view :visible.sync="viewDrawer" :model="view"></mission-view>
<work-view :visible.sync="workViewDrawer" :model="workViewModel"></work-view>
<el-dialog
title="回访"
append-to-body
:visible.sync="phoneDialogVisible"
width="30%"
:before-close="handlePhoneClose">
<el-form :model="phoneForm" label-position="top" label-width="100px">
<el-form-item label="验证手机号">
<el-checkbox-group
v-model="phoneForm.list"
:min="0"
:max="1">
<el-checkbox v-for="phone in phoneList" :label="phone" :key="phone">{{ phone }}</el-checkbox>
</el-checkbox-group>
</el-form-item>
<el-form-item label="输入手机号">
<el-input v-model="phoneForm.phone" :disabled="phoneForm.list.length" autocomplete="off"></el-input>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="handlePhoneClose">取 消</el-button>
<el-button type="primary" @click="handelPhoneConfirm">确 定</el-button>
</span>
</el-dialog>
</div>
</template>
@@ -220,7 +258,7 @@ import {
getListAllPolicy,
getListAllTalents, getMatchPolicy, getMatchServeList, getMatchWorkStation,
getServeListTalents,
removeDept, removeServeLog, updateServeLog
removeDept, removeServeLog, updateServeLog, getPhoneList, phoneUpdate
} from "@/api/tenant/serve";
import {mapGetters} from "vuex";
import addGroups from "./Dialog/addGroup";
@@ -268,6 +306,13 @@ export default {
selectUserServeLog: null,
selectPushServiceData: null,
PushServiceVisible: false,
phoneDialogVisible: false,
phoneList: [],
phoneForm: {
phone: '',
list: []
},
phoneItem: null,
}
},
computed: {
@@ -315,7 +360,7 @@ export default {
editBtn: false,
delBtn: false,
addBtn: false,
viewBtn: true,
viewBtn: false,
border: true,
refreshBtn: false,
searchBtn: true,
@@ -551,6 +596,17 @@ export default {
label: '服务对象',
prop: 'toName',
display: false,
}, {
label: '服务类型',
prop: 'serveType',
type: 'select',
dicData: [
{label: '普通日志', value: 0},
{label: '回访日志', value: 1},
{label: '推送岗位日志', value: 2},
{label: '推送政策日志', value: 3},
],
display: false,
}, {
label: '服务主题',
prop: 'serveTheme',
@@ -587,8 +643,60 @@ export default {
this.getListAllPolicyTree()
this.getLabelList()
this.ListAllTalents()
},
methods: {
selectPushUserService(row) {
this.selectPushService().then(() => {
this.$nextTick(() => {
console.log(this.$refs.pushRef, row.name)
this.$refs.pushRef.refLeftSearch(row.name)
})
})
},
handelPhoneConfirm() {
let _this = this
let phone = ''
if (this.phoneForm.list.length) phone = this.phoneForm.list[0];
if (/^1[3-9]{1}\d{9}/.test(this.phoneForm.phone)) phone = this.phoneForm.phone;
if (phone) {
this.$confirm(`手机号为:${phone}`, {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(async (res) => {
let params = {
idNumber: _this.phoneItem.idNumber,
phone
}
let resData = await phoneUpdate(params)
if (resData.data.code === 200) {
_this.$message.success("手机号更新成功");
_this.handlePhoneClose()
}
})
} else {
this.$message.error("请选择或输入用户手机号!");
}
},
handlePhoneClose() {
this.phoneDialogVisible = false
this.phoneForm.phone = ''
this.phoneForm.list = []
},
async phoneDataList(item) {
let params = {
idNumber: item.idNumber
}
let resData = await getPhoneList(params)
if (resData.data.code === 200) {
this.phoneList = resData.data.data
this.phoneItem = item
this.phoneDialogVisible = true
} else {
this.$message.error("用户数据异常!");
}
},
/*点击分组加载相应人才列表*/
nodeClick(data) {
if (data.children) return;
@@ -883,11 +991,14 @@ export default {
policyCurrentChange() {
},
selectPushService() {
detail(this.selectInfo.id).then((res) => {
if (res.data.code === 200) {
this.selectPushServiceData = res.data.data
this.PushServiceVisible = true
}
return new Promise((resolve, reject) => {
detail(this.selectInfo.id).then((res) => {
if (res.data.code === 200) {
this.selectPushServiceData = res.data.data
this.PushServiceVisible = true
resolve()
}
})
})
// this.selectPushServiceData = deepClone(this.selectInfo)
// this.PushServiceVisible = true

View File

@@ -338,6 +338,17 @@ export default {
label: '服务对象',
prop: 'toName',
display: false,
}, {
label: '服务类型',
prop: 'serveType',
type: 'select',
dicData: [
{label: '普通日志', value: 0},
{label: '回访日志', value: 1},
{label: '推送岗位日志', value: 2},
{label: '推送政策日志', value: 3},
],
display: false,
}, {
label: '服务主题',
prop: 'serveTheme',

View File

@@ -1404,7 +1404,7 @@ export default {
this.obj = res;
// this.obj.workSkills = []
// console.log(res.worktypeIds)
this.obj.workSkills = 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.skillIds)