修改cid加载问题
This commit is contained in:
parent
0bf5f0a1d4
commit
7a24b3efc2
|
|
@ -14,6 +14,7 @@ import {ElMessage, ElLoading} from "element-plus";
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
tableLoading: false,
|
||||||
ip: "",
|
ip: "",
|
||||||
tableData: [],
|
tableData: [],
|
||||||
tokenData: {
|
tokenData: {
|
||||||
|
|
@ -59,11 +60,7 @@ export default {
|
||||||
// 它们可以在模板中作为事件处理器绑定
|
// 它们可以在模板中作为事件处理器绑定
|
||||||
methods: {
|
methods: {
|
||||||
async getCIDList() {
|
async getCIDList() {
|
||||||
const loading = ElLoading.service({
|
this.tableLoading = true;
|
||||||
lock: true,
|
|
||||||
text: '加载中',
|
|
||||||
background: 'rgba(0, 0, 0, 0.7)',
|
|
||||||
});
|
|
||||||
let result = {};
|
let result = {};
|
||||||
try {
|
try {
|
||||||
result = await getCIDListService(this.tokenData);
|
result = await getCIDListService(this.tokenData);
|
||||||
|
|
@ -72,7 +69,7 @@ export default {
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
} finally {
|
} finally {
|
||||||
loading.close();
|
this.tableLoading = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onSubmit() {
|
onSubmit() {
|
||||||
|
|
@ -109,7 +106,7 @@ export default {
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
} finally {
|
} finally {
|
||||||
loading.close();
|
this.tableLoading = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
toRunCIDLog(index) {
|
toRunCIDLog(index) {
|
||||||
|
|
@ -146,7 +143,7 @@ export default {
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
} finally {
|
} finally {
|
||||||
loading.close();
|
this.tableLoading = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async updateButtonCID(index) {
|
async updateButtonCID(index) {
|
||||||
|
|
@ -179,7 +176,7 @@ export default {
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
} finally {
|
} finally {
|
||||||
loading.close();
|
this.tableLoading = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async updateCID() {
|
async updateCID() {
|
||||||
|
|
@ -202,7 +199,7 @@ export default {
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
} finally {
|
} finally {
|
||||||
loading.close();
|
this.tableLoading = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async getIpClient() {
|
async getIpClient() {
|
||||||
|
|
@ -399,7 +396,7 @@ export default {
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
<!-- 表格 :row-style="this.tableRowClassName"-->
|
<!-- 表格 :row-style="this.tableRowClassName"-->
|
||||||
<el-table :data="tableData" width="100%" border>
|
<el-table :data="tableData" width="100%" border v-loading="tableLoading">
|
||||||
:row-style="this.tableRowClassName"
|
:row-style="this.tableRowClassName"
|
||||||
<el-table-column prop="ID" label="id" width="80"></el-table-column>
|
<el-table-column prop="ID" label="id" width="80"></el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue