|
@@ -43,11 +43,9 @@
|
|
|
v-for="item in taskInfoList"
|
|
|
:key="item.taskId"
|
|
|
v-loading="taskListLoad"
|
|
|
- class="task-info-item"
|
|
|
- :class="{ 'text-disable': item.status === 1 }"
|
|
|
- @click="getInfoDetailClick(item)"
|
|
|
+ class="task-info-item"
|
|
|
>
|
|
|
- <div class="task-info-item-left">
|
|
|
+ <div class="task-info-item-left" :class="{ 'text-disable': item.status === 1 }" @click.stop="getInfoDetailClick(item)">
|
|
|
<span>{{ item.taskTime }}</span>
|
|
|
<span v-if="item.status === 1" class="ml-2">待生成</span>
|
|
|
<span v-else class="ml-2">生成</span>
|
|
@@ -58,7 +56,7 @@
|
|
|
<HcIcon class="text-hover" name="loader-2" style=" color:#FF7D43;" />
|
|
|
<span>生成中</span>
|
|
|
</div>
|
|
|
- <div v-else class="task-info-item-right ml-4">
|
|
|
+ <div v-else v-loading="item?.delLoad" class="task-info-item-right ml-4" @click.stop="delClick(item)">
|
|
|
<HcIcon class="text-hover" name="close-circle" style=" color:#FF7D43;" />
|
|
|
</div>
|
|
|
</div>
|
|
@@ -380,7 +378,7 @@ import { rowsToId, rowsToIdNumArr } from '~uti/tools'
|
|
|
import tuningApi from '~api/archiveConfig/tuning.js'
|
|
|
import archiveFileApi from '~api/archiveFile/archiveFileAuto.js'
|
|
|
import aiApi from '~api/ai/ai.js'
|
|
|
-
|
|
|
+import { HcDelMsg } from 'hc-vue3-ui'
|
|
|
import { getStoreValue, setStoreValue } from '~src/utils/storage'
|
|
|
import { toPdfPage } from '~uti/btn-auth'
|
|
|
import { getDictionaryBiz } from '~api/other'
|
|
@@ -1320,6 +1318,19 @@ const getTaskInfoList = async ()=>{
|
|
|
|
|
|
}
|
|
|
}
|
|
|
+const delClick = (item)=>{
|
|
|
+ HcDelMsg(async (resolve) => {
|
|
|
+ const { error, code, msg } = await aiApi.deletedArchiveAiTask({
|
|
|
+ taskId: item.taskId,
|
|
|
+
|
|
|
+ })
|
|
|
+ if (!error && code === 200) {
|
|
|
+ window.$message?.success(msg)
|
|
|
+ getTaskInfoList()
|
|
|
+ }
|
|
|
+ resolve() //关闭弹窗的回调
|
|
|
+ })
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
@@ -1330,9 +1341,7 @@ const getTaskInfoList = async ()=>{
|
|
|
<style lang="scss">
|
|
|
// @import '~style/file/collection.scss';
|
|
|
@import '~src/styles/theme/archives/tuning.scss';
|
|
|
-.text-disable {
|
|
|
- cursor: not-allowed
|
|
|
-}
|
|
|
+
|
|
|
.hover-hand {
|
|
|
cursor: pointer;
|
|
|
}
|