瀏覽代碼

refactor🎨: 清理无效的打印

zhangwenjian 4 年之前
父節點
當前提交
00c3a49a6f

+ 0 - 8
src/App.vue

@@ -19,11 +19,3 @@ var _hmt = _hmt || [];
 })();
 </script>
 
-<style lang="scss">
-  // .el-dialog__wrapper{
-  //   display: flex;
-  //   justify-content: center;
-  //   align-items: center;
-  // }
-</style>
-

+ 0 - 2
src/components/FileManage/Left.vue

@@ -127,7 +127,6 @@ export default {
               status: true,
               node: this.rightData.currentData
             }
-            console.log(this.rename)
           }
         },
         {
@@ -216,7 +215,6 @@ export default {
         node: ''
       }
       d.label = this.$refs.nodeInput.value
-      console.log(d)
       sysfiledirAcionEdit({
         id: d.id,
         label: d.label,

+ 0 - 3
src/components/FileManage/Right.vue

@@ -383,8 +383,6 @@ export default {
       this.uploadShow = false
     },
     handleTableAction(a, b) {
-      console.log(typeof b)
-      console.log(a)
       this.rightData.currentData = a
       this.handleAction(b)
     },
@@ -444,7 +442,6 @@ export default {
       }
     },
     handleBlur(a, b) {
-      console.log(a, b)
       if (this.tableData.length > 0) {
         this.tableData.forEach(item => {
           item.open = false

+ 0 - 4
src/components/FormGenParser/Parser.vue

@@ -97,7 +97,6 @@ function renderChildren(h, scheme) {
 }
 
 function setValue(event, config, scheme) {
-  // console.log('config', config)
   this.$set(config, 'defaultValue', event)
   this.$set(this[this.formConf.formModel], scheme.__vModel__, event)
 }
@@ -146,7 +145,6 @@ export default {
     initFormData(componentList, formData) {
       componentList.forEach(cur => {
         const config = cur.__config__
-        console.log('initFormData', config)
         if (cur.__vModel__) formData[cur.__vModel__] = config.defaultValue
 
         if (config.children) this.initFormData(config.children, formData)
@@ -180,8 +178,6 @@ export default {
       this.$refs[this.formConf.formRef].resetFields()
     },
     submitForm() {
-      console.log('sub', this.$refs[this.formConf.formRef])
-      console.log('refs', this.$refs['upload'])
       this.$refs[this.formConf.formRef].validate(valid => {
         if (!valid) return false
         // 触发sumit事件

+ 0 - 1
src/components/Tinymce/components/EditorImage.vue

@@ -41,7 +41,6 @@ export default {
     },
     handleFileConfirm(e) {
       this.dialogVisible = false
-      console.log(e)
       this.$emit('successCBK', e)
     }
   }

+ 0 - 1
src/components/Tinymce/index.vue

@@ -203,7 +203,6 @@ export default {
     imageSuccessCBK(arr) {
       const _this = this
       arr.forEach(v => {
-        console.log(v)
         window.tinymce.get(_this.tinymceId).insertContent(`<img class="wscnph" width="100%" src="${v.fullUrl}" >`)
       })
     }

+ 0 - 1
src/components/TopNav/index.vue

@@ -50,7 +50,6 @@ export default {
     },
     // 所有的路由信息
     routers() {
-      console.log(this.$store.state)
       return this.$store.state.permission.topbarRouters
     },
     // 设置子路由

+ 0 - 1
src/layout/components/TagsView/ScrollPane.vue

@@ -26,7 +26,6 @@ export default {
       $scrollWrapper.scrollLeft = $scrollWrapper.scrollLeft + eventDelta / 4
     },
     moveToTarget(currentTag) {
-      console.log(currentTag)
       const $container = this.$refs.scrollContainer.$el
       const $containerWidth = $container.offsetWidth
       const $scrollWrapper = this.scrollWrapper

+ 5 - 0
src/main.js

@@ -76,6 +76,11 @@ Vue.use(VueDND)
 
 import 'remixicon/fonts/remixicon.css'
 
+console.info(`欢迎使用go-admin,谢谢您对我们的支持,在使用过程中如果有什么问题,
+请访问https://github.com/go-admin-team/go-admin 或者
+ https://github.com/go-admin-team/go-admin-ui 向我们反馈,
+ 谢谢!`)
+
 // register global utility filters
 Object.keys(filters).forEach(key => {
   Vue.filter(key, filters[key])

+ 5 - 5
src/store/modules/permission.js

@@ -118,11 +118,11 @@ const mutations = {
   },
   SET_TOPBAR_ROUTES: (state, routes) => {
     // 顶部导航菜单默认添加统计报表栏指向首页
-    const index = [{
-      path: 'index',
-      meta: { title: '统计报表', icon: 'dashboard' }
-    }]
-    state.topbarRouters = routes.concat(index)
+    // const index = [{
+    //   path: 'dashboard',
+    //   meta: { title: '统计报表', icon: 'dashboard' }
+    // }]
+    state.topbarRouters = routes // .concat(index)
   },
   SET_SIDEBAR_ROUTERS: (state, routes) => {
     state.sidebarRouters = routes

+ 0 - 1
src/store/modules/settings.js

@@ -24,7 +24,6 @@ const mutations = {
 
 const actions = {
   changeSetting({ commit }, data) {
-    console.log(data)
     commit('CHANGE_SETTING', data)
   }
 }

+ 0 - 1
src/utils/index.js

@@ -12,7 +12,6 @@ export function parseTime(time, cFormat) {
   if (arguments.length === 0) {
     return null
   }
-  console.log(time_str.indexOf('01-01-01'))
   if (time_str.indexOf('01-01-01') > -1) {
     return '-'
   }

+ 0 - 1
src/views/admin/sys-config/set.vue

@@ -285,7 +285,6 @@ export default {
       var list = []
       var i = 0
       for (var key in data) {
-        console.log(data[key])
         list[i] = { 'configKey': key, 'configValue': data[key] }
         i++
       }

+ 0 - 5
src/views/dev-tools/gen/editTable.vue

@@ -277,8 +277,6 @@ export default {
       ])
     },
     handleChangeConfig(row, index) {
-      console.log(row)
-      console.log(index)
       this.tableTree.filter(function(item) {
         if (item.tableName === row.fkTableName) {
           row.fkCol = item.columns
@@ -295,7 +293,6 @@ export default {
         const validateResult = res.every(item => !!item)
         if (validateResult) {
           const genTable = Object.assign({}, basicForm.model, genForm.model)
-          console.log(this.columns)
           genTable.columns = this.columns
           genTable.params = {
             treeCode: genTable.treeCode,
@@ -321,8 +318,6 @@ export default {
         this.tableTree = response.data
         this.tableTree.unshift({ tableId: 0, className: '请选择' })
       })
-
-      console.log(this.tableList)
     },
     getTablesCol(tableName) {
       return this.tableTree.filter(function(item) {

+ 0 - 1
src/views/schedule/index.vue

@@ -461,7 +461,6 @@ export default {
     },
     /** 提交按钮 */
     submitForm: function() {
-      console.log(this.form)
       this.$refs['form'].validate(valid => {
         if (valid) {
           if (this.form.jobId !== undefined) {