|
@@ -19,7 +19,7 @@
|
|
|
@click="handleReplace">新增值替换</el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="1.5" style="margin-left: 15px">
|
|
|
- <el-button type="danger" size="mini" plain icon="el-icon-circle-plus-outline" @click="handleAdd">
|
|
|
+ <el-button type="primary" size="mini" plain icon="el-icon-circle-plus-outline" @click="handleAdd">
|
|
|
新增四则运算
|
|
|
</el-button>
|
|
|
</el-col>
|
|
@@ -30,25 +30,25 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<!-- 表格数据信息 -->
|
|
|
- <el-table :data="tableData" stripe border header-row-class-name="headBackground"
|
|
|
+ <el-table :data="tableData" stripe border height="62vh" header-row-class-name="headBackground"
|
|
|
@selection-change="selectionLineChangeHandle">
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
<el-table-column type="index" label="序号" width="60" fixed align="center" />
|
|
|
- <el-table-column align="center" sortable="custom" label="名称" prop="remark" />
|
|
|
- <el-table-column align="center" label="类型" sortable="custom" prop="modelType" width="120">
|
|
|
+ <el-table-column align="center" label="名称" prop="remark" />
|
|
|
+ <el-table-column align="center" label="类型" prop="modelType">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.modelType == 0 ? '四则运算' : '值替换' }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" label="替换值①/表达式" sortable="custom" prop="operationRule" width="300" />
|
|
|
- <el-table-column align="center" label="数据值①/数据值" prop="mathParameter" width="300">
|
|
|
+ <el-table-column align="center" label="替换值①/表达式" prop="operationRule" />
|
|
|
+ <el-table-column align="center" label="数据值①/数据值" prop="mathParameter">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.modelType == 0 ? scope.row.mathParameter : scope.row.replacingValue }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" label="替换值②" sortable="custom" prop="operationRuleTwo" width="120" />
|
|
|
- <el-table-column align="center" label="数据值②" prop="replacingValueTwo" width="120" />
|
|
|
- <el-table-column align="center" label="创建时间" sortable prop="createTime" width="180" />
|
|
|
+ <el-table-column align="center" label="替换值②" prop="operationRuleTwo" />
|
|
|
+ <el-table-column align="center" label="数据值②" prop="replacingValueTwo" />
|
|
|
+ <el-table-column align="center" label="创建时间" prop="createTime" />
|
|
|
<el-table-column label="操作" align="center" width="300">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button v-if="scope.row.modelType == 0" size="mini" type="text" icon="el-icon-tickets"
|
|
@@ -173,8 +173,6 @@ export default {
|
|
|
this.$refs.addModel.dataModelForm = res.data
|
|
|
this.$refs.addModel.calcValResult = ''
|
|
|
this.$refs.addModel.visible = true
|
|
|
- }).catch((e) => {
|
|
|
- showAlertWin(this, null, e)
|
|
|
})
|
|
|
},
|
|
|
/** 编辑数据模型(值替换) */
|
|
@@ -184,8 +182,6 @@ export default {
|
|
|
this.$refs.replaceModel.dataModelForm = res.data
|
|
|
this.$refs.replaceModel.calcValResult = ''
|
|
|
this.$refs.replaceModel.visible = true
|
|
|
- }).catch((e) => {
|
|
|
- showAlertWin(this, null, e)
|
|
|
})
|
|
|
},
|
|
|
/** 测试数据模型值 */
|
|
@@ -203,11 +199,6 @@ export default {
|
|
|
type: 'success'
|
|
|
})
|
|
|
this.getAllDataModel()
|
|
|
- }).catch((e) => {
|
|
|
- this.$message({
|
|
|
- message: e,
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
})
|
|
|
})
|
|
|
},
|
|
@@ -233,11 +224,6 @@ export default {
|
|
|
}
|
|
|
this.tableTotal = res.data.count
|
|
|
this.tableData = res.data.dataModelList
|
|
|
- }).catch((e) => {
|
|
|
- this.$message({
|
|
|
- message: e,
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
})
|
|
|
},
|
|
|
/** 多选事件 */
|
|
@@ -266,11 +252,6 @@ export default {
|
|
|
type: 'success'
|
|
|
})
|
|
|
this.getAllDataModel()
|
|
|
- }).catch((e) => {
|
|
|
- this.$message({
|
|
|
- message: e,
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
})
|
|
|
}
|
|
|
}
|