lilei 2 năm trước cách đây
mục cha
commit
2db31861d1

+ 16 - 2
src/views/common/dingDepartUser.js

@@ -116,11 +116,25 @@ const DingDepartUser = {
     },
     // 更新人员数据
     updateDeptUser(){
+      const _this = this
       refashDingTalkAllDeptUser().then(res => {
-        this.$message.info(res.message)
         if(res.status == 200){
           this.treeData = []
-          this.genTreeNode()
+          // this.genTreeNode()
+          const h = this.$createElement;
+          this.$info({
+            title: '提示',
+            centered: true,
+            content: h('div', {}, [
+              h('p', '数据正在刷新中...'),
+              h('p', '请10分钟后重新进行提交操作!'),
+            ]),
+            onOk() {
+              _this.$emit("close")
+            },
+          });
+        }else{
+          this.$message.error(res.message)
         }
         this.$emit("loaded")
       })

+ 3 - 2
src/views/expenseManagement/expenseReimbursement/chooseDepartUserModal.vue

@@ -4,7 +4,7 @@
     class="departUser-modal"
     :footer="null"
     :maskClosable="false"
-    :title="title+'费用明细'"
+    :title="title+'选择审批人员'"
     v-model="isShow"
     @cancle="isShow=false"
     width="60%">
@@ -22,6 +22,7 @@
               <dingDepartUser
                 ref="departUserApp"
                 @loaded="uploading=false"
+                @close="isShow=false"
                 id="departUser-approvers"
                 :disabled="uploading"
                 v-model="form.approvers"
@@ -92,7 +93,7 @@ export default {
     updateUser () {
       this.uploading = true
       this.$refs.departUserApp.updateDeptUser()
-      this.$refs.departUserCc.updateDeptUser()
+      // this.$refs.departUserCc.updateDeptUser()
     },
     changeApprovers (value) {
       this.form.approvers = value

+ 1 - 1
vue.config.js

@@ -107,7 +107,7 @@ const vueConfig = {
     // If you want to turn on the proxy, please remove the mockjs /src/main.jsL11
     proxy: {
       '/api': {
-        target: 'http://192.168.0.215/ocs-admin',
+        target: 'http://192.168.0.183:8602/ocs-admin',
         // target: 'https://t.ocs.360arrow.com/ocs-admin', //  Á·Ï°
         // target: 'http://p.ocs.360arrow.com/ocs-admin', //  Ô¤·¢²¼
         ws: false,