Commit 481c73a5 by 史敦盼

专家人才库修改

1 parent 5285e457
...@@ -788,6 +788,10 @@ export function addKlPerson(params) { ...@@ -788,6 +788,10 @@ export function addKlPerson(params) {
export function updKlPerson(params) { export function updKlPerson(params) {
return post(EADC_KNOWLEDGE_POOL + '/kl-talent-pool/upKlPerson', params) return post(EADC_KNOWLEDGE_POOL + '/kl-talent-pool/upKlPerson', params)
} }
// 专家人才库管理-删除
export function delKlPerson(params) {
return post(EADC_KNOWLEDGE_POOL + '/kl-talent-pool/del', params)
}
export function postRequest(url, params) { export function postRequest(url, params) {
return post(EADC_ARRCHITECTURE + url, params) return post(EADC_ARRCHITECTURE + url, params)
} }
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Autor: pan * @Autor: pan
* @Date: 2024-03-12 15:11:47 * @Date: 2024-03-12 15:11:47
* @LastEditors: pan * @LastEditors: pan
* @LastEditTime: 2024-04-01 17:08:42 * @LastEditTime: 2024-04-02 09:29:25
--> -->
<template> <template>
<div class="form-item"> <div class="form-item">
...@@ -248,7 +248,7 @@ export default { ...@@ -248,7 +248,7 @@ export default {
} else { } else {
const params = { key } const params = { key }
const res = await getDianXingAnLiSelectData(params) const res = await getDianXingAnLiSelectData(params)
if (res.code !== 200) return if (res.code !== 200 || !res.data.length) return
dictTypeOptions = res.data dictTypeOptions = res.data
const jsonStr = JSON.stringify(res.data) const jsonStr = JSON.stringify(res.data)
localStorage.setItem('dic_' + key, jsonStr) localStorage.setItem('dic_' + key, jsonStr)
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Autor: pan * @Autor: pan
* @Date: 2024-03-11 14:53:40 * @Date: 2024-03-11 14:53:40
* @LastEditors: pan * @LastEditors: pan
* @LastEditTime: 2024-04-01 15:17:03 * @LastEditTime: 2024-04-02 09:14:13
--> -->
<!-- 示例 <!-- 示例
columns: [{ label: '头像', prop: 'avatar', align: 'center', __slotName: 'avatar',callback: (row, title) => { columns: [{ label: '头像', prop: 'avatar', align: 'center', __slotName: 'avatar',callback: (row, title) => {
...@@ -240,7 +240,7 @@ export default { ...@@ -240,7 +240,7 @@ export default {
if (!val) { if (!val) {
val = item.emptyToNum || 0 val = item.emptyToNum || 0
} }
const obj = item.options.find((v) => v.value == val) || {} const obj = item.options?.find((v) => v.value == val) || {}
return obj['label'] return obj['label']
}, },
/** /**
......
...@@ -43,7 +43,7 @@ export async function getDictTypeOptions(key) { ...@@ -43,7 +43,7 @@ export async function getDictTypeOptions(key) {
} else { } else {
const params = { key } const params = { key }
const res = await getDianXingAnLiSelectData(params) const res = await getDianXingAnLiSelectData(params)
if (res.code !== 200) return if (res.code !== 200 || !res.data.length) return
dictTypeOptions = res.data dictTypeOptions = res.data
const jsonStr = JSON.stringify(res.data) const jsonStr = JSON.stringify(res.data)
localStorage.setItem('dic_' + key, jsonStr) localStorage.setItem('dic_' + key, jsonStr)
......
...@@ -234,10 +234,10 @@ ...@@ -234,10 +234,10 @@
<el-dialog <el-dialog
:title=" :title="
is_add_edit == 'add' is_add_edit == 'add'
? '新建架构' ? '新建资产'
: is_add_edit == 'edit' : is_add_edit == 'edit'
? '编辑架构' ? '编辑资产'
: '查看架构' : '查看资产'
" "
:visible.sync="addDialog" :visible.sync="addDialog"
:center="false" :center="false"
...@@ -251,7 +251,7 @@ ...@@ -251,7 +251,7 @@
style="height: 500px; overflow-y: auto" style="height: 500px; overflow-y: auto"
> >
<div class="form_item_container"> <div class="form_item_container">
<el-form-item label="架构组件名称:" prop="let1"> <el-form-item label="资产名称:" prop="let1">
<el-input <el-input
placeholder="请输入内容" placeholder="请输入内容"
v-no-backslash v-no-backslash
...@@ -261,7 +261,7 @@ ...@@ -261,7 +261,7 @@
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="组件类型:" prop="let3"> <el-form-item label="所属元素:" prop="let3">
<el-select <el-select
:disabled="is_add_edit == 'view' ? true : false" :disabled="is_add_edit == 'view' ? true : false"
@change="zuJianLeiXingSelectChange" @change="zuJianLeiXingSelectChange"
......
...@@ -136,6 +136,7 @@ export default { ...@@ -136,6 +136,7 @@ export default {
} else { } else {
const params = { key } const params = { key }
const res = await getDianXingAnLiSelectData(params) const res = await getDianXingAnLiSelectData(params)
if (res.code !== 200 || !res.data.length) return
dictTypeOptions = res.data dictTypeOptions = res.data
const jsonStr = JSON.stringify(res.data) const jsonStr = JSON.stringify(res.data)
if (jsonStr) { if (jsonStr) {
......
...@@ -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-01 17:48:32 * @LastEditTime: 2024-04-02 08:56:20
--> -->
<template> <template>
<el-dialog <el-dialog
...@@ -96,7 +96,7 @@ export default { ...@@ -96,7 +96,7 @@ export default {
}, },
{ {
label: '出生年月', // label文字 label: '出生年月', // label文字
prop: 'createMan', // 字段名 prop: 'birthday', // 字段名
type: 'date', type: 'date',
valueFormat: 'yyyy-MM-dd', valueFormat: 'yyyy-MM-dd',
element: 'el-date-picker', // 指定elementui组件 element: 'el-date-picker', // 指定elementui组件
......
...@@ -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-01 17:57:39 * @LastEditTime: 2024-04-02 09:28:36
--> -->
<template> <template>
<div class="searchTable"> <div class="searchTable">
...@@ -73,7 +73,7 @@ import AddExpert from './AddExpert.vue' ...@@ -73,7 +73,7 @@ import AddExpert from './AddExpert.vue'
import AddTalent from './AddTalent.vue' import AddTalent from './AddTalent.vue'
import { queryqKLPerson, queryExpert } from '@/api/interface' import { queryqKLPerson, queryExpert } from '@/api/interface'
import { getETPManageUpdate } from '@/api' import { getETPManageUpdate, delKlPerson } from '@/api'
import { getDictTypeOptions } from '@/utils' import { getDictTypeOptions } from '@/utils'
export default { export default {
name: 'etpManage', name: 'etpManage',
...@@ -176,7 +176,7 @@ export default { ...@@ -176,7 +176,7 @@ export default {
collectionType: true, collectionType: true,
}, },
{ label: '联系方式', prop: 'telephone' }, { label: '联系方式', prop: 'telephone' },
{ label: '邮箱', prop: 'email' }, { label: '邮箱', prop: 'email', width: '120px' },
{ {
label: '专业领域', label: '专业领域',
prop: 'professionalField', prop: 'professionalField',
...@@ -378,10 +378,9 @@ export default { ...@@ -378,10 +378,9 @@ export default {
}) })
.then(() => { .then(() => {
const params = { const params = {
talentId: row.talentId, ids: [row.talentId],
delFlag: 1,
} }
getETPManageUpdate(params).then((res) => { delKlPerson(params).then((res) => {
if (res.code === 200) { if (res.code === 200) {
this.$message.success('删除成功') this.$message.success('删除成功')
this.$refs.searchTable.queryData() this.$refs.searchTable.queryData()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!