From 053e6028bd20e599aea103401137816c6296a9ef Mon Sep 17 00:00:00 2001 From: Junjie <540245094@qq.com> Date: 星期五, 20 九月 2024 09:26:49 +0800 Subject: [PATCH] # --- zy-asrs-admin/src/components/task/showTaskDetl/index.vue | 19 ++++++++++++++++++- 1 files changed, 18 insertions(+), 1 deletions(-) diff --git a/zy-asrs-admin/src/components/task/showTaskDetl/index.vue b/zy-asrs-admin/src/components/task/showTaskDetl/index.vue index 59b579a..040af68 100644 --- a/zy-asrs-admin/src/components/task/showTaskDetl/index.vue +++ b/zy-asrs-admin/src/components/task/showTaskDetl/index.vue @@ -97,6 +97,13 @@ ellipsis: true, ...getColumnSearchProps('orderNo'), }, + { + title: formatMessage('db.man_task_detl.wave_no', '娉㈡缂栧彿'), + dataIndex: ['wave$', 'waveNo'], + width: 140, + ellipsis: true, + ...getColumnSearchProps('waveNo'), + }, ]; const fieldList = []; @@ -151,6 +158,8 @@ watch(taskId, (newVal, oldVal) => { if (newVal != null) { + state.loading = true; + tableData.value = [] get("/api/taskDetl/taskId/" + newVal, {}).then((resp) => { let result = resp.data; let index = 1; @@ -160,6 +169,8 @@ tmp.push(item) }) tableData.value = tmp; + + state.loading = false; }) get("/api/task/" + newVal, {}).then((resp) => { @@ -210,11 +221,17 @@ </div> </div> <a-table :data-source="tableData" :defaultExpandAllRows="false" :key="TABLE_KEY" rowKey="id" - :scroll="{ y: 768 }" :columns="state.columns"> + :scroll="{ y: 768 }" :columns="state.columns" :loading="state.loading"> <template #bodyCell="{ column, text, record }"> <template v-if="column.dataIndex === 'orderNo'"> <a-button type="link" @click="openOrderDetl(record)">{{ text }}</a-button> </template> + + <template v-if="typeof (column.dataIndex) === 'object'"> + <template v-if="column.dataIndex[1] === 'waveNo'"> + {{ text }} + </template> + </template> </template> </a-table> </a-modal> -- Gitblit v1.9.1