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

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

parent 60cbf9e6
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
<el-select <el-select
v-model="form.pipeId" v-model="form.pipeId"
placeholder="请选择所属管道" placeholder="请选择所属管道"
filterable
style="width: 100%" style="width: 100%"
> >
<el-option <el-option
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
<el-select <el-select
v-model="form.pipeId" v-model="form.pipeId"
placeholder="请选择所属管道" placeholder="请选择所属管道"
filterable
style="width: 100%" style="width: 100%"
> >
<el-option <el-option
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
<el-select <el-select
v-model="form.pipeId" v-model="form.pipeId"
placeholder="请选择所属管道" placeholder="请选择所属管道"
filterable
style="width: 100%" style="width: 100%"
> >
<el-option <el-option
...@@ -176,9 +177,9 @@ export default { ...@@ -176,9 +177,9 @@ export default {
deviceAddr: [ deviceAddr: [
{ required: true, message: "请输入所在地址", trigger: "blur" }, { required: true, message: "请输入所在地址", trigger: "blur" },
], ],
iotNo: [ /* iotNo: [
{ required: true, message: "请输入物联网编号", trigger: "blur" }, { required: true, message: "请输入物联网编号", trigger: "blur" },
], ],*/
linkman: [{ required: true, message: "请输入联系人", trigger: "blur" }], linkman: [{ required: true, message: "请输入联系人", trigger: "blur" }],
phone: [ phone: [
{ required: true, message: "请输入联系电话", trigger: "blur" }, { required: true, message: "请输入联系电话", trigger: "blur" },
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
<el-select <el-select
v-model="form.pipeId" v-model="form.pipeId"
placeholder="请选择所属管道" placeholder="请选择所属管道"
filterable
style="width: 100%" style="width: 100%"
> >
<el-option <el-option
...@@ -174,9 +175,9 @@ export default { ...@@ -174,9 +175,9 @@ export default {
deviceAddr: [ deviceAddr: [
{ required: true, message: "请输入所在地址", trigger: "blur" }, { required: true, message: "请输入所在地址", trigger: "blur" },
], ],
iotNo: [ /* iotNo: [
{ required: true, message: "请输入物联网编号", trigger: "blur" }, { required: true, message: "请输入物联网编号", trigger: "blur" },
], ],*/
linkman: [{ required: true, message: "请输入联系人", trigger: "blur" }], linkman: [{ required: true, message: "请输入联系人", trigger: "blur" }],
phone: [ phone: [
{ required: true, message: "请输入联系电话", trigger: "blur" }, { required: true, message: "请输入联系电话", trigger: "blur" },
......
...@@ -193,8 +193,8 @@ ...@@ -193,8 +193,8 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="物联网编号" prop="iotNo"> <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-input v-model="form.iotNo" placeholder="请输入物联网编号"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -374,9 +374,9 @@ ...@@ -374,9 +374,9 @@
longitude: [ longitude: [
{ required: true, message: "请输入经纬度", trigger: "blur" }, { required: true, message: "请输入经纬度", trigger: "blur" },
], ],
iotNo: [ /*iotNo: [
{ required: true, message: "请输入物联网编号", trigger: "blur" }, { required: true, message: "请输入物联网编号", trigger: "blur" },
], ],*/
linkman: [ linkman: [
{ required: true, message: "请输入联系人", trigger: "blur" } { 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