Commit b9e9de79 authored by 耿迪迪's avatar 耿迪迪

管道联想 物联网编号校验 gengdidi

parent 60cbf9e6
......@@ -12,6 +12,7 @@
<el-select
v-model="form.pipeId"
placeholder="请选择所属管道"
filterable
style="width: 100%"
>
<el-option
......
......@@ -12,6 +12,7 @@
<el-select
v-model="form.pipeId"
placeholder="请选择所属管道"
filterable
style="width: 100%"
>
<el-option
......
......@@ -12,6 +12,7 @@
<el-select
v-model="form.pipeId"
placeholder="请选择所属管道"
filterable
style="width: 100%"
>
<el-option
......@@ -176,9 +177,9 @@ export default {
deviceAddr: [
{ required: true, message: "请输入所在地址", trigger: "blur" },
],
iotNo: [
/* iotNo: [
{ required: true, message: "请输入物联网编号", trigger: "blur" },
],
],*/
linkman: [{ required: true, message: "请输入联系人", trigger: "blur" }],
phone: [
{ required: true, message: "请输入联系电话", trigger: "blur" },
......
......@@ -12,6 +12,7 @@
<el-select
v-model="form.pipeId"
placeholder="请选择所属管道"
filterable
style="width: 100%"
>
<el-option
......@@ -174,9 +175,9 @@ export default {
deviceAddr: [
{ required: true, message: "请输入所在地址", trigger: "blur" },
],
iotNo: [
/* iotNo: [
{ required: true, message: "请输入物联网编号", trigger: "blur" },
],
],*/
linkman: [{ required: true, message: "请输入联系人", trigger: "blur" }],
phone: [
{ required: true, message: "请输入联系电话", trigger: "blur" },
......
......@@ -193,8 +193,8 @@
</el-col>
<el-col :span="12">
<el-form-item label="物联网编号" prop="iotNo">
<el-input v-model="form.iotNo" placeholder="请输入物联网编号" />
<el-form-item label="物联网编号" prop="iotNo" :rules="form.deviceType == 3 || form.deviceType == 4 ? {required: true, message: '请输入物联网编号', trigger: 'blur'}:{required:false}">
<el-input v-model="form.iotNo" placeholder="请输入物联网编号"/>
</el-form-item>
</el-col>
......@@ -374,9 +374,9 @@
longitude: [
{ required: true, message: "请输入经纬度", trigger: "blur" },
],
iotNo: [
/*iotNo: [
{ required: true, message: "请输入物联网编号", trigger: "blur" },
],
],*/
linkman: [
{ required: true, message: "请输入联系人", trigger: "blur" }
],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment