houyaf 3 年之前
父节点
当前提交
b3565c8544
共有 3 个文件被更改,包括 13 次插入13 次删除
  1. 8 8
      src/views/customer/ent/index.vue
  2. 4 4
      src/views/customer/org/index.vue
  3. 1 1
      src/views/customer/partner/index.vue

+ 8 - 8
src/views/customer/ent/index.vue

@@ -160,35 +160,35 @@ function onPasswordReset(row: { ocId: number; adminId: number; adminName: string
           </template>
         </el-table-column>
 
-        <el-table-column align="center" label="状态" width="120">
+        <el-table-column align="center" label="License控制" width="120">
           <template #default="scope">
-            <div v-if="scope.row.isFixed !== 1">
+            <div>
               <el-switch
-                v-model="scope.row.status"
+                v-model="scope.row.ifLic"
                 :active-value="1"
                 :inactive-value="0"
                 :loading="scope.row.loading"
                 inline-prompt
                 active-text="启用"
                 inactive-text="禁用"
-                @change="() => onStatusChange(scope.row.status, scope.row)"
+                @change="() => onLicStatusChange(scope.row.ifLic, scope.row)"
               />
             </div>
           </template>
         </el-table-column>
 
-        <el-table-column align="center" label="License控制" width="120">
+        <el-table-column align="center" label="状态" width="120">
           <template #default="scope">
-            <div>
+            <div v-if="scope.row.isFixed !== 1">
               <el-switch
-                v-model="scope.row.ifLic"
+                v-model="scope.row.status"
                 :active-value="1"
                 :inactive-value="0"
                 :loading="scope.row.loading"
                 inline-prompt
                 active-text="启用"
                 inactive-text="禁用"
-                @change="() => onLicStatusChange(scope.row.status, scope.row)"
+                @change="() => onStatusChange(scope.row.status, scope.row)"
               />
             </div>
           </template>

+ 4 - 4
src/views/customer/org/index.vue

@@ -160,14 +160,14 @@ function onPasswordReset(row: { ocId: number; adminId: number; adminName: string
           <template #default="scope">
             <div v-if="scope.row.isFixed !== 1">
               <el-switch
-                v-model="scope.row.status"
+                v-model="scope.row.ifLic"
                 :active-value="1"
                 :inactive-value="0"
                 :loading="scope.row.loading"
                 inline-prompt
                 active-text="启用"
                 inactive-text="禁用"
-                @change="(status) => onStatusChange(scope.row.status, scope.row)"
+                @change="(status) => onLicStatusChange(scope.row.ifLic, scope.row)"
               />
             </div>
           </template>
@@ -177,14 +177,14 @@ function onPasswordReset(row: { ocId: number; adminId: number; adminName: string
           <template #default="scope">
             <div v-if="scope.row.isFixed !== 1">
               <el-switch
-                v-model="scope.row.ifLic"
+                v-model="scope.row.status"
                 :active-value="1"
                 :inactive-value="0"
                 :loading="scope.row.loading"
                 inline-prompt
                 active-text="启用"
                 inactive-text="禁用"
-                @change="(status) => onLicStatusChange(scope.row.status, scope.row)"
+                @change="(status) => onStatusChange(scope.row.status, scope.row)"
               />
             </div>
           </template>

+ 1 - 1
src/views/customer/partner/index.vue

@@ -164,7 +164,7 @@ function onPasswordReset(row: { ocId: number; adminId: number; adminName: string
                 inline-prompt
                 active-text="启用"
                 inactive-text="禁用"
-                @change="(status) => onLicStatusChange(scope.row.status, scope.row)"
+                @change="(status) => onLicStatusChange(scope.row.ifLic, scope.row)"
               />
             </div>
           </template>