From b4a603e7e1c123195f5515aa7c3b247e1784fb76 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期三, 24 一月 2024 14:53:00 +0800 Subject: [PATCH] 1 --- src/views/dashboard/components/ProcessInfo.vue | 26 ++++++++++++++++---------- 1 files changed, 16 insertions(+), 10 deletions(-) diff --git a/src/views/dashboard/components/ProcessInfo.vue b/src/views/dashboard/components/ProcessInfo.vue index 859f890..891f3ed 100644 --- a/src/views/dashboard/components/ProcessInfo.vue +++ b/src/views/dashboard/components/ProcessInfo.vue @@ -13,10 +13,15 @@ </div> <div v-if="craftModel.number == task?.Procedure?.processModelNumber" class="tip-current">褰撳墠浣跨敤</div> <div class="btn"> - <el-button type="primary" :disabled="craftModel.isUpdate ? false : true" @click="onUpdateClick"> - <el-icon v-if="loading" color="#fff" :size="16" class="refresh-top-icon"> + <el-button + type="primary" + :loading="loading" + :disabled="craftModel.isUpdate ? false : true" + @click="onUpdateClick" + > + <!-- <el-icon v-if="loading" color="#fff" :size="16" class="refresh-top-icon"> <Loading /> - </el-icon> + </el-icon> --> 鏇存柊宸ヨ壓 </el-button> </div> @@ -29,7 +34,7 @@ import type { Task } from '@/api/task' const props = defineProps<{ craftModel: CraftModel - activeArr: Array + activeArr: string[] task?: Task }>() const { craftModel, task, activeArr } = toRefs(props) @@ -49,9 +54,10 @@ for (let i in activeArr.value) { if (activeArr.value[i] == craftModel.value.number) { loading.value = true - break + return true } } + loading.value = false } function onDetailClick() { emit('detail', craftModel.value) @@ -73,9 +79,9 @@ font-weight: 600; } .process-info { - width: calc(50% - 35px); + width: calc(50% - 10px); height: 140px; - padding: 23px 10px 10px; + padding: 23px 5px 10px 10px; background: $status-done; border-radius: 8px; //float: left; @@ -85,7 +91,7 @@ margin-bottom: 30px; &:nth-of-type(odd) { - margin-right: 30px; + margin-right: 20px; } .item-l-bng { @@ -144,9 +150,9 @@ } .btn { - width: 100px; + width: 95px; position: absolute; - right: 10px; + right: 15px; bottom: 10px; .el-button--primary { background: $status-running; -- Gitblit v1.8.0