From d1ce79c837650689ab47bbf587d076743fcb3a5f Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期一, 19 五月 2025 17:25:38 +0800
Subject: [PATCH] 1. 问题审核界面新增场景信息编辑入口 2. 问题审核界面场景图片查询新增图片类型修改功能
---
src/views/fysp/task/components/CompSubTaskList.vue | 26 +++++++++++++++++++-------
1 files changed, 19 insertions(+), 7 deletions(-)
diff --git a/src/views/fysp/task/components/CompSubTaskList.vue b/src/views/fysp/task/components/CompSubTaskList.vue
index fa2e87d..03ef062 100644
--- a/src/views/fysp/task/components/CompSubTaskList.vue
+++ b/src/views/fysp/task/components/CompSubTaskList.vue
@@ -44,7 +44,11 @@
<div v-else>
<el-empty description="鏃犱换鍔¤褰�" />
<el-row v-if="create" justify="center">
- <el-button type="success" size="small" @click="add"
+ <el-button
+ type="success"
+ size="small"
+ :loading="createLoading"
+ @click="add"
>娣诲姞浠诲姟</el-button
>
</el-row>
@@ -54,7 +58,7 @@
<el-dialog
v-model="dialogVisible"
width="600"
- title="涓�閿垱寤烘�讳换鍔�"
+ title="宸℃煡浠诲姟缂栬緫"
destroy-on-close
:close-on-click-modal="false"
:close-on-press-escape="false"
@@ -71,6 +75,7 @@
import { ref, computed, watch, onMounted, onUnmounted } from 'vue';
import { ElMessageBox, ElNotification, ElMessage } from 'element-plus';
import CompSubTaskEdit from './CompSubTaskEdit.vue';
+import subtaskApi from '@/api/fysp/subtaskApi';
const props = defineProps({
modelValue: Array,
@@ -80,7 +85,8 @@
},
// 鏄惁鏄剧ず娣诲姞浠诲姟鎸夐挳
create: Boolean,
- loading: Boolean
+ loading: Boolean,
+ createLoading:Boolean,
});
const dialogVisible = ref(false);
@@ -96,11 +102,17 @@
cancelButtonText: '鍙栨秷',
type: 'warning'
}).then(() => {
- const index = data.value.indexOf(item);
- data.value.splice(index, 1);
+ return subtaskApi.deleteSubtask(item.stguid).then(res=>{
+ if (res == 1) {
+ const index = data.value.indexOf(item);
+ data.value.splice(index, 1);
- emit('update:modelValue', data.value);
- emit('remove', item);
+ emit('update:modelValue', data.value);
+ emit('remove', item);
+ } else {
+ Promise.reject('鍒犻櫎宸℃煡浠诲姟澶辫触')
+ }
+ })
});
}
}
--
Gitblit v1.9.3