@@ -1,2 +0,0 @@ | |||
[0117/185843.375:ERROR:registration_protocol_win.cc(108)] CreateFile: 系统找不到指定的文件。 (0x2) | |||
[0119/225829.539:ERROR:registration_protocol_win.cc(108)] CreateFile: 系统找不到指定的文件。 (0x2) |
@@ -65,7 +65,7 @@ | |||
"eslint-plugin-vue": "^9.1.1", | |||
"postcss": "^8.4.14", | |||
"prettier": "^2.6.2", | |||
"sass": "^1.52.3", | |||
"sass": "1.63.6", | |||
"typescript": "^4.7.3", | |||
"vite": "^2.9.12", | |||
"vite-plugin-compression": "^0.5.1", |
@@ -168,7 +168,13 @@ function getBusinessType() { | |||
if (res && res.code === 0) { | |||
//数据转换 | |||
let bizContent = res.data | |||
businessTypeList.value = bizContent | |||
businessTypeList.value = bizContent.map((item) => { | |||
return { | |||
label: item, | |||
value: item, | |||
} | |||
}) | |||
console.log(bizContent, 'bizContent') | |||
} else { | |||
crudRef.value.tableLoding = false |
@@ -113,11 +113,11 @@ const crudRef = ref() | |||
let serviceTypeOptinos = [ | |||
{ | |||
label: '一线', | |||
value: 1, | |||
value: "1", | |||
}, | |||
{ | |||
label: '二线', | |||
value: 2, | |||
value: "2", | |||
}, | |||
] | |||
@@ -193,6 +193,7 @@ function submit(data: any) { | |||
if (typeOption.value === 'edit') { | |||
api = '/managew/knowledgebase/updateById' | |||
} | |||
data.serviceType = parseInt(data.serviceType) | |||
BaseService.post(api, data).then((res: any) => { | |||
if (res && res.code === 0) { | |||
let bizContent = res.data | |||
@@ -330,8 +331,11 @@ let field = ref({ | |||
searchShow: IsPermission(route, 'QUERY_BASE'), //搜索展示 | |||
paginStart: true, //是否显示分页查询 (默认false) | |||
operateTitle: '操作', //操作栏标题(默认为"") | |||
operateWidth:"200px", | |||
operateFixed: true, //操作栏是否固定(默认false) | |||
operate: { | |||
edit: false, //是否编辑(默认true) | |||
edit: true, //是否编辑(默认true) | |||
delete: IsPermission(route, 'DEL_LIST'), //是否删除(默认true) | |||
info: IsPermission(route, 'INFO_LIST'), // 详情 | |||
remark: false, // 详情 | |||
@@ -374,7 +378,7 @@ let field = ref({ | |||
label: '客服类别', | |||
listData: serviceTypeOptinos, | |||
form: { | |||
type: 'input', | |||
type: 'select', | |||
required: true, | |||
listData: serviceTypeOptinos, | |||
}, | |||
@@ -403,7 +407,7 @@ let field = ref({ | |||
label: 'level4', | |||
form: { | |||
type: 'input', | |||
required: true, | |||
// required: true, | |||
}, | |||
}, | |||
{ | |||
@@ -411,7 +415,7 @@ let field = ref({ | |||
label: 'level5', | |||
form: { | |||
type: 'input', | |||
required: true, | |||
// required: true, | |||
}, | |||
}, | |||
{ | |||
@@ -419,7 +423,7 @@ let field = ref({ | |||
label: 'level6', | |||
form: { | |||
type: 'input', | |||
required: true, | |||
// required: true, | |||
}, | |||
}, | |||
{ | |||
@@ -427,7 +431,7 @@ let field = ref({ | |||
label: 'level7', | |||
form: { | |||
type: 'input', | |||
required: true, | |||
// required: true, | |||
}, | |||
}, | |||
{ | |||
@@ -435,7 +439,7 @@ let field = ref({ | |||
label: 'level8', | |||
form: { | |||
type: 'input', | |||
required: true, | |||
// required: true, | |||
}, | |||
}, | |||
{ | |||
@@ -443,7 +447,7 @@ let field = ref({ | |||
label: 'level9', | |||
form: { | |||
type: 'input', | |||
required: true, | |||
// required: true, | |||
}, | |||
}, | |||
{ | |||
@@ -451,7 +455,7 @@ let field = ref({ | |||
label: 'level10', | |||
form: { | |||
type: 'input', | |||
required: true, | |||
// required: true, | |||
}, | |||
}, | |||
{ | |||
@@ -459,7 +463,7 @@ let field = ref({ | |||
label: 'level11', | |||
form: { | |||
type: 'input', | |||
required: true, | |||
// required: true, | |||
}, | |||
}, | |||
{ | |||
@@ -467,7 +471,7 @@ let field = ref({ | |||
label: 'level12', | |||
form: { | |||
type: 'input', | |||
required: true, | |||
// required: true, | |||
}, | |||
}, | |||
{ | |||
@@ -475,7 +479,7 @@ let field = ref({ | |||
label: 'level13', | |||
form: { | |||
type: 'input', | |||
required: true, | |||
// required: true, | |||
}, | |||
}, | |||
{ | |||
@@ -483,7 +487,7 @@ let field = ref({ | |||
label: 'level14', | |||
form: { | |||
type: 'input', | |||
required: true, | |||
// required: true, | |||
}, | |||
}, | |||
{ | |||
@@ -491,7 +495,7 @@ let field = ref({ | |||
label: 'level15', | |||
form: { | |||
type: 'input', | |||
required: true, | |||
// required: true, | |||
}, | |||
}, | |||
{ | |||
@@ -499,7 +503,7 @@ let field = ref({ | |||
label: 'level16', | |||
form: { | |||
type: 'input', | |||
required: true, | |||
// required: true, | |||
}, | |||
}, | |||
{ | |||
@@ -507,7 +511,7 @@ let field = ref({ | |||
label: 'level17', | |||
form: { | |||
type: 'input', | |||
required: true, | |||
// required: true, | |||
}, | |||
}, | |||
{ | |||
@@ -515,7 +519,7 @@ let field = ref({ | |||
label: 'level18', | |||
form: { | |||
type: 'input', | |||
required: true, | |||
// required: true, | |||
}, | |||
}, | |||
{ | |||
@@ -523,7 +527,7 @@ let field = ref({ | |||
label: 'level19', | |||
form: { | |||
type: 'input', | |||
required: true, | |||
// required: true, | |||
}, | |||
}, | |||
{ | |||
@@ -531,7 +535,7 @@ let field = ref({ | |||
label: 'level20', | |||
form: { | |||
type: 'input', | |||
required: true, | |||
// required: true, | |||
}, | |||
}, | |||
{ | |||
@@ -539,7 +543,7 @@ let field = ref({ | |||
label: 'level21', | |||
form: { | |||
type: 'input', | |||
required: true, | |||
// required: true, | |||
}, | |||
}, | |||
{ | |||
@@ -547,7 +551,7 @@ let field = ref({ | |||
label: 'level22', | |||
form: { | |||
type: 'input', | |||
required: true, | |||
// required: true, | |||
}, | |||
}, | |||
{ |
@@ -658,6 +658,7 @@ function submit(data: any) { | |||
} | |||
) | |||
} | |||
const infoShow = ref(false) | |||
// 详情 | |||
function handleInfo(idx: any, row: any) { |
@@ -7,6 +7,7 @@ import VueLayouts from 'vite-plugin-vue-layouts' | |||
import legacy from '@vitejs/plugin-legacy' | |||
// import vueExtend from 'vite-plugin-vue-setup-extend' | |||
// https://vitejs.dev/config/ | |||
export default defineConfig(({ command, mode }) => { | |||
//https://blog.csdn.net/huanglgln/article/details/121635053 vite获取.env.development配置环境 | |||
@@ -24,6 +25,7 @@ export default defineConfig(({ command, mode }) => { | |||
}), | |||
vue(), | |||
VueLayouts(), | |||
// gzip压缩 生产环境生成 .gz 文件 | |||
viteCompression({ | |||
threshold: 10240, | |||
@@ -32,6 +34,7 @@ export default defineConfig(({ command, mode }) => { | |||
algorithm: 'gzip', | |||
ext: '.gz', | |||
}), | |||
// vueExtend() | |||
], | |||
// 配置别名 | |||
@@ -60,8 +63,9 @@ export default defineConfig(({ command, mode }) => { | |||
//启动服务配置 | |||
server: { | |||
host: '0.0.0.0', | |||
hmr: true, | |||
port: 8085, | |||
hmr: true, | |||
open: true, // 类型: boolean | string在服务器启动时自动在浏览器中打开应用程序; | |||
cors: true, // 类型: boolean | CorsOptions 为开发服务器配置 CORS。默认启用并允许任何源 | |||
proxy: { |
@@ -858,7 +858,7 @@ china-division@^2.7.0: | |||
resolved "https://registry.npmmirror.com/china-division/-/china-division-2.7.0.tgz#4060a4d243be66c7833dea64a48a4038f3e53e74" | |||
integrity sha512-4uUPAT+1WfqDh5jytq7omdCmHNk3j+k76zEG/2IqaGcYB90c2SwcixttcypdsZ3T/9tN1TTpBDoeZn+Yw/qBEA== | |||
"chokidar@>=2.0.0 <4.0.0", "chokidar@>=3.0.0 <4.0.0": | |||
"chokidar@>=2.0.0 <4.0.0": | |||
version "3.5.3" | |||
resolved "https://registry.npmmirror.com/chokidar/-/chokidar-3.5.3.tgz#1cf37c8707b932bd1af1ae22c0432e2acd1903bd" | |||
integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw== | |||
@@ -873,6 +873,21 @@ china-division@^2.7.0: | |||
optionalDependencies: | |||
fsevents "~2.3.2" | |||
"chokidar@>=3.0.0 <4.0.0": | |||
version "3.6.0" | |||
resolved "https://registry.npmmirror.com/chokidar/-/chokidar-3.6.0.tgz#197c6cc669ef2a8dc5e7b4d97ee4e092c3eb0d5b" | |||
integrity sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw== | |||
dependencies: | |||
anymatch "~3.1.2" | |||
braces "~3.0.2" | |||
glob-parent "~5.1.2" | |||
is-binary-path "~2.1.0" | |||
is-glob "~4.0.1" | |||
normalize-path "~3.0.0" | |||
readdirp "~3.6.0" | |||
optionalDependencies: | |||
fsevents "~2.3.2" | |||
clone-deep@^4.0.1: | |||
version "4.0.1" | |||
resolved "https://registry.npmmirror.com/clone-deep/-/clone-deep-4.0.1.tgz#c19fd9bdbbf85942b4fd979c84dcf7d5f07c2387" | |||
@@ -1721,9 +1736,9 @@ image-size@~0.5.0: | |||
integrity sha512-6TDAlDPZxUFCv+fuOkIoXT/V/f3Qbq8e37p+YOiYrUv3v9cc3/6x78VdfPgFVaB9dZYeLUfKgHRebpkm/oP2VQ== | |||
immutable@^4.0.0: | |||
version "4.3.0" | |||
resolved "https://registry.npmmirror.com/immutable/-/immutable-4.3.0.tgz#eb1738f14ffb39fd068b1dbe1296117484dd34be" | |||
integrity sha512-0AOCmOip+xgJwEVTQj1EfiDDOkPmuyllDuTuEX+DDXUgapLAsBIfkg3sxCYyCEA8mQqZrrxPUGjcOQ2JS3WLkg== | |||
version "4.3.7" | |||
resolved "https://registry.npmmirror.com/immutable/-/immutable-4.3.7.tgz#c70145fc90d89fb02021e65c84eb0226e4e5a381" | |||
integrity sha512-1hqclzwYwjRDFLjcFxOM5AYkkG0rpFPpr1RLPMEuGczoS7YA8gLhy8SWXYRAA/XwfEHpfo3cw5JGioS32fnMRw== | |||
import-fresh@^3.0.0, import-fresh@^3.2.1: | |||
version "3.3.0" | |||
@@ -2493,7 +2508,7 @@ run-parallel@^1.1.9: | |||
resolved "https://registry.npmmirror.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" | |||
integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== | |||
sass@^1.52.3: | |||
sass@1.63.6: | |||
version "1.63.6" | |||
resolved "https://registry.npmmirror.com/sass/-/sass-1.63.6.tgz#481610e612902e0c31c46b46cf2dad66943283ea" | |||
integrity sha512-MJuxGMHzaOW7ipp+1KdELtqKbfAWbH7OLIdoSMnVe3EXPMTmxTmlaZDCTsgIpPCs3w99lLo9/zDKkOrJuT5byw== | |||
@@ -2569,16 +2584,16 @@ sm-crypto@^0.3.12: | |||
dependencies: | |||
jsbn "^1.1.0" | |||
"source-map-js@>=0.6.2 <2.0.0", source-map-js@^1.0.2: | |||
version "1.0.2" | |||
resolved "https://registry.npmmirror.com/source-map-js/-/source-map-js-1.0.2.tgz#adbc361d9c62df380125e7f161f71c826f1e490c" | |||
integrity sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw== | |||
source-map-js@^1.2.1: | |||
"source-map-js@>=0.6.2 <2.0.0", source-map-js@^1.2.1: | |||
version "1.2.1" | |||
resolved "https://registry.npmmirror.com/source-map-js/-/source-map-js-1.2.1.tgz#1ce5650fddd87abc099eda37dcff024c2667ae46" | |||
integrity sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA== | |||
source-map-js@^1.0.2: | |||
version "1.0.2" | |||
resolved "https://registry.npmmirror.com/source-map-js/-/source-map-js-1.0.2.tgz#adbc361d9c62df380125e7f161f71c826f1e490c" | |||
integrity sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw== | |||
source-map-support@^0.5.16, source-map-support@~0.5.20: | |||
version "0.5.21" | |||
resolved "https://registry.npmmirror.com/source-map-support/-/source-map-support-0.5.21.tgz#04fe7c7f9e1ed2d662233c28cb2b35b9f63f6e4f" |