diff --git a/src/assets/style/style.css b/src/assets/style/style.css index 44d1b654..2a0a1258 100644 --- a/src/assets/style/style.css +++ b/src/assets/style/style.css @@ -768,6 +768,7 @@ li { color: rgba(0, 0, 0, 0.45); } .collection_modal .ant-modal-body, +.generalModel_modal .ant-modal-body, .payOrder_modal .ant-modal-body, .design_detail_modal_component .ant-modal-body, .designOpenrtion_modal .ant-modal-body, @@ -776,6 +777,7 @@ li { overflow-y: hidden; } .collection_modal .ant-upload.ant-upload-select-picture-card, +.generalModel_modal .ant-upload.ant-upload-select-picture-card, .payOrder_modal .ant-upload.ant-upload-select-picture-card, .design_detail_modal_component .ant-upload.ant-upload-select-picture-card, .designOpenrtion_modal .ant-upload.ant-upload-select-picture-card, @@ -789,6 +791,7 @@ li { margin: 0; } .collection_modal .ant-upload.ant-upload-select-picture-card .upload_tip_block .icon-jiahao, +.generalModel_modal .ant-upload.ant-upload-select-picture-card .upload_tip_block .icon-jiahao, .payOrder_modal .ant-upload.ant-upload-select-picture-card .upload_tip_block .icon-jiahao, .design_detail_modal_component .ant-upload.ant-upload-select-picture-card .upload_tip_block .icon-jiahao, .designOpenrtion_modal .ant-upload.ant-upload-select-picture-card .upload_tip_block .icon-jiahao, @@ -798,6 +801,7 @@ li { color: #B7B7B7; } .collection_modal .ant-upload.ant-upload-select-picture-card .ant-upload-text, +.generalModel_modal .ant-upload.ant-upload-select-picture-card .ant-upload-text, .payOrder_modal .ant-upload.ant-upload-select-picture-card .ant-upload-text, .design_detail_modal_component .ant-upload.ant-upload-select-picture-card .ant-upload-text, .designOpenrtion_modal .ant-upload.ant-upload-select-picture-card .ant-upload-text, @@ -807,6 +811,7 @@ li { color: #B7B7B7; } .collection_modal .ant-upload-list-picture-card-container, +.generalModel_modal .ant-upload-list-picture-card-container, .payOrder_modal .ant-upload-list-picture-card-container, .design_detail_modal_component .ant-upload-list-picture-card-container, .designOpenrtion_modal .ant-upload-list-picture-card-container, @@ -815,6 +820,7 @@ li { display: none !important; } .collection_modal .ant-upload-picture-card-wrapper, +.generalModel_modal .ant-upload-picture-card-wrapper, .payOrder_modal .ant-upload-picture-card-wrapper, .design_detail_modal_component .ant-upload-picture-card-wrapper, .designOpenrtion_modal .ant-upload-picture-card-wrapper, @@ -1079,6 +1085,24 @@ i { .library_page .upload_item .upload_file_item .upload_img_icon { width: calc(4.6rem*1.2); } +.generalModel_modal .ant-modal-content { + border-radius: calc(1rem * 1.2); + overflow: hidden; +} +.generalModel_modal .ant-modal-content .ant-modal-header { + background-color: #fff; + border-bottom: none; +} +.generalModel_modal .ant-modal-content .ant-modal-body { + height: calc(65rem * 1.2); +} +.generalModel_modal .ant-modal-content .ant-progress-circle.ant-progress-status-success .ant-progress-text { + color: #000; +} +.generalModel_modal .ant-modal-content .ant-progress-circle .ant-progress-text { + color: rgba(0, 0, 0, 0.55); + font-size: calc(1.6rem * 1.2); +} .hideChecked { user-select: none; -moz-user-select: none; diff --git a/src/assets/style/style.less b/src/assets/style/style.less index 5b63184d..dfbc7dab 100644 --- a/src/assets/style/style.less +++ b/src/assets/style/style.less @@ -893,7 +893,7 @@ input:focus{ } } //collection 弹窗 -.collection_modal,.payOrder_modal,.design_detail_modal_component,.designOpenrtion_modal,.library_page,.Export{ +.collection_modal,.generalModel_modal,.payOrder_modal,.design_detail_modal_component,.designOpenrtion_modal,.library_page,.Export{ .ant-modal-body{ overflow-y: hidden; @@ -1148,6 +1148,31 @@ i{ } } } +.generalModel_modal{//公共弹窗 + // max-width: 1200px ; + // max-width: 1150px ; + .ant-modal-content { + border-radius: calc(1rem * 1.2); + overflow: hidden; + .ant-modal-header { + background-color: #fff; + border-bottom: none; + } + .ant-modal-body { + // height: calc(65vh - 6.4rem); + height: calc(65rem * 1.2); + } + //进度完成字体颜色 + + .ant-progress-circle.ant-progress-status-success .ant-progress-text { + color: #000; + } + .ant-progress-circle .ant-progress-text { + color: rgba(0, 0, 0, 0.55); + font-size: calc(1.6rem * 1.2); + } + } +} .hideChecked{ user-select: none; -moz-user-select: none; diff --git a/src/component/Administrator/trialApproval.vue b/src/component/Administrator/trialApproval.vue index 32efeaeb..ff830151 100644 --- a/src/component/Administrator/trialApproval.vue +++ b/src/component/Administrator/trialApproval.vue @@ -41,9 +41,9 @@
- consent + agree
Canvas Size
- - + + +
Canvas Nav
-
@@ -197,9 +194,10 @@ - \ No newline at end of file diff --git a/src/component/HomePage/TaskPage.vue b/src/component/HomePage/TaskPage.vue index 19dd1355..660a178c 100644 --- a/src/component/HomePage/TaskPage.vue +++ b/src/component/HomePage/TaskPage.vue @@ -12,11 +12,11 @@
- +
-
+
点击查看更多
-
- - +
+ +
@@ -54,6 +54,7 @@ import { message, Upload } from "ant-design-vue"; import { defineComponent, computed, h, ref, nextTick, inject } from "vue"; import { Https } from "@/tool/https"; +import { downloadIamge } from "@/tool/util"; import { useStore } from "vuex"; // import { forEach } from "jszip"; import TaskDetailPage from "@/component/HomePage/TaskDetailPage.vue"; @@ -72,17 +73,19 @@ export default defineComponent({ let taskListMore:any = ref([]) let state:any = ref([ { - label:'Income', - value:'income', + label:'SR', + value:'SR', }, - { - label:'Expend', - value:'expend', - } + // { + // label:'SR', + // value:'SR', + // } ]) let currentState = ref({ - value:'income', + value:'SR', }) + let getTaskTime:any = null + let oldTaskListMore:any = ref([]) return { store, visible, @@ -90,6 +93,8 @@ export default defineComponent({ taskListMore, state, currentState, + getTaskTime, + oldTaskListMore, }; }, data(prop) { @@ -117,7 +122,7 @@ export default defineComponent({ function callback(entries:any, observer:any) { entries.forEach((entry:any) => { if (entry.isIntersecting) { - this_.getTaskList() + this_.getTaskMoreList() } else { } }); @@ -126,14 +131,25 @@ export default defineComponent({ }, }, watch:{ - // newWindowState:{ - // handler(newVal,oldVal){ - // console.log(newVal); - // if(newVal){ - // this.newWindow?.close(); - // } - // } - // }, + taskList:{ + handler(newVal,oldVal){ + if(oldVal.length > 0){ + let newSuccess = newVal.filter((item:any)=>item.status == 'success') + let oldSuccess = oldVal.filter((item:any)=>item.status == 'success') + // const exportSR = newSuccess.filter((item:any) => !oldSuccess.includes(item)); + // console.log(JSON.parse(JSON.stringify(newSuccess)),JSON.parse(JSON.stringify(oldSuccess))); + // console.log(exportSR); + let difference = newSuccess.filter((objA:any) => !oldSuccess.some((objB:any) => objA.id === objB.id)); + if(difference.length > 0){ + difference.forEach((item:any)=>{ + downloadIamge(item.outputImage,item.imageName) + }) + } + + } + + } + }, }, methods: { @@ -143,16 +159,13 @@ export default defineComponent({ }, init(){ this.visible = true - Https.axiosGet(Https.httpUrls.getTasksList).then((rv)=>{ - - this.taskList = this.sort(rv) - }) + this.getTaskList() }, sort(arr:any){ arr.sort((a:any, b:any) => { var a_num = Date.parse(a.createDate); - var b_num = b.style.zIndex; - return a_num - b_num; + var b_num = Date.parse(b.createDate); + return b_num - a_num; }); return arr }, @@ -160,13 +173,8 @@ export default defineComponent({ if(!bool){ this.taskListMore = [] } - console.log(bool); - }, - setTaskListMore(){ - // this.taskListMore = this.taskList - - this.taskListMore.push(...this.taskList,...this.taskList) }, + openTaskDetailPage(){ let taskDetailPage:any = this.$refs.TaskDetailPage this.visible = false @@ -178,14 +186,29 @@ export default defineComponent({ this.total = 0 }, getTaskList(){ + clearTimeout(this.getTaskTime) + Https.axiosGet(Https.httpUrls.getTasksList).then((rv)=>{ + this.taskList = this.sort(rv) + let isSuccess = rv.filter((item:any) => item.status == 'Waiting' || item.status == 'Executing') + if(isSuccess.length>0){ + this.getTaskTime = setTimeout(() => { + this.getTaskList() + }, 4000); + } + }) + }, + getTaskMoreList(){ let data = { size:this.pageSize, page: this.currentPage, - aaa:this.currentState, + type:this.currentState.value, + endTime: "", + startTime: "", } - console.log(123123); this.currentPage += 1 - Https.axiosGet() + Https.axiosPost(Https.httpUrls.getTasksHistory,data).then((rv)=>{ + this.taskListMore = rv + }) } }, }); diff --git a/src/component/Pay/allOrder.vue b/src/component/Pay/allOrder.vue index 65b14f67..b7762d93 100644 --- a/src/component/Pay/allOrder.vue +++ b/src/component/Pay/allOrder.vue @@ -1,8 +1,8 @@