Files
PropertyDeployment/resources/Web/MicroCommunityIotWeb/html/pages/meter/editInstrument/editInstrument.html
2025-12-09 20:22:03 +08:00

128 lines
7.6 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="row">
<div class="col-lg-12">
<div class="ibox">
<div class="ibox-title">
<h5>
<vc:i18n name="修改" namespace="editInstrument"></vc:i18n>
</h5>
<div class="ibox-tools" style="top:10px;">
<button type="button" class="btn btn-white " v-on:click="vc.goBack()">
<i class="fa fa-close"></i>
<vc:i18n name="返回"></vc:i18n>
</button>
</div>
</div>
<div class="ibox-content">
<div class="form-group row">
<label class="col-sm-2 col-form-label text-right">
<vc:i18n name='仪表编码' namespace='editInstrument'></vc:i18n>
</label>
<div class="col-sm-4">
<input v-model="editInstrumentInfo.machineCode" type="text" :placeholder="vc.i18n('必填,请填写仪表编码','editInstrument')" class="form-control">
</div>
<label class="col-sm-2 col-form-label text-right">
<vc:i18n name='仪表名称' namespace='editInstrument'></vc:i18n>
</label>
<div class="col-sm-4">
<input v-model="editInstrumentInfo.machineName" type="text" :placeholder="vc.i18n('必填,请填写仪表名称','editInstrument')" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label text-right">
<vc:i18n name='上报时间' namespace='editInstrument'></vc:i18n>
</label>
<div class="col-sm-3">
<input v-model="editInstrumentInfo.upMin" type="number" :placeholder="vc.i18n('必填,请填写上报时间','editInstrument')" class="form-control">
</div>
<label class="col-sm-1 col-form-label text-left">
<vc:i18n name='min' namespace='editInstrument'></vc:i18n>
</label>
<label class="col-sm-2 col-form-label text-right">
<vc:i18n name='采样时间' namespace='editInstrument'></vc:i18n>
</label>
<div class="col-sm-3">
<input v-model="editInstrumentInfo.checkSec" type="number" :placeholder="vc.i18n('必填,请填写采样时间','editInstrument')" class="form-control">
</div>
<label class="col-sm-1 col-form-label text-left">
<vc:i18n name='sec' namespace='editInstrument'></vc:i18n>
</label>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label text-right">
<vc:i18n name='仪表厂家' namespace='editInstrument'></vc:i18n>
</label>
<div class="col-sm-4">
<select class="custom-select" v-model="editInstrumentInfo.implBean" @change="_changeFactory()">
<option selected disabled value="">{{vc.i18n('必填,请选择仪表厂家','editInstrument')}}</option>
<option :value="item.factoryId" v-for="(item, index) in factoryList">{{item.factoryName}}</option>
</select>
</div>
<label class="col-sm-2 col-form-label text-right">
<vc:i18n name='仪表类型' namespace='editInstrument'></vc:i18n>
</label>
<div class="col-sm-4">
<select class="custom-select" v-model="editInstrumentInfo.typeId">
<option selected disabled value="">{{vc.i18n('必填,请选择仪表类型','editInstrument')}}</option>
<option :value="item.typeId" v-for="(item, index) in instrumentTypeList">{{item.name}}</option>
</select>
</div>
</div>
<div class="form-group row" v-for="(item,index) in editInstrumentInfo.specs">
<label class="col-sm-2 col-form-label text-right">{{item.specName}}</label>
<div class="col-sm-4">
<input v-model.trim="item.value" type="text" :placeholder="item.remark" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label text-right">
<vc:i18n name='传感器' namespace='editInstrument'></vc:i18n>
</label>
<div class="col-sm-4">
<button class="btn btn-primary" type="button" v-on:click="_addInstrumentSensor()">
添加
</button>
</div>
</div>
<div class="form-group row" v-for="(item,index) in editInstrumentInfo.sensorList">
<div class="col-sm-2"></div>
<div class="col-sm-2">
<select class="custom-select" v-model="item.sensorType">
<option disabled selected value="">{{vc.i18n('传感器类型','editInstrument')}}</option>
<option v-for="(sensorType, i) in sensorTypeList" :value="sensorType.statusCd">{{sensorType.name}}</option>
</select>
</div>
<div class="col-sm-2">
<select class="custom-select" v-model="item.paramType" @change="_changeParamType(item.id)">
<option value="1001">{{vc.i18n('数值型','editInstrument')}}</option>
<option value="1002">{{vc.i18n('非数值型','editInstrument')}}</option>
</select>
</div>
<div class="col-sm-2" v-if="item.paramType == '1001'">
<input v-model="item.minValue" type="text" :placeholder="vc.i18n('最小值保留2位小数','editInstrument')" class="form-control">
</div>
<div class="col-sm-2" v-if="item.paramType == '1001'">
<input v-model="item.maxValue" type="text" :placeholder="vc.i18n('最大值保留2位小数','editInstrument')" class="form-control">
</div>
<div class="col-sm-1" v-if="item.paramType == '1001'">
<input v-model="item.units" type="text" :placeholder="vc.i18n('单位','editInstrument')" class="form-control">
</div>
<div class="col-sm-1">
<button class="btn btn-danger" v-on:click="_removeInstrumentSensor(item)">
<vc:i18n name='删除'></vc:i18n>
</button>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 text-right">
<button type="button" class="btn btn-warning " style="margin-right:20px;" @click="vc.goBack()">
<vc:i18n name="返回"></vc:i18n>
</button>
<button class="btn btn-primary" type="button" v-on:click="saveInstrumentInfo()">
<i class="fa fa-check"></i>&nbsp;提交
</button>
</div>
</div>
</div>
</div>
</div>