Compare commits

..

No commits in common. "759b24fe43316d0adcbad21f5d36f8a064fb77c1" and "0bf5f0a1d41fa8a181deeb5aca41496bb9b3c098" have entirely different histories.

2 changed files with 13 additions and 27 deletions

View File

@ -14,7 +14,6 @@ import {ElMessage, ElLoading} from "element-plus";
export default { export default {
data() { data() {
return { return {
tableLoading: false,
ip: "", ip: "",
tableData: [], tableData: [],
tokenData: { tokenData: {
@ -60,7 +59,11 @@ export default {
// //
methods: { methods: {
async getCIDList() { async getCIDList() {
this.tableLoading = true; const loading = ElLoading.service({
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);
@ -69,7 +72,7 @@ export default {
} catch (e) { } catch (e) {
console.log(e); console.log(e);
} finally { } finally {
this.tableLoading = false; loading.close();
} }
}, },
onSubmit() { onSubmit() {
@ -106,7 +109,7 @@ export default {
} catch (e) { } catch (e) {
console.log(e); console.log(e);
} finally { } finally {
this.tableLoading = false; loading.close();
} }
}, },
toRunCIDLog(index) { toRunCIDLog(index) {
@ -143,7 +146,7 @@ export default {
} catch (e) { } catch (e) {
console.log(e); console.log(e);
} finally { } finally {
this.tableLoading = false; loading.close();
} }
}, },
async updateButtonCID(index) { async updateButtonCID(index) {
@ -176,7 +179,7 @@ export default {
} catch (e) { } catch (e) {
console.log(e); console.log(e);
} finally { } finally {
this.tableLoading = false; loading.close();
} }
}, },
async updateCID() { async updateCID() {
@ -199,7 +202,7 @@ export default {
} catch (e) { } catch (e) {
console.log(e); console.log(e);
} finally { } finally {
this.tableLoading = false; loading.close();
} }
}, },
async getIpClient() { async getIpClient() {
@ -396,7 +399,7 @@ export default {
</el-form> </el-form>
<!-- 表格 :row-style="this.tableRowClassName"--> <!-- 表格 :row-style="this.tableRowClassName"-->
<el-table :data="tableData" width="100%" border v-loading="tableLoading"> <el-table :data="tableData" width="100%" border>
: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

View File

@ -601,25 +601,8 @@ export default {
<el-table-column <el-table-column
prop="Status" prop="Status"
label="状态" label="状态"
width="100" width="40"
> ></el-table-column>
<template #default="scope">
<el-tag
v-if="scope.row.Status === 0"
>任务提交</el-tag
>
<el-tag
v-if="scope.row.Status === 1"
type="info"
>正在运行</el-tag>
<el-tag
v-if="scope.row.Status === 2"
type="success"
>已完成</el-tag>
</template>
</el-table-column>
<el-table-column <el-table-column
prop="Server" prop="Server"
label="服务器" label="服务器"