Преглед изворни кода

权限按钮调整、组织架构判读企业微信用户调整

Lijy пре 2 година
родитељ
комит
b139c9fbb8

+ 5 - 2
fhKeeper/formulahousekeeper/timesheet/src/views/quanx/quanx.vue

@@ -85,7 +85,7 @@
                 </el-form>
             </div>
             <span slot="footer" class="dialog-footer">
-              <el-button type="primary" @click="saveList()">{{ $t('save') }}</el-button>
+              <el-button type="primary" @click="saveList()" :loading="saveListDialogVisible">{{ $t('save') }}</el-button>
             </span>
         </el-dialog>
         <!-- 添加角色弹窗 -->
@@ -134,6 +134,7 @@ export default {
   },
   data() {
     return {
+        saveListDialogVisible: false,
         user: JSON.parse(sessionStorage.getItem("user")),
         tableData: [],
         total: 0,
@@ -438,12 +439,13 @@ export default {
       },
       saveList() {
         this.dialogVisible = false
-        console.log(this.moduleList)
+        this.saveListDialogVisible = true
         this.http.post('/permission/savePermission', {
             role: this.roles,
             moduleList: JSON.stringify(this.moduleList),
           },
           res => {
+              this.saveListDialogVisible = false
               if (res.code == "ok") {
                 this.$message({
                       message: this.$t('operationissuccessful'),
@@ -458,6 +460,7 @@ export default {
               }
           },
           error => {
+              this.saveListDialogVisible = false
               this.$message({
                   message: error,
                   type: "error"

+ 1 - 1
fhKeeper/formulahousekeeper/timesheet/src/views/team/index.vue

@@ -3638,7 +3638,7 @@ export default {
     if(this.user.dingdingUserid != null || this.user.corpwxUserid != null){
       this.getRecordMsg()
     }
-    if(this.user.corpwxUserid != null) {
+    if(this.user.corpwxUserid != null && this.user.timeType.saasSyncContact == 1) {
       this.getWxManager()
     }
     // 获取企业微信的参数