设备微调

This commit is contained in:
墨大叔 2024-07-09 11:19:26 +08:00
parent 0c06cbb3ac
commit df991b6721
2 changed files with 16 additions and 10 deletions

View File

@ -57,10 +57,10 @@
<el-tab-pane label="用户充值记录" :lazy="true">
<recharge-record :device-id="deviceData.deviceId"/>
</el-tab-pane>
<el-tab-pane label="时长归零记录" :lazy="true">
<reset-record :device-id="deviceData.deviceId"/>
</el-tab-pane>
<el-tab-pane label="时长增加记录" :lazy="true">
<!-- <el-tab-pane label="时长归零记录" :lazy="true">-->
<!-- <reset-record :device-id="deviceData.deviceId"/>-->
<!-- </el-tab-pane>-->
<el-tab-pane label="时长变化记录" :lazy="true">
<record-time :query="{deviceId: deviceData.deviceId}" view="device"/>
</el-tab-pane>
<el-tab-pane label="抄表记录" :lazy="true">
@ -157,11 +157,17 @@ export default {
return ((expireTime - now) / 60000).toFixed(2);
},
handleReset() {
resetDevice(this.deviceData.deviceId).then(res => {
if (res.code === 200) {
this.$message.success('操作成功');
this.getDevice();
}
this.$confirm('是否确认归零设备?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
resetDevice(this.deviceData.deviceId).then(res => {
if (res.code === 200) {
this.$message.success('操作成功');
this.getDevice();
}
})
})
},
handleAddElectricity() {

View File

@ -218,7 +218,7 @@
</el-col>
<el-col :span="span">
<el-form-item label="型号" prop="modelId">
<model-select v-model="form.modelId" :show-value.sync="form.model" @submit="onSubmitModel" :disabled="isEdit"/>
<model-select v-model="form.modelId" :show-value.sync="form.model" @submit="onSubmitModel"/>
</el-form-item>
</el-col>
<el-col :span="span">