diff --git a/.vscode/settings.json b/.vscode/settings.json index 947c6ee..cc87c93 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -39,5 +39,10 @@ "jsonc", "yaml" ], - "vue3snippets.enable-compile-vue-file-on-did-save-code": true + "vue3snippets.enable-compile-vue-file-on-did-save-code": true, + "editor.defaultFormatter": "rvest.vs-code-prettier-eslint", + "[vue]": { + "editor.defaultFormatter": "Wscats.vue" + }, + "editor.formatOnSaveMode": "modifications" } diff --git a/src/api/task/task.ts b/src/api/task/task.ts index 501a26f..395607b 100644 --- a/src/api/task/task.ts +++ b/src/api/task/task.ts @@ -15,7 +15,7 @@ export async function getApprovalList(page: any) { pageSize: page.pageSize, currPage: page.pageNo, keyword: page.keyword, - userSearchId:page.userSearchId + userSearchId: page.userSearchId, }, }) @@ -28,7 +28,7 @@ export async function getApprovalList(page: any) { /** * 审核 - * @param param + * @param params */ export async function audit(params) { return http.request({ @@ -82,8 +82,6 @@ export async function removeFiles(params) { /** * 获取某个任务详情(相似图片列表) - * @param packageid 任务包id - * @param taskchildpictureid 任务详情的id * @param params * @returns */ @@ -94,26 +92,36 @@ export async function getSimilarityList(params: any) { params, }) - const { data: { records, pages, total } } = res - // 精简一下数据 - const list = records.map((item) => { + const { data } = res + if (data) { + const { records, pages, total } = data + // 精简一下数据 + const list = records.map((item) => { + return { + id: item.id, + taskId: item.taskId, + taskname: item.fromtaskname, + assignee: item.assignee, + pictureid: item.pictureid, + imgurl: item.imgUrl, + thumburl: item.imgUrl, + iztrueorfalse: item.iztrueorfalse, + states: item.states, + } + }) + return { - id: item.id, - taskId: item.taskId, - taskname: item.fromtaskname, - assignee: item.assignee, - pictureid: item.pictureid, - imgurl: item.imgUrl, - thumburl: item.imgUrl, - iztrueorfalse: item.iztrueorfalse, - states: item.states, + pageCount: pages, + data: records, + total, + } + } + else { + return { + pageCount: 0, + data: [], + total: 0, } - }) - - return { - pageCount: pages, - data: records, - total, } } diff --git a/src/assets/images/bg-loading.png b/src/assets/images/bg-loading.png new file mode 100644 index 0000000..839713f Binary files /dev/null and b/src/assets/images/bg-loading.png differ diff --git a/src/components/RichEditor/Quill.vue b/src/components/RichEditor/Quill.vue index a972f17..0e03ce6 100644 --- a/src/components/RichEditor/Quill.vue +++ b/src/components/RichEditor/Quill.vue @@ -54,6 +54,7 @@ const saveHandler = debounce(() => { { return item.id === id }) - storage.set('isSearch', true) + if (!storage.get('isSearch')) + storage.set('isSearch', true, Date.now() + 30 * 60 * 1000) + router.push({ name: item.path, query: { id, searchContent: desiredObject.name } }) emit('close') } diff --git a/src/layout/components/Header/RecycleModal.vue b/src/layout/components/Header/RecycleModal.vue index 7122402..cd0f085 100644 --- a/src/layout/components/Header/RecycleModal.vue +++ b/src/layout/components/Header/RecycleModal.vue @@ -13,12 +13,14 @@ import { viewOptions } from '@/config/home' import NotPassed from '@/components/Approval/NotPassed.vue' import { formatToDateHMS } from '@/utils/dateUtil' import { off, on } from '@/utils/domUtils' +import bgLoading from '@/assets/images/bg-loading.png' const cardStyle = { '--n-padding-bottom': '40px', '--n-padding-left': '120px', } +const bgLoadingImg = ref(bgLoading) let startTime = 0 let endTime = 0 let startCalTime = false @@ -732,6 +734,7 @@ watch(() => pagination.pageNo, (newVal, oldVal) => { ref="imageRef" :src="item.imgUrl" :preview-src="item.imgUrl" + :fallback-src="bgLoadingImg" class="img " :class="{ 'img-fit': viewMode === 'horizontalVersion', diff --git a/src/layout/index.vue b/src/layout/index.vue index 6e39d10..b1d0c0b 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -1,5 +1,5 @@ @@ -553,8 +491,7 @@ const indeterminate = computed(() => { .textbtnStyle { cursor: pointer; - color: #507AFD; - + color: #507afd; } .drag-wrapper { @@ -615,7 +552,7 @@ const indeterminate = computed(() => { ::v-deep(.n-button--info-type) { background: #507afd !important; } -::v-deep(.n-button--default-type){ +::v-deep(.n-button--default-type) { border: 1px solid #cad2dd !important; } // ::v-deep(.n-card__content){ diff --git a/src/views/final/comp/FilterModal.vue b/src/views/final/comp/FilterModal.vue index 4d1a3bf..82f0cf5 100644 --- a/src/views/final/comp/FilterModal.vue +++ b/src/views/final/comp/FilterModal.vue @@ -166,20 +166,20 @@ function handleCheck(rowKeys: DataTableRowKey[]) { } function select(key: number, id: string) { - if (key == 1) { + if (key == 1) editSelection(id) - } - else { - const modalInst = modal.create({ - title: '确认提示', - content: '确认删除该条过滤条件吗?', - positiveText: '确定', - negativeText: '取消', - preset: 'dialog', - onPositiveClick: () => deleteSelection(id), - onNegativeClick: () => modalInst.destroy(), - }) - } + + else + deleteSelection(id) + // const modalInst = modal.create({ + // title: "确认提示", + // content: "确认删除该条过滤条件吗?", + // positiveText: "确定", + // negativeText: "取消", + // preset: "dialog", + // onPositiveClick: () => deleteSelection(id), + // onNegativeClick: () => modalInst.destroy(), + // }); } function editSelection(id = '') { diff --git a/src/views/final/comp/NewFilterModal.vue b/src/views/final/comp/NewFilterModal.vue index 0700ec1..2d30431 100644 --- a/src/views/final/comp/NewFilterModal.vue +++ b/src/views/final/comp/NewFilterModal.vue @@ -302,6 +302,7 @@ defineExpose({ v-model:value="formValue.name" :style="{ width: '780px' }" placeholder="请输入过滤名称" + maxlength="15" @keydown.enter.prevent /> diff --git a/src/views/final/content/Content.vue b/src/views/final/content/Content.vue index fe84e8b..e1b055a 100644 --- a/src/views/final/content/Content.vue +++ b/src/views/final/content/Content.vue @@ -1,5 +1,9 @@