Commit 87033701 by 张杰

v1.11.0版本需求

1 parent a343607a
...@@ -223,7 +223,7 @@ export default { ...@@ -223,7 +223,7 @@ export default {
submitForm() { submitForm() {
let _this = this; let _this = this;
let params = this.getParams(); let params = this.getParams();
console.log(params) console.log(params);
if (!this.freqForm.enableFreq) { if (!this.freqForm.enableFreq) {
_this.closeDialog(); _this.closeDialog();
return false; return false;
...@@ -232,7 +232,10 @@ export default { ...@@ -232,7 +232,10 @@ export default {
if (!valid) { if (!valid) {
return false; return false;
} }
adjFreq(params).then((res) => { _this.loading = true;
adjFreq(params)
.then((res) => {
_this.loading = false;
if (res.code == 200) { if (res.code == 200) {
showToast({ showToast({
type: "success", type: "success",
...@@ -240,6 +243,9 @@ export default { ...@@ -240,6 +243,9 @@ export default {
}); });
_this.closeDialog(); _this.closeDialog();
} }
})
.catch((error) => {
_this.loading = false;
}); });
}); });
}, },
......
...@@ -147,7 +147,7 @@ ...@@ -147,7 +147,7 @@
<!-- 列表数据 end --> <!-- 列表数据 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> <slot>
<div class="dialog_content" v-loading="formLoading"> <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"> <el-form class="el_form" ref="snForm" :model="snForm" :rules="vehicleRules" :inline="false" :disabled="isReadonly" size="mini" label-width="100px">
...@@ -276,13 +276,13 @@ ...@@ -276,13 +276,13 @@
<table class="freq_table el_table" v-loading="freqLoading"> <table class="freq_table el_table" v-loading="freqLoading">
<tr> <tr>
<th width="20%">调频时间</th> <th width="20%">调频时间</th>
<th width="10%">调频模式</th> <th width="14%">调频模式</th>
<th width="10%">上点频次</th> <th width="14%">上点频次</th>
<th width="10%">持续时长</th> <th width="14%">持续时长</th>
<th width="10%">设备是否响应</th> <th width="14%">设备是否响应</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="10%">调频操作人</th> <th width="10%">调频操作人</th>
</tr> </tr>
<tr v-for="(item,index) in freqTableData" :key="index"> <tr v-for="(item,index) in freqTableData" :key="index">
...@@ -291,8 +291,8 @@ ...@@ -291,8 +291,8 @@
<td>{{item.frequency}}</td> <td>{{item.frequency}}</td>
<td>{{item.duration == '-1'?'永久有效':(item.duration||'--')}}</td> <td>{{item.duration == '-1'?'永久有效':(item.duration||'--')}}</td>
<td>{{responseStatusList[item.responseStatus]||'--'}}</td> <td>{{responseStatusList[item.responseStatus]||'--'}}</td>
<td>{{item.freTotal}}</td> <!-- <td>{{item.freTotal}}</td>
<td>{{item.devicePointTotal}}</td> <td>{{item.devicePointTotal}}</td> -->
<td>{{item.batteryLevel}}%</td> <td>{{item.batteryLevel}}%</td>
<td>{{item.operation}}</td> <td>{{item.operation}}</td>
</tr> </tr>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!