|
@@ -523,20 +523,31 @@
|
|
|
></MySelect>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div
|
|
|
- class="tips"
|
|
|
- v-if="guangtouParam.content.where.drivetype == '电动' && resultArr[0]"
|
|
|
- style="color: #3874f6; margin-top: 10px"
|
|
|
- >
|
|
|
- <i class="el-icon-warning" style="margin-right: 5px"></i
|
|
|
- >{{ $t("建议开关阀时间")
|
|
|
- }}{{
|
|
|
- caliber.filter((v) => v.value == resultArr[0].caliber).length
|
|
|
- ? caliber
|
|
|
- .filter((v) => v.value == resultArr[0].caliber)[0]
|
|
|
- .remarks.split(";")[0]
|
|
|
- : "-"
|
|
|
- }}{{ $t("秒") }}
|
|
|
+
|
|
|
+ <div style="display: flex;justify-content: left;margin-top: 10px">
|
|
|
+ <div
|
|
|
+ class="tips"
|
|
|
+ v-if="
|
|
|
+ guangtouParam.content.where.drivetype == '电动' && resultArr.length
|
|
|
+ "
|
|
|
+ style="color: #3874f6;margin-top: 2px"
|
|
|
+ >
|
|
|
+ <i class="el-icon-warning" style="margin-right: 5px"></i
|
|
|
+ >{{ $t("建议开关阀时间")
|
|
|
+ }}{{
|
|
|
+ caliber.filter((v) => v.value == resultArr[0].caliber).length
|
|
|
+ ? caliber
|
|
|
+ .filter((v) => v.value == resultArr[0].caliber)[0]
|
|
|
+ .remarks.split(";")[0]
|
|
|
+ : "-"
|
|
|
+ }}{{ $t("秒") }}
|
|
|
+ </div>
|
|
|
+ <div style="margin-left: 20px;display: flex;justify-content: left">
|
|
|
+ <div class="label" style="margin-top:2px;">{{$t(`开关阀安全时间:`)}}</div>
|
|
|
+ <el-input style="width: 160px;margin-right: 10px" size="small" v-model="mintime" :placeholder="$t(`开关阀安全时间`)"></el-input> -
|
|
|
+ <el-input style="width: 160px;margin-left: 10px" size="small" v-model="maxtime" :placeholder="$t(`开关阀安全时间`)"></el-input>
|
|
|
+ </div>
|
|
|
+ <el-button type="primary" style="margin-left: 10px" size="small" @click="Search('excelParam')">{{$t(`查询`)}}</el-button>
|
|
|
</div>
|
|
|
|
|
|
<!--执行器-->
|
|
@@ -775,6 +786,8 @@ export default {
|
|
|
actuatorsignal: "",
|
|
|
maxsquarewidth: "", //方阀杆最大宽度
|
|
|
maxrounddiameter: "", //圆阀杆最大直径
|
|
|
+ mintime:"",
|
|
|
+ maxtime:""
|
|
|
},
|
|
|
},
|
|
|
},
|
|
@@ -794,6 +807,21 @@ export default {
|
|
|
},
|
|
|
timer: null,
|
|
|
product: {},
|
|
|
+ /*开关阀时间*/
|
|
|
+ dateDefault:{
|
|
|
+ id: 20220901092501,
|
|
|
+ content: {
|
|
|
+ optiontypeid: 115, //光头id
|
|
|
+ pageNumber: 1,
|
|
|
+ pageSize: 9999999,
|
|
|
+ where: {
|
|
|
+ condition: "",
|
|
|
+ },
|
|
|
+ },
|
|
|
+ },
|
|
|
+ diameter:'',
|
|
|
+ mintime:"",
|
|
|
+ maxtime:""
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
@@ -814,7 +842,6 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
|
- stepsChange() {},
|
|
|
init() {
|
|
|
this.guangtouChange(this.data.filter.mainvalve.drivetype);
|
|
|
|
|
@@ -877,6 +904,7 @@ export default {
|
|
|
},
|
|
|
//搜索
|
|
|
Search(type, position, init) {
|
|
|
+
|
|
|
if (!init) this.isEdit = true;
|
|
|
let index = 0;
|
|
|
let whereKeys = Object.keys(this[type].content.where);
|
|
@@ -899,7 +927,9 @@ export default {
|
|
|
whereKeys[i].indexOf("drivetype") != -1
|
|
|
)
|
|
|
continue;
|
|
|
- this[type].content.where[whereKeys[i]] = "";
|
|
|
+ this[type].content.where[whereKeys[i]] = ""
|
|
|
+ this.excelParam.content.where.mintime = this.mintime
|
|
|
+ this.excelParam.content.where.maxtime = this.maxtime
|
|
|
}
|
|
|
}
|
|
|
switch (type) {
|
|
@@ -1105,6 +1135,7 @@ export default {
|
|
|
this.isEdit = true;
|
|
|
data.parttype = type;
|
|
|
if (type == "主阀") {
|
|
|
+ this.queryDefaultDate(data)
|
|
|
this.resultArr[0] = data;
|
|
|
|
|
|
if (
|
|
@@ -1250,6 +1281,19 @@ export default {
|
|
|
{ remarks: "气动", value: "气动" },
|
|
|
];
|
|
|
},
|
|
|
+ async queryDefaultDate(val){
|
|
|
+ const res = await this.$api.requested(this.dateDefault)
|
|
|
+ res.data.forEach(e=>{
|
|
|
+ if (e.value == val.caliber){
|
|
|
+ this.diameter = e
|
|
|
+ }
|
|
|
+ })
|
|
|
+ let newDiameter = this.diameter.remarks.split(';')
|
|
|
+ let diameter = newDiameter[1].split('-')
|
|
|
+ this.mintime = diameter[0]
|
|
|
+ this.maxtime = diameter[1]
|
|
|
+
|
|
|
+ }
|
|
|
},
|
|
|
created() {
|
|
|
this.optionsList();
|