|
@@ -129,6 +129,7 @@
|
|
|
<el-table-column
|
|
|
prop="tableOwner"
|
|
|
label="所属方"
|
|
|
+
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<el-select
|
|
@@ -496,6 +497,7 @@ export default {
|
|
|
{
|
|
|
label: "元素表类型",
|
|
|
prop: "tabType",
|
|
|
+
|
|
|
// search: true,
|
|
|
rules: [
|
|
|
{
|
|
@@ -520,8 +522,9 @@ export default {
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
- label: "所书方",
|
|
|
+ label: "所属方",
|
|
|
prop: "tabOwner",
|
|
|
+
|
|
|
|
|
|
editDisplay: false,
|
|
|
addDisplay: false,
|
|
@@ -648,6 +651,24 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ formatTableType(row, column, cellValue) {
|
|
|
+ for (let i = 0; i < this.tableTypelist.length; i++) {
|
|
|
+ if (this.tableTypelist[i].dictKey == cellValue) {
|
|
|
+ return this.tableTypelist[i].dictValue;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return cellValue;
|
|
|
+ //console.log(cellValue)
|
|
|
+ },
|
|
|
+ formatOwner(row, column, cellValue) {
|
|
|
+ for (let i = 0; i < this.ownerTypeList.length; i++) {
|
|
|
+ if (this.ownerTypeList[i].dictKey == cellValue) {
|
|
|
+ return this.ownerTypeList[i].dictValue;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return cellValue;
|
|
|
+ //console.log(cellValue)
|
|
|
+ },
|
|
|
currentChange (currentPage) {
|
|
|
this.page.currentPage = currentPage;
|
|
|
},
|
|
@@ -795,13 +816,15 @@ export default {
|
|
|
console.log('编辑元素表单信息');
|
|
|
// this.editElementFormTag=true
|
|
|
console.log('编辑元素表单信息');
|
|
|
+
|
|
|
if (this.selectionList.length === 0) {
|
|
|
this.$message.warning("请选择至少一条数据");
|
|
|
return;
|
|
|
}
|
|
|
if (this.elemtData.length) {
|
|
|
let da = []
|
|
|
- this.formDatass = [...this.selectionList]
|
|
|
+ this.formDatass = [...this.selectionList];
|
|
|
+ console.log(this.formDatass,'his.formDatass111');
|
|
|
this.formDatass.forEach(val => {
|
|
|
da.push({
|
|
|
tableType: val.tabType,
|
|
@@ -813,9 +836,21 @@ export default {
|
|
|
})
|
|
|
this.formDatass = da
|
|
|
console.log(this.formDatass,'this.formDatass');
|
|
|
+ let fa=[]
|
|
|
+ this.formDatass.forEach(val=>{
|
|
|
+ let newarr= this.tableTypelist.filter(e => e.dictValue===val.tableType);
|
|
|
+ let newarr1= this.ownerTypeList.filter(e => e.dictValue===val.tableOwner);
|
|
|
+ fa.push({
|
|
|
+ tableType: newarr[0].dictKey,
|
|
|
+ tableOwner: newarr1[0].dictKey,
|
|
|
+ id: val.id,
|
|
|
+ tableName: val.tableName,
|
|
|
+ fillRate: val.fillRate,
|
|
|
+ })
|
|
|
+ })
|
|
|
+ this.formDatass=fa
|
|
|
this.editElementFormTag = true;
|
|
|
- this.getTableTypelist();
|
|
|
- this.getOwnerTypelist();
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
getOwnerTypelist() {
|
|
@@ -863,13 +898,12 @@ export default {
|
|
|
tag = false
|
|
|
return
|
|
|
} else {
|
|
|
- let newarr= this.tableTypelist.filter(e => e.dictValue===val.tableType);
|
|
|
- let newarr1= this.ownerTypeList.filter(e => e.dictValue===val.tableOwner);
|
|
|
+
|
|
|
da.push({
|
|
|
id: val.id,
|
|
|
nodeName: val.tableName,
|
|
|
- tableType: newarr[0].dictKey,
|
|
|
- tableOwner: newarr1[0].dictKey,
|
|
|
+ tableType: val.tableType,
|
|
|
+ tableOwner:val.tableOwner,
|
|
|
fillRate: val.fillRate,
|
|
|
})
|
|
|
}
|
|
@@ -960,7 +994,9 @@ export default {
|
|
|
let id=12345678910
|
|
|
this.tabTypeLazyTreeAll(id).then((res)=>{
|
|
|
this.treeData=res.records;
|
|
|
- })
|
|
|
+ });
|
|
|
+ this.getTableTypelist();
|
|
|
+ this.getOwnerTypelist();
|
|
|
},
|
|
|
mounted () {
|
|
|
// this.heightss = this.$refs.rulesss.clientHeight
|