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'
#接口地址前缀
#接口地址
#填写前缀 [/api] 需要用nginx进行反向代理
#填写地址 [https://api.bladex.vip] 只需要保证接口支持跨域即可, 无需再做代理
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 (date >= this.website.tokenTime && !this.refreshLock) {
this.refreshLock = true;
this.$store
.dispatch("RefreshToken")
this.$store.dispatch("RefreshToken")
.then(() => {
this.refreshLock = false;
})

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save