fix: 自动化运维-巡检管理下面的常规巡检和巡检指标的新增或编辑里的收起,点击会刷新界面

develop
时启龙 2024-11-07 18:48:09 +08:00
parent ca86c7fede
commit 2b83882bb2
2 changed files with 11 additions and 2 deletions

View File

@ -1,6 +1,6 @@
<template> <template>
<cb-dialog :title="title[status]" :close-on-click-modal="false" visible @close="goBack()" width="1000px" append-to-body> <cb-dialog :title="title[status]" :close-on-click-modal="false" visible @close="goBack()" width="1000px" append-to-body>
<cb-form :model="data" ref="form" labelWidth="100px" :disabled="status == 'view'"> <cb-form :model="data" ref="form" labelWidth="100px" :disabled="status == 'view'" @submit.native.prevent>
<cb-card-layout title="指标设置"> <cb-card-layout title="指标设置">
<cb-form-item label="指标名称:" prop="name" validate="required" required-message=""> <cb-form-item label="指标名称:" prop="name" validate="required" required-message="">
<el-input v-model.trim="data.name" /> <el-input v-model.trim="data.name" />

View File

@ -3,7 +3,7 @@
<div slot="header" class="clearfix" v-if="inspectType == 1"> <div slot="header" class="clearfix" v-if="inspectType == 1">
<span>快速巡检</span> <span>快速巡检</span>
</div> </div>
<cb-form :model="data" ref="form" labelWidth="100px" :disabled="inspectType == 4"> <cb-form :model="data" ref="form" labelWidth="100px" :disabled="inspectType == 4" @submit.native.prevent>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12" :offset="0"> <el-col :span="12" :offset="0">
<cb-form-item label="巡检分类:" prop="category" validate="required" required-message=""> <cb-form-item label="巡检分类:" prop="category" validate="required" required-message="">
@ -161,6 +161,15 @@ export default {
default: 1, default: 1,
}, },
}, },
provide() {
return {
shareData: {
name: '',
code: 'standard',
remark: '',
},
}
},
data() { data() {
return { return {
normListAll, normListAll,