|
|
@@ -6,7 +6,7 @@
|
|
|
:before-close="handleClose"
|
|
|
:close-on-click-modal="false"
|
|
|
:close-on-press-escape="false"
|
|
|
- width="80%"
|
|
|
+ width="100%"
|
|
|
:maxable="true"
|
|
|
>
|
|
|
<el-form
|
|
|
@@ -100,9 +100,9 @@
|
|
|
border
|
|
|
:header-cell-style="{ background: '#F0F3F3' }"
|
|
|
>
|
|
|
- <el-table-column type="index" width="100" align="center">
|
|
|
+ <el-table-column type="index" width="50" align="left" >
|
|
|
<template slot="header">
|
|
|
- <el-button type="text" @click="addItem" icon="el-icon-plus"
|
|
|
+ <el-button type="text" @click="addItem" style="padding: 0"
|
|
|
>新增</el-button
|
|
|
>
|
|
|
</template>
|
|
|
@@ -144,7 +144,7 @@
|
|
|
</el-form-item>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="thresholdValue" label="阈值" width="120">
|
|
|
+ <el-table-column prop="thresholdValue" label="阈值" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
<el-form-item
|
|
|
:prop="'actionList.' + scope.$index + '.thresholdValue'"
|
|
|
@@ -161,7 +161,7 @@
|
|
|
</el-form-item>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="actionType" label="操作类型" width="240">
|
|
|
+ <el-table-column prop="actionType" label="操作类型" width="120">
|
|
|
<template slot-scope="scope">
|
|
|
<el-form-item
|
|
|
:prop="'actionList.' + scope.$index + '.actionType'"
|
|
|
@@ -183,17 +183,17 @@
|
|
|
<el-table-column
|
|
|
prop="alertMessageTempateCode"
|
|
|
label="模板编码"
|
|
|
- width="240"
|
|
|
+ width="500"
|
|
|
>
|
|
|
- <template slot-scope="scope">
|
|
|
+ <template slot-scope="scope" >
|
|
|
<el-form-item
|
|
|
:prop="
|
|
|
'actionList.' + scope.$index + '.alertMessageTempateCode'
|
|
|
- "
|
|
|
+ " style="width: 100%"
|
|
|
label-width="0"
|
|
|
:rules="contentConfigFormRules.alertMessageTempateCode"
|
|
|
>
|
|
|
- <el-select
|
|
|
+ <el-select style="width: 100%"
|
|
|
placeholder="请选择"
|
|
|
v-model="scope.row.alertMessageTempateCode"
|
|
|
@change="changeTemplate(scope.row, scope.$index)"
|
|
|
@@ -518,6 +518,7 @@
|
|
|
|
|
|
// 保存
|
|
|
dataKeep() {
|
|
|
+ console.log(this.isBindPlan,'dsdsds')
|
|
|
let form = deepClone(this.formData);
|
|
|
console.log(form, 'form');
|
|
|
if (form.actionList.length < 1) {
|
|
|
@@ -525,7 +526,7 @@
|
|
|
}
|
|
|
this.$refs.contentConfigForm.validate(async (valid) => {
|
|
|
if (valid) {
|
|
|
- let request = this.isBindPlan != 'add' ? rulesUpdate : rulesSave;
|
|
|
+ let request = (this.isBindPlan != 'add'&&this.isBindPlan != 'clone' )? rulesUpdate : rulesSave;
|
|
|
|
|
|
let res = await request(form);
|
|
|
if (res) {
|