|
|
@@ -1863,12 +1863,16 @@
|
|
|
<el-table-column align="center" prop="describe" label="描述">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input v-model="scope.row.remark" v-if="scope.row.k!=='FILE_TITLE'"></el-input>
|
|
|
- <el-select v-model="scope.row.remark" placeholder="请选择" v-else>
|
|
|
- <el-option
|
|
|
- label="资料类型"
|
|
|
- value="资料类型">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
+
|
|
|
+ <el-select v-model="scope.row.remark" placeholder="请选择" v-else multiple @change="handleSelectChange(scope.row)">
|
|
|
+ <el-option
|
|
|
+ v-for="(item, key) in nodeNameList"
|
|
|
+ :key="key"
|
|
|
+ :label="item.dictValue"
|
|
|
+ :value="item.dictKey"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" width="120" align="center">
|
|
|
@@ -3357,7 +3361,8 @@ export default {
|
|
|
tableListByTypeLoad:false,
|
|
|
refreshListLoad:false,
|
|
|
delSyncLoad:false,
|
|
|
- syncListTimer: null // 用于存储定时器ID
|
|
|
+ syncListTimer: null, // 用于存储定时器ID
|
|
|
+ nodeNameList:[],//资料类型下拉数据
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -5137,8 +5142,14 @@ async saveLinkTab() {
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
//}
|
|
|
});
|
|
|
+ this.nodeInfoTable.forEach((ele)=>{
|
|
|
+ if(ele.name==='文件题名'){
|
|
|
+ ele.remark=ele.remark.join(',')
|
|
|
+ }
|
|
|
+ })
|
|
|
|
|
|
if (tag) {
|
|
|
this.nodeInfoSaveload = true;
|
|
|
@@ -5217,6 +5228,13 @@ async saveLinkTab() {
|
|
|
if (res.code == 200) {
|
|
|
if (Array.isArray(res.data)) {
|
|
|
this.nodeInfoTable = res.data;
|
|
|
+ this.nodeInfoTable.forEach((ele)=>{
|
|
|
+ if(ele.name==='文件题名'){
|
|
|
+ ele.remark=ele.remark.split(',')
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.nodeInfoTable = [];
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
@@ -5419,6 +5437,7 @@ async saveLinkTab() {
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
+ this.getNodeNameList();
|
|
|
|
|
|
this.nodeInfo(this.curTreeData);
|
|
|
},
|
|
|
@@ -6859,7 +6878,31 @@ async saveLinkTab() {
|
|
|
this.delSyncLoad=false
|
|
|
})
|
|
|
});
|
|
|
- }
|
|
|
+ },
|
|
|
+ getNodeNameList() {
|
|
|
+ let code = "node_name_type";
|
|
|
+
|
|
|
+ getDictionary({
|
|
|
+ code,
|
|
|
+ }).then((res) => {
|
|
|
+ this.nodeNameList = res.data.data;
|
|
|
+ console.log(this.nodeNameList,'this.nodeNameList');
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ });
|
|
|
+ },
|
|
|
+ handleSelectChange(row) {
|
|
|
+ // 如果选中了dictKey为'0'的选项
|
|
|
+ if (row.remark && row.remark.includes('0')) {
|
|
|
+ // 强制只保留'0'这一个选项
|
|
|
+ row.remark = ['0'];
|
|
|
+ } else {
|
|
|
+ // 处理其他情况(单个值不拼接逗号,多个值用逗号拼接)
|
|
|
+ // 由于v-model绑定的是数组,这里无需手动拼接,提交时按需处理即可
|
|
|
+ // 例如:提交时转换为字符串 row.remark.join(',')
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
watch: {
|
|
|
"GLExcelFrom.search"(val) {
|