Przeglądaj źródła

上报分公司

sunyize 2 lat temu
rodzic
commit
b2a453a4a5

+ 12 - 1
src/views/dashboard/IndexChart2.vue

@@ -202,7 +202,7 @@
 
   import Trend from '@/components/Trend'
   import { getLoginfo,getVisitInfo } from '@/api/api'
-  import { httpAction, getAction } from '@api/manage'
+  import { httpAction, getAction, postAction } from '@api/manage'
 
   const rankList = []
   for (let i = 0; i < 7; i++) {
@@ -366,6 +366,7 @@
         this.loading = !this.loading
       }, 1000)
       this.initLogInfo();
+      this.getMesFirst();
     },
     methods: {
       initLogInfo () {
@@ -385,6 +386,16 @@
         this.getMsgList();
         this.getMainTaskList();
       },
+
+      getMesFirst(){
+        let httpUrl = '/sys/loginFirst';
+        let params = {};
+        getAction(httpUrl, params).then((res) => {
+          if (!res.success) {
+            this.$message.error( res.message);
+          }
+        })
+      },
       getMsgList() {
         let httpUrl = '/sys/sysAnnouncementSend/getMyAnnouncementSend?pageNo=1&pageSize=5';
         let params = {};

+ 14 - 12
src/views/networkAccess/userStatistics.vue

@@ -187,7 +187,9 @@
               <a-divider type="vertical"/>
             </span>
               <span v-has="'userStatistics:list:upCom'" v-show=" currentTab != 'del'">
-              <a @click="showImproveAndUploadAdminCom(record,'1')">上报分公司</a>
+                 <span  v-if="record.numberResults.indexOf('1')!==-1" ><a style='pointer-events:none;color: #9e9e9e' @click="showImproveAndUploadAdminCom(record,'1')">上报分公司</a> </span>
+                <span v-else><a   @click="showImproveAndUploadAdminCom(record,'1')">上报分公司</a> </span>
+
               <a-divider type="vertical"/>
             </span>
 
@@ -417,6 +419,15 @@ export default {
           width: 200,
           dataIndex: 'newPhone',
           scopedSlots: {customRender: 'newPhone'}
+        },{
+          title: '当前处理部门',
+          align: "center",
+          sorter: true,
+          dataIndex: 'currentDept',
+          //  fixed: 'right',
+
+          //scopedSlots: {customRender: 'sysBusinessHall'}
+
         },
         {
           title: '研判结果',
@@ -434,28 +445,19 @@ export default {
             }
             return '';
           }*/
-        },{
-          title: '当前处理部门',
-          align: "center",
-          sorter: true,
-          dataIndex: '',
-          fixed: 'right',
-          scopedSlots: {customRender: 'current'}
-          //scopedSlots: {customRender: 'sysBusinessHall'}
-
         },{
           title: '上报状态',
           align: "center",
           sorter: true,
           dataIndex: 'status',
-          fixed: 'right',
+       //   fixed: 'right',
           scopedSlots: {customRender: 'status'}
         },
         {
           title: '操作',
           dataIndex: 'action',
           align: "center",
-          fixed: 'right',
+      //    fixed: 'right',
           scopedSlots: {customRender: 'action'}
         }
       ],