|
@@ -23,6 +23,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="versionNumber" width="150" label="版本号"> </el-table-column>
|
|
|
+ <el-table-column prop="remark" width="180" label="说明"> </el-table-column>
|
|
|
<el-table-column prop="state" label="状态" align="center" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.status == 1" class="success-state">启用</span>
|
|
@@ -75,6 +76,11 @@
|
|
|
<el-button @click="add(item)" type="primary" v-for="item in operationalOperation" :key="item.dictCode">{{ item.dictLabel }}</el-button>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="说明">
|
|
|
+ <el-input v-model="activeRow.remark" type="textarea"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
@@ -138,6 +144,7 @@ export default {
|
|
|
dialogTile: '新增公式',
|
|
|
activeRow: {
|
|
|
formulaName: '',
|
|
|
+ remark: '',
|
|
|
formulaUse: ''
|
|
|
},
|
|
|
drawer: false,
|
|
@@ -187,6 +194,7 @@ export default {
|
|
|
let postData = {
|
|
|
formulaName: this.activeRow.formulaName,
|
|
|
formulaUse: this.activeRow.formulaUse,
|
|
|
+ remark: this.activeRow.remark,
|
|
|
calculationModelId: this.calculationModelId
|
|
|
}
|
|
|
const { code, data } = await editCalculationModel(postData)
|
|
@@ -196,11 +204,13 @@ export default {
|
|
|
this.dialogVisible = false
|
|
|
this.activeRow.formulaName = ''
|
|
|
this.activeRow.formulaUse = ''
|
|
|
+ this.activeRow.remark = ''
|
|
|
}
|
|
|
} else {
|
|
|
let postData = {
|
|
|
formulaName: this.activeRow.formulaName,
|
|
|
- formulaUse: this.activeRow.formulaUse
|
|
|
+ formulaUse: this.activeRow.formulaUse,
|
|
|
+ remark: this.activeRow.remark
|
|
|
}
|
|
|
const { code, data } = await addCalculationModel(postData)
|
|
|
if (code == 200) {
|
|
@@ -209,6 +219,7 @@ export default {
|
|
|
this.dialogVisible = false
|
|
|
this.activeRow.formulaName = ''
|
|
|
this.activeRow.formulaUse = ''
|
|
|
+ this.activeRow.remark = ''
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -296,6 +307,7 @@ export default {
|
|
|
edit(row) {
|
|
|
this.activeRow.formulaName = row.formulaName
|
|
|
this.activeRow.formulaUse = row.formulaUse
|
|
|
+ this.activeRow.remark = row.remark
|
|
|
this.calculationModelId = row.calculationModelId
|
|
|
this.dialogTile = '编辑公式'
|
|
|
this.getdict()
|
|
@@ -400,12 +412,14 @@ export default {
|
|
|
this.dialogVisible = false
|
|
|
this.activeRow.formulaName = ''
|
|
|
this.activeRow.formulaUse = ''
|
|
|
+ this.activeRow.remark = ''
|
|
|
this.calculationModelId = null
|
|
|
},
|
|
|
async addDialog() {
|
|
|
this.dialogTile = '新增公式'
|
|
|
this.activeRow.formulaName = ''
|
|
|
this.activeRow.formulaUse = ''
|
|
|
+ this.activeRow.remark = ''
|
|
|
this.getdict()
|
|
|
},
|
|
|
async getdict() {
|