Commit 0256314c by Thews

20231219wangwansu

1 parent db41ad73
Showing with 40 additions and 40 deletions
......@@ -62,8 +62,8 @@
<el-table-column label="操作" width="200" align="center">
<template slot-scope="scope">
<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 ? '':'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 ? '':'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)">删除</el-button>
</div>
</template>
</el-table-column>
......@@ -105,7 +105,7 @@
<div class="dialog_content_1">
<div class="dialog_form_item">
<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-select>
</div>
......@@ -179,16 +179,14 @@ export default {
title: "",
openType: "",
formData: {
rsName: "",
content: "",
arrList: [
{
eleGtId: "",
eleLtId: "",
scope: "",
}
],
iconId: "",
deptName: "",
name: "",
talentName: "",
klTaglist: [],
level: "",
comments: "",
state: "",
remark: "",
},
params: {
current: 1,
......@@ -197,6 +195,7 @@ export default {
ktagId: "",
state: "",
},
labelList: [],
page: {
current: 1,
sizes: [10, 20, 50, 100, 200],
......@@ -220,18 +219,6 @@ export default {
},
},
selectData1: [
// {
// label: "移动应用典型案例",
// value: 1,
// },
// {
// label: "数据模型典型案例",
// value: 2,
// },
// {
// label: "数据中台典型案例",
// value: 3,
// },
],
selectData2: [
{
......@@ -340,14 +327,29 @@ export default {
}else if (type == "edit") {
this.add_dialog = true;
this.title = "编辑专家人才库";
this.resetForm();
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.level = String(this.formData.level);
if (this.formData.ktagId) {
this.formData.ktagId = String(this.formData.ktagId);
}
// if (this.formData.ktagId) {
// this.formData.ktagId = String(this.formData.ktagId);
// }
}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) {
// 编辑保存
getETPManageUpdate(this.formData).then(res => {
......@@ -424,18 +426,16 @@ export default {
// 新建清空表单
resetForm(){
this.formData = {
rsName: "",
content: "",
arrList: [
{
eleGtId: "",
eleLtId: "",
scope: "",
}
],
iconId: "",
deptName: "",
name: "",
talentName: "",
klTaglist: [],
level: "",
comments: "",
state: "",
remark: "",
}
this.radioName = "";
this.labelList = [];
},
exportFile() {//导出
// 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!