diff --git a/package.json b/package.json index 8960260..9a6bcc5 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,8 @@ "lint": "eslint .", "lint:fix": "eslint . --fix", "cleanup": "rimraf node_modules && rimraf pnpm-lock.yaml", - "prepare": "husky install" + "prepare": "husky install", + "postinstall": "patch-package" }, "dependencies": { "@vueup/vue-quill": "^1.2.0", @@ -26,6 +27,7 @@ "mitt": "^3.0.1", "mockjs": "^1.1.0", "naive-ui": "^2.38.1", + "patch-package": "^8.0.0", "pinia": "^2.0.33", "qs": "^6.11.2", "sortablejs": "^1.15.1", diff --git a/patches/naive-ui+2.38.1.patch b/patches/naive-ui+2.38.1.patch new file mode 100644 index 0000000..5c4f5c6 --- /dev/null +++ b/patches/naive-ui+2.38.1.patch @@ -0,0 +1,13 @@ +diff --git a/node_modules/naive-ui/es/pagination/src/Pagination.mjs b/node_modules/naive-ui/es/pagination/src/Pagination.mjs +index 5bd975b..e1c6ebc 100644 +--- a/node_modules/naive-ui/es/pagination/src/Pagination.mjs ++++ b/node_modules/naive-ui/es/pagination/src/Pagination.mjs +@@ -702,7 +702,7 @@ export default defineComponent({ + theme: mergedTheme.peers.Input, + themeOverrides: mergedTheme.peerOverrides.Input, + onChange: handleQuickJumperChange +- })) : null; ++ }),h('span',{},'页')) : null; + default: + return null; + } diff --git a/src/views/final/comp/FilterModal.vue b/src/views/final/comp/FilterModal.vue index afbe8f1..df8672b 100644 --- a/src/views/final/comp/FilterModal.vue +++ b/src/views/final/comp/FilterModal.vue @@ -107,6 +107,7 @@ const pagination = reactive({ value: 50, }, ], + showQuickJumper: true, }); const tableData = ref>([]); const keyword = ref(""); diff --git a/src/views/final/comp/RepeatTaskTableModal.vue b/src/views/final/comp/RepeatTaskTableModal.vue index 2bda333..459d666 100644 --- a/src/views/final/comp/RepeatTaskTableModal.vue +++ b/src/views/final/comp/RepeatTaskTableModal.vue @@ -121,6 +121,7 @@ const pagination = reactive({ value: 50, }, ], + showQuickJumper: true, }) const tableData = ref>([]) const selectionIds = ref([]) diff --git a/src/views/final/content/Content.vue b/src/views/final/content/Content.vue index 763a26d..d98651d 100644 --- a/src/views/final/content/Content.vue +++ b/src/views/final/content/Content.vue @@ -397,6 +397,7 @@ const pagination = reactive({ value: 50, }, ], + showQuickJumper: true, }) const tableData = ref>([]) const selectionIds = ref([]) diff --git a/src/views/final/content/ListContent.vue b/src/views/final/content/ListContent.vue index 9e176fe..f01c4ac 100644 --- a/src/views/final/content/ListContent.vue +++ b/src/views/final/content/ListContent.vue @@ -2,7 +2,8 @@ import { onMounted, ref } from "vue"; const item = { - img: "/src/assets/images/test.png", + // img: "/src/assets/images/test.png", + img:'http://47.93.59.251/api/image/thumbnail_1752999610491604992.jpeg', checked: false, title: "YP4567890545", date: "2023-12-19 12:09:18", @@ -10,7 +11,7 @@ const item = { const data = ref([]); onMounted(() => { - for (let i = 0; i < 10; i++) { + for (let i = 0; i < 20; i++) { data.value.push(item as any); } }); @@ -36,7 +37,7 @@ onMounted(() => { :key="index" :style="index == 2 ? 'color:#02C984' : 'color:#507AFD'" > - 待确认 + {{ index==1?'待确认':'张思' }} @@ -85,8 +86,7 @@ onMounted(() => { .title, .date { font-size: 11px; - font-family: PingFang SC, PingFang SC-Medium; - font-weight: Medium; + font-weight: bolder; text-align: left; color: #323233; line-height: 16px; @@ -101,8 +101,7 @@ onMounted(() => { width: 31px; height: 14px; font-size: 10px; - font-family: PingFang SC, PingFang SC-Regular; - font-weight: Regular; + font-weight: bolder; text-align: left; // color: #507afd; line-height: 14px; @@ -118,16 +117,14 @@ onMounted(() => { justify-content: flex-end; .resovle_action { font-size: 12px; - font-family: PingFang SC, PingFang SC-Medium; - font-weight: Medium; + font-weight: bolder; text-align: left; color: #507afd; line-height: 17px; } .reject_action { font-size: 12px; - font-family: PingFang SC, PingFang SC-Medium; - font-weight: Medium; + font-weight: bolder; text-align: left; color: #ff4e4f; line-height: 17px; diff --git a/src/views/final/index.vue b/src/views/final/index.vue index 9ef95fe..9e1e3b0 100644 --- a/src/views/final/index.vue +++ b/src/views/final/index.vue @@ -15,9 +15,10 @@ const showList = ref(false);