Просмотр исходного кода

fix:调整以往运行记录添加按钮顺序

liujiayin 2 лет назад
Родитель
Сommit
845ad37d84
1 измененных файлов с 2 добавлено и 9 удалено
  1. 2 9
      src/views/infosManage/fileIE.vue

+ 2 - 9
src/views/infosManage/fileIE.vue

@@ -242,7 +242,7 @@ export default {
             let start = ''
             //   console.log('this.$store.getters',this.$store.getters)
             const positionsDatas = this.$store.getters.userInfo.positions
-            console.log('getters1111', this.$store.getters)
+            console.log('getters1111')
             const needSelType = []
             if (this.$store.getters.userInfo.positions == 0) {
                 this.$message({
@@ -251,8 +251,6 @@ export default {
                 })
                 return
             }
-            console.log('33333333333', this.searchWhere)
-
             for (var i in this.searchWhere) {
                 if (i == 'b') {
                     start = this.searchWhere[i]
@@ -262,8 +260,6 @@ export default {
                     wheres2 = wheres2 + ` and bian_zhi_shi_jian between '${start} 00:00:00' and '${this.searchWhere[i]} 23:59:59'`
                     wheres3 = wheres3 + ` and bian_zhi_shi_jian between '${start} 00:00:00' and '${this.searchWhere[i]} 23:59:59'`
                 }
-                console.log('iiiii22222222', i)
-
                 if (i !== 'i' && i !== 'b') {
                     const likeWhere = i === 'nian_du_' ? this.searchWhere[i].getFullYear() : this.searchWhere[i]
                     wheres1 = wheres1 + ` and wj.${i} like '%${likeWhere}%'`
@@ -383,7 +379,7 @@ export default {
                     return el.key === 'add'
                 })
                 if (chongfu.length === 0 && this.depth !== 0) {
-                    this.listConfig.toolbars.push({ key: 'add' })
+                    this.listConfig.toolbars.splice(1, 0, { key: 'add' })
                 }
             } else {
                 this.listConfig.toolbars = this.listConfig.toolbars.filter(el => {
@@ -458,9 +454,6 @@ export default {
                     this.refreshData()
                     break
                 case 'remove':
-                    console.log('selection', selection)
-                    console.log('data', data)
-
                     if (data.length == 0) {
                         this.$message({
                             message: '请选择数据再进行删除',