|
@@ -97,11 +97,11 @@
|
|
<el-table-column align="center" prop="elementTotal" label="元素总量"></el-table-column>
|
|
<el-table-column align="center" prop="elementTotal" label="元素总量"></el-table-column>
|
|
<el-table-column align="center" prop="tableType" :formatter="formatTableType" label="表单类型"></el-table-column>
|
|
<el-table-column align="center" prop="tableType" :formatter="formatTableType" label="表单类型"></el-table-column>
|
|
<el-table-column align="center" prop="tableOwner" :formatter="formatOwner" label="所属方"></el-table-column>
|
|
<el-table-column align="center" prop="tableOwner" :formatter="formatOwner" label="所属方"></el-table-column>
|
|
- <el-table-column label="操作">
|
|
|
|
|
|
+ <el-table-column label="操作" width="200">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button
|
|
<el-button
|
|
size="mini"
|
|
size="mini"
|
|
- @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
|
|
|
|
|
|
+ @click="handleEditFormula(scope.$index, scope.row)">编辑元素公式</el-button>
|
|
<el-button
|
|
<el-button
|
|
size="mini"
|
|
size="mini"
|
|
type="danger"
|
|
type="danger"
|
|
@@ -322,6 +322,24 @@
|
|
<el-button type="primary" @click="saveEles">确 定</el-button>
|
|
<el-button type="primary" @click="saveEles">确 定</el-button>
|
|
</span>
|
|
</span>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+
|
|
|
|
+ <el-dialog title="元素公式" :visible.sync="editEleFormulaVisible" width="800px" append-to-body>
|
|
|
|
+ <div class="flex mg-b-10">
|
|
|
|
+ <el-input v-model="formulaInput" placeholder="请输入内容" size="samll"></el-input>
|
|
|
|
+ <el-button type="info">保存</el-button>
|
|
|
|
+ </div>
|
|
|
|
+ <el-table :data="editEleList" border style="width: 100%" height="400px">
|
|
|
|
+ <el-table-column align="center" prop="eName" label="元素名称" >
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column align="center" label="操作" width="200">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-link type="primary" >公式配置</el-link>
|
|
|
|
+ <el-link class="mg-l-10" type="danger" @click="delEleRowHandle(scope.$index,editEleList)">删除</el-link>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </el-table>
|
|
|
|
+ </el-dialog>
|
|
|
|
+
|
|
</basic-container>
|
|
</basic-container>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -388,6 +406,9 @@
|
|
curEleTable:{},
|
|
curEleTable:{},
|
|
editEleVisible:false,
|
|
editEleVisible:false,
|
|
editEleList:[],
|
|
editEleList:[],
|
|
|
|
+
|
|
|
|
+ editEleFormulaVisible:false,
|
|
|
|
+ formulaInput:'',
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -617,6 +638,15 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ handleEditFormula(index,row){
|
|
|
|
+ this.curEleTable = row;
|
|
|
|
+ selectFormElements(this.curEleTable.id).then((res)=>{
|
|
|
|
+
|
|
|
|
+ this.editEleList = res.data.data;
|
|
|
|
+ })
|
|
|
|
+ this.editEleFormulaVisible = true;
|
|
|
|
+ },
|
|
|
|
+
|
|
saveNewEle(row){
|
|
saveNewEle(row){
|
|
row.eAllowDeviation = (row.allow?row.allow:'') + (row.deviation?row.deviation:'');
|
|
row.eAllowDeviation = (row.allow?row.allow:'') + (row.deviation?row.deviation:'');
|
|
row.fId = this.curEleTable.id;
|
|
row.fId = this.curEleTable.id;
|