coys 2 anni fa
parent
commit
7a73d5d142

+ 5 - 2
src/views/menu/monitoringCall/index.vue

@@ -155,7 +155,10 @@ export default {
     }
   },
   mounted() {
-    this.cascaderValue = JSON.parse(window.sessionStorage.getItem('SET_USER_ORGID')) + ''
+    setTimeout(() => {
+      this.cascaderValue = JSON.parse(window.sessionStorage.getItem('SET_USER_ORGID')) + ''
+    }, 1000)
+    
     this.init()
   },
   methods: {
@@ -228,7 +231,7 @@ export default {
         pageNum: this.pageNum,
         pageSize: 10,
         status: this.str || '',
-        orgId: this.cascaderValue || '',
+        orgId: this.cascaderValue ||JSON.parse(window.sessionStorage.getItem('SET_USER_ORGID'))+''|| '',
         moth: this.currentDate || ''
       }).then(res => {
         let { code, rows, msg } = res

+ 1 - 1
src/views/menu/training/components/personnelSignature.vue

@@ -139,7 +139,7 @@ export default {
         .then(res => {
           console.log(process.env.NODE_ENV);
           /*上传成功*/
-          let imgUrl = process.env.NODE_ENV === 'development' ?  res.data.url : window.origin + res.data.url
+          let imgUrl = process.env.NODE_ENV === 'development' ?  res.data.url :  res.data.url
          this.submitSign(imgUrl)
           
           // this.$emit("imgUrl", res.data.url);

+ 11 - 11
src/views/menu/training/index.vue

@@ -1,12 +1,11 @@
 <template>
   <div>
     <div class="topBox">
-      <NavBar :go="{type:'push',path:'/menu'}" />
+      <NavBar :go="{ type: 'push', path: '/menu' }" />
 
       <van-row>
         <van-col span="24">
           <org-tree v-model="cascaderValue" :name="'sss'" @changeItem="getDataList"></org-tree>
-         
         </van-col>
       </van-row>
       <van-row>
@@ -229,9 +228,10 @@ export default {
     this.presentDate = new Date(+newDateMonth().split('-')[0], +newDateMonth().split('-')[1] - 1)
   },
   mounted() {
-    this.cascaderValue = JSON.parse(window.sessionStorage.getItem('SET_USER_ORGID')) + ''
-    console.log(this.cascaderValue)
     this.init()
+    setTimeout(() => {
+      this.cascaderValue = JSON.parse(window.sessionStorage.getItem('SET_USER_ORGID')) + ''
+    }, 1000)
   },
   methods: {
     //机构搜索
@@ -294,7 +294,7 @@ export default {
       })
       if (date > endDate) {
         //当前时间大于结束时间表示已超期
-      
+
         timefalg = false
         falg = false
       }
@@ -544,14 +544,14 @@ export default {
 .topBox {
   overflow: hidden;
 }
-:deep.van-field--disabled{
+:deep.van-field--disabled {
+  color: #323233;
+}
+:deep.van-field--disabled .van-field__label {
   color: #323233;
 }
-:deep.van-field--disabled .van-field__label{
+:deep .van-field__control[disabled] {
   color: #323233;
+  -webkit-text-fill-color: #323233;
 }
-:deep .van-field__control[disabled]{
-			color: #323233;
-			-webkit-text-fill-color: #323233;
-		}
 </style>