Commit baee9210 by 史敦盼

专家人才库判空修改

1 parent 81bd12ad
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Autor: pan * @Autor: pan
* @Date: 2024-04-01 14:39:48 * @Date: 2024-04-01 14:39:48
* @LastEditors: pan * @LastEditors: pan
* @LastEditTime: 2024-04-02 11:11:39 * @LastEditTime: 2024-04-02 11:36:03
--> -->
<template> <template>
<el-dialog <el-dialog
...@@ -232,7 +232,6 @@ export default { ...@@ -232,7 +232,6 @@ export default {
}, },
handleClose() { handleClose() {
this.showDialog = false this.showDialog = false
console.log('this.formOptions', this.formOptions)
this.formOptions.forEach((v) => { this.formOptions.forEach((v) => {
if (v.prop === 'professionalField') { if (v.prop === 'professionalField') {
v.initValue = [] v.initValue = []
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Autor: pan * @Autor: pan
* @Date: 2024-04-01 14:38:41 * @Date: 2024-04-01 14:38:41
* @LastEditors: pan * @LastEditors: pan
* @LastEditTime: 2024-04-02 11:09:12 * @LastEditTime: 2024-04-02 11:36:10
--> -->
<template> <template>
<el-dialog <el-dialog
...@@ -154,7 +154,6 @@ export default { ...@@ -154,7 +154,6 @@ export default {
const typeApi = this.isEdit ? updKlPerson : addKlPerson const typeApi = this.isEdit ? updKlPerson : addKlPerson
const formInfo = this.$refs['addForm'].getData() const formInfo = this.$refs['addForm'].getData()
console.log('professionalField', formInfo.professionalField)
const params = { const params = {
...this.rowData, ...this.rowData,
...formInfo, ...formInfo,
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Autor: pan * @Autor: pan
* @Date: 2024-04-01 14:05:50 * @Date: 2024-04-01 14:05:50
* @LastEditors: pan * @LastEditors: pan
* @LastEditTime: 2024-04-02 11:16:06 * @LastEditTime: 2024-04-02 11:35:11
--> -->
<template> <template>
<div class="searchTable"> <div class="searchTable">
...@@ -303,9 +303,9 @@ export default { ...@@ -303,9 +303,9 @@ export default {
}, },
methods: { methods: {
getTagList(codes) { getTagList(codes) {
const arr = codes.split(',') const arr = codes?.split(',')
let arrStr = [] let arrStr = []
arr.forEach((v) => { arr?.forEach((v) => {
const obj = const obj =
this.professionalFieldOptions.find((val) => val.value == v) || {} this.professionalFieldOptions.find((val) => val.value == v) || {}
arrStr.push(obj.label) arrStr.push(obj.label)
...@@ -376,8 +376,10 @@ export default { ...@@ -376,8 +376,10 @@ export default {
this.fnEdit(row) this.fnEdit(row)
break break
case '入库': case '入库':
this.fnEditNoun(row.talentId, 1, '入库')
break break
case '出库': case '出库':
this.fnEditNoun(row.talentId, 2, '出库')
break break
case '删除': case '删除':
this.fnDel(row) this.fnDel(row)
...@@ -386,6 +388,24 @@ export default { ...@@ -386,6 +388,24 @@ export default {
break 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) { fnEdit(row) {
this.rowData = row this.rowData = row
if (this.activeName === '1') { 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!