diff --git a/package-lock.json b/package-lock.json index 00784d4..0e2bdf4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,14 +24,16 @@ "mitt": "^3.0.0", "mockjs": "^1.1.0", "nprogress": "^0.2.0", + "openapi-fetch": "^0.8.1", "path": "^0.12.7", "pinia": "^2.1.4", "pinyin-pro": "^3.15.2", - "pnpm": "^8.9.0", + "pnpm": "^8.10.0", "qs": "^6.11.2", "responsive-storage": "^2.2.0", "sortablejs": "^1.15.0", "vue": "^3.3.4", + "vue-demi": "^0.14.6", "vue-echarts": "^6.6.1", "vue-router": "^4.2.2", "vue-types": "^5.1.0" @@ -55,7 +57,7 @@ "@vitejs/plugin-vue-jsx": "^3.0.1", "@vue/eslint-config-prettier": "^7.1.0", "@vue/eslint-config-typescript": "^11.0.3", - "autoprefixer": "^10.4.14", + "autoprefixer": "^10.4.16", "cloc": "^2.11.0", "cssnano": "^6.0.1", "eslint": "^8.43.0", @@ -64,7 +66,7 @@ "husky": "^8.0.3", "lint-staged": "^13.2.2", "picocolors": "^1.0.0", - "postcss": "^8.4.24", + "postcss": "^8.4.31", "postcss-html": "^1.5.0", "postcss-import": "^15.1.0", "postcss-scss": "^4.0.6", @@ -86,7 +88,7 @@ "stylelint-prettier": "^3.0.0", "stylelint-scss": "^5.0.1", "svgo": "^3.0.2", - "tailwindcss": "^3.3.2", + "tailwindcss": "^3.3.5", "terser": "^5.18.1", "typescript": "5.0.4", "vite": "^4.4.11", @@ -2531,28 +2533,6 @@ "vue-demi": ">=0.14.6" } }, - "node_modules/@vueuse/core/node_modules/vue-demi": { - "version": "0.14.6", - "resolved": "https://registry.npmmirror.com/vue-demi/-/vue-demi-0.14.6.tgz", - "integrity": "sha512-8QA7wrYSHKaYgUxDA5ZC24w+eHm3sYCbp0EzcDwKqN3p6HqtTCGR/GVsPyZW92unff4UlcSh++lmqDWN3ZIq4w==", - "hasInstallScript": true, - "bin": { - "vue-demi-fix": "bin/vue-demi-fix.js", - "vue-demi-switch": "bin/vue-demi-switch.js" - }, - "engines": { - "node": ">=12" - }, - "peerDependencies": { - "@vue/composition-api": "^1.0.0-rc.1", - "vue": "^3.0.0-0 || ^2.6.0" - }, - "peerDependenciesMeta": { - "@vue/composition-api": { - "optional": true - } - } - }, "node_modules/@vueuse/metadata": { "version": "10.5.0", "resolved": "https://registry.npmmirror.com/@vueuse/metadata/-/metadata-10.5.0.tgz", @@ -2585,28 +2565,6 @@ "vue-demi": ">=0.14.6" } }, - "node_modules/@vueuse/shared/node_modules/vue-demi": { - "version": "0.14.6", - "resolved": "https://registry.npmmirror.com/vue-demi/-/vue-demi-0.14.6.tgz", - "integrity": "sha512-8QA7wrYSHKaYgUxDA5ZC24w+eHm3sYCbp0EzcDwKqN3p6HqtTCGR/GVsPyZW92unff4UlcSh++lmqDWN3ZIq4w==", - "hasInstallScript": true, - "bin": { - "vue-demi-fix": "bin/vue-demi-fix.js", - "vue-demi-switch": "bin/vue-demi-switch.js" - }, - "engines": { - "node": ">=12" - }, - "peerDependencies": { - "@vue/composition-api": "^1.0.0-rc.1", - "vue": "^3.0.0-0 || ^2.6.0" - }, - "peerDependenciesMeta": { - "@vue/composition-api": { - "optional": true - } - } - }, "node_modules/@webassemblyjs/ast": { "version": "1.11.6", "resolved": "https://registry.npmmirror.com/@webassemblyjs/ast/-/ast-1.11.6.tgz", @@ -3630,9 +3588,23 @@ }, "node_modules/autoprefixer": { "version": "10.4.16", - "resolved": "https://registry.npmmirror.com/autoprefixer/-/autoprefixer-10.4.16.tgz", + "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.16.tgz", "integrity": "sha512-7vd3UC6xKp0HLfua5IjZlcXvGAGy7cBAXTg2lyQ/8WpNhd6SiZ8Be+xm3FyBSYJx5GKcpRCzBh7RH4/0dnY+uQ==", "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/autoprefixer" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], "dependencies": { "browserslist": "^4.21.10", "caniuse-lite": "^1.0.30001538", @@ -4757,28 +4729,6 @@ "vue-demi": "*" } }, - "node_modules/element-plus/node_modules/@vueuse/core/node_modules/vue-demi": { - "version": "0.14.6", - "resolved": "https://registry.npmmirror.com/vue-demi/-/vue-demi-0.14.6.tgz", - "integrity": "sha512-8QA7wrYSHKaYgUxDA5ZC24w+eHm3sYCbp0EzcDwKqN3p6HqtTCGR/GVsPyZW92unff4UlcSh++lmqDWN3ZIq4w==", - "hasInstallScript": true, - "bin": { - "vue-demi-fix": "bin/vue-demi-fix.js", - "vue-demi-switch": "bin/vue-demi-switch.js" - }, - "engines": { - "node": ">=12" - }, - "peerDependencies": { - "@vue/composition-api": "^1.0.0-rc.1", - "vue": "^3.0.0-0 || ^2.6.0" - }, - "peerDependenciesMeta": { - "@vue/composition-api": { - "optional": true - } - } - }, "node_modules/element-plus/node_modules/@vueuse/metadata": { "version": "9.13.0", "resolved": "https://registry.npmmirror.com/@vueuse/metadata/-/metadata-9.13.0.tgz", @@ -4792,28 +4742,6 @@ "vue-demi": "*" } }, - "node_modules/element-plus/node_modules/@vueuse/shared/node_modules/vue-demi": { - "version": "0.14.6", - "resolved": "https://registry.npmmirror.com/vue-demi/-/vue-demi-0.14.6.tgz", - "integrity": "sha512-8QA7wrYSHKaYgUxDA5ZC24w+eHm3sYCbp0EzcDwKqN3p6HqtTCGR/GVsPyZW92unff4UlcSh++lmqDWN3ZIq4w==", - "hasInstallScript": true, - "bin": { - "vue-demi-fix": "bin/vue-demi-fix.js", - "vue-demi-switch": "bin/vue-demi-switch.js" - }, - "engines": { - "node": ">=12" - }, - "peerDependencies": { - "@vue/composition-api": "^1.0.0-rc.1", - "vue": "^3.0.0-0 || ^2.6.0" - }, - "peerDependenciesMeta": { - "@vue/composition-api": { - "optional": true - } - } - }, "node_modules/emoji-regex": { "version": "9.2.2", "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-9.2.2.tgz", @@ -7299,6 +7227,19 @@ "node": ">=12" } }, + "node_modules/openapi-fetch": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/openapi-fetch/-/openapi-fetch-0.8.1.tgz", + "integrity": "sha512-xmzMaBCydPTMd0TKy4P2DYx/JOe9yjXtPIky1n1GV7nJJdZ3IZgSHvAWVbe06WsPD8EreR7E97IAiskPr6sa2g==", + "dependencies": { + "openapi-typescript-helpers": "^0.0.4" + } + }, + "node_modules/openapi-typescript-helpers": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/openapi-typescript-helpers/-/openapi-typescript-helpers-0.0.4.tgz", + "integrity": "sha512-Q0MTapapFAG993+dx8lNw33X6P/6EbFr31yNymJHq56fNc6dODyRm8tWyRnGxuC74lyl1iCRMV6nQCGQsfVNKg==" + }, "node_modules/optionator": { "version": "0.9.3", "resolved": "https://registry.npmmirror.com/optionator/-/optionator-0.9.3.tgz", @@ -7533,28 +7474,6 @@ } } }, - "node_modules/pinia/node_modules/vue-demi": { - "version": "0.14.6", - "resolved": "https://registry.npmmirror.com/vue-demi/-/vue-demi-0.14.6.tgz", - "integrity": "sha512-8QA7wrYSHKaYgUxDA5ZC24w+eHm3sYCbp0EzcDwKqN3p6HqtTCGR/GVsPyZW92unff4UlcSh++lmqDWN3ZIq4w==", - "hasInstallScript": true, - "bin": { - "vue-demi-fix": "bin/vue-demi-fix.js", - "vue-demi-switch": "bin/vue-demi-switch.js" - }, - "engines": { - "node": ">=12" - }, - "peerDependencies": { - "@vue/composition-api": "^1.0.0-rc.1", - "vue": "^3.0.0-0 || ^2.6.0" - }, - "peerDependenciesMeta": { - "@vue/composition-api": { - "optional": true - } - } - }, "node_modules/pinyin-pro": { "version": "3.17.0", "resolved": "https://registry.npmmirror.com/pinyin-pro/-/pinyin-pro-3.17.0.tgz", @@ -7581,15 +7500,18 @@ } }, "node_modules/pnpm": { - "version": "8.9.0", - "resolved": "https://registry.npmmirror.com/pnpm/-/pnpm-8.9.0.tgz", - "integrity": "sha512-74hZk44fBTe5/PAwkEQxE5Lzs4s0QXbmzU/e4hsiVSSwrCobCK4q4t3Vs/9LjKSW1neOlQ8+fJ9VW4EyWYJEHA==", + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/pnpm/-/pnpm-8.10.0.tgz", + "integrity": "sha512-nCy4Pyts9qJdjFgwC/mRl8fvO+hM8+dm8pBUtAuDtC+Kq6b8wxSp7PJ8APfOgKdXu0xgiADnrb4tKdxccFb1vg==", "bin": { "pnpm": "bin/pnpm.cjs", "pnpx": "bin/pnpx.cjs" }, "engines": { "node": ">=16.14" + }, + "funding": { + "url": "https://opencollective.com/pnpm" } }, "node_modules/popmotion": { @@ -7610,8 +7532,22 @@ }, "node_modules/postcss": { "version": "8.4.31", - "resolved": "https://registry.npmmirror.com/postcss/-/postcss-8.4.31.tgz", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", "integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], "dependencies": { "nanoid": "^3.3.6", "picocolors": "^1.0.0", @@ -9898,9 +9834,9 @@ } }, "node_modules/tailwindcss": { - "version": "3.3.3", - "resolved": "https://registry.npmmirror.com/tailwindcss/-/tailwindcss-3.3.3.tgz", - "integrity": "sha512-A0KgSkef7eE4Mf+nKJ83i75TMyq8HqY3qmFIJSWy8bNt0v1lG7jUcpGpoTFxAwYcWOphcTBLPPJg+bDfhDf52w==", + "version": "3.3.5", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.5.tgz", + "integrity": "sha512-5SEZU4J7pxZgSkv7FP1zY8i2TIAOooNZ1e/OGtxIEv6GltpoiXUqWvLy89+a10qYTB1N5Ifkuw9lqQkN9sscvA==", "dev": true, "dependencies": { "@alloc/quick-lru": "^5.2.0", @@ -9908,10 +9844,10 @@ "chokidar": "^3.5.3", "didyoumean": "^1.2.2", "dlv": "^1.1.3", - "fast-glob": "^3.2.12", + "fast-glob": "^3.3.0", "glob-parent": "^6.0.2", "is-glob": "^4.0.3", - "jiti": "^1.18.2", + "jiti": "^1.19.1", "lilconfig": "^2.1.0", "micromatch": "^4.0.5", "normalize-path": "^3.0.0", @@ -10705,6 +10641,31 @@ "@vue/shared": "3.3.4" } }, + "node_modules/vue-demi": { + "version": "0.14.6", + "resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.14.6.tgz", + "integrity": "sha512-8QA7wrYSHKaYgUxDA5ZC24w+eHm3sYCbp0EzcDwKqN3p6HqtTCGR/GVsPyZW92unff4UlcSh++lmqDWN3ZIq4w==", + "hasInstallScript": true, + "bin": { + "vue-demi-fix": "bin/vue-demi-fix.js", + "vue-demi-switch": "bin/vue-demi-switch.js" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "@vue/composition-api": "^1.0.0-rc.1", + "vue": "^3.0.0-0 || ^2.6.0" + }, + "peerDependenciesMeta": { + "@vue/composition-api": { + "optional": true + } + } + }, "node_modules/vue-echarts": { "version": "6.6.1", "resolved": "https://registry.npmmirror.com/vue-echarts/-/vue-echarts-6.6.1.tgz", diff --git a/package.json b/package.json index fe1a9ad..b673e4d 100644 --- a/package.json +++ b/package.json @@ -43,14 +43,16 @@ "mitt": "^3.0.0", "mockjs": "^1.1.0", "nprogress": "^0.2.0", + "openapi-fetch": "^0.8.1", "path": "^0.12.7", "pinia": "^2.1.4", "pinyin-pro": "^3.15.2", - "pnpm": "^8.9.0", + "pnpm": "^8.10.0", "qs": "^6.11.2", "responsive-storage": "^2.2.0", "sortablejs": "^1.15.0", "vue": "^3.3.4", + "vue-demi": "^0.14.6", "vue-echarts": "^6.6.1", "vue-router": "^4.2.2", "vue-types": "^5.1.0" @@ -74,7 +76,7 @@ "@vitejs/plugin-vue-jsx": "^3.0.1", "@vue/eslint-config-prettier": "^7.1.0", "@vue/eslint-config-typescript": "^11.0.3", - "autoprefixer": "^10.4.14", + "autoprefixer": "^10.4.16", "cloc": "^2.11.0", "cssnano": "^6.0.1", "eslint": "^8.43.0", @@ -83,7 +85,7 @@ "husky": "^8.0.3", "lint-staged": "^13.2.2", "picocolors": "^1.0.0", - "postcss": "^8.4.24", + "postcss": "^8.4.31", "postcss-html": "^1.5.0", "postcss-import": "^15.1.0", "postcss-scss": "^4.0.6", @@ -105,7 +107,7 @@ "stylelint-prettier": "^3.0.0", "stylelint-scss": "^5.0.1", "svgo": "^3.0.2", - "tailwindcss": "^3.3.2", + "tailwindcss": "^3.3.5", "terser": "^5.18.1", "typescript": "5.0.4", "vite": "^4.4.11", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 36be107..616cb63 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -57,8 +57,8 @@ dependencies: specifier: ^3.15.2 version: 3.15.2 pnpm: - specifier: ^8.9.0 - version: registry.npmmirror.com/pnpm@8.9.0 + specifier: ^8.10.0 + version: 8.10.0 qs: specifier: ^6.11.2 version: 6.11.2 @@ -4627,6 +4627,12 @@ packages: dev: false optional: true + /pnpm@8.10.0: + resolution: {integrity: sha512-nCy4Pyts9qJdjFgwC/mRl8fvO+hM8+dm8pBUtAuDtC+Kq6b8wxSp7PJ8APfOgKdXu0xgiADnrb4tKdxccFb1vg==} + engines: {node: '>=16.14'} + hasBin: true + dev: false + /popmotion@11.0.5: resolution: {integrity: sha512-la8gPM1WYeFznb/JqF4GiTkRRPZsfaj2+kCxqQgr2MJylMmIKUwBfWW8Wa5fml/8gmtlD5yI01MP1QCZPWmppA==} dependencies: @@ -6969,14 +6975,6 @@ packages: engines: {node: '>=8'} dev: true - registry.npmmirror.com/pnpm@8.9.0: - resolution: {integrity: sha512-74hZk44fBTe5/PAwkEQxE5Lzs4s0QXbmzU/e4hsiVSSwrCobCK4q4t3Vs/9LjKSW1neOlQ8+fJ9VW4EyWYJEHA==, registry: https://registry.npmjs.org/, tarball: https://registry.npmmirror.com/pnpm/-/pnpm-8.9.0.tgz} - name: pnpm - version: 8.9.0 - engines: {node: '>=16.14'} - hasBin: true - dev: false - registry.npmmirror.com/string-width@4.2.3: resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==, registry: https://registry.npmjs.org/, tarball: https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz} name: string-width diff --git a/src/api/wide/apis.ts b/src/api/wide/apis.ts new file mode 100644 index 0000000..f93c0ba --- /dev/null +++ b/src/api/wide/apis.ts @@ -0,0 +1,72 @@ +import createClient from "openapi-fetch"; +import {paths} from "./schema"; +import {formatToken, getToken} from "@/utils/auth"; +import {useUserStoreHook} from "@/store/modules/user"; +import {FilterKeys, PathsWithMethod} from "openapi-typescript-helpers"; +import {FetchOptions} from "openapi-fetch/src"; + +let timeoutPromise = (timeout: number) => { + return new Promise((resolve, reject) => { + setTimeout(() => { + reject('服务器地址不可用'); + }, timeout) + }) +}; + +function createSmebizClient(clientOptions: Parameters[0] = {}, timeout?: number) { + const baseClient = createClient(clientOptions); + return { + ...baseClient, + async post

>(url: P, body?: FetchOptions>['body'], init?: FetchOptions>) { + if (!init) init = {} as FetchOptions> + if (body) init.body = body + if (!init.headers) init.headers = {} + const userData = getToken(); + if (userData) { + const now = new Date().getTime(); + const expired = parseInt(userData.expires) - now <= 0; + if (expired) { + // useUserStoreHook().logOut(); + } else { + init.headers["Authorization"] = formatToken(userData.accessToken); + } + } + if (timeout) { + let controller = new AbortController(); + init.signal = controller.signal; + setTimeout(() => { + // 当时间到达之后运行 abort + controller.abort(); + }, timeout); + } + + return await baseClient.POST(url, init) + } + } +} + +export const sapi = createSmebizClient({baseUrl: ""}, 10000) + +// +// export const sApi = new Proxy(baseClient, { +// get(_, key: keyof typeof baseClient) { +// const headers = {} +// const data = getToken(); +// if (data) { +// const now = new Date().getTime(); +// const expired = parseInt(data.expires) - now <= 0; +// if (expired) { +// useUserStoreHook().logOut(); +// } else { +// headers["Authorization"] = formatToken(data.accessToken); +// } +// } +// const newClient = createClient({ +// headers: headers, +// baseUrl: "", +// }); +// return newClient[key]; +// }, +// }); +// sPost('/wd-smebiz/rate/rate_serve/get') + diff --git a/src/api/wide/index.ts b/src/api/wide/index.ts new file mode 100644 index 0000000..514941b --- /dev/null +++ b/src/api/wide/index.ts @@ -0,0 +1,8 @@ +import {sapi} from "./apis" +import {components} from "./schema"; + +type st = components['schemas'] +const spost = sapi.post + +export {sapi, spost} +export type {st} diff --git a/src/api/wide/schema.d.ts b/src/api/wide/schema.d.ts new file mode 100644 index 0000000..cc0e182 --- /dev/null +++ b/src/api/wide/schema.d.ts @@ -0,0 +1,2255 @@ +/** + * This file was auto-generated by openapi-typescript. + * Do not make direct changes to the file. + */ + + +export interface paths { + "/wide_data/homepage/get_total_number": { + /** 获取首页各模块总数 */ + get: operations["func_wide_data_homepage_get_total_number_get"]; + }; + "/wide_data/search/company_total": { + /** 企业收录总数 */ + get: operations["func_wide_data_search_company_total_get"]; + }; + "/wide_data/search/update_query_conditions": { + /** 更新企业查询条件 */ + get: operations["func_wide_data_search_update_query_conditions_get"]; + }; + "/wide_data/search/company_search": { + /** 企业搜索 */ + post: operations["func_wide_data_search_company_search_post"]; + }; + "/wide_data/search/company_detail": { + /** 企业详情 */ + get: operations["func_wide_data_search_company_detail_get"]; + }; + "/wide_data/spider/upload_script": { + /** 上传采集脚本 */ + post: operations["func_wide_data_spider_upload_script_post"]; + }; + "/wide_data/spider/get_script_link": { + /** 查看采集链接 */ + get: operations["func_wide_data_spider_get_script_link_get"]; + }; + "/wide_data/spider/get_script": { + /** 查看采集脚本详情 */ + get: operations["func_wide_data_spider_get_script_get"]; + }; + "/wide_data/spider/upload_parameter": { + /** 上传采集参数 */ + post: operations["func_wide_data_spider_upload_parameter_post"]; + }; + "/wide_data/spider/get_script_parameter": { + /** 查看采集参数 */ + get: operations["func_wide_data_spider_get_script_parameter_get"]; + }; + "/wide_data/spider/create": { + /** 新建任务 */ + post: operations["func_wide_data_spider_create_post"]; + }; + "/wide_data/spider/edit/{task_numbering}": { + /** 编辑任务 */ + put: operations["func_wide_data_spider_edit__task_numbering__put"]; + }; + "/wide_data/spider/search": { + /** 采集任务查询 */ + post: operations["func_wide_data_spider_search_post"]; + }; + "/wide_data/spider/view_detail": { + /** 查看任务详情 */ + get: operations["func_wide_data_spider_view_detail_get"]; + }; + "/wide_data/spider/create_storage": { + /** 新建数据存储 */ + post: operations["func_wide_data_spider_create_storage_post"]; + }; + "/wide_data/spider/search_storage": { + /** 查询数据存储 */ + post: operations["func_wide_data_spider_search_storage_post"]; + }; + "/wide_data/spider/get_data_storage": { + /** 查看数据存储设置 */ + get: operations["func_wide_data_spider_get_data_storage_get"]; + }; + "/wide_data/spider/create_data_sources": { + /** 新建数据来源 */ + post: operations["func_wide_data_spider_create_data_sources_post"]; + }; + "/wide_data/spider/search_data_sources": { + /** 查询数据来源 */ + post: operations["func_wide_data_spider_search_data_sources_post"]; + }; + "/wide_data/spider/run/{task_numbering}": { + /** 运行任务 */ + get: operations["func_wide_data_spider_run__task_numbering__get"]; + }; + "/wide_data/spider/cancel/{task_numbering}": { + /** 取消任务 */ + get: operations["func_wide_data_spider_cancel__task_numbering__get"]; + }; + "/wide_data/spider/logs": { + /** 查看任务日志 */ + post: operations["func_wide_data_spider_logs_post"]; + }; + "/wide_data/clean/search": { + /** 清洗任务查询 */ + post: operations["func_wide_data_clean_search_post"]; + }; + "/wide_data/clean/create": { + /** 新建任务 */ + post: operations["func_wide_data_clean_create_post"]; + }; + "/wide_data/clean/view_detail": { + /** 查看任务详情 */ + get: operations["func_wide_data_clean_view_detail_get"]; + }; + "/wide_data/clean/view_log": { + /** 查看任务日志 */ + get: operations["func_wide_data_clean_view_log_get"]; + }; + "/wide_data/clean/data_storage": { + /** 查看数据存储设置 */ + get: operations["func_wide_data_clean_data_storage_get"]; + }; + "/wide_data/clean/new_storage": { + /** 新建存储 */ + get: operations["func_wide_data_clean_new_storage_get"]; + }; + "/wide_data/user/user/add": { + /** 添加用户 */ + post: operations["user_add_wide_data_user_user_add_post"]; + }; + "/wide_data/user/user/delete": { + /** 删除用户 */ + post: operations["user_delete_wide_data_user_user_delete_post"]; + }; + "/wide_data/user/user/update": { + /** 更新用户 */ + post: operations["user_update_wide_data_user_user_update_post"]; + }; + "/wide_data/user/user/get": { + /** 获取用户 */ + post: operations["user_get_wide_data_user_user_get_post"]; + }; + "/wide_data/user/user/query": { + /** 查询用户 */ + post: operations["user_query_wide_data_user_user_query_post"]; + }; + "/wide_data/user/post/add": { + /** 添加职务 */ + post: operations["post_add_wide_data_user_post_add_post"]; + }; + "/wide_data/user/post/delete": { + /** 删除职务 */ + post: operations["post_delete_wide_data_user_post_delete_post"]; + }; + "/wide_data/user/post/update": { + /** 更新职务 */ + post: operations["post_update_wide_data_user_post_update_post"]; + }; + "/wide_data/user/post/get": { + /** 获取职务 */ + post: operations["post_get_wide_data_user_post_get_post"]; + }; + "/wide_data/user/post/query": { + /** 查询部门 */ + post: operations["department_query_wide_data_user_post_query_post"]; + }; + "/wide_data/user/post/all": { + /** 获取所有部门 */ + post: operations["post_all_wide_data_user_post_all_post"]; + }; + "/wide_data/user/post/query_common": { + /** 通用查询职务 */ + post: operations["company_equity_penetration_query_common_wide_data_user_post_query_common_post"]; + }; + "/wide_data/user/department/add": { + /** 添加部门 */ + post: operations["department_add_wide_data_user_department_add_post"]; + }; + "/wide_data/user/department/delete": { + /** 删除部门 */ + post: operations["department_delete_wide_data_user_department_delete_post"]; + }; + "/wide_data/user/department/update": { + /** 更新部门 */ + post: operations["department_update_wide_data_user_department_update_post"]; + }; + "/wide_data/user/department/get": { + /** 获取部门 */ + post: operations["department_get_wide_data_user_department_get_post"]; + }; + "/wide_data/user/department/query": { + /** 查询部门 */ + post: operations["department_query_wide_data_user_department_query_post"]; + }; + "/wide_data/user/department/all": { + /** 获取所有部门 */ + post: operations["department_all_wide_data_user_department_all_post"]; + }; + "/wide_data/user/auth_rule/add": { + /** 添加权限规则 */ + post: operations["auth_rule_add_wide_data_user_auth_rule_add_post"]; + }; + "/wide_data/user/auth_rule/delete": { + /** 删除权限规则 */ + post: operations["auth_rule_delete_wide_data_user_auth_rule_delete_post"]; + }; + "/wide_data/user/auth_rule/update": { + /** 更新权限规则 */ + post: operations["auth_rule_update_wide_data_user_auth_rule_update_post"]; + }; + "/wide_data/user/auth_rule/get": { + /** 获取权限规则 */ + post: operations["auth_rule_get_wide_data_user_auth_rule_get_post"]; + }; + "/wide_data/user/auth_rule/query": { + /** 查询权限规则 */ + post: operations["auth_rule_query_wide_data_user_auth_rule_query_post"]; + }; + "/wide_data/user/auth_rule/all": { + /** 获取所有权限规则 */ + post: operations["auth_rule_all_wide_data_user_auth_rule_all_post"]; + }; + "/wide_data/user/get_login_verify_code": { + /** 获取登录验证码接口 */ + post: operations["get_login_verify_code_wide_data_user_get_login_verify_code_post"]; + }; + "/wide_data/user/login_by_verify_code": { + /** 验证码登录接口 */ + post: operations["login_by_verify_code_wide_data_user_login_by_verify_code_post"]; + }; + "/wide_data/user/refresh_token": { + /** token刷新接口 */ + post: operations["refresh_token_wide_data_user_refresh_token_post"]; + }; + "/wide_data/user/get_user_info": { + /** 用户信息获取接口 */ + post: operations["get_user_info_wide_data_user_get_user_info_post"]; + }; +} + +export type webhooks = Record; + +export interface components { + schemas: { + /** AuthRuleAddReq */ + AuthRuleAddReq: { + /** Name */ + name: string; + /** Mod */ + mod: string; + /** Category */ + category: string; + }; + /** AuthRuleAddRes */ + AuthRuleAddRes: { + /** Name */ + name?: string | null; + /** Mod */ + mod?: string | null; + /** Category */ + category?: string | null; + /** Id */ + id?: number | null; + }; + /** AuthRuleAllReq */ + AuthRuleAllReq: { + /** Include */ + include?: string[] | null; + /** Ex Include */ + ex_include?: string[] | null; + /** + * Relation Use Id + * @default false + */ + relation_use_id?: boolean; + }; + /** AuthRuleAllRes */ + AuthRuleAllRes: { + /** Items */ + items: components["schemas"]["AuthRuleInfo"][]; + }; + /** AuthRuleDeleteReq */ + AuthRuleDeleteReq: { + /** Id */ + id: number; + }; + /** AuthRuleGetReq */ + AuthRuleGetReq: { + /** Id */ + id: number; + }; + /** AuthRuleGetRes */ + AuthRuleGetRes: { + /** Name */ + name?: string | null; + /** Mod */ + mod?: string | null; + /** Category */ + category?: string | null; + /** Id */ + id?: number | null; + }; + /** AuthRuleInfo */ + AuthRuleInfo: { + /** Name */ + name?: string | null; + /** Mod */ + mod?: string | null; + /** Category */ + category?: string | null; + /** Id */ + id?: number | null; + }; + /** AuthRuleQueryReq */ + AuthRuleQueryReq: { + /** Include */ + include?: string[] | null; + /** Ex Include */ + ex_include?: string[] | null; + /** + * Relation Use Id + * @default false + */ + relation_use_id?: boolean; + /** Params */ + params?: components["schemas"]["QueryParam"][] | null; + /** Order */ + order?: ({ + [key: string]: "asc" | "desc" | ""; + }) | null; + query?: components["schemas"]["AuthRuleInfo"] | null; + /** Page */ + page: number; + /** Page Size */ + page_size: number; + }; + /** AuthRuleQueryRes */ + AuthRuleQueryRes: { + /** Count */ + count: number; + /** Items */ + items: components["schemas"]["AuthRuleInfo"][]; + }; + /** AuthRuleUpdateReq */ + AuthRuleUpdateReq: { + /** Name */ + name?: string | null; + /** Mod */ + mod?: string | null; + /** Category */ + category?: string | null; + /** Id */ + id?: number | null; + }; + /** AuthRuleUpdateRes */ + AuthRuleUpdateRes: { + /** Name */ + name?: string | null; + /** Mod */ + mod?: string | null; + /** Category */ + category?: string | null; + /** Id */ + id?: number | null; + }; + /** + * BaseModel + * @description Usage docs: https://docs.pydantic.dev/2.4/concepts/models/ + * + * A base class for creating Pydantic models. + * + * Attributes: + * __class_vars__: The names of classvars defined on the model. + * __private_attributes__: Metadata about the private attributes of the model. + * __signature__: The signature for instantiating the model. + * + * __pydantic_complete__: Whether model building is completed, or if there are still undefined fields. + * __pydantic_core_schema__: The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + * __pydantic_custom_init__: Whether the model has a custom `__init__` function. + * __pydantic_decorators__: Metadata containing the decorators defined on the model. + * This replaces `Model.__validators__` and `Model.__root_validators__` from Pydantic V1. + * __pydantic_generic_metadata__: Metadata for generic models; contains data used for a similar purpose to + * __args__, __origin__, __parameters__ in typing-module generics. May eventually be replaced by these. + * __pydantic_parent_namespace__: Parent namespace of the model, used for automatic rebuilding of models. + * __pydantic_post_init__: The name of the post-init method for the model, if defined. + * __pydantic_root_model__: Whether the model is a `RootModel`. + * __pydantic_serializer__: The pydantic-core SchemaSerializer used to dump instances of the model. + * __pydantic_validator__: The pydantic-core SchemaValidator used to validate instances of the model. + * + * __pydantic_extra__: An instance attribute with the values of extra fields from validation when + * `model_config['extra'] == 'allow'`. + * __pydantic_fields_set__: An instance attribute with the names of fields explicitly specified during validation. + * __pydantic_private__: Instance attribute with the values of private attributes set on the model instance. + */ + BaseModel: Record; + /** Body_func_wide_data_spider_upload_parameter_post */ + Body_func_wide_data_spider_upload_parameter_post: { + /** + * File + * Format: binary + */ + file: string; + }; + /** Body_func_wide_data_spider_upload_script_post */ + Body_func_wide_data_spider_upload_script_post: { + /** + * File + * Format: binary + */ + file: string; + }; + /** DataSourceCreate */ + DataSourceCreate: { + /** + * Name + * @default 天眼查API + */ + name?: string | null; + /** + * Link + * @default http://open.api.tianyancha.com/services/open/ + */ + link?: string | null; + }; + /** DataSourceSearch */ + DataSourceSearch: { + /** + * Name + * @default 天眼查API + */ + name?: string | null; + /** + * Page + * @default 1 + */ + page?: number | null; + /** + * Page Size + * @default 10 + */ + page_size?: number | null; + }; + /** DataStorageCreate */ + DataStorageCreate: { + /** + * Storage Numbering + * @default HC01-01 + */ + storage_numbering?: string | null; + /** + * Name + * @default 工商信息 + */ + name?: string | null; + /** + * Remark + * @default 调用天眼查接口存储工商信息 + */ + remark?: string | null; + /** + * Host + * @default 116.63.130.34 + */ + host?: string | null; + /** + * Port + * @default 27019 + */ + port?: string | null; + /** + * Verify Database + * @default admin + */ + verify_database?: string | null; + /** + * User + * @default root + */ + user?: string | null; + /** + * Password + * @default gP@DwMSVd5Sh6EiH + */ + password?: string | null; + /** + * Db + * @default 公司背景 + */ + db?: string | null; + }; + /** DataStorageSearch */ + DataStorageSearch: { + /** + * Storage Numbering + * @default HC01-01 + */ + storage_numbering?: string | null; + /** + * Page + * @default 1 + */ + page?: number | null; + /** + * Page Size + * @default 10 + */ + page_size?: number | null; + }; + /** DepartmentAddReq */ + DepartmentAddReq: { + /** Name */ + name: string; + /** Posts */ + posts?: unknown[] | null; + /** Auth Data */ + auth_data?: unknown[] | null; + }; + /** DepartmentAddRes */ + DepartmentAddRes: { + /** Name */ + name?: string | null; + /** Posts */ + posts?: unknown[] | null; + /** Auth Data */ + auth_data?: unknown[] | null; + /** Id */ + id?: number | null; + }; + /** DepartmentAllReq */ + DepartmentAllReq: { + /** Include */ + include?: string[] | null; + /** Ex Include */ + ex_include?: string[] | null; + /** + * Relation Use Id + * @default false + */ + relation_use_id?: boolean; + }; + /** DepartmentAllRes */ + DepartmentAllRes: { + /** Items */ + items: components["schemas"]["DepartmentInfo"][]; + }; + /** DepartmentDeleteReq */ + DepartmentDeleteReq: { + /** Id */ + id: number; + }; + /** DepartmentGetReq */ + DepartmentGetReq: { + /** Id */ + id: number; + }; + /** DepartmentGetRes */ + DepartmentGetRes: { + /** Name */ + name?: string | null; + /** Posts */ + posts?: unknown[] | null; + /** Auth Data */ + auth_data?: unknown[] | null; + /** Id */ + id?: number | null; + }; + /** DepartmentInfo */ + DepartmentInfo: { + /** Name */ + name?: string | null; + /** Posts */ + posts?: unknown[] | null; + /** Auth Data */ + auth_data?: unknown[] | null; + /** Id */ + id?: number | null; + }; + /** DepartmentQueryReq */ + DepartmentQueryReq: { + /** Include */ + include?: string[] | null; + /** Ex Include */ + ex_include?: string[] | null; + /** + * Relation Use Id + * @default false + */ + relation_use_id?: boolean; + /** Params */ + params?: components["schemas"]["QueryParam"][] | null; + /** Order */ + order?: ({ + [key: string]: "asc" | "desc" | ""; + }) | null; + query?: components["schemas"]["DepartmentInfo"] | null; + /** Page */ + page: number; + /** Page Size */ + page_size: number; + }; + /** DepartmentQueryRes */ + DepartmentQueryRes: { + /** Count */ + count: number; + /** Items */ + items: components["schemas"]["DepartmentInfo"][]; + }; + /** DepartmentUpdateReq */ + DepartmentUpdateReq: { + /** Name */ + name?: string | null; + /** Posts */ + posts?: unknown[] | null; + /** Auth Data */ + auth_data?: unknown[] | null; + /** Id */ + id?: number | null; + }; + /** DepartmentUpdateRes */ + DepartmentUpdateRes: { + /** Name */ + name?: string | null; + /** Posts */ + posts?: unknown[] | null; + /** Auth Data */ + auth_data?: unknown[] | null; + /** Id */ + id?: number | null; + }; + /** GetLoginVerifyCodeReq */ + GetLoginVerifyCodeReq: { + /** Account */ + account: string; + }; + /** HTTPValidationError */ + HTTPValidationError: { + /** Detail */ + detail?: components["schemas"]["ValidationError"][]; + }; + /** LoginByVerifyCode */ + LoginByVerifyCode: { + /** Account */ + account: string; + /** Code */ + code: string; + }; + /** LogsSearch */ + LogsSearch: { + /** Task Numbering */ + task_numbering: string | null; + /** + * Page + * @default 1 + */ + page?: number | null; + /** + * Page Size + * @default 10 + */ + page_size?: number | null; + }; + /** PostAddReq */ + PostAddReq: { + /** Name */ + name: string; + /** Department Id */ + department_id: number; + }; + /** PostAddRes */ + PostAddRes: { + /** Name */ + name?: string | null; + /** Department Id */ + department_id?: number | null; + /** Id */ + id?: number | null; + /** Department */ + department?: unknown; + }; + /** PostAllReq */ + PostAllReq: { + /** Include */ + include?: string[] | null; + /** Ex Include */ + ex_include?: string[] | null; + /** + * Relation Use Id + * @default false + */ + relation_use_id?: boolean; + }; + /** PostAllRes */ + PostAllRes: { + /** Items */ + items: components["schemas"]["PostInfo"][]; + }; + /** PostDeleteReq */ + PostDeleteReq: { + /** Id */ + id: number; + }; + /** PostGetReq */ + PostGetReq: { + /** Id */ + id: number; + }; + /** PostGetRes */ + PostGetRes: { + /** Name */ + name?: string | null; + /** Department Id */ + department_id?: number | null; + /** Id */ + id?: number | null; + /** Department */ + department?: unknown; + }; + /** PostInfo */ + PostInfo: { + /** Name */ + name?: string | null; + /** Department Id */ + department_id?: number | null; + /** Id */ + id?: number | null; + /** Department */ + department?: unknown; + }; + /** PostQueryReq */ + PostQueryReq: { + /** Include */ + include?: string[] | null; + /** Ex Include */ + ex_include?: string[] | null; + /** + * Relation Use Id + * @default false + */ + relation_use_id?: boolean; + /** Params */ + params?: components["schemas"]["QueryParam"][] | null; + /** Order */ + order?: ({ + [key: string]: "asc" | "desc" | ""; + }) | null; + query?: components["schemas"]["PostInfo"] | null; + /** Page */ + page: number; + /** Page Size */ + page_size: number; + }; + /** PostQueryRes */ + PostQueryRes: { + /** Count */ + count: number; + /** Items */ + items: components["schemas"]["PostInfo"][]; + }; + /** PostUpdateReq */ + PostUpdateReq: { + /** Name */ + name?: string | null; + /** Department Id */ + department_id?: number | null; + /** Id */ + id?: number | null; + }; + /** PostUpdateRes */ + PostUpdateRes: { + /** Name */ + name?: string | null; + /** Department Id */ + department_id?: number | null; + /** Id */ + id?: number | null; + /** Department */ + department?: unknown; + }; + /** QueryParam */ + QueryParam: { + /** Name */ + name: string; + /** + * Type + * @enum {string} + */ + type: "=" | "==" | ">" | ">=" | "<" | "<=" | "in" | "not_in" | "like" | "range" | "find_in_set"; + /** Value */ + value: unknown; + }; + /** QueryParams */ + QueryParams: { + /** Include */ + include?: string[] | null; + /** Ex Include */ + ex_include?: string[] | null; + /** + * Relation Use Id + * @default false + */ + relation_use_id?: boolean; + /** Params */ + params?: components["schemas"]["QueryParam"][] | null; + /** Order */ + order?: ({ + [key: string]: "asc" | "desc" | ""; + }) | null; + query?: components["schemas"]["BaseModel"] | null; + /** Page */ + page: number; + /** Page Size */ + page_size: number; + }; + /** SearchBase */ + SearchBase: { + /** Company */ + company?: string | null; + /** Industry */ + industry?: string[] | null; + /** City */ + city?: string[] | null; + /** Estiblish Time */ + estiblish_time?: string[] | null; + /** Reg Status */ + reg_status?: string[] | null; + /** Company Type */ + company_type?: string[] | null; + /** Staff Range */ + staff_range?: string[] | null; + /** Listed */ + listed?: string[] | null; + /** + * Page + * @default 1 + */ + page?: number; + /** + * Pagesize + * @default 10 + */ + pagesize?: number; + }; + /** SpiderTaskBase */ + SpiderTaskBase: { + /** + * Task Name + * @default 工商信息采集 + */ + task_name?: string | null; + /** + * Director + * @default 彭森 + */ + director?: string | null; + /** + * Task Url + * @default https://fhcs0cy14n.feishu.cn/base/NkgtbTvyxarhDwswdAJcvA5snTG?from=space_personal_filelist&table=ldxBgbCxEIsrn5qW&pre_pathname=%2Fdrive%2Ffolder%2FX9JDf5KdAlZ4YHdeUVmcPUOdnnD + */ + task_url?: string | null; + /** + * Spider Script + * @default 6525f8c8616e8a6cdd641199 + */ + spider_script?: string | null; + /** + * Script Parameter + * @default 6525fa9aa5368292ec628ca4 + */ + script_parameter?: string | null; + /** + * Spider Url + * @default http://open.api.tianyancha.com/services/open/ic/baseinfo/normal + */ + spider_url?: string | null; + /** + * Data Source + * @default 天眼查接口 + */ + data_source?: string | null; + /** + * Data Storage + * @default HC01-01 + */ + data_storage?: string | null; + /** + * Begin Time + * @default 2023-10-11 11:00 + */ + begin_time?: string | null; + /** + * Time Interval + * @default 4 + */ + time_interval?: number | null; + }; + /** SpiderTaskSearch */ + SpiderTaskSearch: { + /** + * Keyword + * @default 任务名称/编号/来源 + */ + keyword?: string | null; + /** + * Director + * @default 彭森 + */ + director?: string | null; + /** + * Page + * @default 1 + */ + page?: number | null; + /** + * Page Size + * @default 10 + */ + page_size?: number | null; + }; + /** UserAddReq */ + UserAddReq: { + /** Email */ + email: string; + /** Name */ + name: string; + /** Phone */ + phone?: string | null; + /** Posts */ + posts?: unknown[] | null; + /** Departments */ + departments?: unknown[] | null; + /** Manage Departments */ + manage_departments?: unknown[] | null; + /** + * Config + * @default {} + */ + config?: unknown; + /** + * Other Info + * @default {} + */ + other_info?: unknown; + /** Auth Data */ + auth_data?: unknown[] | null; + }; + /** UserAddRes */ + UserAddRes: { + /** Email */ + email?: string | null; + /** Name */ + name?: string | null; + /** Phone */ + phone?: string | null; + /** Posts */ + posts?: unknown[] | null; + /** Departments */ + departments?: unknown[] | null; + /** Manage Departments */ + manage_departments?: unknown[] | null; + /** Config */ + config?: unknown; + /** Other Info */ + other_info?: unknown; + /** Auth Data */ + auth_data?: unknown[] | null; + /** Id */ + id?: string | null; + }; + /** UserDeleteReq */ + UserDeleteReq: { + /** Id */ + id: string; + }; + /** UserGetReq */ + UserGetReq: { + /** Id */ + id: string; + }; + /** UserGetRes */ + UserGetRes: { + /** Email */ + email?: string | null; + /** Name */ + name?: string | null; + /** Phone */ + phone?: string | null; + /** Posts */ + posts?: unknown[] | null; + /** Departments */ + departments?: unknown[] | null; + /** Manage Departments */ + manage_departments?: unknown[] | null; + /** Config */ + config?: unknown; + /** Other Info */ + other_info?: unknown; + /** Auth Data */ + auth_data?: unknown[] | null; + /** Id */ + id?: string | null; + }; + /** UserInfo */ + UserInfo: { + /** Email */ + email?: string | null; + /** Name */ + name?: string | null; + /** Phone */ + phone?: string | null; + /** Posts */ + posts?: unknown[] | null; + /** Departments */ + departments?: unknown[] | null; + /** Manage Departments */ + manage_departments?: unknown[] | null; + /** Config */ + config?: unknown; + /** Other Info */ + other_info?: unknown; + /** Auth Data */ + auth_data?: unknown[] | null; + /** Id */ + id?: string | null; + }; + /** UserQueryReq */ + UserQueryReq: { + /** Include */ + include?: string[] | null; + /** Ex Include */ + ex_include?: string[] | null; + /** + * Relation Use Id + * @default false + */ + relation_use_id?: boolean; + /** Params */ + params?: components["schemas"]["QueryParam"][] | null; + /** Order */ + order?: ({ + [key: string]: "asc" | "desc" | ""; + }) | null; + query?: components["schemas"]["UserInfo"] | null; + /** Page */ + page: number; + /** Page Size */ + page_size: number; + }; + /** UserQueryRes */ + UserQueryRes: { + /** Count */ + count: number; + /** Items */ + items: components["schemas"]["UserInfo"][]; + }; + /** UserUpdateReq */ + UserUpdateReq: { + /** Email */ + email?: string | null; + /** Name */ + name?: string | null; + /** Phone */ + phone?: string | null; + /** Posts */ + posts?: unknown[] | null; + /** Departments */ + departments?: unknown[] | null; + /** Manage Departments */ + manage_departments?: unknown[] | null; + /** Config */ + config?: unknown; + /** Other Info */ + other_info?: unknown; + /** Auth Data */ + auth_data?: unknown[] | null; + /** Id */ + id?: string | null; + }; + /** UserUpdateRes */ + UserUpdateRes: { + /** Email */ + email?: string | null; + /** Name */ + name?: string | null; + /** Phone */ + phone?: string | null; + /** Posts */ + posts?: unknown[] | null; + /** Departments */ + departments?: unknown[] | null; + /** Manage Departments */ + manage_departments?: unknown[] | null; + /** Config */ + config?: unknown; + /** Other Info */ + other_info?: unknown; + /** Auth Data */ + auth_data?: unknown[] | null; + /** Id */ + id?: string | null; + }; + /** ValidationError */ + ValidationError: { + /** Location */ + loc: (string | number)[]; + /** Message */ + msg: string; + /** Error Type */ + type: string; + }; + }; + responses: never; + parameters: never; + requestBodies: never; + headers: never; + pathItems: never; +} + +export type $defs = Record; + +export type external = Record; + +export interface operations { + + /** 获取首页各模块总数 */ + func_wide_data_homepage_get_total_number_get: { + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": unknown; + }; + }; + }; + }; + /** 企业收录总数 */ + func_wide_data_search_company_total_get: { + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": unknown; + }; + }; + }; + }; + /** 更新企业查询条件 */ + func_wide_data_search_update_query_conditions_get: { + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": unknown; + }; + }; + }; + }; + /** 企业搜索 */ + func_wide_data_search_company_search_post: { + requestBody: { + content: { + "application/json": components["schemas"]["SearchBase"]; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": unknown; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 企业详情 */ + func_wide_data_search_company_detail_get: { + parameters: { + query: { + name: string; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": unknown; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 上传采集脚本 */ + func_wide_data_spider_upload_script_post: { + requestBody: { + content: { + "multipart/form-data": components["schemas"]["Body_func_wide_data_spider_upload_script_post"]; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": unknown; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 查看采集链接 */ + func_wide_data_spider_get_script_link_get: { + parameters: { + query: { + file_id: string; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": unknown; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 查看采集脚本详情 */ + func_wide_data_spider_get_script_get: { + parameters: { + query: { + file_id: string; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": unknown; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 上传采集参数 */ + func_wide_data_spider_upload_parameter_post: { + requestBody: { + content: { + "multipart/form-data": components["schemas"]["Body_func_wide_data_spider_upload_parameter_post"]; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": unknown; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 查看采集参数 */ + func_wide_data_spider_get_script_parameter_get: { + parameters: { + query: { + file_id: string; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": unknown; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 新建任务 */ + func_wide_data_spider_create_post: { + requestBody: { + content: { + "application/json": components["schemas"]["SpiderTaskBase"]; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": unknown; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 编辑任务 */ + func_wide_data_spider_edit__task_numbering__put: { + parameters: { + path: { + task_numbering: string; + }; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SpiderTaskBase"]; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": unknown; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 采集任务查询 */ + func_wide_data_spider_search_post: { + requestBody: { + content: { + "application/json": components["schemas"]["SpiderTaskSearch"]; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": unknown; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 查看任务详情 */ + func_wide_data_spider_view_detail_get: { + parameters: { + query: { + task_numbering: string; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": unknown; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 新建数据存储 */ + func_wide_data_spider_create_storage_post: { + requestBody: { + content: { + "application/json": components["schemas"]["DataStorageCreate"]; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": unknown; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 查询数据存储 */ + func_wide_data_spider_search_storage_post: { + requestBody: { + content: { + "application/json": components["schemas"]["DataStorageSearch"]; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": unknown; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 查看数据存储设置 */ + func_wide_data_spider_get_data_storage_get: { + parameters: { + query: { + storage_numbering: string; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": unknown; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 新建数据来源 */ + func_wide_data_spider_create_data_sources_post: { + requestBody: { + content: { + "application/json": components["schemas"]["DataSourceCreate"]; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": unknown; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 查询数据来源 */ + func_wide_data_spider_search_data_sources_post: { + requestBody: { + content: { + "application/json": components["schemas"]["DataSourceSearch"]; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": unknown; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 运行任务 */ + func_wide_data_spider_run__task_numbering__get: { + parameters: { + path: { + task_numbering: string; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": unknown; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 取消任务 */ + func_wide_data_spider_cancel__task_numbering__get: { + parameters: { + path: { + task_numbering: string; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": unknown; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 查看任务日志 */ + func_wide_data_spider_logs_post: { + requestBody: { + content: { + "application/json": components["schemas"]["LogsSearch"]; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": unknown; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 清洗任务查询 */ + func_wide_data_clean_search_post: { + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": unknown; + }; + }; + }; + }; + /** 新建任务 */ + func_wide_data_clean_create_post: { + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": unknown; + }; + }; + }; + }; + /** 查看任务详情 */ + func_wide_data_clean_view_detail_get: { + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": unknown; + }; + }; + }; + }; + /** 查看任务日志 */ + func_wide_data_clean_view_log_get: { + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": unknown; + }; + }; + }; + }; + /** 查看数据存储设置 */ + func_wide_data_clean_data_storage_get: { + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": unknown; + }; + }; + }; + }; + /** 新建存储 */ + func_wide_data_clean_new_storage_get: { + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": unknown; + }; + }; + }; + }; + /** 添加用户 */ + user_add_wide_data_user_user_add_post: { + requestBody: { + content: { + "application/json": components["schemas"]["UserAddReq"]; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": components["schemas"]["UserAddRes"]; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 删除用户 */ + user_delete_wide_data_user_user_delete_post: { + requestBody: { + content: { + "application/json": components["schemas"]["UserDeleteReq"]; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": unknown; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 更新用户 */ + user_update_wide_data_user_user_update_post: { + requestBody: { + content: { + "application/json": components["schemas"]["UserUpdateReq"]; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": components["schemas"]["UserUpdateRes"]; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 获取用户 */ + user_get_wide_data_user_user_get_post: { + requestBody: { + content: { + "application/json": components["schemas"]["UserGetReq"]; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": components["schemas"]["UserGetRes"]; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 查询用户 */ + user_query_wide_data_user_user_query_post: { + requestBody: { + content: { + "application/json": components["schemas"]["UserQueryReq"]; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": components["schemas"]["UserQueryRes"]; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 添加职务 */ + post_add_wide_data_user_post_add_post: { + requestBody: { + content: { + "application/json": components["schemas"]["PostAddReq"]; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": components["schemas"]["PostAddRes"]; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 删除职务 */ + post_delete_wide_data_user_post_delete_post: { + requestBody: { + content: { + "application/json": components["schemas"]["PostDeleteReq"]; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": unknown; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 更新职务 */ + post_update_wide_data_user_post_update_post: { + requestBody: { + content: { + "application/json": components["schemas"]["PostUpdateReq"]; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": components["schemas"]["PostUpdateRes"]; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 获取职务 */ + post_get_wide_data_user_post_get_post: { + requestBody: { + content: { + "application/json": components["schemas"]["PostGetReq"]; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": components["schemas"]["PostGetRes"]; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 查询部门 */ + department_query_wide_data_user_post_query_post: { + requestBody: { + content: { + "application/json": components["schemas"]["PostQueryReq"]; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": components["schemas"]["PostQueryRes"]; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 获取所有部门 */ + post_all_wide_data_user_post_all_post: { + requestBody: { + content: { + "application/json": components["schemas"]["PostAllReq"]; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": components["schemas"]["PostAllRes"]; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 通用查询职务 */ + company_equity_penetration_query_common_wide_data_user_post_query_common_post: { + requestBody: { + content: { + "application/json": components["schemas"]["QueryParams"]; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": components["schemas"]["PostQueryRes"]; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 添加部门 */ + department_add_wide_data_user_department_add_post: { + requestBody: { + content: { + "application/json": components["schemas"]["DepartmentAddReq"]; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": components["schemas"]["DepartmentAddRes"]; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 删除部门 */ + department_delete_wide_data_user_department_delete_post: { + requestBody: { + content: { + "application/json": components["schemas"]["DepartmentDeleteReq"]; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": unknown; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 更新部门 */ + department_update_wide_data_user_department_update_post: { + requestBody: { + content: { + "application/json": components["schemas"]["DepartmentUpdateReq"]; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": components["schemas"]["DepartmentUpdateRes"]; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 获取部门 */ + department_get_wide_data_user_department_get_post: { + requestBody: { + content: { + "application/json": components["schemas"]["DepartmentGetReq"]; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": components["schemas"]["DepartmentGetRes"]; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 查询部门 */ + department_query_wide_data_user_department_query_post: { + requestBody: { + content: { + "application/json": components["schemas"]["DepartmentQueryReq"]; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": components["schemas"]["DepartmentQueryRes"]; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 获取所有部门 */ + department_all_wide_data_user_department_all_post: { + requestBody: { + content: { + "application/json": components["schemas"]["DepartmentAllReq"]; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": components["schemas"]["DepartmentAllRes"]; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 添加权限规则 */ + auth_rule_add_wide_data_user_auth_rule_add_post: { + requestBody: { + content: { + "application/json": components["schemas"]["AuthRuleAddReq"]; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": components["schemas"]["AuthRuleAddRes"]; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 删除权限规则 */ + auth_rule_delete_wide_data_user_auth_rule_delete_post: { + requestBody: { + content: { + "application/json": components["schemas"]["AuthRuleDeleteReq"]; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": unknown; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 更新权限规则 */ + auth_rule_update_wide_data_user_auth_rule_update_post: { + requestBody: { + content: { + "application/json": components["schemas"]["AuthRuleUpdateReq"]; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": components["schemas"]["AuthRuleUpdateRes"]; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 获取权限规则 */ + auth_rule_get_wide_data_user_auth_rule_get_post: { + requestBody: { + content: { + "application/json": components["schemas"]["AuthRuleGetReq"]; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": components["schemas"]["AuthRuleGetRes"]; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 查询权限规则 */ + auth_rule_query_wide_data_user_auth_rule_query_post: { + requestBody: { + content: { + "application/json": components["schemas"]["AuthRuleQueryReq"]; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": components["schemas"]["AuthRuleQueryRes"]; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 获取所有权限规则 */ + auth_rule_all_wide_data_user_auth_rule_all_post: { + requestBody: { + content: { + "application/json": components["schemas"]["AuthRuleAllReq"]; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": components["schemas"]["AuthRuleAllRes"]; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 获取登录验证码接口 */ + get_login_verify_code_wide_data_user_get_login_verify_code_post: { + requestBody: { + content: { + "application/json": components["schemas"]["GetLoginVerifyCodeReq"]; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": unknown; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 验证码登录接口 */ + login_by_verify_code_wide_data_user_login_by_verify_code_post: { + requestBody: { + content: { + "application/json": components["schemas"]["LoginByVerifyCode"]; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": unknown; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** token刷新接口 */ + refresh_token_wide_data_user_refresh_token_post: { + parameters: { + header?: { + authorization?: string; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": unknown; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + /** 用户信息获取接口 */ + get_user_info_wide_data_user_get_user_info_post: { + parameters: { + header?: { + authorization?: string; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + content: { + "application/json": components["schemas"]["UserInfo"]; + }; + }; + /** @description Validation Error */ + 422: { + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; +} diff --git a/src/main.ts b/src/main.ts index 60db439..283917a 100644 --- a/src/main.ts +++ b/src/main.ts @@ -7,6 +7,7 @@ import { createApp, Directive } from "vue"; import { MotionPlugin } from "@vueuse/motion"; // import { useEcharts } from "@/plugins/echarts"; import { injectResponsiveStorage } from "@/utils/responsive"; +import * as ElementPlusIconsVue from '@element-plus/icons-vue' // import Table from "@pureadmin/table"; // import PureDescriptions from "@pureadmin/descriptions"; @@ -17,6 +18,7 @@ import "./style/reset.scss"; import "./style/index.scss"; // 一定要在main.ts中导入tailwind.css,防止vite每次hmr都会请求src/style/index.scss整体css文件导致热更新慢的问题 import "./style/tailwind.css"; +import "tailwindcss/tailwind.css" import "element-plus/dist/index.css"; // 导入字体图标 import "./assets/iconfont/iconfont.js"; @@ -30,6 +32,10 @@ Object.keys(directives).forEach(key => { app.directive(key, (directives as { [key: string]: Directive })[key]); }); +for (const [key, component] of Object.entries(ElementPlusIconsVue)) { + app.component(key, component) +} + // 全局注册`@iconify/vue`图标库 import { IconifyIconOffline, diff --git a/src/router/modules/setting.ts b/src/router/modules/setting.ts index 61c574c..e0c687e 100644 --- a/src/router/modules/setting.ts +++ b/src/router/modules/setting.ts @@ -23,6 +23,15 @@ export default { title: "查询条件", showParent: true } + }, + { + path: "/setting/user", + name: "user", + component: () => import("@/views/setting/user/index.vue"), + meta: { + title: "用户管理", + showParent: true + } } ] }; \ No newline at end of file diff --git a/src/style/reset.scss b/src/style/reset.scss index 17b5244..8ccae1a 100644 --- a/src/style/reset.scss +++ b/src/style/reset.scss @@ -19,6 +19,7 @@ html { line-height: 1.5; tab-size: 4; text-size-adjust: 100%; + font-size: 14px; } body { diff --git a/src/views/setting/user/index.vue b/src/views/setting/user/index.vue new file mode 100644 index 0000000..5d9356d --- /dev/null +++ b/src/views/setting/user/index.vue @@ -0,0 +1,30 @@ + + + + + \ No newline at end of file diff --git a/src/views/setting/user/role.vue b/src/views/setting/user/role.vue new file mode 100644 index 0000000..88c2e57 --- /dev/null +++ b/src/views/setting/user/role.vue @@ -0,0 +1,248 @@ + + + + + \ No newline at end of file diff --git a/src/views/setting/user/user.vue b/src/views/setting/user/user.vue new file mode 100644 index 0000000..965c16b --- /dev/null +++ b/src/views/setting/user/user.vue @@ -0,0 +1,180 @@ + + + + + \ No newline at end of file diff --git a/tailwind.config.js b/tailwind.config.js index 41e05b6..9582476 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,12 +1,16 @@ /** @type {import('tailwindcss').Config} */ module.exports = { darkMode: "class", + important: true, corePlugins: { preflight: false }, content: ["./index.html", "./src/**/*.{vue,js,ts,jsx,tsx}"], theme: { extend: { + width: { + '150': '150px' + }, colors: { bg_color: "var(--el-bg-color)", primary: "var(--el-color-primary)", @@ -14,5 +18,10 @@ module.exports = { text_color_regular: "var(--el-text-color-regular)" } } + }, + css: { + postcss: { + plugins: [require("tailwindcss"), require("autoprefixer")] + } } }; diff --git a/vite.config.ts b/vite.config.ts index de598d5..d997994 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -45,17 +45,24 @@ export default ({ command, mode }: ConfigEnv): UserConfigExport => { // 本地跨域代理 https://cn.vitejs.dev/config/server-options.html#server-proxy proxy: { "/wide_data/": { - target: "http://0.0.0.0:8012", + target: "http://116.63.135.125", changeOrigin: true } } }, - plugins: getPluginsList(command, VITE_CDN, VITE_COMPRESSION), + plugins: getPluginsList(command, VITE_CDN, VITE_COMPRESSION),css: { + postcss: { + plugins: [ + require("tailwindcss"), + require("autoprefixer"), + ] + } + }, // https://cn.vitejs.dev/config/dep-optimization-options.html#dep-optimization-options optimizeDeps: { include, - exclude + exclude: ['vue-demi'] }, build: { outDir:"wd-data-web",