Commit baee9210 by 史敦盼

专家人才库判空修改

1 parent 81bd12ad
......@@ -4,7 +4,7 @@
* @Autor: pan
* @Date: 2024-04-01 14:39:48
* @LastEditors: pan
* @LastEditTime: 2024-04-02 11:11:39
* @LastEditTime: 2024-04-02 11:36:03
-->
<template>
<el-dialog
......@@ -232,7 +232,6 @@ export default {
},
handleClose() {
this.showDialog = false
console.log('this.formOptions', this.formOptions)
this.formOptions.forEach((v) => {
if (v.prop === 'professionalField') {
v.initValue = []
......
......@@ -4,7 +4,7 @@
* @Autor: pan
* @Date: 2024-04-01 14:38:41
* @LastEditors: pan
* @LastEditTime: 2024-04-02 11:09:12
* @LastEditTime: 2024-04-02 11:36:10
-->
<template>
<el-dialog
......@@ -154,7 +154,6 @@ export default {
const typeApi = this.isEdit ? updKlPerson : addKlPerson
const formInfo = this.$refs['addForm'].getData()
console.log('professionalField', formInfo.professionalField)
const params = {
...this.rowData,
...formInfo,
......
......@@ -4,7 +4,7 @@
* @Autor: pan
* @Date: 2024-04-01 14:05:50
* @LastEditors: pan
* @LastEditTime: 2024-04-02 11:16:06
* @LastEditTime: 2024-04-02 11:35:11
-->
<template>
<div class="searchTable">
......@@ -303,9 +303,9 @@ export default {
},
methods: {
getTagList(codes) {
const arr = codes.split(',')
const arr = codes?.split(',')
let arrStr = []
arr.forEach((v) => {
arr?.forEach((v) => {
const obj =
this.professionalFieldOptions.find((val) => val.value == v) || {}
arrStr.push(obj.label)
......@@ -376,8 +376,10 @@ export default {
this.fnEdit(row)
break
case '入库':
this.fnEditNoun(row.talentId, 1, '入库')
break
case '出库':
this.fnEditNoun(row.talentId, 2, '出库')
break
case '删除':
this.fnDel(row)
......@@ -386,6 +388,24 @@ export default {
break
}
},
fnEditNoun(talentId, state, text) {
this.$confirm(`是否确认${text}?`, '提示', {
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
getETPManageUpdate({ talentId, state }).then((res) => {
if (res.code === 200) {
this.$message.success(`${text}成功`)
this.$refs.searchTable.queryData()
} else {
this.$message.error(`${text}失败`)
}
})
})
.catch(() => {})
},
fnEdit(row) {
this.rowData = row
if (this.activeName === '1') {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!