Explorar o código

clean up code

tanlie hai 1 mes
pai
achega
203286eb6c
Modificáronse 32 ficheiros con 23 adicións e 119 borrados
  1. 2 2
      wishing-admin/obfuscatorFiles.js
  2. 0 0
      wishing-admin/src/api/upms/api-data-scope.js
  3. 0 0
      wishing-admin/src/api/upms/api-dictionary.js
  4. 0 0
      wishing-admin/src/api/upms/api-menu.js
  5. 0 0
      wishing-admin/src/api/upms/api-role.js
  6. 0 0
      wishing-admin/src/api/upms/api-tenant.js
  7. 0 0
      wishing-admin/src/api/upms/api-user-tenant.js
  8. 0 0
      wishing-admin/src/api/upms/api-user.js
  9. 0 0
      wishing-admin/src/api/upms/params.js
  10. 0 0
      wishing-admin/src/api/upms/sms-log.js
  11. 0 0
      wishing-admin/src/assets/nginx/report.html
  12. 0 64
      wishing-admin/src/directive/dialog/drag.js
  13. 0 9
      wishing-admin/src/directive/index.js
  14. 0 22
      wishing-admin/src/directive/module/dialog.js
  15. 1 2
      wishing-admin/src/main.js
  16. 1 1
      wishing-admin/src/store/modules/permission.js
  17. 1 1
      wishing-admin/src/store/modules/user.js
  18. 2 2
      wishing-admin/src/views/layout/new-top.vue
  19. 2 2
      wishing-admin/src/views/layout/top.vue
  20. 1 1
      wishing-admin/src/views/personal/personal-pwd.vue
  21. 1 1
      wishing-admin/src/views/personal/personal-setting.vue
  22. 1 1
      wishing-admin/src/views/system/components/role-scope.vue
  23. 1 1
      wishing-admin/src/views/system/dictionary-option.vue
  24. 1 1
      wishing-admin/src/views/system/dictionary.vue
  25. 1 1
      wishing-admin/src/views/system/grant-menu.vue
  26. 1 1
      wishing-admin/src/views/system/menu.vue
  27. 1 1
      wishing-admin/src/views/system/params.vue
  28. 1 1
      wishing-admin/src/views/system/role.vue
  29. 1 1
      wishing-admin/src/views/system/sms-log.vue
  30. 1 1
      wishing-admin/src/views/system/tenant.vue
  31. 1 1
      wishing-admin/src/views/system/user-tenant.vue
  32. 2 2
      wishing-admin/src/views/system/user.vue

+ 2 - 2
wishing-admin/obfuscatorFiles.js

@@ -4,10 +4,10 @@ let index = 0;
 
 // 需要混淆的文件列表
 const obfuscatorFiles = [
-  'src/api/system/api-menu.js',
+  'src/api/upms/api-menu.js',
   'src/api/app-management/api-home.js',
   'src/api/api-login.js',
-  'src/api/system/api-user.js'
+  'src/api/upms/api-user.js'
 ].map((item) => {
   index++;
   let obfuscatorIndex = 'obfuscator' + index;

+ 0 - 0
wishing-admin/src/api/system/api-data-scope.js → wishing-admin/src/api/upms/api-data-scope.js


+ 0 - 0
wishing-admin/src/api/system/api-dictionary.js → wishing-admin/src/api/upms/api-dictionary.js


+ 0 - 0
wishing-admin/src/api/system/api-menu.js → wishing-admin/src/api/upms/api-menu.js


+ 0 - 0
wishing-admin/src/api/system/api-role.js → wishing-admin/src/api/upms/api-role.js


+ 0 - 0
wishing-admin/src/api/system/api-tenant.js → wishing-admin/src/api/upms/api-tenant.js


+ 0 - 0
wishing-admin/src/api/system/api-user-tenant.js → wishing-admin/src/api/upms/api-user-tenant.js


+ 0 - 0
wishing-admin/src/api/system/api-user.js → wishing-admin/src/api/upms/api-user.js


+ 0 - 0
wishing-admin/src/api/system/params.js → wishing-admin/src/api/upms/params.js


+ 0 - 0
wishing-admin/src/api/system/sms-log.js → wishing-admin/src/api/upms/sms-log.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
wishing-admin/src/assets/nginx/report.html


+ 0 - 64
wishing-admin/src/directive/dialog/drag.js

@@ -1,64 +0,0 @@
-/**
- * v-dialogDrag 弹窗拖拽
- */
-export default {
-  bind(el, binding, vnode, oldVnode) {
-    const value = +el.getAttribute('dialog-top');
-    let top = 15;
-    if (typeof value === 'number') {
-      top = value;
-    }
-    // 获取拖拽内容头部
-    const dialogHeaderEl = el.querySelector('.el-dialog__header');
-    const dragDom = el.querySelector('.el-dialog');
-    dialogHeaderEl.style.cursor = 'move';
-    // 获取原有属性 ie dom元素.currentStyle 火狐谷歌 window.getComputedStyle(dom元素, null);
-    const sty = dragDom.currentStyle || window.getComputedStyle(dragDom, null);
-    dragDom.style.position = 'absolute';
-    dragDom.style.marginTop = top + 'vh';
-    let width = dragDom.style.width;
-    if (width.includes('%')) {
-      width = +document.body.clientWidth * (+width.replace(/%/g, '') / 100);
-    } else {
-      width = +width.replace(/\px/g, '');
-    }
-    dragDom.style.left = `${(document.body.clientWidth - width) / 2}px`;
-    // 鼠标按下事件
-    dialogHeaderEl.onmousedown = (e) => {
-      // 鼠标按下,计算当前元素距离可视区的距离 (鼠标点击位置距离可视窗口的距离)
-      const disX = e.clientX - dialogHeaderEl.offsetLeft;
-      const disY = e.clientY - dialogHeaderEl.offsetTop;
-
-      // 获取到的值带px 正则匹配替换
-      let styL, styT;
-
-      // 注意在ie中 第一次获取到的值为组件自带50% 移动之后赋值为px
-      if (sty.left.includes('%')) {
-        styL = +document.body.clientWidth * (+sty.left.replace(/%/g, '') / 100);
-        styT = +document.body.clientHeight * (+sty.top.replace(/%/g, '') / 100);
-      } else {
-        styL = +sty.left.replace(/\px/g, '');
-        styT = +sty.top.replace(/\px/g, '');
-      }
-
-      // 鼠标拖拽事件
-      document.onmousemove = function (e) {
-        // 通过事件委托,计算移动的距离 (开始拖拽至结束拖拽的距离)
-        const l = e.clientX - disX;
-        const t = e.clientY - disY;
-
-        let finallyL = l + styL;
-        let finallyT = t + styT;
-
-        // 移动当前元素
-        dragDom.style.left = `${finallyL}px`;
-        dragDom.style.top = `${finallyT}px`;
-      };
-
-      document.onmouseup = function (e) {
-        document.onmousemove = null;
-        document.onmouseup = null;
-      };
-    };
-  }
-};

+ 0 - 9
wishing-admin/src/directive/index.js

@@ -1,9 +0,0 @@
-import dialogDrag from './dialog/drag';
-import dialogPath from './module/dialog.js';
-const install = (Vue) => {
-  Vue.directive('dialogDrag', dialogDrag);
-  // 解决el-dialog 鼠标点击滑动后关闭问题
-  Vue.component(dialogPath.name, dialogPath);
-};
-
-export default install;

+ 0 - 22
wishing-admin/src/directive/module/dialog.js

@@ -1,22 +0,0 @@
-import { Dialog } from 'element-ui';
-
-export default {
-  extends: Dialog,
-  name: Dialog.name,
-  data() {
-    return {
-      wrapperMouseDown: false
-    };
-  },
-  mounted() {
-    this.$el.onmousedown = (e) => {
-      this.wrapperMouseDown = e.target.classList.contains('el-dialog__wrapper');
-    };
-  },
-  methods: {
-    handleWrapperClick() {
-      if (!this.closeOnClickModal || !this.wrapperMouseDown) return;
-      this.handleClose();
-    }
-  }
-};

+ 1 - 2
wishing-admin/src/main.js

@@ -12,7 +12,7 @@ import BaseTable from '@comp/base-table';
 import FormMaking from 'form-making';
 import VueParticles from 'vue-particles';
 import 'form-making/dist/FormMaking.css';
-import directive from './directive';
+
 import treeSelect from '@riophae/vue-treeselect';
 import '@riophae/vue-treeselect/dist/vue-treeselect.css';
 import '@/style/common.less';
@@ -25,7 +25,6 @@ Vue.use(dataV);
 Vue.use(ElementUI);
 Vue.use(FormMaking);
 Vue.use(VueParticles);
-Vue.use(directive);
 
 Vue.component('el-auth-button', AuthButton);
 Vue.component('baseTable', BaseTable);

+ 1 - 1
wishing-admin/src/store/modules/permission.js

@@ -1,5 +1,5 @@
 import { filterAsyncRoutes, constantRouterMap, noMenuRouterMap } from '@/router';
-import { leftMenus } from '@api/system/api-user';
+import { leftMenus } from '@api/upms/api-user';
 import { getStore, setStore } from '@utils/store';
 
 const permission = {

+ 1 - 1
wishing-admin/src/store/modules/user.js

@@ -1,7 +1,7 @@
 import { getStore, setStore } from '@utils/store';
 import { resetRouter } from '@/router';
 import { loginByPwd } from '@api/api-login';
-import { logout, refreshToken } from '@api/system/api-user';
+import { logout, refreshToken } from '@api/upms/api-user';
 
 const user = {
   state: {

+ 2 - 2
wishing-admin/src/views/layout/new-top.vue

@@ -66,8 +66,8 @@
 </template>
 
 <script>
-import { fetchUserInfo, passwordCheckStatus, switchRole } from '@api/system/api-user';
-import { fetchDict } from '@api/system/api-dictionary';
+import { fetchUserInfo, passwordCheckStatus, switchRole } from '@api/upms/api-user';
+import { fetchDict } from '@api/upms/api-dictionary';
 import { getRouter } from '@utils/util';
 import { getStore } from '@utils/store';
 import MultipleTag from '@views/layout/multiple-tag';

+ 2 - 2
wishing-admin/src/views/layout/top.vue

@@ -46,8 +46,8 @@
 </template>
 
 <script>
-import { fetchUserInfo, passwordCheckStatus, switchRole } from '@api/system/api-user';
-import { fetchDict } from '@api/system/api-dictionary';
+import { fetchUserInfo, passwordCheckStatus, switchRole } from '@api/upms/api-user';
+import { fetchDict } from '@api/upms/api-dictionary';
 import { getRouter } from '@utils/util';
 import { getStore } from '@utils/store';
 

+ 1 - 1
wishing-admin/src/views/personal/personal-pwd.vue

@@ -16,7 +16,7 @@
 </template>
 
 <script>
-import { updateUserPwd } from '@api/system/api-user';
+import { updateUserPwd } from '@api/upms/api-user';
 import { encryptByAES } from '@utils/util';
 
 export default {

+ 1 - 1
wishing-admin/src/views/personal/personal-setting.vue

@@ -46,7 +46,7 @@
 <script>
 import uploadPic from '@comp/upload-pic';
 import { isMobile } from '@utils/validate';
-import { uploadUserAvatar, updateSelfUserDetail, fetchUserInfo, fetchUserById } from '@api/system/api-user';
+import { uploadUserAvatar, updateSelfUserDetail, fetchUserInfo, fetchUserById } from '@api/upms/api-user';
 
 export default {
   name: 'PersonalSetting',

+ 1 - 1
wishing-admin/src/views/system/components/role-scope.vue

@@ -14,7 +14,7 @@
 </template>
 
 <script>
-import { loadTree, loadTreeSelected, createAuthDepartment } from '@api/system/api-data-scope';
+import { loadTree, loadTreeSelected, createAuthDepartment } from '@api/upms/api-data-scope';
 
 export default {
   name: 'RoleScope',

+ 1 - 1
wishing-admin/src/views/system/dictionary-option.vue

@@ -71,7 +71,7 @@ import {
   createDictionaryOption,
   updateDictionaryOption,
   removeDictionaryOption
-} from '@api/system/api-dictionary';
+} from '@api/upms/api-dictionary';
 
 export default {
   name: 'Dictionary-Option',

+ 1 - 1
wishing-admin/src/views/system/dictionary.vue

@@ -90,7 +90,7 @@ import {
   refreshDictionary,
   removeDictionary,
   updateDictionary
-} from '@api/system/api-dictionary';
+} from '@api/upms/api-dictionary';
 import importFile from '@comp/import-file';
 
 export default {

+ 1 - 1
wishing-admin/src/views/system/grant-menu.vue

@@ -30,7 +30,7 @@
 </template>
 
 <script>
-import { loadTree, loadTreeSelected, createAuthMenu, createPermission } from '@api/system/api-role';
+import { loadTree, loadTreeSelected, createAuthMenu, createPermission } from '@api/upms/api-role';
 
 export default {
   name: 'GrantResource',

+ 1 - 1
wishing-admin/src/views/system/menu.vue

@@ -141,7 +141,7 @@
 </template>
 
 <script>
-import { loadMenuPage, refreshMenu, createMenu, removeMenu, updateMenu } from '@api/system/api-menu';
+import { loadMenuPage, refreshMenu, createMenu, removeMenu, updateMenu } from '@api/upms/api-menu';
 import { formatDict } from '@utils/global';
 import iconsList from '@utils/icons.js';
 import menuSelect from '@views/system/components/menu-select';

+ 1 - 1
wishing-admin/src/views/system/params.vue

@@ -53,7 +53,7 @@ import {
   fetchSystemParamsPage,
   removeSystemParams,
   updateSystemParams
-} from '@api/system/params';
+} from '@api/upms/params';
 
 export default {
   name: 'SystemParams',

+ 1 - 1
wishing-admin/src/views/system/role.vue

@@ -63,7 +63,7 @@
 <script>
 import grantMenu from '@views/system/grant-menu';
 import RoleScope from '@views/system/components/role-scope';
-import { queryRolePage, createRole, updateRole, removeRole } from '@api/system/api-role';
+import { queryRolePage, createRole, updateRole, removeRole } from '@api/upms/api-role';
 import { formatDict } from '@utils/global';
 
 export default {

+ 1 - 1
wishing-admin/src/views/system/sms-log.vue

@@ -25,7 +25,7 @@
 <script>
 import {
   fetchSystemSmsLogPage
-} from '@api/system/sms-log';
+} from '@api/upms/sms-log';
 import dateUtil from '@utils/dateUtil';
 
 export default {

+ 1 - 1
wishing-admin/src/views/system/tenant.vue

@@ -51,7 +51,7 @@ import {
   updateTenant,
   removeTenant,
   syncTenantMenu
-} from '@api/system/api-tenant';
+} from '@api/upms/api-tenant';
 
 export default {
   name: 'Tenant',

+ 1 - 1
wishing-admin/src/views/system/user-tenant.vue

@@ -116,7 +116,7 @@ import {
   removeUser,
   resetPwd,
   updateUserDetail
-} from '@api/system/api-user-tenant';
+} from '@api/upms/api-user-tenant';
 
 export default {
   name: 'UserTenant',

+ 2 - 2
wishing-admin/src/views/system/user.vue

@@ -120,7 +120,7 @@
 <script>
 import { formatDict } from '@utils/global';
 import { isMobile, isUsername } from '@utils/validate';
-import { queryRoleList } from '@api/system/api-role';
+import { queryRoleList } from '@api/upms/api-role';
 import {
   addRole,
   changeLock,
@@ -133,7 +133,7 @@ import {
   resetPwd,
   updateUserDetail,
   uploadUserAvatar
-} from '@api/system/api-user';
+} from '@api/upms/api-user';
 
 export default {
   name: 'User',

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio