Compare commits

..

2 Commits

Author SHA1 Message Date
junleea 759b24fe43 修改shelllist状态提示 2025-07-29 19:49:37 +08:00
junleea 7a24b3efc2 修改cid加载问题 2025-07-27 23:25:58 +08:00
2 changed files with 27 additions and 13 deletions

View File

@ -14,6 +14,7 @@ import {ElMessage, ElLoading} from "element-plus";
export default {
data() {
return {
tableLoading: false,
ip: "",
tableData: [],
tokenData: {
@ -59,11 +60,7 @@ export default {
//
methods: {
async getCIDList() {
const loading = ElLoading.service({
lock: true,
text: '加载中',
background: 'rgba(0, 0, 0, 0.7)',
});
this.tableLoading = true;
let result = {};
try {
result = await getCIDListService(this.tokenData);
@ -72,7 +69,7 @@ export default {
} catch (e) {
console.log(e);
} finally {
loading.close();
this.tableLoading = false;
}
},
onSubmit() {
@ -109,7 +106,7 @@ export default {
} catch (e) {
console.log(e);
} finally {
loading.close();
this.tableLoading = false;
}
},
toRunCIDLog(index) {
@ -146,7 +143,7 @@ export default {
} catch (e) {
console.log(e);
} finally {
loading.close();
this.tableLoading = false;
}
},
async updateButtonCID(index) {
@ -179,7 +176,7 @@ export default {
} catch (e) {
console.log(e);
} finally {
loading.close();
this.tableLoading = false;
}
},
async updateCID() {
@ -202,7 +199,7 @@ export default {
} catch (e) {
console.log(e);
} finally {
loading.close();
this.tableLoading = false;
}
},
async getIpClient() {
@ -399,7 +396,7 @@ export default {
</el-form>
<!-- 表格 :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"
<el-table-column prop="ID" label="id" width="80"></el-table-column>
<el-table-column

View File

@ -601,8 +601,25 @@ export default {
<el-table-column
prop="Status"
label="状态"
width="40"
></el-table-column>
width="100"
>
<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
prop="Server"
label="服务器"