diff --git a/.eslintrc b/.eslintrc index 5697453..0ebc597 100644 --- a/.eslintrc +++ b/.eslintrc @@ -47,6 +47,7 @@ "@typescript-eslint/explicit-module-boundary-types": "off", "vue/first-attribute-linebreak": 0, + "@typescript-eslint/no-unused-vars": [ "error", { diff --git a/package.json b/package.json index 1a0f564..201d65e 100644 --- a/package.json +++ b/package.json @@ -24,36 +24,37 @@ "echarts": "5.1.2", "lodash": "^4.17.21", "nprogress": "^0.2.0", - "pinia": "^2.1.4", - "pinia-plugin-persistedstate": "^3.1.0", + "pinia": "^2.1.6", + "pinia-plugin-persistedstate": "^3.2.0", "qrcode.vue": "^3.4.0", "qs": "^6.11.2", - "tdesign-icons-vue-next": "^0.1.11", - "tdesign-vue-next": "^1.3.10", + "tdesign-icons-vue-next": "^0.2.0", + "tdesign-vue-next": "^1.4.1", "tvision-color": "^1.6.0", "vue": "^3.3.4", "vue-clipboard3": "^2.0.0", - "vue-router": "~4.2.3" + "vue-i18n": "^9.4.1", + "vue-router": "~4.2.4" }, "devDependencies": { - "@commitlint/cli": "^17.6.6", - "@commitlint/config-conventional": "^17.6.6", + "@commitlint/cli": "^17.6.7", + "@commitlint/config-conventional": "^17.6.7", "@types/echarts": "^4.9.18", - "@types/lodash": "^4.14.195", + "@types/lodash": "^4.14.196", "@types/nprogress": "^0.2.0", "@types/qs": "^6.9.7", - "@typescript-eslint/eslint-plugin": "^5.61.0", - "@typescript-eslint/parser": "^5.61.0", + "@typescript-eslint/eslint-plugin": "^5.62.0", + "@typescript-eslint/parser": "^5.62.0", "@vitejs/plugin-vue": "^4.2.3", "@vitejs/plugin-vue-jsx": "^3.0.1", "@vue/compiler-sfc": "^3.3.4", "@vue/eslint-config-typescript": "^11.0.3", "commitizen": "^4.3.0", "cz-conventional-changelog": "^3.3.0", - "eslint": "^8.44.0", + "eslint": "^8.45.0", "eslint-config-airbnb-base": "^15.0.0", - "eslint-config-prettier": "^8.8.0", - "eslint-plugin-import": "^2.27.5", + "eslint-config-prettier": "^8.9.0", + "eslint-plugin-import": "^2.28.0", "eslint-plugin-prettier": "^4.2.1", "eslint-plugin-simple-import-sort": "^10.0.0", "eslint-plugin-vue": "^9.15.1", @@ -65,14 +66,14 @@ "postcss-html": "^1.5.0", "postcss-less": "^6.0.0", "prettier": "^2.8.8", - "stylelint": "~15.10.0", + "stylelint": "~15.10.2", "stylelint-config-standard": "^34.0.0", "stylelint-order": "~6.0.3", "typescript": "~5.1.6", - "vite": "^4.3.9", + "vite": "^4.4.7", "vite-plugin-mock": "^3.0.0", "vite-svg-loader": "^4.0.0", - "vue-tsc": "^1.8.4" + "vue-tsc": "^1.8.8" }, "config": { "commitizen": { @@ -87,5 +88,8 @@ "*.{html,vue,css,sass,less}": [ "npm run stylelint:fix" ] + }, + "engines": { + "node": ">=16.0.0" } } diff --git a/src/App.vue b/src/App.vue index 2ed5814..2939186 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,9 +1,12 @@ diff --git a/src/pages/detail/base/constants.ts b/src/pages/detail/base/constants.ts deleted file mode 100644 index 81dce48..0000000 --- a/src/pages/detail/base/constants.ts +++ /dev/null @@ -1,78 +0,0 @@ -export const BASE_INFO_DATA = [ - { - name: '合同名称', - value: '总部办公用品采购项目', - type: null, - }, - { - name: '合同状态', - value: '履行中', - type: { - key: 'contractStatus', - value: 'inProgress', - }, - }, - { - name: '合同编号', - value: 'BH00010', - type: null, - }, - { - name: '合同类型', - value: '主合同', - type: null, - }, - { - name: '合同收付类型', - value: '付款', - type: null, - }, - { - name: '合同金额', - value: '5,000,000元', - type: null, - }, - { - name: '甲方', - value: '腾讯科技(深圳)有限公司', - type: null, - }, - { - name: '乙方', - value: '欧尚', - type: null, - }, - { - name: '合同签订日期', - value: '2020-12-20', - type: null, - }, - { - name: '合同生效日期', - value: '2021-01-20', - type: null, - }, - { - name: '合同结束日期', - value: '2022-12-20', - type: null, - }, - { - name: '合同附件', - value: '总部办公用品采购项目合同.pdf', - type: { - key: 'contractAnnex', - value: 'pdf', - }, - }, - { - name: '备注', - value: '--', - type: null, - }, - { - name: '创建时间', - value: '2020-12-22 10:00:00', - type: null, - }, -]; diff --git a/src/pages/detail/base/index.vue b/src/pages/detail/base/index.vue index af45f1f..38934d9 100644 --- a/src/pages/detail/base/index.vue +++ b/src/pages/detail/base/index.vue @@ -1,6 +1,6 @@