|
|
@@ -1862,17 +1862,8 @@
|
|
|
</el-table-column>
|
|
|
<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-input v-model="scope.row.remark"></el-input>
|
|
|
|
|
|
- <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">
|
|
|
@@ -3361,8 +3352,7 @@ export default {
|
|
|
tableListByTypeLoad:false,
|
|
|
refreshListLoad:false,
|
|
|
delSyncLoad:false,
|
|
|
- syncListTimer: null, // 用于存储定时器ID
|
|
|
- nodeNameList:[],//资料类型下拉数据
|
|
|
+ syncListTimer: null // 用于存储定时器ID
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -5142,14 +5132,8 @@ async saveLinkTab() {
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
//}
|
|
|
});
|
|
|
- this.nodeInfoTable.forEach((ele)=>{
|
|
|
- if(ele.name==='文件题名'){
|
|
|
- ele.remark=ele.remark.join(',')
|
|
|
- }
|
|
|
- })
|
|
|
|
|
|
if (tag) {
|
|
|
this.nodeInfoSaveload = true;
|
|
|
@@ -5228,13 +5212,6 @@ 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 = [];
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
@@ -5437,7 +5414,6 @@ async saveLinkTab() {
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
- this.getNodeNameList();
|
|
|
|
|
|
this.nodeInfo(this.curTreeData);
|
|
|
},
|
|
|
@@ -6878,31 +6854,7 @@ 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) {
|