diff --git a/src/api/system/area.ts b/src/api/system/area.ts
index 8b4e5a8..682162d 100644
--- a/src/api/system/area.ts
+++ b/src/api/system/area.ts
@@ -2,7 +2,7 @@
* 区域管理接口
*/
import request from '../index'
-const prefix = 'sys'
+const prefix = 'ext'
// 区域查询
export function getAreaListPage(params: object) {
@@ -45,7 +45,7 @@
// 区域类型查询
export function getAreaType() {
return request({
- url: `${prefix}/dict/code/levelType`,
+ url: 'sys/dict/code/levelType',
method: 'get',
})
}
diff --git a/src/api/system/area.ts b/src/api/system/area.ts
index 8b4e5a8..682162d 100644
--- a/src/api/system/area.ts
+++ b/src/api/system/area.ts
@@ -2,7 +2,7 @@
* 区域管理接口
*/
import request from '../index'
-const prefix = 'sys'
+const prefix = 'ext'
// 区域查询
export function getAreaListPage(params: object) {
@@ -45,7 +45,7 @@
// 区域类型查询
export function getAreaType() {
return request({
- url: `${prefix}/dict/code/levelType`,
+ url: 'sys/dict/code/levelType',
method: 'get',
})
}
diff --git a/src/api/system/dept.ts b/src/api/system/dept.ts
index 48f386e..06e3178 100644
--- a/src/api/system/dept.ts
+++ b/src/api/system/dept.ts
@@ -64,3 +64,11 @@
},
})
}
+
+// 资源类型列表
+export function getDeptTypeList() {
+ return request({
+ url: `${prefix}/dict/code/deptType`,
+ method: 'get',
+ })
+}
diff --git a/src/api/system/area.ts b/src/api/system/area.ts
index 8b4e5a8..682162d 100644
--- a/src/api/system/area.ts
+++ b/src/api/system/area.ts
@@ -2,7 +2,7 @@
* 区域管理接口
*/
import request from '../index'
-const prefix = 'sys'
+const prefix = 'ext'
// 区域查询
export function getAreaListPage(params: object) {
@@ -45,7 +45,7 @@
// 区域类型查询
export function getAreaType() {
return request({
- url: `${prefix}/dict/code/levelType`,
+ url: 'sys/dict/code/levelType',
method: 'get',
})
}
diff --git a/src/api/system/dept.ts b/src/api/system/dept.ts
index 48f386e..06e3178 100644
--- a/src/api/system/dept.ts
+++ b/src/api/system/dept.ts
@@ -64,3 +64,11 @@
},
})
}
+
+// 资源类型列表
+export function getDeptTypeList() {
+ return request({
+ url: `${prefix}/dict/code/deptType`,
+ method: 'get',
+ })
+}
diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue
index 419d14d..2344541 100644
--- a/src/components/DeptSelect/index.vue
+++ b/src/components/DeptSelect/index.vue
@@ -176,7 +176,7 @@
class="full-width-input"
/>
-
+
diff --git a/src/api/system/area.ts b/src/api/system/area.ts
index 8b4e5a8..682162d 100644
--- a/src/api/system/area.ts
+++ b/src/api/system/area.ts
@@ -2,7 +2,7 @@
* 区域管理接口
*/
import request from '../index'
-const prefix = 'sys'
+const prefix = 'ext'
// 区域查询
export function getAreaListPage(params: object) {
@@ -45,7 +45,7 @@
// 区域类型查询
export function getAreaType() {
return request({
- url: `${prefix}/dict/code/levelType`,
+ url: 'sys/dict/code/levelType',
method: 'get',
})
}
diff --git a/src/api/system/dept.ts b/src/api/system/dept.ts
index 48f386e..06e3178 100644
--- a/src/api/system/dept.ts
+++ b/src/api/system/dept.ts
@@ -64,3 +64,11 @@
},
})
}
+
+// 资源类型列表
+export function getDeptTypeList() {
+ return request({
+ url: `${prefix}/dict/code/deptType`,
+ method: 'get',
+ })
+}
diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue
index 419d14d..2344541 100644
--- a/src/components/DeptSelect/index.vue
+++ b/src/components/DeptSelect/index.vue
@@ -176,7 +176,7 @@
class="full-width-input"
/>
-
+
diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue
index 335a6fb..396ab2d 100644
--- a/src/views/system/area/listArea.vue
+++ b/src/views/system/area/listArea.vue
@@ -2,7 +2,7 @@
import { computed, onActivated, reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import type { Ref } from 'vue'
-import type { IlistQuery } from './area_interface'
+import type { IlistQuery } from './area-interface'
import EditArea from './editArea.vue'
import { delArea, getAreaListPage } from '@/api/system/area'
import type { TableColumn } from '@/components/NormalTable/table_interface'
@@ -136,31 +136,34 @@
-
-
-
-
- 新增
-
-
-
-
-
- {{ scope.row[column.value] }}
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
+
+
+
+
+
+ 新增
+
+
+
+
+
+ {{ scope.row[column.value] }}
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
diff --git a/src/api/system/area.ts b/src/api/system/area.ts
index 8b4e5a8..682162d 100644
--- a/src/api/system/area.ts
+++ b/src/api/system/area.ts
@@ -2,7 +2,7 @@
* 区域管理接口
*/
import request from '../index'
-const prefix = 'sys'
+const prefix = 'ext'
// 区域查询
export function getAreaListPage(params: object) {
@@ -45,7 +45,7 @@
// 区域类型查询
export function getAreaType() {
return request({
- url: `${prefix}/dict/code/levelType`,
+ url: 'sys/dict/code/levelType',
method: 'get',
})
}
diff --git a/src/api/system/dept.ts b/src/api/system/dept.ts
index 48f386e..06e3178 100644
--- a/src/api/system/dept.ts
+++ b/src/api/system/dept.ts
@@ -64,3 +64,11 @@
},
})
}
+
+// 资源类型列表
+export function getDeptTypeList() {
+ return request({
+ url: `${prefix}/dict/code/deptType`,
+ method: 'get',
+ })
+}
diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue
index 419d14d..2344541 100644
--- a/src/components/DeptSelect/index.vue
+++ b/src/components/DeptSelect/index.vue
@@ -176,7 +176,7 @@
class="full-width-input"
/>
-
+
diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue
index 335a6fb..396ab2d 100644
--- a/src/views/system/area/listArea.vue
+++ b/src/views/system/area/listArea.vue
@@ -2,7 +2,7 @@
import { computed, onActivated, reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import type { Ref } from 'vue'
-import type { IlistQuery } from './area_interface'
+import type { IlistQuery } from './area-interface'
import EditArea from './editArea.vue'
import { delArea, getAreaListPage } from '@/api/system/area'
import type { TableColumn } from '@/components/NormalTable/table_interface'
@@ -136,31 +136,34 @@
-
-
-
-
- 新增
-
-
-
-
-
- {{ scope.row[column.value] }}
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
+
+
+
+
+
+ 新增
+
+
+
+
+
+ {{ scope.row[column.value] }}
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/dept-interface.ts b/src/views/system/dept/dept-interface.ts
index 12ffea3..d5a75b6 100644
--- a/src/views/system/dept/dept-interface.ts
+++ b/src/views/system/dept/dept-interface.ts
@@ -1,9 +1,17 @@
// 部门类别
export const DeptTypeList = [
- { name: '公司/单位', value: '03' },
- { name: '部门/组', value: '04' },
+ { name: '公司', value: '1' },
+ { name: '部门', value: '2' },
+ { name: '科室', value: '3' },
+ { name: '工程组', value: '4' },
]
+// 部门类型
+export interface DeptTypeInfo {
+ name: string
+ value: string
+}
+
// 部门信息,下拉树用
export interface DeptTreeNode {
id: string
@@ -26,4 +34,5 @@
deptType: string
tips: string
children?: []
+ [key: string]: string | number | [] | undefined
}
diff --git a/src/api/system/area.ts b/src/api/system/area.ts
index 8b4e5a8..682162d 100644
--- a/src/api/system/area.ts
+++ b/src/api/system/area.ts
@@ -2,7 +2,7 @@
* 区域管理接口
*/
import request from '../index'
-const prefix = 'sys'
+const prefix = 'ext'
// 区域查询
export function getAreaListPage(params: object) {
@@ -45,7 +45,7 @@
// 区域类型查询
export function getAreaType() {
return request({
- url: `${prefix}/dict/code/levelType`,
+ url: 'sys/dict/code/levelType',
method: 'get',
})
}
diff --git a/src/api/system/dept.ts b/src/api/system/dept.ts
index 48f386e..06e3178 100644
--- a/src/api/system/dept.ts
+++ b/src/api/system/dept.ts
@@ -64,3 +64,11 @@
},
})
}
+
+// 资源类型列表
+export function getDeptTypeList() {
+ return request({
+ url: `${prefix}/dict/code/deptType`,
+ method: 'get',
+ })
+}
diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue
index 419d14d..2344541 100644
--- a/src/components/DeptSelect/index.vue
+++ b/src/components/DeptSelect/index.vue
@@ -176,7 +176,7 @@
class="full-width-input"
/>
-
+
diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue
index 335a6fb..396ab2d 100644
--- a/src/views/system/area/listArea.vue
+++ b/src/views/system/area/listArea.vue
@@ -2,7 +2,7 @@
import { computed, onActivated, reactive, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import type { Ref } from 'vue'
-import type { IlistQuery } from './area_interface'
+import type { IlistQuery } from './area-interface'
import EditArea from './editArea.vue'
import { delArea, getAreaListPage } from '@/api/system/area'
import type { TableColumn } from '@/components/NormalTable/table_interface'
@@ -136,31 +136,34 @@
-
-
-
-
- 新增
-
-
-
-
-
- {{ scope.row[column.value] }}
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
+
+
+
+
+
+ 新增
+
+
+
+
+
+ {{ scope.row[column.value] }}
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/dept-interface.ts b/src/views/system/dept/dept-interface.ts
index 12ffea3..d5a75b6 100644
--- a/src/views/system/dept/dept-interface.ts
+++ b/src/views/system/dept/dept-interface.ts
@@ -1,9 +1,17 @@
// 部门类别
export const DeptTypeList = [
- { name: '公司/单位', value: '03' },
- { name: '部门/组', value: '04' },
+ { name: '公司', value: '1' },
+ { name: '部门', value: '2' },
+ { name: '科室', value: '3' },
+ { name: '工程组', value: '4' },
]
+// 部门类型
+export interface DeptTypeInfo {
+ name: string
+ value: string
+}
+
// 部门信息,下拉树用
export interface DeptTreeNode {
id: string
@@ -26,4 +34,5 @@
deptType: string
tips: string
children?: []
+ [key: string]: string | number | [] | undefined
}
diff --git a/src/views/system/dept/editDept.vue b/src/views/system/dept/editDept.vue
index c16ec9a..b1e16c8 100644
--- a/src/views/system/dept/editDept.vue
+++ b/src/views/system/dept/editDept.vue
@@ -1,12 +1,12 @@