Browse Source

improve: 整理代码

From-wh 2 years atrás
parent
commit
fbbcf4bded
29 changed files with 18 additions and 89 deletions
  1. 4 6
      template/admin/src/components/cropperImg/index.vue
  2. 0 1
      template/admin/src/layout/component/aside.vue
  3. 0 2
      template/admin/src/layout/component/columnsAside.vue
  4. 0 1
      template/admin/src/layout/navBars/breadcrumb/index.vue
  5. 0 6
      template/admin/src/layout/navBars/tagsView/tagsView.vue
  6. 0 1
      template/admin/src/libs/request.js
  7. 0 2
      template/admin/src/libs/system/index.js
  8. 0 1
      template/admin/src/pages/marketing/live/add_goods.vue
  9. 0 1
      template/admin/src/pages/notify/smsPay/index.vue
  10. 0 1
      template/admin/src/pages/product/productAdd/taoBao.vue
  11. 0 1
      template/admin/src/pages/setting/devise/index.vue
  12. 0 1
      template/admin/src/pages/setting/devisePage/index.vue
  13. 0 1
      template/admin/src/pages/setting/systemMenus/components/menusFrom.vue
  14. 0 3
      template/admin/src/pages/setting/systemMenus/index.vue
  15. 0 9
      template/admin/src/pages/setting/systemOutInterface/debugging.vue
  16. 0 2
      template/admin/src/pages/setting/systemOutInterface/index.vue
  17. 0 2
      template/admin/src/pages/setting/systemOutInterface/request.js
  18. 0 11
      template/admin/src/pages/system/backendRouting/debugging.vue
  19. 12 12
      template/admin/src/pages/system/backendRouting/index.vue
  20. 0 2
      template/admin/src/pages/system/backendRouting/request.js
  21. 0 1
      template/admin/src/pages/system/codeGeneration/components/FoundationFor.vue
  22. 0 3
      template/admin/src/pages/system/codeGeneration/components/TableForm.vue
  23. 0 1
      template/admin/src/pages/system/codeGeneration/index.vue
  24. 2 11
      template/admin/src/pages/system/codeGeneration/list.vue
  25. 0 1
      template/admin/src/pages/system/maintain/systemDatabackup/index.vue
  26. 0 1
      template/admin/src/pages/system/maintain/systemFile/opendir.vue
  27. 0 1
      template/admin/src/pages/user/grade/card/index.vue
  28. 0 1
      template/admin/src/pages/user/list/index.vue
  29. 0 3
      template/admin/src/utils/upload.js

+ 4 - 6
template/admin/src/components/cropperImg/index.vue

@@ -69,14 +69,13 @@ export default {
   components: {
   components: {
     VueCropper,
     VueCropper,
   },
   },
-  props: ['Name'],
   data() {
   data() {
     return {
     return {
-      name: this.Name,
+      name: '',
       resImg: '',
       resImg: '',
       previews: {},
       previews: {},
       option: {
       option: {
-        img: this.Name, //裁剪图片的地址
+        img: '', //裁剪图片的地址
         outputSize: 1, //裁剪生成图片的质量(可选0.1 - 1)
         outputSize: 1, //裁剪生成图片的质量(可选0.1 - 1)
         outputType: 'png', //裁剪生成图片的格式(jpeg || png || webp)
         outputType: 'png', //裁剪生成图片的格式(jpeg || png || webp)
         info: true, //图片大小信息
         info: true, //图片大小信息
@@ -84,8 +83,8 @@ export default {
         autoCrop: true, //是否默认生成截图框
         autoCrop: true, //是否默认生成截图框
         autoCropWidth: 200, //默认生成截图框宽度
         autoCropWidth: 200, //默认生成截图框宽度
         autoCropHeight: 200, //默认生成截图框高度
         autoCropHeight: 200, //默认生成截图框高度
-        fixed: false, //是否开启截图框宽高固定比例
-        fixedNumber: [1.53, 1], //截图框的宽高比例
+        fixed: true, //是否开启截图框宽高固定比例
+        fixedNumber: [1, 1], //截图框的宽高比例
         full: false, //false按原比例裁切图片,不失真
         full: false, //false按原比例裁切图片,不失真
         fixedBox: false, //固定截图框大小,不允许改变
         fixedBox: false, //固定截图框大小,不允许改变
         canMove: true, //上传图片是否可以移动
         canMove: true, //上传图片是否可以移动
@@ -183,7 +182,6 @@ export default {
       const formData = new FormData();
       const formData = new FormData();
       formData.append('file', file);
       formData.append('file', file);
       fileUpload(formData).then((res) => {
       fileUpload(formData).then((res) => {
-        console.log(res);
         if (res.status == 200) {
         if (res.status == 200) {
           this.$emit('uploadImgSuccess', res.data);
           this.$emit('uploadImgSuccess', res.data);
         } else {
         } else {

+ 0 - 1
template/admin/src/layout/component/aside.vue

@@ -93,7 +93,6 @@ export default {
     });
     });
     if (this.$store.state.themeConfig.themeConfig.layout !== 'columns') {
     if (this.$store.state.themeConfig.themeConfig.layout !== 'columns') {
       this.bus.$on('routesListChange', () => {
       this.bus.$on('routesListChange', () => {
-        console.log('变了大哥');
         this.setFilterRoutes();
         this.setFilterRoutes();
       });
       });
     }
     }

+ 0 - 2
template/admin/src/layout/component/columnsAside.vue

@@ -63,7 +63,6 @@ export default {
     },
     },
     // 设置分栏布局风格
     // 设置分栏布局风格
     setColumnsAsidelayout() {
     setColumnsAsidelayout() {
-      console.log('111');
       return this.$store.state.themeConfig.themeConfig.columnsAsideLayout;
       return this.$store.state.themeConfig.themeConfig.columnsAsideLayout;
     },
     },
     Layout() {
     Layout() {
@@ -74,7 +73,6 @@ export default {
     },
     },
   },
   },
   beforeDestroy() {
   beforeDestroy() {
-    console.log('zoule');
     this.bus.$off('routesListChange');
     this.bus.$off('routesListChange');
   },
   },
   mounted() {
   mounted() {

+ 0 - 1
template/admin/src/layout/navBars/breadcrumb/index.vue

@@ -35,7 +35,6 @@ export default {
   mounted() {
   mounted() {
     this.setFilterRoutes();
     this.setFilterRoutes();
     this.bus.$on('routesListChange', () => {
     this.bus.$on('routesListChange', () => {
-      console.log('变了大哥');
       this.setFilterRoutes();
       this.setFilterRoutes();
     });
     });
   },
   },

+ 0 - 6
template/admin/src/layout/navBars/tagsView/tagsView.vue

@@ -113,7 +113,6 @@ export default {
   methods: {
   methods: {
     ...mapMutations(['setBreadCrumb', 'setTagNavList', 'addTag', 'setLocal', 'setHomeRoute', 'closeTag']),
     ...mapMutations(['setBreadCrumb', 'setTagNavList', 'addTag', 'setLocal', 'setHomeRoute', 'closeTag']),
     clickDropdown(e) {
     clickDropdown(e) {
-      // console.log(e, this.$route.path);
       let data = { id: e, path: this.$route.path };
       let data = { id: e, path: this.$route.path };
       this.onCurrentContextmenuClick(data);
       this.onCurrentContextmenuClick(data);
     },
     },
@@ -148,8 +147,6 @@ export default {
     scrollTag(production) {
     scrollTag(production) {
       let scrollRefs = this.$refs.scrollbarRef.$refs.wrap.scrollWidth;
       let scrollRefs = this.$refs.scrollbarRef.$refs.wrap.scrollWidth;
       let scrollLeft = this.$refs.scrollbarRef.$refs.wrap.scrollLeft;
       let scrollLeft = this.$refs.scrollbarRef.$refs.wrap.scrollLeft;
-      console.log(production, this.$refs.scrollbarRef.$refs.wrap.scrollLeft);
-
       if (production === 'left') {
       if (production === 'left') {
         this.$refs.scrollbarRef.$refs.wrap.scrollLeft = scrollLeft - 300 <= 0 ? 0 : scrollLeft - 300;
         this.$refs.scrollbarRef.$refs.wrap.scrollLeft = scrollLeft - 300 <= 0 ? 0 : scrollLeft - 300;
       } else {
       } else {
@@ -252,12 +249,10 @@ export default {
       //   this.tagsViewList = Session.get('tagsViewList');
       //   this.tagsViewList = Session.get('tagsViewList');
       // } else {
       // } else {
       let arr = [];
       let arr = [];
-      console.log(this.tagsViewRoutesList);
       this.tagsViewRoutesList.map((v) => {
       this.tagsViewRoutesList.map((v) => {
         if (v.meta && v.meta.isAffix) arr.push({ ...v });
         if (v.meta && v.meta.isAffix) arr.push({ ...v });
       });
       });
       // }
       // }
-      console.log(arr);
       this.setTagNavList(arr);
       this.setTagNavList(arr);
       // 初始化当前元素(li)的下标
       // 初始化当前元素(li)的下标
       this.getTagsRefsIndex(this.$route.path);
       this.getTagsRefsIndex(this.$route.path);
@@ -339,7 +334,6 @@ export default {
       this.tagsViewRoutesList.map((v) => {
       this.tagsViewRoutesList.map((v) => {
         if ((v.meta && v.meta.isAffix) || v.path === path) tagsViewList.push({ ...v });
         if ((v.meta && v.meta.isAffix) || v.path === path) tagsViewList.push({ ...v });
       });
       });
-      console.log(tagsViewList, this.tagsViewRoutesList, path);
       this.addBrowserSetSession(tagsViewList);
       this.addBrowserSetSession(tagsViewList);
       this.$router.push({ path, query });
       this.$router.push({ path, query });
 
 

+ 0 - 1
template/admin/src/libs/request.js

@@ -88,7 +88,6 @@ service.interceptors.response.use(
     }
     }
   },
   },
   (error) => {
   (error) => {
-    console.log(error);
     Message.error(error.msg);
     Message.error(error.msg);
     return Promise.reject(error);
     return Promise.reject(error);
   },
   },

+ 0 - 2
template/admin/src/libs/system/index.js

@@ -226,11 +226,9 @@ export const findFirstNonNullChildren = (arr) => {
 
 
 export const findFirstNonNullChildrenKeys = (obj, lastArr) => {
 export const findFirstNonNullChildrenKeys = (obj, lastArr) => {
   let ids = lastArr;
   let ids = lastArr;
-  console.log(ids);
   // 如果第一个对象没有children属性,返回该对象
   // 如果第一个对象没有children属性,返回该对象
   if (!obj.children) {
   if (!obj.children) {
     ids.push(obj.id);
     ids.push(obj.id);
-    console.log(ids);
     return ids;
     return ids;
   }
   }
   // 如果第一个对象的children属性是数组,
   // 如果第一个对象的children属性是数组,

+ 0 - 1
template/admin/src/pages/marketing/live/add_goods.vue

@@ -155,7 +155,6 @@ export default {
       this.selectIds = this.goodsList.map((i) => {
       this.selectIds = this.goodsList.map((i) => {
         return i.product_id;
         return i.product_id;
       });
       });
-      console.log(this.selectIds, this.goodsList);
     },
     },
     // 生成直播商品
     // 生成直播商品
     liveGoods() {
     liveGoods() {

+ 0 - 1
template/admin/src/pages/notify/smsPay/index.vue

@@ -106,7 +106,6 @@ export default {
   created() {
   created() {
     this.isChecked = this.$route.query.type;
     this.isChecked = this.$route.query.type;
     this.onIsLogin();
     this.onIsLogin();
-    console.log(this.$route);
   },
   },
   methods: {
   methods: {
     // 查看是否登录
     // 查看是否登录

+ 0 - 1
template/admin/src/pages/product/productAdd/taoBao.vue

@@ -74,7 +74,6 @@ export default {
   },
   },
   methods: {
   methods: {
     mealPay(val) {
     mealPay(val) {
-      console.log(val);
       this.$router.push({ path: this.$routeProStr + '/setting/sms/sms_pay/index', query: { type: val } });
       this.$router.push({ path: this.$routeProStr + '/setting/sms/sms_pay/index', query: { type: val } });
     },
     },
     getCopyConfig() {
     getCopyConfig() {

+ 0 - 1
template/admin/src/pages/setting/devise/index.vue

@@ -470,7 +470,6 @@ export default {
       if (item.name == 'search_box' || item.name == 'nav_bar') {
       if (item.name == 'search_box' || item.name == 'nav_bar') {
         return this.$Message.warning('该组件禁止移动');
         return this.$Message.warning('该组件禁止移动');
       }
       }
-      console.log(item);
       // if (item.name == "nav_bar") {
       // if (item.name == "nav_bar") {
       //     return this.$Message.warning("该组件禁止移动");
       //     return this.$Message.warning("该组件禁止移动");
       // }
       // }

+ 0 - 1
template/admin/src/pages/setting/devisePage/index.vue

@@ -75,7 +75,6 @@ export default {
   methods: {
   methods: {
     //接收iframe值
     //接收iframe值
     handleMessage(event) {
     handleMessage(event) {
-      console.log(event.data.name)
       if (event.data.name) {
       if (event.data.name) {
         let obj = { name: event.data.name, num: event.data.dataName };
         let obj = { name: event.data.name, num: event.data.dataName };
         this.configName = obj;
         this.configName = obj;

+ 0 - 1
template/admin/src/pages/setting/systemMenus/components/menusFrom.vue

@@ -307,7 +307,6 @@ export default {
       }
       }
     },
     },
     changeUnique(val) {
     changeUnique(val) {
-      console.log(val.target.value);
       let value = this.$routeProStr + val.target.value;
       let value = this.$routeProStr + val.target.value;
       if (value.slice(0, 1) === '/') value = value.replace('/', '');
       if (value.slice(0, 1) === '/') value = value.replace('/', '');
       this.formValidate.unique_auth = value.replaceAll('/', '-');
       this.formValidate.unique_auth = value.replaceAll('/', '-');

+ 0 - 3
template/admin/src/pages/setting/systemMenus/index.vue

@@ -234,7 +234,6 @@ export default {
       };
       };
       menusBatch(data)
       menusBatch(data)
         .then((res) => {
         .then((res) => {
-          console.log(res);
           this.getData();
           this.getData();
         })
         })
         .catch((res) => {
         .catch((res) => {
@@ -282,7 +281,6 @@ export default {
       this.routeType = '0';
       this.routeType = '0';
       // this.getRuleList();
       // this.getRuleList();
       menusRuleCate().then((res) => {
       menusRuleCate().then((res) => {
-        console.log(res);
         this.ruleCateList = res.data;
         this.ruleCateList = res.data;
         this.ruleModal = true;
         this.ruleModal = true;
         if (res.data.length) {
         if (res.data.length) {
@@ -296,7 +294,6 @@ export default {
       });
       });
     },
     },
     handleNodeClick(data) {
     handleNodeClick(data) {
-      console.log(data);
       this.getRuleList(data.id);
       this.getRuleList(data.id);
     },
     },
     modalchange() {
     modalchange() {

+ 0 - 9
template/admin/src/pages/setting/systemOutInterface/debugging.vue

@@ -261,7 +261,6 @@ export default {
   created() {
   created() {
     this.interfaceData = this.formValidate;
     this.interfaceData = this.formValidate;
     this.interfaceData.request_body = JSON.parse(JSON.stringify(this.interfaceData.request_params));
     this.interfaceData.request_body = JSON.parse(JSON.stringify(this.interfaceData.request_params));
-    console.log(this.interfaceData);
   },
   },
   mounted() {},
   mounted() {},
   methods: {
   methods: {
@@ -275,8 +274,6 @@ export default {
         });
         });
     },
     },
     async requestData() {
     async requestData() {
-      console.log(this.$refs.xTable.getTableData().tableData);
-      console.log(this.filtersData((await this.$refs.xTable.getTableData().tableData) || []));
       let url, method, params, body, headers;
       let url, method, params, body, headers;
       url = this.interfaceData.url;
       url = this.interfaceData.url;
       method = this.interfaceData.method;
       method = this.interfaceData.method;
@@ -284,12 +281,10 @@ export default {
       body = this.filtersData((await this.$refs.yTable.getTableData().tableData) || []);
       body = this.filtersData((await this.$refs.yTable.getTableData().tableData) || []);
       let h = this.filtersData((await this.$refs.zTable.getTableData().tableData) || []);
       let h = this.filtersData((await this.$refs.zTable.getTableData().tableData) || []);
       let h1 = this.filtersData((await this.$refs.zaTable.getTableData().tableData) || []);
       let h1 = this.filtersData((await this.$refs.zaTable.getTableData().tableData) || []);
-      console.log(this.interfaceData, h, h1);
       headers = {
       headers = {
         ...h,
         ...h,
         ...h1,
         ...h1,
       };
       };
-      console.log(url, method, params, body, headers);
       requestMethod(url, method, params, body, headers)
       requestMethod(url, method, params, body, headers)
         .then((res) => {
         .then((res) => {
           this.codes = res + '';
           this.codes = res + '';
@@ -299,14 +294,12 @@ export default {
         });
         });
     },
     },
     filtersData(arr) {
     filtersData(arr) {
-      console.log(arr);
       try {
       try {
         let x = {};
         let x = {};
         arr.map((e) => {
         arr.map((e) => {
           if (!e.parentId) {
           if (!e.parentId) {
             for (let i in e) {
             for (let i in e) {
               if (i == 'attribute') {
               if (i == 'attribute') {
-                console.log(e);
                 if (e.type !== 'array') {
                 if (e.type !== 'array') {
                   x[e[i]] = e.value || '';
                   x[e[i]] = e.value || '';
                 } else {
                 } else {
@@ -344,7 +337,6 @@ export default {
     },
     },
     changeTab(name) {
     changeTab(name) {
       if (name === 'Header') {
       if (name === 'Header') {
-        console.log(this.interfaceData.headerData);
         if (!this.interfaceData.headerData) {
         if (!this.interfaceData.headerData) {
           this.insertEvent('zTable', {
           this.insertEvent('zTable', {
             attribute: 'Content-Type',
             attribute: 'Content-Type',
@@ -353,7 +345,6 @@ export default {
           this.insertEvent('zaTable');
           this.insertEvent('zaTable');
         }
         }
       }
       }
-      console.log(this.interfaceData);
     },
     },
     async insertEvent(type, d) {
     async insertEvent(type, d) {
       const $table = this.$refs[type];
       const $table = this.$refs[type];

+ 0 - 2
template/admin/src/pages/setting/systemOutInterface/index.vue

@@ -804,7 +804,6 @@ export default {
     },
     },
 
 
     onChangeName(params) {
     onChangeName(params) {
-      console.log(params);
       if (params.eventType == 'blur') {
       if (params.eventType == 'blur') {
         let data = {
         let data = {
           name: params.newName,
           name: params.newName,
@@ -821,7 +820,6 @@ export default {
     },
     },
 
 
     onAddNode(params) {
     onAddNode(params) {
-      console.log(params);
       // this.$router.push({
       // this.$router.push({
       //   path: '/admin/setting/system_out_interface/add',
       //   path: '/admin/setting/system_out_interface/add',
       //   query: {
       //   query: {

+ 0 - 2
template/admin/src/pages/setting/systemOutInterface/request.js

@@ -35,8 +35,6 @@ service.interceptors.request.use(
     if (token || kefuToken) {
     if (token || kefuToken) {
       config.headers['Authori-zation'] = config.kefu ? 'Bearer ' + kefuToken : 'Bearer ' + token;
       config.headers['Authori-zation'] = config.kefu ? 'Bearer ' + kefuToken : 'Bearer ' + token;
     }
     }
-    console.log('请求了', config);
-
     return config;
     return config;
   },
   },
   (error) => {
   (error) => {

+ 0 - 11
template/admin/src/pages/system/backendRouting/debugging.vue

@@ -292,12 +292,10 @@ export default {
   created() {
   created() {
     this.interfaceData = this.formValidate;
     this.interfaceData = this.formValidate;
     this.interfaceData.request_body = JSON.parse(JSON.stringify(this.interfaceData.request));
     this.interfaceData.request_body = JSON.parse(JSON.stringify(this.interfaceData.request));
-    console.log(this.interfaceData);
   },
   },
   mounted() {},
   mounted() {},
   methods: {
   methods: {
     async handleChange(e, row, type) {
     async handleChange(e, row, type) {
-      console.log(type, row);
       if (e.value !== 'array' && e.value !== 'object') {
       if (e.value !== 'array' && e.value !== 'object') {
         if (row.children.length) {
         if (row.children.length) {
           let arr = this.$refs[type].getTableData().tableData;
           let arr = this.$refs[type].getTableData().tableData;
@@ -331,36 +329,30 @@ export default {
           : this.filtersData((await this.$refs.yTable.getTableData().tableData) || []);
           : this.filtersData((await this.$refs.yTable.getTableData().tableData) || []);
       let h = this.filtersData((await this.$refs.zTable.getTableData().tableData) || []);
       let h = this.filtersData((await this.$refs.zTable.getTableData().tableData) || []);
       headers = h;
       headers = h;
-      console.log(url, method, params, body, headers);
       this.codes = '';
       this.codes = '';
       requestMethod(url, method, params, body, headers)
       requestMethod(url, method, params, body, headers)
         .then((res) => {
         .then((res) => {
-          console.log(res, 'res');
           if (!res) return this.$Message.error('接口异常');
           if (!res) return this.$Message.error('接口异常');
           this.codes = JSON.stringify(res);
           this.codes = JSON.stringify(res);
         })
         })
         .catch((err) => {
         .catch((err) => {
-          console.log(err, 'err');
           if (!err) return this.$Message.error('接口异常');
           if (!err) return this.$Message.error('接口异常');
           this.codes = JSON.stringify(err);
           this.codes = JSON.stringify(err);
         });
         });
     },
     },
     filtersData(arr) {
     filtersData(arr) {
-      console.log(arr);
       try {
       try {
         let x = {};
         let x = {};
         arr.map((e) => {
         arr.map((e) => {
           if (!e.parentId) {
           if (!e.parentId) {
             for (let i in e) {
             for (let i in e) {
               if (i == 'attribute') {
               if (i == 'attribute') {
-                console.log(e.type);
                 if (e.type === 'object') {
                 if (e.type === 'object') {
                   let obj = {};
                   let obj = {};
 
 
                   e.children.map((item, index) => {
                   e.children.map((item, index) => {
                     obj = this.filtersObj(item, 1);
                     obj = this.filtersObj(item, 1);
                   });
                   });
-                  console.log(obj, 'objobjobj');
                   x[e[i]] = obj;
                   x[e[i]] = obj;
                 } else if (e.type !== 'array') {
                 } else if (e.type !== 'array') {
                   x[e[i]] = e.value || '';
                   x[e[i]] = e.value || '';
@@ -385,13 +377,11 @@ export default {
       let x = {};
       let x = {};
       for (let i in obj) {
       for (let i in obj) {
         if (i == 'attribute') {
         if (i == 'attribute') {
-          console.log(obj, 'obj111');
           if (obj.type === 'object') {
           if (obj.type === 'object') {
             let oj = {};
             let oj = {};
             obj.children.map((item, index) => {
             obj.children.map((item, index) => {
               oj[obj.attribute] = this.filtersObj(item);
               oj[obj.attribute] = this.filtersObj(item);
             });
             });
-            console.log(oj, 'oj');
             x = oj;
             x = oj;
           } else if (obj.type !== 'array') {
           } else if (obj.type !== 'array') {
             if (type) {
             if (type) {
@@ -420,7 +410,6 @@ export default {
         //   this.insertEvent('zaTable');
         //   this.insertEvent('zaTable');
         // }
         // }
       }
       }
-      console.log(this.interfaceData);
     },
     },
     async insertEvent(type, d) {
     async insertEvent(type, d) {
       const $table = this.$refs[type];
       const $table = this.$refs[type];

+ 12 - 12
template/admin/src/pages/system/backendRouting/index.vue

@@ -31,12 +31,19 @@
               <div></div>
               <div></div>
               <div
               <div
                 class="tree-node"
                 class="tree-node"
-                :class="{ node: slotProps.model.method, open: formValidate.path == slotProps.model.path && formValidate.method == slotProps.model.method }"
+                :class="{
+                  node: slotProps.model.method,
+                  open: formValidate.path == slotProps.model.path && formValidate.method == slotProps.model.method,
+                }"
                 @click.stop="onClick(slotProps.model)"
                 @click.stop="onClick(slotProps.model)"
               >
               >
-                <span class="" :class="{ open: formValidate.path == slotProps.model.path && formValidate.method == slotProps.model.method }">{{
-                  slotProps.model.name
-                }}</span>
+                <span
+                  class=""
+                  :class="{
+                    open: formValidate.path == slotProps.model.path && formValidate.method == slotProps.model.method,
+                  }"
+                  >{{ slotProps.model.name }}</span
+                >
                 <Dropdown
                 <Dropdown
                   transfer
                   transfer
                   @on-click="
                   @on-click="
@@ -652,9 +659,7 @@ export default {
           this.paramsId = params.id;
           this.paramsId = params.id;
           this.getRoteData(params.id);
           this.getRoteData(params.id);
         }
         }
-      } catch (error) {
-        console.log(error);
-      }
+      } catch (error) {}
     },
     },
     getRoteData(id) {
     getRoteData(id) {
       routeDet(id)
       routeDet(id)
@@ -662,7 +667,6 @@ export default {
           this.formValidate = res.data;
           this.formValidate = res.data;
         })
         })
         .catch((err) => {
         .catch((err) => {
-          console.log(err);
           this.$Message.error(err);
           this.$Message.error(err);
         });
         });
     },
     },
@@ -674,7 +678,6 @@ export default {
       } else if (!this.formValidate.path) {
       } else if (!this.formValidate.path) {
         return this.$Message.warning('请输入路由地址');
         return this.$Message.warning('请输入路由地址');
       }
       }
-      console.log(await this.$refs.xTable.getTableData());
       this.formValidate.request = await this.$refs.xTable.getTableData().tableData;
       this.formValidate.request = await this.$refs.xTable.getTableData().tableData;
       this.formValidate.response = await this.$refs.resTable.getTableData().tableData;
       this.formValidate.response = await this.$refs.resTable.getTableData().tableData;
       this.formValidate.error_code = await this.$refs.codeTable.getTableData().tableData;
       this.formValidate.error_code = await this.$refs.codeTable.getTableData().tableData;
@@ -895,7 +898,6 @@ export default {
     },
     },
     //
     //
     onDel(node) {
     onDel(node) {
-      console.log(node);
       let method = node.cate_id ? routeDel : routeCateDel;
       let method = node.cate_id ? routeDel : routeCateDel;
       this.$Modal.confirm({
       this.$Modal.confirm({
         title: '警告',
         title: '警告',
@@ -915,7 +917,6 @@ export default {
     },
     },
 
 
     onChangeName(params) {
     onChangeName(params) {
-      console.log(params);
       if (params.eventType == 'blur') {
       if (params.eventType == 'blur') {
         let data = {
         let data = {
           name: params.newName,
           name: params.newName,
@@ -932,7 +933,6 @@ export default {
     },
     },
 
 
     onAddNode(params) {
     onAddNode(params) {
-      console.log(params);
       // this.$router.push({
       // this.$router.push({
       //   path: '/admin/setting/system_out_interface/add',
       //   path: '/admin/setting/system_out_interface/add',
       //   query: {
       //   query: {

+ 0 - 2
template/admin/src/pages/system/backendRouting/request.js

@@ -39,8 +39,6 @@ service.interceptors.request.use(
     if (token || kefuToken) {
     if (token || kefuToken) {
       config.headers['Authori-zation'] = config.kefu ? 'Bearer ' + kefuToken : 'Bearer ' + token;
       config.headers['Authori-zation'] = config.kefu ? 'Bearer ' + kefuToken : 'Bearer ' + token;
     }
     }
-    console.log('请求了', config);
-
     return config;
     return config;
   },
   },
   (error) => {
   (error) => {

+ 0 - 1
template/admin/src/pages/system/codeGeneration/components/FoundationFor.vue

@@ -251,7 +251,6 @@ export default {
     },
     },
     getCrudMenus() {
     getCrudMenus() {
       crudMenus().then((res) => {
       crudMenus().then((res) => {
-        console.log(res);
         this.menusList = res.data;
         this.menusList = res.data;
       });
       });
       crudColumnType().then((res) => {
       crudColumnType().then((res) => {

+ 0 - 3
template/admin/src/pages/system/codeGeneration/components/TableForm.vue

@@ -228,10 +228,7 @@ export default {
       this.optionsModal = true;
       this.optionsModal = true;
     },
     },
     addOptions() {
     addOptions() {
-      console.log(this.optionsList);
       this.$set(this.tableField[this.index], 'options', this.optionsList);
       this.$set(this.tableField[this.index], 'options', this.optionsList);
-      // this.tableField[this.index].options = this.optionsList;
-      console.log(this.tableField[this.index].options);
     },
     },
     changeRadio(status) {
     changeRadio(status) {
       this.tableField = [];
       this.tableField = [];

+ 0 - 1
template/admin/src/pages/system/codeGeneration/index.vue

@@ -118,7 +118,6 @@ export default {
       this.currentTab--;
       this.currentTab--;
     },
     },
     addRow() {
     addRow() {
-      console.log(this.formItem);
       let foundation = this.formItem.foundation;
       let foundation = this.formItem.foundation;
       if (!foundation.tableName) return this.$Message.warning('请先填写表名');
       if (!foundation.tableName) return this.$Message.warning('请先填写表名');
       let data = {
       let data = {

+ 2 - 11
template/admin/src/pages/system/codeGeneration/list.vue

@@ -259,15 +259,9 @@ export default {
         var postURL = Setting.apiBaseURL + '/system/crud/npm?token=' + getCookies('token');
         var postURL = Setting.apiBaseURL + '/system/crud/npm?token=' + getCookies('token');
         this.source = new EventSource(postURL);
         this.source = new EventSource(postURL);
         let self = this; //因EventSource中this的指向变了,所以要提前存储一下
         let self = this; //因EventSource中this的指向变了,所以要提前存储一下
-        this.source.onopen = function (res) {
-          console.log('项目链接Eventsource成功', res);
-        };
-        this.source.onmessage = function (data) {
-          //代码块
-          console.log(data);
-        };
+        this.source.onopen = function (res) {};
+        this.source.onmessage = function (data) {};
         this.source.onerror = function (err) {
         this.source.onerror = function (err) {
-          console.log('项目Eventsource链接失败', err);
           //链接失败后EventSource会每隔三秒左右重新发起链接
           //链接失败后EventSource会每隔三秒左右重新发起链接
         };
         };
       } else {
       } else {
@@ -331,7 +325,6 @@ export default {
     },
     },
     // 编辑
     // 编辑
     edit(row) {
     edit(row) {
-      console.log(row);
       this.spinShow = true;
       this.spinShow = true;
       // 创建代码容器
       // 创建代码容器
       this.title = row.name;
       this.title = row.name;
@@ -350,7 +343,6 @@ export default {
     //打开文件
     //打开文件
     openfile(id) {
     openfile(id) {
       try {
       try {
-        console.log(id);
         this.editId = id;
         this.editId = id;
         let that = this;
         let that = this;
         this.editorIndex = [];
         this.editorIndex = [];
@@ -401,7 +393,6 @@ export default {
     initEditor(index, conetnt) {
     initEditor(index, conetnt) {
       try {
       try {
         let that = this;
         let that = this;
-        console.log('111');
         that.$nextTick(() => {
         that.$nextTick(() => {
           // 初始化编辑器,确保dom已经渲染
           // 初始化编辑器,确保dom已经渲染
           that.editor = monaco.editor.create(document.getElementById('container_' + index), {
           that.editor = monaco.editor.create(document.getElementById('container_' + index), {

+ 0 - 1
template/admin/src/pages/system/maintain/systemDatabackup/index.vue

@@ -256,7 +256,6 @@ export default {
       this.changeMarkData.mark = this.mark;
       this.changeMarkData.mark = this.mark;
       updateMark(this.changeMarkData).then((res) => {
       updateMark(this.changeMarkData).then((res) => {
         this.$Message.success(res.msg);
         this.$Message.success(res.msg);
-        console.log(this.rows);
         if (this.changeMarkData.is_field) {
         if (this.changeMarkData.is_field) {
           this.Info({ name: this.changeMarkData.table, comment: this.rows.comment });
           this.Info({ name: this.changeMarkData.table, comment: this.rows.comment });
         } else {
         } else {

+ 0 - 1
template/admin/src/pages/system/maintain/systemFile/opendir.vue

@@ -356,7 +356,6 @@ export default {
       this.getList(false, false);
       this.getList(false, false);
     },
     },
     jumpRoute(item) {
     jumpRoute(item) {
-      console.log
       let data = {
       let data = {
         path: item.route,
         path: item.route,
         filename: '',
         filename: '',

+ 0 - 1
template/admin/src/pages/user/grade/card/index.vue

@@ -377,7 +377,6 @@ export default {
         });
         });
     },
     },
     onSubmit2(formData) {
     onSubmit2(formData) {
-      console.log('1')
       memberBatchSetValue(formData.id, {
       memberBatchSetValue(formData.id, {
         field: 'title',
         field: 'title',
         value: formData.title,
         value: formData.title,

+ 0 - 1
template/admin/src/pages/user/list/index.vue

@@ -938,7 +938,6 @@ export default {
       if (str.length > 10) {
       if (str.length > 10) {
         //如果字符长度超过10,后面的字符就变成...可自行调整长度和代替字符
         //如果字符长度超过10,后面的字符就变成...可自行调整长度和代替字符
         str = str.substr(0, 10) + '...'; //截取从第一个字符开始,往后取10个字符,剩余的用...代替
         str = str.substr(0, 10) + '...'; //截取从第一个字符开始,往后取10个字符,剩余的用...代替
-        //console.log(str);  // 'js字符超出指定个数...'
       }
       }
       return str;
       return str;
     },
     },

+ 0 - 3
template/admin/src/utils/upload.js

@@ -9,14 +9,11 @@ export const uploadByPieces = ({ file, pieceSize = 2, success, error, uploading
   // 获取md5
   // 获取md5
   const readFileMD5 = () => {
   const readFileMD5 = () => {
     // 读取视频文件的md5
     // 读取视频文件的md5
-    console.log('获取文件的MD5值');
     let fileRederInstance = new FileReader();
     let fileRederInstance = new FileReader();
-    console.log('file', file);
     fileRederInstance.readAsBinaryString(file);
     fileRederInstance.readAsBinaryString(file);
     fileRederInstance.addEventListener('load', (e) => {
     fileRederInstance.addEventListener('load', (e) => {
       let fileBolb = e.target.result;
       let fileBolb = e.target.result;
       fileMD5 = md5(fileBolb);
       fileMD5 = md5(fileBolb);
-      console.log('fileMD5', fileMD5);
       console.log('文件未被上传,将分片上传');
       console.log('文件未被上传,将分片上传');
       readChunkMD5();
       readChunkMD5();
     });
     });