Browse Source

'修复账号弹框中clockWayType的判断问题'

hjs 1 year ago
parent
commit
4f7b948010
2 changed files with 12 additions and 20 deletions
  1. 1 1
      src/views/basic_setup/index.vue
  2. 11 19
      src/views/user_manage/index.vue

+ 1 - 1
src/views/basic_setup/index.vue

@@ -584,7 +584,7 @@ export default {
         isPush: 0,
         cardPhysics: 2,
         clockWayPushUrl: null,
-        clockWayType: 0,
+        clockWayType: '0',
         openThirdLinkPlatform: false,
         whiteVisitorType: ["1", "2"],
         nucleicExpirationTime: null,

+ 11 - 19
src/views/user_manage/index.vue

@@ -209,12 +209,8 @@
       </el-table-column>
       <el-table-column class-name="status-col" label="权限级别" align="center">
         <template slot-scope="scope">
-          <el-tag v-show="scope.row.type === 1" effect="dark" type="success"
-            >超级管理员</el-tag
-          >
-          <el-tag v-show="scope.row.type === 2" effect="dark" type=""
-            >省级超管员</el-tag
-          >
+          <el-tag v-show="scope.row.type === 1" effect="dark" type="success">超级管理员</el-tag>
+          <el-tag v-show="scope.row.type === 2" effect="dark" type="">省级超管员</el-tag>
           <el-tag v-show="scope.row.type === 3" type="">省级管理员</el-tag>
           <el-tag v-show="scope.row.type === 4" type="">市级管理员</el-tag>
           <el-tag v-show="scope.row.type === 5" type="">区级管理员</el-tag>
@@ -222,21 +218,17 @@
       </el-table-column>
       <el-table-column class-name="status-col" label="账号类别" align="center">
         <template slot-scope="scope">
-          <el-tag effect="plain" type="success" v-if="scope.row.tagName">{{
-            scope.row.tagName
-          }}</el-tag>
-          <el-tag effect="dark" type="success" v-else>省级超管</el-tag>
+          <el-tag v-if="scope.row.tagName" effect="plain" type="success">
+            {{ scope.row.tagName }}
+          </el-tag>
+          <el-tag v-else effect="dark" type="success">省级超管</el-tag>
         </template>
       </el-table-column>
       <el-table-column class-name="status-col" label="导出权限" align="center">
         <template slot-scope="scope">
-          <el-tag effect="plain" type="success" v-if="scope.row.isOut == 1"
-            >开启</el-tag
-          >
-          <el-tag effect="plain" type="info" v-else-if="scope.row.isOut == 2"
-            >停用</el-tag
-          >
-          <el-tag effect="plain" type="info" v-else>未知</el-tag>
+          <el-tag v-if="scope.row.isOut == 1" effect="plain" type="success">开启</el-tag>
+          <el-tag v-else-if="scope.row.isOut == 2" effect="plain" type="info">停用</el-tag>
+          <el-tag v-else effect="plain" type="info">未知</el-tag>
         </template>
       </el-table-column>
       <el-table-column class-name="status-col" label="是否脱敏" align="center">
@@ -2129,11 +2121,11 @@ export default {
     },
     'user_form.clockWayType'(n) {
       // 选择钉钉或通用清除另一个
-      if (n !== 2) {
+      if (n !== '2') {
         this.user_form.dingtalkAppKey = ''
         this.user_form.dingtalkAppSecret = ''
       }
-      if (n !== 1) {
+      if (n !== '1') {
         this.user_form.clockWayPushUrl = null
         this.user_form.punchReportFieldsConfig = []
       }