zhaoke 2 éve
szülő
commit
7d381a9cde
2 módosított fájl, 15 hozzáadás és 15 törlés
  1. 1 2
      src/views/newRole/index.vue
  2. 14 13
      src/views/upload/index.vue

+ 1 - 2
src/views/newRole/index.vue

@@ -197,7 +197,7 @@ export default {
   methods: {
     //获取tree数据
     async setTreeData () {
-      const { code, returnData } = await this.getQueryList(SERVICE_ID.sysAuthId)
+      const { code, returnData } = await this.getQueryList(SERVICE_ID.sysAuthId, { user_id: getToken('userid') })
       if (code == 0) {
         const treeMenu = listToTree(returnData, 'up_auth_id', 'auth_id')
         this.treeData[0].children = treeMenu
@@ -270,7 +270,6 @@ export default {
     },
     //获取角色已有权限
     async getRoleQuth (item) {
-      console.log(item)
       this.$refs.tree.setCheckedKeys([])
       const newItem = _.cloneDeep(item)
       const newObj = {}

+ 14 - 13
src/views/upload/index.vue

@@ -38,7 +38,7 @@
         <div class="manageTitle">{{ title2 }}</div>
         <div class="upload-header-right">
           <el-date-picker v-model="flightDate" size="small" type="daterange" value-format="yyyy-MM-dd" start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="dateRangePickerOptions" :clearable="false" />
-          <el-button class="btn-refresh" type="primary" icon="el-icon-refresh" @click="getTableData" />
+          <el-button class="btn-refresh" type="primary" icon="el-icon-refresh" @click="getStateData" />
         </div>
       </header>
       <main class="upload-main">
@@ -101,7 +101,7 @@
 
 <script>
 import { parseTime } from '@/utils'
-import { UploadFile, WhatQuery, stateQuery } from '@/api/temp'
+import { UploadFile, WhatQuery } from '@/api/temp'
 import NoData from '@/components/nodata/index.vue'
 
 const acceptTypes = ['xlsx', 'xls']
@@ -202,15 +202,15 @@ export default {
       }
     }
   },
-  watch: {
-    flightDate: {
-      handler () {
-        this.getTableData()
-      },
-      deep: true,
-      immediate: true,
-    },
-  },
+  // watch: {
+  //   flightDate: {
+  //     handler () {
+  //       this.getTableData()
+  //     },
+  //     deep: true,
+  //     immediate: true,
+  //   },
+  // },
   created () {
     this.getStateData()
   },
@@ -297,6 +297,7 @@ export default {
         }
         this.$message.success(`${file.name} 上传成功`)
         this.setState(file, 1)
+        this.getStateData()
       } catch (error) {
         this.$message.error(`${file.name} 上传失败`)
         this.setState(file, 2)
@@ -341,7 +342,7 @@ export default {
         const {
           code,
           returnData: { listValues },
-        } = await stateQuery({
+        } = await WhatQuery({
           id: SERVICE_ID.expressTransportation,
           dataContent: cid ? [cid] : dataContent,
         })
@@ -360,7 +361,7 @@ export default {
         const {
           code,
           returnData: { listValues },
-        } = await stateQuery({
+        } = await WhatQuery({
           id: SERVICE_ID.expressTransportationNum,
           dataContent: [],
         })