|
@@ -286,7 +286,7 @@
|
|
|
<el-link
|
|
|
class="mg-l-10"
|
|
|
type="primary"
|
|
|
- @click="adjustExcel"
|
|
|
+ @click="adjustExcel(scope.row.pkeyId)"
|
|
|
>调整表单</el-link>
|
|
|
<el-link
|
|
|
class="mg-l-10"
|
|
@@ -310,6 +310,7 @@
|
|
|
<dynamicExcel
|
|
|
@remove="removeExcel"
|
|
|
v-if="excelHtml"
|
|
|
+ :pkeyId='GLExcelFrom.id'
|
|
|
/>
|
|
|
</div>
|
|
|
|
|
@@ -1076,6 +1077,7 @@
|
|
|
:visible.sync="nodeInfoVisible"
|
|
|
width="800px"
|
|
|
append-to-body
|
|
|
+ class="jiedian"
|
|
|
:close-on-click-modal="false"
|
|
|
:show-close="false"
|
|
|
>
|
|
@@ -1086,6 +1088,13 @@
|
|
|
class="right-btn"
|
|
|
@click="infoNameVisible = true"
|
|
|
></el-button>
|
|
|
+ <div class="flexEnd">
|
|
|
+ <i
|
|
|
+ class="el-icon-circle-plus marbottom10"
|
|
|
+ @click="addNodeInfoTable()"
|
|
|
+ style="font-size:24px;color:rgb(37, 193, 99);cursor: pointer;"
|
|
|
+ ></i>
|
|
|
+ </div>
|
|
|
<el-table
|
|
|
:data="nodeInfoTable"
|
|
|
border
|
|
@@ -1098,23 +1107,18 @@
|
|
|
label="参数名称"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- <template v-if="scope.row.isEdit">
|
|
|
- <el-select
|
|
|
- v-model="scope.row.name"
|
|
|
- placeholder="请选择"
|
|
|
- class="w-100p"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in namelist"
|
|
|
- :key="item.id"
|
|
|
- :label="item.dictValue"
|
|
|
- :value="item.dictKey"
|
|
|
- ></el-option>
|
|
|
- </el-select>
|
|
|
- </template>
|
|
|
- <template v-else>
|
|
|
- {{scope.row.name}}
|
|
|
- </template>
|
|
|
+ <el-select
|
|
|
+ v-model="scope.row.name"
|
|
|
+ placeholder="请选择"
|
|
|
+ class="w-100p"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in namelist"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.dictValue"
|
|
|
+ :value="item.dictKey"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -1123,12 +1127,7 @@
|
|
|
label="参数值设置"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- <template v-if="scope.row.isEdit">
|
|
|
- <el-input v-model="scope.row.value"></el-input>
|
|
|
- </template>
|
|
|
- <template v-else>
|
|
|
- {{scope.row.value}}
|
|
|
- </template>
|
|
|
+ <el-input v-model="scope.row.value"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -1137,12 +1136,7 @@
|
|
|
label="描述"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- <template v-if="scope.row.isEdit">
|
|
|
- <el-input v-model="scope.row.describe"></el-input>
|
|
|
- </template>
|
|
|
- <template v-else>
|
|
|
- {{scope.row.describe}}
|
|
|
- </template>
|
|
|
+ <el-input v-model="scope.row.describe"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -1151,18 +1145,6 @@
|
|
|
align="center"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button
|
|
|
- type="text"
|
|
|
- size="small"
|
|
|
- v-show="scope.row.isEdit"
|
|
|
- @click="saveNodeInfoHandle(scope.$index, scope.row)"
|
|
|
- >保存</el-button>
|
|
|
- <el-button
|
|
|
- type="text"
|
|
|
- size="small"
|
|
|
- v-show="!scope.row.isEdit"
|
|
|
- @click="editNodeInfo(scope.$index, scope.row)"
|
|
|
- >编辑</el-button>
|
|
|
<el-button
|
|
|
type="text"
|
|
|
size="small"
|
|
@@ -1445,7 +1427,6 @@ export default {
|
|
|
return resolve(arr);
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
getNodeDetail (data, node) {
|
|
|
//console.log(data,node,ref)
|
|
|
let parentName = '';
|
|
@@ -1461,7 +1442,6 @@ export default {
|
|
|
})
|
|
|
this.updateNodeTable();
|
|
|
},
|
|
|
-
|
|
|
saveNode () {
|
|
|
this.$refs['nodeDetail'].validate((valid) => {
|
|
|
if (valid) {
|
|
@@ -2075,7 +2055,7 @@ export default {
|
|
|
GLExcelMD () {//弹框关闭事件
|
|
|
this.GLExcelFrom.name = ""
|
|
|
this.GLExcelFrom.search = ''
|
|
|
- this.GLExcelFrom.id
|
|
|
+ this.GLExcelFrom.id = ''
|
|
|
this.$refs.tree.setCheckedKeys([])
|
|
|
this.GLExcel = false
|
|
|
},
|
|
@@ -2101,14 +2081,21 @@ export default {
|
|
|
this.GLExcelMD()
|
|
|
}
|
|
|
},
|
|
|
- filterNode222 (value, data) {
|
|
|
+ filterNode222 (GLExcelFromvalue, data) {
|
|
|
if (!value) return true;
|
|
|
return data.name.indexOf(value) !== -1;
|
|
|
},
|
|
|
//#endregion
|
|
|
|
|
|
+ //#region 节点参数
|
|
|
+ addNodeInfoTable () {//添加节点参数数据
|
|
|
+ this.nodeInfoTable.unshift({ name: '', value: '', describe: '' })
|
|
|
+ },
|
|
|
+ //#endregion
|
|
|
+
|
|
|
//#region 调整表单
|
|
|
- adjustExcel () {//调整表单
|
|
|
+ adjustExcel (pkeyId) {//调整表单
|
|
|
+ this.GLExcelFrom.id = pkeyId
|
|
|
this.getExcelHtml()
|
|
|
},
|
|
|
async getExcelHtml () {
|
|
@@ -2118,7 +2105,6 @@ export default {
|
|
|
localStorage.setItem('excelHtml', res.data)
|
|
|
this.adjustmentExcel = res.data
|
|
|
this.excelHtml = true
|
|
|
-
|
|
|
}
|
|
|
},
|
|
|
removeExcel () {
|
|
@@ -2178,4 +2164,9 @@ export default {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
}
|
|
|
+.jiedian {
|
|
|
+ /deep/.el-dialog__body {
|
|
|
+ padding: 10px 20px !important;
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|