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

fix: 车间管理去掉状态

wyf пре 1 година
родитељ
комит
09aa77e549

+ 4 - 4
src/types/scene/constant.ts

@@ -1,7 +1,7 @@
-export enum IS_DISABLED {
-  FALSE = 0,
-  TRUE = 1,
-}
+// export enum IS_DISABLED {
+//   FALSE = 0,
+//   TRUE = 1,
+// }
 
 export enum DATA_LEVEL {
   'company' = 0,

+ 3 - 3
src/types/scene/type.ts

@@ -177,7 +177,7 @@ export interface ComAddDatas {
   name: string; //公司名字
   parentId?: number; //上级公司id  无上级为0
   remark?: string; //描述
-  status?: number; //状态  0-启动  1-禁用
+  // isDisabled?: number; //状态  0-启动  1-禁用
   updatedAt?: string;
   serial?: number; //排序
   labelList?: string[]; //创建的多个场景标签   自定义后面需要修改 这里没
@@ -198,7 +198,7 @@ export interface WorkshopAddDatas {
   isDeleted?: number;
   name: string;
   remark?: string;
-  status?: number;
+  // isDisabled?: number; //状态  0-启动  1-禁用
   updatedAt?: string;
   serial?: number;
   parent?: null | WorkshopAddDatas;
@@ -219,7 +219,7 @@ export interface WorkspaceAddDatas {
   name: string;
   principal?: string; //工位负责人
   remark?: string;
-  status?: number;
+  // isDisabled?: number; //状态  0-启动  1-禁用
   serial?: number;
   updatedAt?: string;
   workshopId?: number; //车间id

+ 9 - 23
src/views/system-config/scene-manage/SceneManage.vue

@@ -104,36 +104,23 @@
   import WorkshopDrawer_shangfei from './components/WorkshopDrawer-shangfei.vue';
   import WorkspaceDrawer from './components/WorkspaceDrawer.vue';
   import WorkspaceDrawer_shangfei from './components/WorkspaceDrawer-shangfei.vue';
-  import { DrawerType, IS_DISABLED } from '@/types/scene/constant.ts';
+  import { DrawerType } from '@/types/scene/constant.ts';
   import SceneDialog from './components/SceneDialog.vue';
-  import {
-    colomns,
-    // updateSerials,
-    // findItemLevel,
-    // removeParent,
-    // flattenCodes,
-    // getParent,
-  } from './hook/use-table-method';
+  import { colomns } from './hook/use-table-method';
   import {
     delCompany,
     delWorkshop,
     delWorkspace,
     updateComShopSpaceTreeSort,
-    // updateComShopSpaceTreeSort,
   } from '@/api/scene/scene';
   import {
     ComTreeType,
-    // ComAddDatas,
-    // WorkshopAddDatas,
-    // WorkspaceAddDatas,
     UseComType,
     UseWorkshopType,
     UseWorkspaceType,
   } from '@/types/scene/type.ts';
   import useComTree from './store/use-com-tree';
-  // import useSceneTemplete from './hook/use-sence-templete';
   import { storeToRefs } from 'pinia';
-  // import { ElMessageBox } from 'element-plus';
   import { useGlobSetting } from '@/hooks/setting';
   import { ElMessageBox } from 'element-plus';
   import { cloneDeep } from 'lodash-es';
@@ -147,8 +134,7 @@
   const { comTreeData } = storeToRefs(comTree);
 
   const { getComTreeDetail } = comTree;
-  // const useSceneTempleteDetail = useSceneTemplete();
-  // const { sceneList, templateList, workshopTemplateList } = useSceneTempleteDetail;
+
   const expendRowKeys = ref(['']);
 
   const showDrawer = ref<DrawerType | null>(null);
@@ -196,7 +182,7 @@
   const companyAdd = () => {
     showDrawer.value = DrawerType.company;
     detail.value = {
-      isDisabled: IS_DISABLED.FALSE,
+      // isDisabled: IS_DISABLED.FALSE,
       name: '',
       // orderNum: comTreeData.value.length,
     };
@@ -260,7 +246,7 @@
         // 因为是添加车间所以没有id
         name: '',
         seniorScene: editedItem.value?.name,
-        isDisabled: IS_DISABLED.FALSE,
+        // isDisabled: IS_DISABLED.FALSE,
         companyId: editedItem.value?.id,
         // orderNum: editedItem.value?.children?.length,
       };
@@ -273,7 +259,7 @@
         code: '', // 上飞定制需要
         seniorScene: editedItem.value?.name,
         principalName: '',
-        isDisabled: IS_DISABLED.FALSE,
+        // isDisabled: IS_DISABLED.FALSE,
         workshopId: editedItem.value?.id,
         workshopCode: editedItem.value?.code, // 上飞定制需要
       };
@@ -291,7 +277,7 @@
         id: editedItem.value.id,
         name: editedItem.value.name,
         regionCode: editedItem.value.regionCode,
-        isDisabled: editedItem.value.isDisabled,
+        // isDisabled: editedItem.value.isDisabled,
         thumbnail: editedItem.value.thumbnail,
       };
     } else if (editedItem.value?.nodeType === DrawerType.workshop) {
@@ -300,7 +286,7 @@
         id: editedItem.value.id,
         name: editedItem.value.name,
         seniorScene: comTreeData.value.find((it) => it.id === editedItem.value?.companyId)!.name,
-        isDisabled: editedItem.value.isDisabled,
+        // isDisabled: editedItem.value.isDisabled,
       };
     } else if (editedItem.value?.nodeType === DrawerType.workspace) {
       const curWorkshop = comTreeData.value
@@ -313,7 +299,7 @@
         code: editedItem.value.code, // 上飞定制需要
         seniorScene: curWorkshop?.name,
         principalName: editedItem.value.principalName,
-        isDisabled: editedItem.value.isDisabled,
+        // isDisabled: editedItem.value.isDisabled,
         workshopCode: curWorkshop?.code, // 上飞定制需要
       };
     }

+ 10 - 10
src/views/system-config/scene-manage/components/CompanyDrawer-shangfei.vue

@@ -47,14 +47,14 @@
         <el-form-item label="备注" prop="remark">
           <el-input v-model="ruleForm.remark" style="width: 200px" />
         </el-form-item>
-        <el-form-item label="状态">
+        <!-- <el-form-item label="状态">
           <el-switch
             v-model="ruleForm.isDisabled"
             :active-value="IS_DISABLED.FALSE"
             :inactive-value="IS_DISABLED.TRUE"
             class="switchUse"
           />
-        </el-form-item>
+        </el-form-item> -->
       </el-form>
       <div style="position: absolute; left: 108px; bottom: 67px">
         <el-button v-if="!props.detail.id" @click="resetDrawCom">重置</el-button>
@@ -70,7 +70,7 @@
 <script setup lang="ts">
   import { computed, reactive, ref, defineProps, defineEmits, watch } from 'vue';
   import { addCompany, editCompany } from '@/api/scene/scene.ts';
-  import { IS_DISABLED } from '@/types/scene/constant.ts';
+  // import { IS_DISABLED } from '@/types/scene/constant.ts';
   import type { FormInstance, FormRules } from 'element-plus';
   import { getProvinceList } from '@/api/system/region';
   import { useRequest } from 'vue-hooks-plus';
@@ -79,7 +79,7 @@
     detail: {
       id?: number; // 传不传id关系到是不是修改
       name?: string;
-      isDisabled?: IS_DISABLED;
+      // isDisabled?: IS_DISABLED;
       remark?: string;
       longitude?: number; //经度
       latitude?: number; //纬度
@@ -111,12 +111,12 @@
     remark?: string; //备注
     longitude?: number; //经度
     latitude?: number; //纬度
-    isDisabled?: IS_DISABLED;
+    // isDisabled?: IS_DISABLED;
   }
 
   const ruleForm = reactive<RuleForm>({
     name: '上海飞机制造有限公司',
-    isDisabled: IS_DISABLED.FALSE,
+    // isDisabled: IS_DISABLED.FALSE,
     remark: '',
     longitude: undefined,
     latitude: undefined,
@@ -137,7 +137,7 @@
     () => props.detail,
     (data) => {
       // ruleForm.name = data.name!; //上飞定制不可变
-      ruleForm.isDisabled = data.isDisabled;
+      // ruleForm.isDisabled = data.isDisabled;
       ruleForm.remark = data.remark;
       ruleForm.latitude = data.latitude;
       ruleForm.longitude = data.longitude;
@@ -156,7 +156,7 @@
 
       const newComData = {
         name: ruleForm.name,
-        isDisabled: ruleForm.isDisabled,
+        // isDisabled: ruleForm.isDisabled,
         remark: ruleForm.remark,
         longitude: ruleForm.longitude,
         latitude: ruleForm.latitude,
@@ -188,7 +188,7 @@
       const editNewCom = {
         id: props.detail.id,
         name: ruleForm.name,
-        isDisabled: ruleForm.isDisabled,
+        // isDisabled: ruleForm.isDisabled,
         remark: ruleForm.remark,
         longitude: ruleForm.longitude,
         latitude: ruleForm.latitude,
@@ -208,7 +208,7 @@
   //重置编辑框
   const resetDrawCom = () => {
     ruleForm.name = '';
-    ruleForm.isDisabled = IS_DISABLED.FALSE;
+    // ruleForm.isDisabled = IS_DISABLED.FALSE;
     ruleForm.regionCode = '';
     ruleForm.remark = '';
     ruleForm.latitude = undefined;

+ 10 - 10
src/views/system-config/scene-manage/components/CompanyDrawer.vue

@@ -43,14 +43,14 @@
         <el-form-item label="备注" prop="remark">
           <el-input v-model="ruleForm.remark" style="width: 200px" />
         </el-form-item>
-        <el-form-item label="状态">
+        <!-- <el-form-item label="状态">
           <el-switch
             v-model="ruleForm.isDisabled"
             :active-value="IS_DISABLED.FALSE"
             :inactive-value="IS_DISABLED.TRUE"
             class="switchUse"
           />
-        </el-form-item>
+        </el-form-item> -->
         <el-form-item label="公司头像">
           <el-upload
             ref="uploadRef"
@@ -99,7 +99,7 @@
   } from '@/api/scene/scene.ts';
   // import { SceneLabelType, TemplateType } from '@/types/scene/type.ts';
 
-  import { IS_DISABLED } from '@/types/scene/constant.ts';
+  // import { IS_DISABLED } from '@/types/scene/constant.ts';
   import type { FormInstance, FormRules } from 'element-plus';
   import { ElMessage } from 'element-plus';
   // import { CirclePlus } from '@element-plus/icons-vue';
@@ -116,7 +116,7 @@
       id?: number; //传不传id代表着是不是编辑
       name?: string;
       // orderNum?: number;
-      isDisabled?: IS_DISABLED;
+      // isDisabled?: IS_DISABLED;
       remark?: string;
       longitude?: number; //经度
       latitude?: number; //纬度
@@ -188,7 +188,7 @@
 
   interface RuleForm {
     name: string; //名称
-    isDisabled?: IS_DISABLED; //状态
+    // isDisabled?: IS_DISABLED; //状态
     remark?: string; //备注
     longitude?: number; //经度
     latitude?: number; //纬度
@@ -198,7 +198,7 @@
 
   const ruleForm = reactive<RuleForm>({
     name: '',
-    isDisabled: IS_DISABLED.TRUE,
+    // isDisabled: IS_DISABLED.TRUE,
     remark: '',
     longitude: undefined, //经度
     latitude: undefined, //纬度
@@ -220,7 +220,7 @@
     () => props.detail,
     (data) => {
       ruleForm.name = data.name!;
-      ruleForm.isDisabled = data.isDisabled;
+      // ruleForm.isDisabled = data.isDisabled;
       ruleForm.remark = data.remark;
       ruleForm.latitude = data.latitude;
       ruleForm.longitude = data.longitude;
@@ -240,7 +240,7 @@
 
       const newComData = {
         name: ruleForm.name,
-        isDisabled: ruleForm.isDisabled,
+        // isDisabled: ruleForm.isDisabled,
         // orderNum: props.detail.orderNum,
         remark: ruleForm.remark,
         longitude: ruleForm.longitude,
@@ -274,7 +274,7 @@
       const editNewCom = {
         id: props.detail.id,
         name: ruleForm.name,
-        isDisabled: ruleForm.isDisabled,
+        // isDisabled: ruleForm.isDisabled,
         remark: ruleForm.remark,
         longitude: ruleForm.longitude,
         latitude: ruleForm.latitude,
@@ -295,7 +295,7 @@
   //重置编辑框
   const resetDrawCom = () => {
     ruleForm.name = '';
-    ruleForm.isDisabled = IS_DISABLED.TRUE;
+    // ruleForm.isDisabled = IS_DISABLED.TRUE;
     ruleForm.regionCode = '';
     ruleForm.latitude = undefined;
     ruleForm.longitude = undefined;

+ 10 - 10
src/views/system-config/scene-manage/components/WorkshopDrawer-shangfei.vue

@@ -35,14 +35,14 @@
           <el-input v-model="ruleForm.seniorScene" disabled />
         </el-form-item>
 
-        <el-form-item label="状态">
+        <!-- <el-form-item label="状态">
           <el-switch
             v-model="ruleForm.isDisabled"
             :active-value="IS_DISABLED.FALSE"
             :inactive-value="IS_DISABLED.TRUE"
             class="switchUse"
           />
-        </el-form-item>
+        </el-form-item> -->
       </el-form>
       <div style="position: absolute; left: 108px; bottom: 67px">
         <el-button v-if="!props.detail.id" @click="resetDraw">重置</el-button>
@@ -59,7 +59,7 @@
 
 <script setup lang="ts">
   import { computed, reactive, ref, defineProps, defineEmits, watch } from 'vue';
-  import { IS_DISABLED } from '@/types/scene/constant.ts';
+  // import { IS_DISABLED } from '@/types/scene/constant.ts';
   import { type FormInstance, type FormRules } from 'element-plus';
   import { addWorkshop, editWorkshop } from '@/api/scene/scene.ts';
   import { getWorkshopInfoList } from '@/api/workShopData';
@@ -86,7 +86,7 @@
       code?: string;
       name?: string;
       seniorScene?: string;
-      isDisabled?: IS_DISABLED;
+      // isDisabled?: IS_DISABLED;
       companyId?: number;
     };
   }>();
@@ -111,13 +111,13 @@
     name: string; //名称
     code: string; //车间code
     seniorScene: string; //上级场景
-    isDisabled?: IS_DISABLED; //状态
+    // isDisabled?: IS_DISABLED; //状态
   }
   const ruleForm = reactive<RuleForm>({
     name: '',
     code: '',
     seniorScene: '',
-    isDisabled: IS_DISABLED.FALSE,
+    // isDisabled: IS_DISABLED.FALSE,
   });
   const rules = reactive<FormRules>({
     name: [
@@ -136,7 +136,7 @@
     (data) => {
       ruleForm.name = data.name!;
       ruleForm.seniorScene = data.seniorScene!;
-      ruleForm.isDisabled = data.isDisabled;
+      // ruleForm.isDisabled = data.isDisabled;
     },
     { immediate: true },
   );
@@ -152,7 +152,7 @@
         companyId: props.detail.companyId,
         name: ruleForm.name,
         code: ruleForm.code,
-        isDisabled: ruleForm.isDisabled,
+        // isDisabled: ruleForm.isDisabled,
       };
 
       addWorkshop(newAddData)
@@ -180,7 +180,7 @@
         id: props.detail.id,
         code: ruleForm.code,
         name: ruleForm.name,
-        isDisabled: ruleForm.isDisabled,
+        // isDisabled: ruleForm.isDisabled,
       };
 
       editWorkshop(editNewWorkshopData)
@@ -200,7 +200,7 @@
   const resetDraw = () => {
     ruleForm.name = '';
     ruleForm.code = '';
-    ruleForm.isDisabled = IS_DISABLED.FALSE;
+    // ruleForm.isDisabled = IS_DISABLED.FALSE;
   };
 </script>
 

+ 9 - 10
src/views/system-config/scene-manage/components/WorkshopDrawer.vue

@@ -25,14 +25,14 @@
         <el-form-item label="所属公司" prop="seniorScene">
           <el-input v-model="ruleForm.seniorScene" disabled />
         </el-form-item>
-        <el-form-item label="状态">
+        <!-- <el-form-item label="状态">
           <el-switch
             v-model="ruleForm.isDisabled"
             :active-value="IS_DISABLED.FALSE"
             :inactive-value="IS_DISABLED.TRUE"
             class="switchUse"
           />
-        </el-form-item>
+        </el-form-item> -->
       </el-form>
       <div style="position: absolute; left: 108px; bottom: 67px">
         <el-button v-if="!props.detail.id" @click="resetDraw">重置</el-button>
@@ -49,7 +49,6 @@
 
 <script setup lang="ts">
   import { computed, reactive, ref, defineProps, defineEmits, watch } from 'vue';
-  import { IS_DISABLED } from '@/types/scene/constant.ts';
   import { type FormInstance, type FormRules } from 'element-plus';
   import { addWorkshop, editWorkshop } from '@/api/scene/scene.ts';
 
@@ -58,7 +57,7 @@
       id?: number;
       name?: string;
       seniorScene?: string;
-      isDisabled?: IS_DISABLED;
+      // isDisabled?: IS_DISABLED;
       companyId?: number;
       // orderNum?: number;
     };
@@ -83,12 +82,12 @@
   interface RuleForm {
     name: string; //名称
     seniorScene: string; //上级场景
-    isDisabled?: IS_DISABLED; //状态
+    // isDisabled?: IS_DISABLED; //状态
   }
   const ruleForm = reactive<RuleForm>({
     name: '',
     seniorScene: '',
-    isDisabled: IS_DISABLED.TRUE,
+    // isDisabled: IS_DISABLED.TRUE,
   });
   const rules = reactive<FormRules>({
     name: [
@@ -107,7 +106,7 @@
     (data) => {
       ruleForm.name = data.name!;
       ruleForm.seniorScene = data.seniorScene!;
-      ruleForm.isDisabled = data.isDisabled;
+      // // ruleForm.isDisabled = data.isDisabled;
     },
     { immediate: true },
   );
@@ -121,7 +120,7 @@
       }
       const newAddData = {
         name: ruleForm.name,
-        status: Number(ruleForm.isDisabled),
+        // status: Number(ruleForm.isDisabled),
         companyId: props.detail.companyId,
         // orderNum: props.detail.orderNum,
       };
@@ -149,7 +148,7 @@
       const editNewWorkshopData = {
         id: props.detail.id,
         name: ruleForm.name,
-        isDisabled: ruleForm.isDisabled,
+        // // isDisabled: ruleForm.isDisabled,
       };
 
       editWorkshop(editNewWorkshopData)
@@ -168,7 +167,7 @@
   //重置编辑框
   const resetDraw = () => {
     ruleForm.name = '';
-    ruleForm.isDisabled = IS_DISABLED.FALSE;
+    // ruleForm.isDisabled = IS_DISABLED.FALSE;
   };
 </script>
 

+ 10 - 10
src/views/system-config/scene-manage/components/WorkspaceDrawer-shangfei.vue

@@ -37,14 +37,14 @@
         <el-form-item label="负责人" prop="principalName">
           <el-input v-model="ruleForm.principalName" />
         </el-form-item>
-        <el-form-item label="状态">
+        <!-- <el-form-item label="状态">
           <el-switch
             v-model="ruleForm.isDisabled"
             :active-value="IS_DISABLED.FALSE"
             :inactive-value="IS_DISABLED.TRUE"
             class="switchUse"
           />
-        </el-form-item>
+        </el-form-item> -->
       </el-form>
       <div style="position: absolute; left: 108px; bottom: 67px">
         <el-button v-if="!props.detail.id" @click="resetDraw">重置</el-button>
@@ -61,7 +61,7 @@
 
 <script setup lang="ts">
   import { computed, reactive, ref, defineProps, defineEmits, watch } from 'vue';
-  import { IS_DISABLED } from '@/types/scene/constant.ts';
+  // import { IS_DISABLED } from '@/types/scene/constant.ts';
   import { type FormInstance, type FormRules } from 'element-plus';
   import { addWorkspace, editWorkspace } from '@/api/scene/scene.ts';
   import { getWorkSpaceInfoList } from '@/api/workShopData';
@@ -73,7 +73,7 @@
       code?: string;
       seniorScene?: string;
       principalName?: string;
-      isDisabled?: IS_DISABLED;
+      // isDisabled?: IS_DISABLED;
       workshopId?: number;
       workshopCode?: string;
     };
@@ -114,14 +114,14 @@
     seniorScene: string; //上级场景
     code: string; //代码
     principalName?: string; //负责人
-    isDisabled?: IS_DISABLED;
+    // isDisabled?: IS_DISABLED;
   }
   const ruleForm = reactive<RuleForm>({
     name: '',
     seniorScene: '',
     code: '',
     principalName: '',
-    isDisabled: IS_DISABLED.FALSE,
+    // isDisabled: IS_DISAsBLED.FALSE,
   });
   const rules = reactive<FormRules>({
     name: [
@@ -145,7 +145,7 @@
       ruleForm.seniorScene = data.seniorScene!;
       ruleForm.code = data.code!;
       ruleForm.principalName = data.principalName;
-      ruleForm.isDisabled = data.isDisabled;
+      // ruleForm.isDisabled = data.isDisabled;
     },
     { immediate: true },
   );
@@ -164,7 +164,7 @@
         workshopId: props.detail.workshopId,
         name: ruleForm.name,
         principalName: ruleForm.principalName,
-        isDisabled: ruleForm.isDisabled,
+        // isDisabled: ruleForm.isDisabled,
       };
 
       addWorkspace(newAddData)
@@ -194,7 +194,7 @@
         code: ruleForm.code,
         name: ruleForm.name,
         principalName: ruleForm.principalName,
-        isDisabled: ruleForm.isDisabled,
+        // isDisabled: ruleForm.isDisabled,
       };
 
       //编辑并上传
@@ -215,7 +215,7 @@
   const resetDraw = () => {
     ruleForm.name = '';
     ruleForm.code = '';
-    ruleForm.isDisabled = IS_DISABLED.FALSE;
+    // ruleForm.isDisabled = IS_DISABLED.FALSE;
     ruleForm.principalName = '';
   };
 </script>

+ 10 - 10
src/views/system-config/scene-manage/components/WorkspaceDrawer.vue

@@ -28,14 +28,14 @@
         <el-form-item label="负责人" prop="principalName">
           <el-input v-model="ruleForm.principalName" />
         </el-form-item>
-        <el-form-item label="状态">
+        <!-- <el-form-item label="状态">
           <el-switch
             v-model="ruleForm.isDisabled"
             :active-value="IS_DISABLED.FALSE"
             :inactive-value="IS_DISABLED.TRUE"
             class="switchUse"
           />
-        </el-form-item>
+        </el-form-item> -->
       </el-form>
       <div style="position: absolute; left: 108px; bottom: 67px">
         <el-button v-if="!props.detail.id" @click="resetDraw">重置</el-button>
@@ -52,7 +52,7 @@
 
 <script setup lang="ts">
   import { computed, reactive, ref, defineProps, defineEmits, watch } from 'vue';
-  import { IS_DISABLED } from '@/types/scene/constant.ts';
+  // import { IS_DISABLED } from '@/types/scene/constant.ts';
   import { type FormInstance, type FormRules } from 'element-plus';
   import { addWorkspace, editWorkspace } from '@/api/scene/scene.ts';
 
@@ -63,7 +63,7 @@
       name?: string;
       seniorScene?: string;
       principalName?: string;
-      isDisabled?: IS_DISABLED;
+      // isDisabled?: IS_DISABLED;
       workshopId?: number;
       // orderNum?: number;
     };
@@ -88,13 +88,13 @@
     name: string; //名称
     seniorScene: string; //所属车间
     principalName?: string; //负责人
-    isDisabled?: IS_DISABLED;
+    // isDisabled?: IS_DISABLED;
   }
   const ruleForm = reactive<RuleForm>({
     name: '',
     seniorScene: '',
     principalName: '',
-    isDisabled: IS_DISABLED.FALSE,
+    // isDisabled: IS_DISABLED.FALSE,
   });
   const rules = reactive<FormRules>({
     name: [
@@ -113,7 +113,7 @@
       ruleForm.name = data.name!;
       ruleForm.seniorScene = data.seniorScene!;
       ruleForm.principalName = data.principalName;
-      ruleForm.isDisabled = data.isDisabled;
+      // // ruleForm.isDisabled = data.isDisabled;
     },
     { immediate: true },
   );
@@ -130,7 +130,7 @@
       const newAddData = {
         name: ruleForm.name,
         principalName: ruleForm.principalName,
-        isDisabled: ruleForm.isDisabled,
+        // // isDisabled: ruleForm.isDisabled,
         workshopId: props.detail.workshopId,
         // orderNum: props.detail.orderNum,
       };
@@ -159,7 +159,7 @@
       const editNewWorkspaceData = {
         id: props.detail.id,
         name: ruleForm.name,
-        isDisabled: ruleForm.isDisabled,
+        // // isDisabled: ruleForm.isDisabled,
         principalName: ruleForm.principalName,
       };
 
@@ -180,7 +180,7 @@
   //重置编辑框
   const resetDraw = () => {
     ruleForm.name = '';
-    ruleForm.isDisabled = IS_DISABLED.FALSE;
+    // ruleForm.isDisabled = IS_DISABLED.FALSE;
     ruleForm.principalName = '';
   };
 </script>