Commit 87033701 by 张杰

v1.11.0版本需求

1 parent a343607a
......@@ -223,7 +223,7 @@ export default {
submitForm() {
let _this = this;
let params = this.getParams();
console.log(params)
console.log(params);
if (!this.freqForm.enableFreq) {
_this.closeDialog();
return false;
......@@ -232,15 +232,21 @@ export default {
if (!valid) {
return false;
}
adjFreq(params).then((res) => {
if (res.code == 200) {
showToast({
type: "success",
message: res.message,
});
_this.closeDialog();
}
});
_this.loading = true;
adjFreq(params)
.then((res) => {
_this.loading = false;
if (res.code == 200) {
showToast({
type: "success",
message: res.message,
});
_this.closeDialog();
}
})
.catch((error) => {
_this.loading = false;
});
});
},
validateClock() {
......
......@@ -147,7 +147,7 @@
<!-- 列表数据 end -->
<!-- 新增、编辑、查看弹框 开始 -->
<basic-dialog width="90%" :title="vehicleTitle" :isVisible="vehicleVisible" :hasOk="vehicleHasOk" :loading="ajaxLoading" @confirmDialog="handleConfirm('create')" @closeDialog="handleClose('create')">
<basic-dialog width="800px" :title="vehicleTitle" :isVisible="vehicleVisible" :hasOk="vehicleHasOk" :loading="ajaxLoading" @confirmDialog="handleConfirm('create')" @closeDialog="handleClose('create')">
<slot>
<div class="dialog_content" v-loading="formLoading">
<el-form class="el_form" ref="snForm" :model="snForm" :rules="vehicleRules" :inline="false" :disabled="isReadonly" size="mini" label-width="100px">
......@@ -276,13 +276,13 @@
<table class="freq_table el_table" v-loading="freqLoading">
<tr>
<th width="20%">调频时间</th>
<th width="10%">调频模式</th>
<th width="10%">上点频次</th>
<th width="10%">持续时长</th>
<th width="10%">设备是否响应</th>
<th width="10%">调频上点个数</th>
<th width="10%">设备上点总个数</th>
<th width="10%">剩余电量</th>
<th width="14%">调频模式</th>
<th width="14%">上点频次</th>
<th width="14%">持续时长</th>
<th width="14%">设备是否响应</th>
<!-- <th width="10%">调频上点个数</th>
<th width="10%">设备上点总个数</th> -->
<th width="14%">剩余电量</th>
<th width="10%">调频操作人</th>
</tr>
<tr v-for="(item,index) in freqTableData" :key="index">
......@@ -291,8 +291,8 @@
<td>{{item.frequency}}</td>
<td>{{item.duration == '-1'?'永久有效':(item.duration||'--')}}</td>
<td>{{responseStatusList[item.responseStatus]||'--'}}</td>
<td>{{item.freTotal}}</td>
<td>{{item.devicePointTotal}}</td>
<!-- <td>{{item.freTotal}}</td>
<td>{{item.devicePointTotal}}</td> -->
<td>{{item.batteryLevel}}%</td>
<td>{{item.operation}}</td>
</tr>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!