Commit 0256314c by Thews

20231219wangwansu

1 parent db41ad73
Showing with 40 additions and 40 deletions
...@@ -62,8 +62,8 @@ ...@@ -62,8 +62,8 @@
<el-table-column label="操作" width="200" align="center"> <el-table-column label="操作" width="200" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div style="display: flex;align-items: center;justify-content: center;"> <div style="display: flex;align-items: center;justify-content: center;">
<el-button :class="scope.row.state == 1 ? '':'editBtn'" icon="el-icon-edit" size="mini" @click="operate('edit',scope.row)" :disabled="scope.row.state == 1">编辑</el-button> <el-button :class="scope.row.state == 1 ? '':'editBtn'" icon="el-icon-edit" size="mini" @click="operate('edit',scope.row)">编辑</el-button>
<el-button :class="scope.row.state == 1 ? '':'delBtn'" icon="el-icon-delete" size="mini" @click="operate('del',scope.row)" :disabled="scope.row.state == 1">删除</el-button> <el-button :class="scope.row.state == 1 ? '':'delBtn'" icon="el-icon-delete" size="mini" @click="operate('del',scope.row)">删除</el-button>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
<div class="dialog_content_1"> <div class="dialog_content_1">
<div class="dialog_form_item"> <div class="dialog_form_item">
<div class="dialog_form_item_title">专家标签</div> <div class="dialog_form_item_title">专家标签</div>
<el-select v-model="formData.ktagId" placeholder="请选择" clearable class="search_item"> <el-select v-model="labelList" placeholder="请选择" clearable class="search_item" :multiple="true">
<el-option v-for="(item,idnex) in selectData3" :key="idnex" :label="item.label" :value="item.value" ></el-option> <el-option v-for="(item,idnex) in selectData3" :key="idnex" :label="item.label" :value="item.value" ></el-option>
</el-select> </el-select>
</div> </div>
...@@ -179,16 +179,14 @@ export default { ...@@ -179,16 +179,14 @@ export default {
title: "", title: "",
openType: "", openType: "",
formData: { formData: {
rsName: "", deptName: "",
content: "", name: "",
arrList: [ talentName: "",
{ klTaglist: [],
eleGtId: "", level: "",
eleLtId: "", comments: "",
scope: "", state: "",
} remark: "",
],
iconId: "",
}, },
params: { params: {
current: 1, current: 1,
...@@ -197,6 +195,7 @@ export default { ...@@ -197,6 +195,7 @@ export default {
ktagId: "", ktagId: "",
state: "", state: "",
}, },
labelList: [],
page: { page: {
current: 1, current: 1,
sizes: [10, 20, 50, 100, 200], sizes: [10, 20, 50, 100, 200],
...@@ -220,18 +219,6 @@ export default { ...@@ -220,18 +219,6 @@ export default {
}, },
}, },
selectData1: [ selectData1: [
// {
// label: "移动应用典型案例",
// value: 1,
// },
// {
// label: "数据模型典型案例",
// value: 2,
// },
// {
// label: "数据中台典型案例",
// value: 3,
// },
], ],
selectData2: [ selectData2: [
{ {
...@@ -340,14 +327,29 @@ export default { ...@@ -340,14 +327,29 @@ export default {
}else if (type == "edit") { }else if (type == "edit") {
this.add_dialog = true; this.add_dialog = true;
this.title = "编辑专家人才库"; this.title = "编辑专家人才库";
this.resetForm();
this.formData = item; this.formData = item;
this.formData.name = String(this.formData.name); this.formData.name = Number(this.formData.name);
this.formData.state = String(this.formData.state); this.formData.state = String(this.formData.state);
this.formData.level = String(this.formData.level); this.formData.level = String(this.formData.level);
if (this.formData.ktagId) { // if (this.formData.ktagId) {
this.formData.ktagId = String(this.formData.ktagId); // this.formData.ktagId = String(this.formData.ktagId);
} // }
}else if (type == "create") { }else if (type == "create") {
console.log(this.selectData3,this.labelList);
this.selectData3.forEach(item1 => {
this.labelList.forEach(item2 => {
if (item1.value == item2) {
this.formData.klTaglist.push(
{
ktagId: item1.value,
ktagName: item1.label,
}
)
}
})
})
if (this.formData.ktpId) { if (this.formData.ktpId) {
// 编辑保存 // 编辑保存
getETPManageUpdate(this.formData).then(res => { getETPManageUpdate(this.formData).then(res => {
...@@ -424,18 +426,16 @@ export default { ...@@ -424,18 +426,16 @@ export default {
// 新建清空表单 // 新建清空表单
resetForm(){ resetForm(){
this.formData = { this.formData = {
rsName: "", deptName: "",
content: "", name: "",
arrList: [ talentName: "",
{ klTaglist: [],
eleGtId: "", level: "",
eleLtId: "", comments: "",
scope: "", state: "",
} remark: "",
],
iconId: "",
} }
this.radioName = ""; this.labelList = [];
}, },
exportFile() {//导出 exportFile() {//导出
// getTypicalExampleExcel(this.params).then(res => { // getTypicalExampleExcel(this.params).then(res => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!