feat: 批量审批删除刷新页面 #15

Merged
lizijie merged 1 commits from jie into test 1 year ago

@ -45,7 +45,7 @@ onMounted(async () => {
<div class="id-wrap"> <div class="id-wrap">
<SvgIcon :name="svgName" size="28" /> <SvgIcon :name="svgName" size="28" />
<span class="list-item-header-name" :class="{ 'list-item-header-selected': selected }"> <span class="list-item-header-name" :class="{ 'list-item-header-selected': selected }">
{{ listItem.name }} <span class="list-item-title" :title="listItem.name">{{ listItem.name }} </span>
<span class="list-item-header-selected">({{ listItem.pictureCount }})</span> <span class="list-item-header-selected">({{ listItem.pictureCount }})</span>
</span> </span>
</div> </div>
@ -104,15 +104,21 @@ onMounted(async () => {
} }
.list-item-header-name { .list-item-header-name {
width: 226px; width: 250px;
font-size: 16px; font-size: 16px;
font-family: PingFang SC, PingFang SC-Medium; font-family: PingFang SC, PingFang SC-Medium;
font-weight: 700; font-weight: 700;
color: #333333; color: #333333;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-bottom: 0 0 8px 8px; margin-bottom: 0 0 8px 8px;
display: flex;
justify-content: space-between;
.list-item-title{
width: 200px;
display: inline-block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
} }
&-name { &-name {

@ -21,7 +21,7 @@ import { computed, onUnmounted, onUpdated, reactive, ref, unref, watch } from "v
import ConfrimModal from "../modal/ConfrimModal.vue"; import ConfrimModal from "../modal/ConfrimModal.vue";
import type { ApprovalParam, SimilarityPictureSortParam } from "/#/api"; import type { ApprovalParam, SimilarityPictureSortParam } from "/#/api";
const batch = ref(false); const batch = ref(false); //
const selectItems = ref<any[]>([]); const selectItems = ref<any[]>([]);
const message = useMessage(); const message = useMessage();
const dialog = useDialog(); const dialog = useDialog();
@ -370,7 +370,8 @@ function doAudit(param: any) {
} }
function reloadList() { function reloadList() {
loadMore() setBatch(false)
refreshHandler()
} }
</script> </script>
@ -479,7 +480,7 @@ function reloadList() {
<!-- 右侧任务 标题信息 --> <!-- 右侧任务 标题信息 -->
<div class="right"> <div class="right">
<n-scrollbar style="max-height: 100%"> <n-scrollbar style="max-height: 100%">
<span class="task-name">任务ID{{ taskDetailInfo.taskname }}</span> <span class="task-name" :title="taskDetailInfo.taskname">任务ID{{ taskDetailInfo.taskname }}</span>
<div class="tags"> <div class="tags">
<div class="tag tag-submiting" v-if="taskDetailInfo.states == 1">{{ TASK_STATUS_OBJ[taskDetailInfo.states] <div class="tag tag-submiting" v-if="taskDetailInfo.states == 1">{{ TASK_STATUS_OBJ[taskDetailInfo.states]
}}</div> }}</div>
@ -576,7 +577,7 @@ function reloadList() {
</div> </div>
</div> </div>
<div class="check"> <div class="check">
<n-checkbox v-show="batch" v-model:checked="item.checked" @click.stop <n-checkbox v-show="batch && item.historyStates !== 2 && item.historyStates !== 3" v-model:checked="item.checked" @click.stop
@update:checked="onCheckChange($event, item)" /> @update:checked="onCheckChange($event, item)" />
</div> </div>
<div class="percent"> <div class="percent">

Loading…
Cancel
Save