|
|
@ -213,6 +213,15 @@
|
|
|
|
<el-form-item label="计划编号" prop="planInspectCode">
|
|
|
|
<el-form-item label="计划编号" prop="planInspectCode">
|
|
|
|
<el-input v-model="form.planInspectCode" placeholder="请输入计划编号,如a001" />
|
|
|
|
<el-input v-model="form.planInspectCode" placeholder="请输入计划编号,如a001" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="巡检级别" prop="inspectLevel">
|
|
|
|
|
|
|
|
<el-radio-group v-model="form.inspectLevel">
|
|
|
|
|
|
|
|
<el-radio
|
|
|
|
|
|
|
|
v-for="dict in dict.type.dms_inspect_level"
|
|
|
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
|
|
|
:label="parseInt(dict.value)"
|
|
|
|
|
|
|
|
>{{dict.label}}</el-radio>
|
|
|
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="计划名称" prop="planInspectName">
|
|
|
|
<el-form-item label="计划名称" prop="planInspectName">
|
|
|
|
<el-input v-model="form.planInspectName" placeholder="请输入计划名称,如二楼巡检计划" />
|
|
|
|
<el-input v-model="form.planInspectName" placeholder="请输入计划名称,如二楼巡检计划" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
@ -242,12 +251,37 @@
|
|
|
|
<el-input v-model="form.deviceAmount" placeholder="请输入设备总数" :disabled=true >
|
|
|
|
<el-input v-model="form.deviceAmount" placeholder="请输入设备总数" :disabled=true >
|
|
|
|
</el-input>
|
|
|
|
</el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="时间" prop="week">
|
|
|
|
<!-- <el-form-item label="时间" prop="week">-->
|
|
|
|
|
|
|
|
<!-- <!– <el-input-number v-model="form.hour" placeholder="请输入几点" :precision="0" :min="0" :max="23"/>月–>-->
|
|
|
|
|
|
|
|
<!-- <!– <el-input-number v-model="form.timeLimitHours" placeholder="请输入几日" :precision="0" :min="0" :max="31"/>日–>-->
|
|
|
|
|
|
|
|
<!-- <el-input-number v-model="form.week" placeholder="请输入周几" :precision="0" :min="0" :max="7"/>周-->
|
|
|
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
|
|
|
<!-- <el-form-item label="时间" prop="hour">-->
|
|
|
|
|
|
|
|
<!-- <el-input-number v-model="form.hour" placeholder="请输入几点" :precision="0" :min="0" :max="23"/>时-->
|
|
|
|
|
|
|
|
<!-- <!– <el-input-number v-model="form.timeLimitHours" placeholder="请输入几日" :precision="0" :min="0" :max="31"/>日–>-->
|
|
|
|
|
|
|
|
<!-- <!– <el-input-number v-model="form.week" placeholder="请输入周几" :precision="0" :min="0" :max="7"/>周–>-->
|
|
|
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
|
|
|
<el-form-item label="年" prop="year" v-if="form.inspectLevel==3">
|
|
|
|
|
|
|
|
<!-- <el-input-number v-model="form.hour" placeholder="请输入几点" :precision="0" :min="0" :max="23"/>月-->
|
|
|
|
|
|
|
|
<!-- <el-input-number v-model="form.timeLimitHours" placeholder="请输入几日" :precision="0" :min="0" :max="31"/>日-->
|
|
|
|
|
|
|
|
<el-input-number v-model="form.year" placeholder="请输入年份" :precision="0" :min="0" :max="2030"/>年
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="周" prop="week" v-if="form.inspectLevel==2">
|
|
|
|
<!-- <el-input-number v-model="form.hour" placeholder="请输入几点" :precision="0" :min="0" :max="23"/>月-->
|
|
|
|
<!-- <el-input-number v-model="form.hour" placeholder="请输入几点" :precision="0" :min="0" :max="23"/>月-->
|
|
|
|
<!-- <el-input-number v-model="form.timeLimitHours" placeholder="请输入几日" :precision="0" :min="0" :max="31"/>日-->
|
|
|
|
<!-- <el-input-number v-model="form.timeLimitHours" placeholder="请输入几日" :precision="0" :min="0" :max="31"/>日-->
|
|
|
|
<el-input-number v-model="form.week" placeholder="请输入周几" :precision="0" :min="0" :max="7"/>周
|
|
|
|
<el-input-number v-model="form.week" placeholder="请输入周几" :precision="0" :min="0" :max="7"/>周
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="时间" prop="hour">
|
|
|
|
<el-form-item label="月" prop="month">
|
|
|
|
|
|
|
|
<!-- <el-input-number v-model="form.hour" placeholder="请输入几点" :precision="0" :min="0" :max="23"/>月-->
|
|
|
|
|
|
|
|
<!-- <el-input-number v-model="form.timeLimitHours" placeholder="请输入几日" :precision="0" :min="0" :max="31"/>日-->
|
|
|
|
|
|
|
|
<el-input-number v-model="form.month" placeholder="请输入月份" :precision="0" :min="0" :max="12"/>月
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="天" prop="day" v-if="form.inspectLevel!=2">
|
|
|
|
|
|
|
|
<!-- <el-input-number v-model="form.hour" placeholder="请输入几点" :precision="0" :min="0" :max="23"/>月-->
|
|
|
|
|
|
|
|
<!-- <el-input-number v-model="form.timeLimitHours" placeholder="请输入几日" :precision="0" :min="0" :max="31"/>日-->
|
|
|
|
|
|
|
|
<el-input-number v-model="form.day" placeholder="请输入几号" :precision="0" :min="0" :max="30"/>日
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="时" prop="hour">
|
|
|
|
<el-input-number v-model="form.hour" placeholder="请输入几点" :precision="0" :min="0" :max="23"/>时
|
|
|
|
<el-input-number v-model="form.hour" placeholder="请输入几点" :precision="0" :min="0" :max="23"/>时
|
|
|
|
<!-- <el-input-number v-model="form.timeLimitHours" placeholder="请输入几日" :precision="0" :min="0" :max="31"/>日-->
|
|
|
|
<!-- <el-input-number v-model="form.timeLimitHours" placeholder="请输入几日" :precision="0" :min="0" :max="31"/>日-->
|
|
|
|
<!-- <el-input-number v-model="form.week" placeholder="请输入周几" :precision="0" :min="0" :max="7"/>周-->
|
|
|
|
<!-- <el-input-number v-model="form.week" placeholder="请输入周几" :precision="0" :min="0" :max="7"/>周-->
|
|
|
@ -343,7 +377,7 @@ import {findUserList} from "@/api/system/user";
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
components: { Crontab },
|
|
|
|
components: { Crontab },
|
|
|
|
name: "DmsPlanInspect",
|
|
|
|
name: "DmsPlanInspect",
|
|
|
|
dicts:['dms_inspect_type','dms_cycle_period'],
|
|
|
|
dicts:['dms_maint_level','dms_inspect_type','dms_cycle_period','dms_inspect_level'],
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
// 是否显示Cron表达式弹出层
|
|
|
|
// 是否显示Cron表达式弹出层
|
|
|
@ -400,6 +434,9 @@ export default {
|
|
|
|
hour: [
|
|
|
|
hour: [
|
|
|
|
{ required: true, message: "定时计划时不能为空", trigger: "blur" }
|
|
|
|
{ required: true, message: "定时计划时不能为空", trigger: "blur" }
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
inspectLevel: [
|
|
|
|
|
|
|
|
{ required: true, message: "巡检级别不能为空", trigger: "blur" }
|
|
|
|
|
|
|
|
],
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|