optimization

3.x
smallchill 3 years ago
parent 9e59a59c2c
commit cc2b2dc6c9
  1. 2
      .env.production
  2. 9
      jsconfig.json
  3. 3
      src/mixins/index.js
  4. 2
      src/option/system/dict.js
  5. 2
      src/option/system/dictbiz.js
  6. 2
      src/option/system/param.js
  7. 2
      src/views/desk/notice.vue
  8. 2
      src/views/flow/follow.vue
  9. 2
      src/views/flow/manager.vue
  10. 2
      src/views/flow/model.vue
  11. 2
      src/views/monitor/log/api.vue
  12. 2
      src/views/monitor/log/error.vue
  13. 2
      src/views/monitor/log/usual.vue
  14. 2
      src/views/report/reportlist.vue
  15. 2
      src/views/resource/attach.vue
  16. 2
      src/views/resource/oss.vue
  17. 2
      src/views/resource/sms.vue
  18. 2
      src/views/system/client.vue
  19. 4
      src/views/system/dept.vue
  20. 2
      src/views/system/menu.vue
  21. 2
      src/views/system/post.vue
  22. 2
      src/views/system/tenant.vue
  23. 2
      src/views/system/tenantpackage.vue
  24. 2
      src/views/system/topmenu.vue
  25. 2
      src/views/system/user.vue
  26. 28
      src/views/tool/code.vue
  27. 2
      src/views/tool/datasource.vue
  28. 2
      src/views/work/claim.vue
  29. 2
      src/views/work/done.vue
  30. 2
      src/views/work/send.vue
  31. 2
      src/views/work/start.vue
  32. 2
      src/views/work/todo.vue
  33. 4
      vite.config.js

@ -1,7 +1,7 @@
#生产环境配置 #生产环境配置
VITE_APP_ENV = 'production' VITE_APP_ENV = 'production'
#接口地址前缀 #接口地址
#填写前缀 [/api] 需要用nginx进行反向代理 #填写前缀 [/api] 需要用nginx进行反向代理
#填写地址 [https://api.bladex.vip] 只需要保证接口支持跨域即可, 无需再做代理 #填写地址 [https://api.bladex.vip] 只需要保证接口支持跨域即可, 无需再做代理
VITE_APP_API=/api VITE_APP_API=/api

@ -0,0 +1,9 @@
{
"compilerOptions": {
"baseUrl": "./",
"paths": {
"@/*": ["src/*"]
}
},
"exclude": ["node_modules", "dist"]
}

@ -27,8 +27,7 @@ export default {
if (validatenull(date)) return; if (validatenull(date)) return;
if (date >= this.website.tokenTime && !this.refreshLock) { if (date >= this.website.tokenTime && !this.refreshLock) {
this.refreshLock = true; this.refreshLock = true;
this.$store this.$store.dispatch("RefreshToken")
.dispatch("RefreshToken")
.then(() => { .then(() => {
this.refreshLock = false; this.refreshLock = false;
}) })

@ -1,6 +1,6 @@
export const optionParent = { export const optionParent = {
height: 'auto', height: 'auto',
calcHeight: 30, calcHeight: 32,
tip: false, tip: false,
searchShow: true, searchShow: true,
searchMenuSpan: 10, searchMenuSpan: 10,

@ -1,6 +1,6 @@
export const optionParent = { export const optionParent = {
height: 'auto', height: 'auto',
calcHeight: 30, calcHeight: 32,
tip: false, tip: false,
searchShow: true, searchShow: true,
searchMenuSpan: 10, searchMenuSpan: 10,

@ -1,6 +1,6 @@
export default { export default {
height: 'auto', height: 'auto',
calcHeight: 30, calcHeight: 32,
tip: false, tip: false,
searchShow: true, searchShow: true,
searchMenuSpan: 6, searchMenuSpan: 6,

@ -51,7 +51,7 @@ export default {
selectionList: [], selectionList: [],
option: { option: {
height: 'auto', height: 'auto',
calcHeight: 30, calcHeight: 32,
dialogWidth: 950, dialogWidth: 950,
tip: false, tip: false,
searchShow: true, searchShow: true,

@ -64,7 +64,7 @@ export default {
deleteReason: '', deleteReason: '',
option: { option: {
height: 'auto', height: 'auto',
calcHeight: 30, calcHeight: 32,
tip: false, tip: false,
searchShow: true, searchShow: true,
searchMenuSpan: 6, searchMenuSpan: 6,

@ -118,7 +118,7 @@ export default {
}], }],
option: { option: {
height: 'auto', height: 'auto',
calcHeight: 30, calcHeight: 32,
tip: false, tip: false,
searchShow: true, searchShow: true,
searchMenuSpan: 6, searchMenuSpan: 6,

@ -200,7 +200,7 @@ export default {
flowBox: false, flowBox: false,
option: { option: {
height: 'auto', height: 'auto',
calcHeight: 30, calcHeight: 32,
tip: false, tip: false,
searchShow: true, searchShow: true,
searchMenuSpan: 6, searchMenuSpan: 6,

@ -36,7 +36,7 @@ export default {
}, },
option: { option: {
height: 'auto', height: 'auto',
calcHeight: 30, calcHeight: 32,
tip: false, tip: false,
searchShow: true, searchShow: true,
searchMenuSpan: 6, searchMenuSpan: 6,

@ -36,7 +36,7 @@ export default {
}, },
option: { option: {
height: 'auto', height: 'auto',
calcHeight: 30, calcHeight: 32,
tip: false, tip: false,
searchShow: true, searchShow: true,
searchMenuSpan: 6, searchMenuSpan: 6,

@ -36,7 +36,7 @@ export default {
}, },
option: { option: {
height: 'auto', height: 'auto',
calcHeight: 30, calcHeight: 32,
tip: false, tip: false,
searchShow: true, searchShow: true,
searchMenuSpan: 6, searchMenuSpan: 6,

@ -62,7 +62,7 @@ export default {
}, },
option: { option: {
height: 'auto', height: 'auto',
calcHeight: 30, calcHeight: 32,
tip: false, tip: false,
searchShow: true, searchShow: true,
searchMenuSpan: 6, searchMenuSpan: 6,

@ -74,7 +74,7 @@ export default {
selectionList: [], selectionList: [],
option: { option: {
height: 'auto', height: 'auto',
calcHeight: 30, calcHeight: 32,
tip: false, tip: false,
searchShow: true, searchShow: true,
searchMenuSpan: 6, searchMenuSpan: 6,

@ -79,7 +79,7 @@ export default {
selectionList: [], selectionList: [],
option: { option: {
height: 'auto', height: 'auto',
calcHeight: 30, calcHeight: 32,
tip: false, tip: false,
searchShow: true, searchShow: true,
searchMenuSpan: 6, searchMenuSpan: 6,

@ -78,7 +78,7 @@ export default {
selectionList: [], selectionList: [],
option: { option: {
height: 'auto', height: 'auto',
calcHeight: 30, calcHeight: 32,
tip: false, tip: false,
searchShow: true, searchShow: true,
searchMenuSpan: 6, searchMenuSpan: 6,

@ -48,7 +48,7 @@ export default {
selectionList: [], selectionList: [],
option: { option: {
height: 'auto', height: 'auto',
calcHeight: 30, calcHeight: 32,
tip: false, tip: false,
searchShow: true, searchShow: true,
searchMenuSpan: 6, searchMenuSpan: 6,

@ -316,7 +316,9 @@ export default {
} }
if (["edit", "view"].includes(type)) { if (["edit", "view"].includes(type)) {
getDept(this.form.id).then(res => { getDept(this.form.id).then(res => {
this.form = res.data.data; this.form = Object.assign(res.data.data, {
hasChildren: this.form.hasChildren
});
}); });
} }
done(); done();

@ -382,7 +382,7 @@ export default {
getMenu(this.form.id).then(res => { getMenu(this.form.id).then(res => {
this.form = Object.assign(res.data.data, { this.form = Object.assign(res.data.data, {
hasChildren: this.form.hasChildren hasChildren: this.form.hasChildren
}) });
}); });
} }
done(); done();

@ -52,7 +52,7 @@ export default {
selectionList: [], selectionList: [],
option: { option: {
height: 'auto', height: 'auto',
calcHeight: 30, calcHeight: 32,
tip: false, tip: false,
searchShow: true, searchShow: true,
searchMenuSpan: 6, searchMenuSpan: 6,

@ -132,7 +132,7 @@ export default {
}, },
option: { option: {
height: 'auto', height: 'auto',
calcHeight: 30, calcHeight: 32,
tip: false, tip: false,
searchShow: true, searchShow: true,
searchMenuSpan: 6, searchMenuSpan: 6,

@ -47,7 +47,7 @@ export default {
selectionList: [], selectionList: [],
option: { option: {
height: 'auto', height: 'auto',
calcHeight: 30, calcHeight: 32,
tip: false, tip: false,
searchShow: true, searchShow: true,
searchMenuSpan: 6, searchMenuSpan: 6,

@ -97,7 +97,7 @@ export default {
menuTreeObj: [], menuTreeObj: [],
option: { option: {
height: 'auto', height: 'auto',
calcHeight: 30, calcHeight: 32,
tip: false, tip: false,
searchShow: true, searchShow: true,
searchMenuSpan: 6, searchMenuSpan: 6,

@ -259,7 +259,7 @@ export default {
}, },
option: { option: {
height: 'auto', height: 'auto',
calcHeight: 80, calcHeight: 140,
tip: false, tip: false,
searchShow: true, searchShow: true,
searchMenuSpan: 6, searchMenuSpan: 6,

@ -65,7 +65,7 @@ export default {
}, },
option: { option: {
height: 'auto', height: 'auto',
calcHeight: 30, calcHeight: 32,
dialogWidth: 900, dialogWidth: 900,
tip: false, tip: false,
searchShow: true, searchShow: true,
@ -346,12 +346,12 @@ export default {
type: 'radio', type: 'radio',
dicData: [ dicData: [
{ {
label: "saber", label: "saber3",
value: "saber" value: "saber3"
}, },
{ {
label: "element", label: "element-plus",
value: "element" value: "element-plus"
} }
], ],
value: "saber", value: "saber",
@ -568,17 +568,15 @@ export default {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning"
}) }).then(() => {
.then(() => { return build(this.ids).then(() => {
return build(this.ids); this.onLoad(this.page);
}) this.$message({
.then(() => { type: "success",
this.onLoad(this.page); message: "操作成功!"
this.$message({ });
type: "success", this.$refs.crud.toggleSelection();
message: "操作成功!"
}); });
this.$refs.crud.toggleSelection();
}); });
}, },
handleCopy (row) { handleCopy (row) {

@ -48,7 +48,7 @@ export default {
selectionList: [], selectionList: [],
option: { option: {
height: 'auto', height: 'auto',
calcHeight: 30, calcHeight: 32,
dialogWidth: 900, dialogWidth: 900,
tip: false, tip: false,
searchShow: true, searchShow: true,

@ -65,7 +65,7 @@ export default {
workBox: false, workBox: false,
option: { option: {
height: 'auto', height: 'auto',
calcHeight: 30, calcHeight: 32,
tip: false, tip: false,
simplePage: true, simplePage: true,
searchShow: true, searchShow: true,

@ -60,7 +60,7 @@ export default {
workBox: false, workBox: false,
option: { option: {
height: 'auto', height: 'auto',
calcHeight: 30, calcHeight: 32,
tip: false, tip: false,
searchShow: true, searchShow: true,
searchMenuSpan: 6, searchMenuSpan: 6,

@ -63,7 +63,7 @@ export default {
workBox: false, workBox: false,
option: { option: {
height: 'auto', height: 'auto',
calcHeight: 30, calcHeight: 32,
tip: false, tip: false,
searchShow: true, searchShow: true,
searchMenuSpan: 6, searchMenuSpan: 6,

@ -76,7 +76,7 @@ export default {
workBox: false, workBox: false,
option: { option: {
height: 'auto', height: 'auto',
calcHeight: 30, calcHeight: 32,
tip: false, tip: false,
searchShow: true, searchShow: true,
searchMenuSpan: 6, searchMenuSpan: 6,

@ -65,7 +65,7 @@ export default {
workBox: false, workBox: false,
option: { option: {
height: 'auto', height: 'auto',
calcHeight: 30, calcHeight: 32,
tip: false, tip: false,
simplePage: true, simplePage: true,
searchShow: true, searchShow: true,

@ -11,8 +11,8 @@ export default ({ mode, command }) => {
port: 1888, port: 1888,
proxy: { proxy: {
'/api': { '/api': {
//target: 'http://localhost', target: 'http://localhost',
target: 'http://test3.javablade.com', //target: 'http://test3.javablade.com',
changeOrigin: true, changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '') rewrite: (path) => path.replace(/^\/api/, '')
} }

Loading…
Cancel
Save