diff --git a/src/views/iot/tplink/region/RegionInfo.api.ts b/src/views/iot/tplink/region/RegionInfo.api.ts
index 86465eb..90b396d 100644
--- a/src/views/iot/tplink/region/RegionInfo.api.ts
+++ b/src/views/iot/tplink/region/RegionInfo.api.ts
@@ -36,8 +36,13 @@ export const syncProject = (params?) => defHttp.get({ url: Api.syncProject, para
* 同步区域
* @param params
*/
-export const syncRegion = (params?) => defHttp.get({ url: Api.syncRegion, params });
+export const syncRegionChildren = (params?) => defHttp.get({ url: Api.syncRegionChildren, params });
+/**
+ * 同步子区域
+ * @param params
+ */
+export const syncRegion = (params?) => defHttp.get({ url: Api.syncRegion, params });
/**
* 列表接口
diff --git a/src/views/iot/tplink/region/RegionInfo.data.ts b/src/views/iot/tplink/region/RegionInfo.data.ts
index dea876c..2d62dcb 100644
--- a/src/views/iot/tplink/region/RegionInfo.data.ts
+++ b/src/views/iot/tplink/region/RegionInfo.data.ts
@@ -94,13 +94,7 @@ export const formSchema: FormSchema[] = [
label: '上级名称',
field: 'parentName',
component: 'Input',
- dynamicDisabled: ({model})=>{
- if(model.regionId || model.parentId){
- return true;
- }else{
- return false;
- }
- }
+ dynamicDisabled: true
},
{
label: '机构名称',
diff --git a/src/views/iot/tplink/region/components/RegionLeftTree.vue b/src/views/iot/tplink/region/components/RegionLeftTree.vue
index a9c01fb..39dfc23 100644
--- a/src/views/iot/tplink/region/components/RegionLeftTree.vue
+++ b/src/views/iot/tplink/region/components/RegionLeftTree.vue
@@ -3,16 +3,16 @@
刷新
-
新增
+
新增
同步
-
新增下级
+
新增下级
同步下级
-
+
+
+
+ {{ title }}
+
+
+ 添加子级
+
+ 删除
+
+
+
+
+
+
+
+