diff --git a/.env.development b/.env.development
index a5b855b..b34f073 100644
--- a/.env.development
+++ b/.env.development
@@ -1,8 +1,8 @@
# 页面标题
VITE_APP_TITLE = 后台基础框架
# 接口请求地址,会设置到 axios 的 baseURL 参数上
-VITE_APP_API_BASEURL = http://111.198.10.15:11309
-# VITE_APP_API_BASEURL = http://111.198.10.15:21409
+# VITE_APP_API_BASEURL = http://111.198.10.15:11309
+VITE_APP_API_BASEURL = http://111.198.10.15:21409
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
VITE_APP_DEBUG_TOOL =
diff --git a/.env.development b/.env.development
index a5b855b..b34f073 100644
--- a/.env.development
+++ b/.env.development
@@ -1,8 +1,8 @@
# 页面标题
VITE_APP_TITLE = 后台基础框架
# 接口请求地址,会设置到 axios 的 baseURL 参数上
-VITE_APP_API_BASEURL = http://111.198.10.15:11309
-# VITE_APP_API_BASEURL = http://111.198.10.15:21409
+# VITE_APP_API_BASEURL = http://111.198.10.15:11309
+VITE_APP_API_BASEURL = http://111.198.10.15:21409
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
VITE_APP_DEBUG_TOOL =
diff --git a/.eslintrc b/.eslintrc
index 5d9c01f..5c6806e 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -3,6 +3,10 @@
"rules": {
"curly": ["error", "all"],
"no-tabs":"off",
- "no-const-assign": "off"
+ "no-const-assign": "off",
+ "vue/component-name-in-template-casing": ["error", "kebab-case", {
+ "registeredComponentsOnly": false,
+ "ignores": []
+ }]
}
}
diff --git a/.env.development b/.env.development
index a5b855b..b34f073 100644
--- a/.env.development
+++ b/.env.development
@@ -1,8 +1,8 @@
# 页面标题
VITE_APP_TITLE = 后台基础框架
# 接口请求地址,会设置到 axios 的 baseURL 参数上
-VITE_APP_API_BASEURL = http://111.198.10.15:11309
-# VITE_APP_API_BASEURL = http://111.198.10.15:21409
+# VITE_APP_API_BASEURL = http://111.198.10.15:11309
+VITE_APP_API_BASEURL = http://111.198.10.15:21409
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
VITE_APP_DEBUG_TOOL =
diff --git a/.eslintrc b/.eslintrc
index 5d9c01f..5c6806e 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -3,6 +3,10 @@
"rules": {
"curly": ["error", "all"],
"no-tabs":"off",
- "no-const-assign": "off"
+ "no-const-assign": "off",
+ "vue/component-name-in-template-casing": ["error", "kebab-case", {
+ "registeredComponentsOnly": false,
+ "ignores": []
+ }]
}
}
diff --git a/README.md b/README.md
index 89ec586..d529f38 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
-
Vue3-admin
+SmartMeteringFront
-基于Vue3的中后台管理系统框架
+计量管理系统
## 简要说明
diff --git a/.env.development b/.env.development
index a5b855b..b34f073 100644
--- a/.env.development
+++ b/.env.development
@@ -1,8 +1,8 @@
# 页面标题
VITE_APP_TITLE = 后台基础框架
# 接口请求地址,会设置到 axios 的 baseURL 参数上
-VITE_APP_API_BASEURL = http://111.198.10.15:11309
-# VITE_APP_API_BASEURL = http://111.198.10.15:21409
+# VITE_APP_API_BASEURL = http://111.198.10.15:11309
+VITE_APP_API_BASEURL = http://111.198.10.15:21409
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
VITE_APP_DEBUG_TOOL =
diff --git a/.eslintrc b/.eslintrc
index 5d9c01f..5c6806e 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -3,6 +3,10 @@
"rules": {
"curly": ["error", "all"],
"no-tabs":"off",
- "no-const-assign": "off"
+ "no-const-assign": "off",
+ "vue/component-name-in-template-casing": ["error", "kebab-case", {
+ "registeredComponentsOnly": false,
+ "ignores": []
+ }]
}
}
diff --git a/README.md b/README.md
index 89ec586..d529f38 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
-
Vue3-admin
+SmartMeteringFront
-基于Vue3的中后台管理系统框架
+计量管理系统
## 简要说明
diff --git a/src/api/system/user.ts b/src/api/system/user.ts
index dac3b84..b76afc5 100644
--- a/src/api/system/user.ts
+++ b/src/api/system/user.ts
@@ -1,5 +1,5 @@
+// import qs from 'qs'
import request from '../index'
-import qs from 'qs'
const prefix = 'sys/'
// 修改密码
export function changePwd(data: { oldPwd: string; newPwd: string }) {
@@ -63,8 +63,8 @@
url: 'sys/mgr/roleAssign',
method: 'post',
data: {
- userId: userId,
- roleIds: ids
+ userId,
+ roleIds: ids,
},
// paramsSerializer: (params) => qs.stringify(params, { indices: false })
})
diff --git a/.env.development b/.env.development
index a5b855b..b34f073 100644
--- a/.env.development
+++ b/.env.development
@@ -1,8 +1,8 @@
# 页面标题
VITE_APP_TITLE = 后台基础框架
# 接口请求地址,会设置到 axios 的 baseURL 参数上
-VITE_APP_API_BASEURL = http://111.198.10.15:11309
-# VITE_APP_API_BASEURL = http://111.198.10.15:21409
+# VITE_APP_API_BASEURL = http://111.198.10.15:11309
+VITE_APP_API_BASEURL = http://111.198.10.15:21409
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
VITE_APP_DEBUG_TOOL =
diff --git a/.eslintrc b/.eslintrc
index 5d9c01f..5c6806e 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -3,6 +3,10 @@
"rules": {
"curly": ["error", "all"],
"no-tabs":"off",
- "no-const-assign": "off"
+ "no-const-assign": "off",
+ "vue/component-name-in-template-casing": ["error", "kebab-case", {
+ "registeredComponentsOnly": false,
+ "ignores": []
+ }]
}
}
diff --git a/README.md b/README.md
index 89ec586..d529f38 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
-
Vue3-admin
+SmartMeteringFront
-基于Vue3的中后台管理系统框架
+计量管理系统
## 简要说明
diff --git a/src/api/system/user.ts b/src/api/system/user.ts
index dac3b84..b76afc5 100644
--- a/src/api/system/user.ts
+++ b/src/api/system/user.ts
@@ -1,5 +1,5 @@
+// import qs from 'qs'
import request from '../index'
-import qs from 'qs'
const prefix = 'sys/'
// 修改密码
export function changePwd(data: { oldPwd: string; newPwd: string }) {
@@ -63,8 +63,8 @@
url: 'sys/mgr/roleAssign',
method: 'post',
data: {
- userId: userId,
- roleIds: ids
+ userId,
+ roleIds: ids,
},
// paramsSerializer: (params) => qs.stringify(params, { indices: false })
})
diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue
index 8405618..620806d 100644
--- a/src/components/DeptSelect/index.vue
+++ b/src/components/DeptSelect/index.vue
@@ -1,7 +1,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/.env.development b/.env.development
index a5b855b..b34f073 100644
--- a/.env.development
+++ b/.env.development
@@ -1,8 +1,8 @@
# 页面标题
VITE_APP_TITLE = 后台基础框架
# 接口请求地址,会设置到 axios 的 baseURL 参数上
-VITE_APP_API_BASEURL = http://111.198.10.15:11309
-# VITE_APP_API_BASEURL = http://111.198.10.15:21409
+# VITE_APP_API_BASEURL = http://111.198.10.15:11309
+VITE_APP_API_BASEURL = http://111.198.10.15:21409
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
VITE_APP_DEBUG_TOOL =
diff --git a/.eslintrc b/.eslintrc
index 5d9c01f..5c6806e 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -3,6 +3,10 @@
"rules": {
"curly": ["error", "all"],
"no-tabs":"off",
- "no-const-assign": "off"
+ "no-const-assign": "off",
+ "vue/component-name-in-template-casing": ["error", "kebab-case", {
+ "registeredComponentsOnly": false,
+ "ignores": []
+ }]
}
}
diff --git a/README.md b/README.md
index 89ec586..d529f38 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
-
Vue3-admin
+SmartMeteringFront
-基于Vue3的中后台管理系统框架
+计量管理系统
## 简要说明
diff --git a/src/api/system/user.ts b/src/api/system/user.ts
index dac3b84..b76afc5 100644
--- a/src/api/system/user.ts
+++ b/src/api/system/user.ts
@@ -1,5 +1,5 @@
+// import qs from 'qs'
import request from '../index'
-import qs from 'qs'
const prefix = 'sys/'
// 修改密码
export function changePwd(data: { oldPwd: string; newPwd: string }) {
@@ -63,8 +63,8 @@
url: 'sys/mgr/roleAssign',
method: 'post',
data: {
- userId: userId,
- roleIds: ids
+ userId,
+ roleIds: ids,
},
// paramsSerializer: (params) => qs.stringify(params, { indices: false })
})
diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue
index 8405618..620806d 100644
--- a/src/components/DeptSelect/index.vue
+++ b/src/components/DeptSelect/index.vue
@@ -1,7 +1,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/editDept.vue b/src/views/system/dept/editDept.vue
new file mode 100644
index 0000000..c16ec9a
--- /dev/null
+++ b/src/views/system/dept/editDept.vue
@@ -0,0 +1,223 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.env.development b/.env.development
index a5b855b..b34f073 100644
--- a/.env.development
+++ b/.env.development
@@ -1,8 +1,8 @@
# 页面标题
VITE_APP_TITLE = 后台基础框架
# 接口请求地址,会设置到 axios 的 baseURL 参数上
-VITE_APP_API_BASEURL = http://111.198.10.15:11309
-# VITE_APP_API_BASEURL = http://111.198.10.15:21409
+# VITE_APP_API_BASEURL = http://111.198.10.15:11309
+VITE_APP_API_BASEURL = http://111.198.10.15:21409
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
VITE_APP_DEBUG_TOOL =
diff --git a/.eslintrc b/.eslintrc
index 5d9c01f..5c6806e 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -3,6 +3,10 @@
"rules": {
"curly": ["error", "all"],
"no-tabs":"off",
- "no-const-assign": "off"
+ "no-const-assign": "off",
+ "vue/component-name-in-template-casing": ["error", "kebab-case", {
+ "registeredComponentsOnly": false,
+ "ignores": []
+ }]
}
}
diff --git a/README.md b/README.md
index 89ec586..d529f38 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
-
Vue3-admin
+SmartMeteringFront
-基于Vue3的中后台管理系统框架
+计量管理系统
## 简要说明
diff --git a/src/api/system/user.ts b/src/api/system/user.ts
index dac3b84..b76afc5 100644
--- a/src/api/system/user.ts
+++ b/src/api/system/user.ts
@@ -1,5 +1,5 @@
+// import qs from 'qs'
import request from '../index'
-import qs from 'qs'
const prefix = 'sys/'
// 修改密码
export function changePwd(data: { oldPwd: string; newPwd: string }) {
@@ -63,8 +63,8 @@
url: 'sys/mgr/roleAssign',
method: 'post',
data: {
- userId: userId,
- roleIds: ids
+ userId,
+ roleIds: ids,
},
// paramsSerializer: (params) => qs.stringify(params, { indices: false })
})
diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue
index 8405618..620806d 100644
--- a/src/components/DeptSelect/index.vue
+++ b/src/components/DeptSelect/index.vue
@@ -1,7 +1,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/editDept.vue b/src/views/system/dept/editDept.vue
new file mode 100644
index 0000000..c16ec9a
--- /dev/null
+++ b/src/views/system/dept/editDept.vue
@@ -0,0 +1,223 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/list.dept.vue b/src/views/system/dept/list.dept.vue
deleted file mode 100644
index 51ff8e7..0000000
--- a/src/views/system/dept/list.dept.vue
+++ /dev/null
@@ -1,138 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/.env.development b/.env.development
index a5b855b..b34f073 100644
--- a/.env.development
+++ b/.env.development
@@ -1,8 +1,8 @@
# 页面标题
VITE_APP_TITLE = 后台基础框架
# 接口请求地址,会设置到 axios 的 baseURL 参数上
-VITE_APP_API_BASEURL = http://111.198.10.15:11309
-# VITE_APP_API_BASEURL = http://111.198.10.15:21409
+# VITE_APP_API_BASEURL = http://111.198.10.15:11309
+VITE_APP_API_BASEURL = http://111.198.10.15:21409
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
VITE_APP_DEBUG_TOOL =
diff --git a/.eslintrc b/.eslintrc
index 5d9c01f..5c6806e 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -3,6 +3,10 @@
"rules": {
"curly": ["error", "all"],
"no-tabs":"off",
- "no-const-assign": "off"
+ "no-const-assign": "off",
+ "vue/component-name-in-template-casing": ["error", "kebab-case", {
+ "registeredComponentsOnly": false,
+ "ignores": []
+ }]
}
}
diff --git a/README.md b/README.md
index 89ec586..d529f38 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
-
Vue3-admin
+SmartMeteringFront
-基于Vue3的中后台管理系统框架
+计量管理系统
## 简要说明
diff --git a/src/api/system/user.ts b/src/api/system/user.ts
index dac3b84..b76afc5 100644
--- a/src/api/system/user.ts
+++ b/src/api/system/user.ts
@@ -1,5 +1,5 @@
+// import qs from 'qs'
import request from '../index'
-import qs from 'qs'
const prefix = 'sys/'
// 修改密码
export function changePwd(data: { oldPwd: string; newPwd: string }) {
@@ -63,8 +63,8 @@
url: 'sys/mgr/roleAssign',
method: 'post',
data: {
- userId: userId,
- roleIds: ids
+ userId,
+ roleIds: ids,
},
// paramsSerializer: (params) => qs.stringify(params, { indices: false })
})
diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue
index 8405618..620806d 100644
--- a/src/components/DeptSelect/index.vue
+++ b/src/components/DeptSelect/index.vue
@@ -1,7 +1,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/editDept.vue b/src/views/system/dept/editDept.vue
new file mode 100644
index 0000000..c16ec9a
--- /dev/null
+++ b/src/views/system/dept/editDept.vue
@@ -0,0 +1,223 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/list.dept.vue b/src/views/system/dept/list.dept.vue
deleted file mode 100644
index 51ff8e7..0000000
--- a/src/views/system/dept/list.dept.vue
+++ /dev/null
@@ -1,138 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
new file mode 100644
index 0000000..07382e9
--- /dev/null
+++ b/src/views/system/dept/listDept.vue
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/.env.development b/.env.development
index a5b855b..b34f073 100644
--- a/.env.development
+++ b/.env.development
@@ -1,8 +1,8 @@
# 页面标题
VITE_APP_TITLE = 后台基础框架
# 接口请求地址,会设置到 axios 的 baseURL 参数上
-VITE_APP_API_BASEURL = http://111.198.10.15:11309
-# VITE_APP_API_BASEURL = http://111.198.10.15:21409
+# VITE_APP_API_BASEURL = http://111.198.10.15:11309
+VITE_APP_API_BASEURL = http://111.198.10.15:21409
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
VITE_APP_DEBUG_TOOL =
diff --git a/.eslintrc b/.eslintrc
index 5d9c01f..5c6806e 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -3,6 +3,10 @@
"rules": {
"curly": ["error", "all"],
"no-tabs":"off",
- "no-const-assign": "off"
+ "no-const-assign": "off",
+ "vue/component-name-in-template-casing": ["error", "kebab-case", {
+ "registeredComponentsOnly": false,
+ "ignores": []
+ }]
}
}
diff --git a/README.md b/README.md
index 89ec586..d529f38 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
-
Vue3-admin
+SmartMeteringFront
-基于Vue3的中后台管理系统框架
+计量管理系统
## 简要说明
diff --git a/src/api/system/user.ts b/src/api/system/user.ts
index dac3b84..b76afc5 100644
--- a/src/api/system/user.ts
+++ b/src/api/system/user.ts
@@ -1,5 +1,5 @@
+// import qs from 'qs'
import request from '../index'
-import qs from 'qs'
const prefix = 'sys/'
// 修改密码
export function changePwd(data: { oldPwd: string; newPwd: string }) {
@@ -63,8 +63,8 @@
url: 'sys/mgr/roleAssign',
method: 'post',
data: {
- userId: userId,
- roleIds: ids
+ userId,
+ roleIds: ids,
},
// paramsSerializer: (params) => qs.stringify(params, { indices: false })
})
diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue
index 8405618..620806d 100644
--- a/src/components/DeptSelect/index.vue
+++ b/src/components/DeptSelect/index.vue
@@ -1,7 +1,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/editDept.vue b/src/views/system/dept/editDept.vue
new file mode 100644
index 0000000..c16ec9a
--- /dev/null
+++ b/src/views/system/dept/editDept.vue
@@ -0,0 +1,223 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/list.dept.vue b/src/views/system/dept/list.dept.vue
deleted file mode 100644
index 51ff8e7..0000000
--- a/src/views/system/dept/list.dept.vue
+++ /dev/null
@@ -1,138 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
new file mode 100644
index 0000000..07382e9
--- /dev/null
+++ b/src/views/system/dept/listDept.vue
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/dict-interface.ts b/src/views/system/dict/dict-interface.ts
new file mode 100644
index 0000000..9b647ec
--- /dev/null
+++ b/src/views/system/dict/dict-interface.ts
@@ -0,0 +1,25 @@
+// 字典值列表
+export interface DictDetail {
+ name: string
+ value: string
+ num: number
+}
+
+// 字典
+export interface DictInfo {
+ dictId: string
+ dictCode: string
+ dictName: string
+ dictTips: string
+ dictValues: DictDetail[]
+}
+
+export interface DictListInfo {
+ id: string
+ name: string
+ code: string
+ pid: string
+ detail: string
+ tips: string
+ num: number
+}
diff --git a/.env.development b/.env.development
index a5b855b..b34f073 100644
--- a/.env.development
+++ b/.env.development
@@ -1,8 +1,8 @@
# 页面标题
VITE_APP_TITLE = 后台基础框架
# 接口请求地址,会设置到 axios 的 baseURL 参数上
-VITE_APP_API_BASEURL = http://111.198.10.15:11309
-# VITE_APP_API_BASEURL = http://111.198.10.15:21409
+# VITE_APP_API_BASEURL = http://111.198.10.15:11309
+VITE_APP_API_BASEURL = http://111.198.10.15:21409
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
VITE_APP_DEBUG_TOOL =
diff --git a/.eslintrc b/.eslintrc
index 5d9c01f..5c6806e 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -3,6 +3,10 @@
"rules": {
"curly": ["error", "all"],
"no-tabs":"off",
- "no-const-assign": "off"
+ "no-const-assign": "off",
+ "vue/component-name-in-template-casing": ["error", "kebab-case", {
+ "registeredComponentsOnly": false,
+ "ignores": []
+ }]
}
}
diff --git a/README.md b/README.md
index 89ec586..d529f38 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
-
Vue3-admin
+SmartMeteringFront
-基于Vue3的中后台管理系统框架
+计量管理系统
## 简要说明
diff --git a/src/api/system/user.ts b/src/api/system/user.ts
index dac3b84..b76afc5 100644
--- a/src/api/system/user.ts
+++ b/src/api/system/user.ts
@@ -1,5 +1,5 @@
+// import qs from 'qs'
import request from '../index'
-import qs from 'qs'
const prefix = 'sys/'
// 修改密码
export function changePwd(data: { oldPwd: string; newPwd: string }) {
@@ -63,8 +63,8 @@
url: 'sys/mgr/roleAssign',
method: 'post',
data: {
- userId: userId,
- roleIds: ids
+ userId,
+ roleIds: ids,
},
// paramsSerializer: (params) => qs.stringify(params, { indices: false })
})
diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue
index 8405618..620806d 100644
--- a/src/components/DeptSelect/index.vue
+++ b/src/components/DeptSelect/index.vue
@@ -1,7 +1,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/editDept.vue b/src/views/system/dept/editDept.vue
new file mode 100644
index 0000000..c16ec9a
--- /dev/null
+++ b/src/views/system/dept/editDept.vue
@@ -0,0 +1,223 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/list.dept.vue b/src/views/system/dept/list.dept.vue
deleted file mode 100644
index 51ff8e7..0000000
--- a/src/views/system/dept/list.dept.vue
+++ /dev/null
@@ -1,138 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
new file mode 100644
index 0000000..07382e9
--- /dev/null
+++ b/src/views/system/dept/listDept.vue
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/dict-interface.ts b/src/views/system/dict/dict-interface.ts
new file mode 100644
index 0000000..9b647ec
--- /dev/null
+++ b/src/views/system/dict/dict-interface.ts
@@ -0,0 +1,25 @@
+// 字典值列表
+export interface DictDetail {
+ name: string
+ value: string
+ num: number
+}
+
+// 字典
+export interface DictInfo {
+ dictId: string
+ dictCode: string
+ dictName: string
+ dictTips: string
+ dictValues: DictDetail[]
+}
+
+export interface DictListInfo {
+ id: string
+ name: string
+ code: string
+ pid: string
+ detail: string
+ tips: string
+ num: number
+}
diff --git a/src/views/system/dict/dict_interface.ts b/src/views/system/dict/dict_interface.ts
deleted file mode 100644
index 9b647ec..0000000
--- a/src/views/system/dict/dict_interface.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-// 字典值列表
-export interface DictDetail {
- name: string
- value: string
- num: number
-}
-
-// 字典
-export interface DictInfo {
- dictId: string
- dictCode: string
- dictName: string
- dictTips: string
- dictValues: DictDetail[]
-}
-
-export interface DictListInfo {
- id: string
- name: string
- code: string
- pid: string
- detail: string
- tips: string
- num: number
-}
diff --git a/.env.development b/.env.development
index a5b855b..b34f073 100644
--- a/.env.development
+++ b/.env.development
@@ -1,8 +1,8 @@
# 页面标题
VITE_APP_TITLE = 后台基础框架
# 接口请求地址,会设置到 axios 的 baseURL 参数上
-VITE_APP_API_BASEURL = http://111.198.10.15:11309
-# VITE_APP_API_BASEURL = http://111.198.10.15:21409
+# VITE_APP_API_BASEURL = http://111.198.10.15:11309
+VITE_APP_API_BASEURL = http://111.198.10.15:21409
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
VITE_APP_DEBUG_TOOL =
diff --git a/.eslintrc b/.eslintrc
index 5d9c01f..5c6806e 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -3,6 +3,10 @@
"rules": {
"curly": ["error", "all"],
"no-tabs":"off",
- "no-const-assign": "off"
+ "no-const-assign": "off",
+ "vue/component-name-in-template-casing": ["error", "kebab-case", {
+ "registeredComponentsOnly": false,
+ "ignores": []
+ }]
}
}
diff --git a/README.md b/README.md
index 89ec586..d529f38 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
-
Vue3-admin
+SmartMeteringFront
-基于Vue3的中后台管理系统框架
+计量管理系统
## 简要说明
diff --git a/src/api/system/user.ts b/src/api/system/user.ts
index dac3b84..b76afc5 100644
--- a/src/api/system/user.ts
+++ b/src/api/system/user.ts
@@ -1,5 +1,5 @@
+// import qs from 'qs'
import request from '../index'
-import qs from 'qs'
const prefix = 'sys/'
// 修改密码
export function changePwd(data: { oldPwd: string; newPwd: string }) {
@@ -63,8 +63,8 @@
url: 'sys/mgr/roleAssign',
method: 'post',
data: {
- userId: userId,
- roleIds: ids
+ userId,
+ roleIds: ids,
},
// paramsSerializer: (params) => qs.stringify(params, { indices: false })
})
diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue
index 8405618..620806d 100644
--- a/src/components/DeptSelect/index.vue
+++ b/src/components/DeptSelect/index.vue
@@ -1,7 +1,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/editDept.vue b/src/views/system/dept/editDept.vue
new file mode 100644
index 0000000..c16ec9a
--- /dev/null
+++ b/src/views/system/dept/editDept.vue
@@ -0,0 +1,223 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/list.dept.vue b/src/views/system/dept/list.dept.vue
deleted file mode 100644
index 51ff8e7..0000000
--- a/src/views/system/dept/list.dept.vue
+++ /dev/null
@@ -1,138 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
new file mode 100644
index 0000000..07382e9
--- /dev/null
+++ b/src/views/system/dept/listDept.vue
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/dict-interface.ts b/src/views/system/dict/dict-interface.ts
new file mode 100644
index 0000000..9b647ec
--- /dev/null
+++ b/src/views/system/dict/dict-interface.ts
@@ -0,0 +1,25 @@
+// 字典值列表
+export interface DictDetail {
+ name: string
+ value: string
+ num: number
+}
+
+// 字典
+export interface DictInfo {
+ dictId: string
+ dictCode: string
+ dictName: string
+ dictTips: string
+ dictValues: DictDetail[]
+}
+
+export interface DictListInfo {
+ id: string
+ name: string
+ code: string
+ pid: string
+ detail: string
+ tips: string
+ num: number
+}
diff --git a/src/views/system/dict/dict_interface.ts b/src/views/system/dict/dict_interface.ts
deleted file mode 100644
index 9b647ec..0000000
--- a/src/views/system/dict/dict_interface.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-// 字典值列表
-export interface DictDetail {
- name: string
- value: string
- num: number
-}
-
-// 字典
-export interface DictInfo {
- dictId: string
- dictCode: string
- dictName: string
- dictTips: string
- dictValues: DictDetail[]
-}
-
-export interface DictListInfo {
- id: string
- name: string
- code: string
- pid: string
- detail: string
- tips: string
- num: number
-}
diff --git a/src/views/system/dict/edit.dict.vue b/src/views/system/dict/edit.dict.vue
deleted file mode 100644
index d8a6d90..0000000
--- a/src/views/system/dict/edit.dict.vue
+++ /dev/null
@@ -1,250 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 字典值列表
-
- 添加
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/.env.development b/.env.development
index a5b855b..b34f073 100644
--- a/.env.development
+++ b/.env.development
@@ -1,8 +1,8 @@
# 页面标题
VITE_APP_TITLE = 后台基础框架
# 接口请求地址,会设置到 axios 的 baseURL 参数上
-VITE_APP_API_BASEURL = http://111.198.10.15:11309
-# VITE_APP_API_BASEURL = http://111.198.10.15:21409
+# VITE_APP_API_BASEURL = http://111.198.10.15:11309
+VITE_APP_API_BASEURL = http://111.198.10.15:21409
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
VITE_APP_DEBUG_TOOL =
diff --git a/.eslintrc b/.eslintrc
index 5d9c01f..5c6806e 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -3,6 +3,10 @@
"rules": {
"curly": ["error", "all"],
"no-tabs":"off",
- "no-const-assign": "off"
+ "no-const-assign": "off",
+ "vue/component-name-in-template-casing": ["error", "kebab-case", {
+ "registeredComponentsOnly": false,
+ "ignores": []
+ }]
}
}
diff --git a/README.md b/README.md
index 89ec586..d529f38 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
-
Vue3-admin
+SmartMeteringFront
-基于Vue3的中后台管理系统框架
+计量管理系统
## 简要说明
diff --git a/src/api/system/user.ts b/src/api/system/user.ts
index dac3b84..b76afc5 100644
--- a/src/api/system/user.ts
+++ b/src/api/system/user.ts
@@ -1,5 +1,5 @@
+// import qs from 'qs'
import request from '../index'
-import qs from 'qs'
const prefix = 'sys/'
// 修改密码
export function changePwd(data: { oldPwd: string; newPwd: string }) {
@@ -63,8 +63,8 @@
url: 'sys/mgr/roleAssign',
method: 'post',
data: {
- userId: userId,
- roleIds: ids
+ userId,
+ roleIds: ids,
},
// paramsSerializer: (params) => qs.stringify(params, { indices: false })
})
diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue
index 8405618..620806d 100644
--- a/src/components/DeptSelect/index.vue
+++ b/src/components/DeptSelect/index.vue
@@ -1,7 +1,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/editDept.vue b/src/views/system/dept/editDept.vue
new file mode 100644
index 0000000..c16ec9a
--- /dev/null
+++ b/src/views/system/dept/editDept.vue
@@ -0,0 +1,223 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/list.dept.vue b/src/views/system/dept/list.dept.vue
deleted file mode 100644
index 51ff8e7..0000000
--- a/src/views/system/dept/list.dept.vue
+++ /dev/null
@@ -1,138 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
new file mode 100644
index 0000000..07382e9
--- /dev/null
+++ b/src/views/system/dept/listDept.vue
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/dict-interface.ts b/src/views/system/dict/dict-interface.ts
new file mode 100644
index 0000000..9b647ec
--- /dev/null
+++ b/src/views/system/dict/dict-interface.ts
@@ -0,0 +1,25 @@
+// 字典值列表
+export interface DictDetail {
+ name: string
+ value: string
+ num: number
+}
+
+// 字典
+export interface DictInfo {
+ dictId: string
+ dictCode: string
+ dictName: string
+ dictTips: string
+ dictValues: DictDetail[]
+}
+
+export interface DictListInfo {
+ id: string
+ name: string
+ code: string
+ pid: string
+ detail: string
+ tips: string
+ num: number
+}
diff --git a/src/views/system/dict/dict_interface.ts b/src/views/system/dict/dict_interface.ts
deleted file mode 100644
index 9b647ec..0000000
--- a/src/views/system/dict/dict_interface.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-// 字典值列表
-export interface DictDetail {
- name: string
- value: string
- num: number
-}
-
-// 字典
-export interface DictInfo {
- dictId: string
- dictCode: string
- dictName: string
- dictTips: string
- dictValues: DictDetail[]
-}
-
-export interface DictListInfo {
- id: string
- name: string
- code: string
- pid: string
- detail: string
- tips: string
- num: number
-}
diff --git a/src/views/system/dict/edit.dict.vue b/src/views/system/dict/edit.dict.vue
deleted file mode 100644
index d8a6d90..0000000
--- a/src/views/system/dict/edit.dict.vue
+++ /dev/null
@@ -1,250 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 字典值列表
-
- 添加
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dict/editDict.vue b/src/views/system/dict/editDict.vue
new file mode 100644
index 0000000..c2e9eb8
--- /dev/null
+++ b/src/views/system/dict/editDict.vue
@@ -0,0 +1,250 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 字典值列表
+
+ 添加
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.env.development b/.env.development
index a5b855b..b34f073 100644
--- a/.env.development
+++ b/.env.development
@@ -1,8 +1,8 @@
# 页面标题
VITE_APP_TITLE = 后台基础框架
# 接口请求地址,会设置到 axios 的 baseURL 参数上
-VITE_APP_API_BASEURL = http://111.198.10.15:11309
-# VITE_APP_API_BASEURL = http://111.198.10.15:21409
+# VITE_APP_API_BASEURL = http://111.198.10.15:11309
+VITE_APP_API_BASEURL = http://111.198.10.15:21409
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
VITE_APP_DEBUG_TOOL =
diff --git a/.eslintrc b/.eslintrc
index 5d9c01f..5c6806e 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -3,6 +3,10 @@
"rules": {
"curly": ["error", "all"],
"no-tabs":"off",
- "no-const-assign": "off"
+ "no-const-assign": "off",
+ "vue/component-name-in-template-casing": ["error", "kebab-case", {
+ "registeredComponentsOnly": false,
+ "ignores": []
+ }]
}
}
diff --git a/README.md b/README.md
index 89ec586..d529f38 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
-
Vue3-admin
+SmartMeteringFront
-基于Vue3的中后台管理系统框架
+计量管理系统
## 简要说明
diff --git a/src/api/system/user.ts b/src/api/system/user.ts
index dac3b84..b76afc5 100644
--- a/src/api/system/user.ts
+++ b/src/api/system/user.ts
@@ -1,5 +1,5 @@
+// import qs from 'qs'
import request from '../index'
-import qs from 'qs'
const prefix = 'sys/'
// 修改密码
export function changePwd(data: { oldPwd: string; newPwd: string }) {
@@ -63,8 +63,8 @@
url: 'sys/mgr/roleAssign',
method: 'post',
data: {
- userId: userId,
- roleIds: ids
+ userId,
+ roleIds: ids,
},
// paramsSerializer: (params) => qs.stringify(params, { indices: false })
})
diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue
index 8405618..620806d 100644
--- a/src/components/DeptSelect/index.vue
+++ b/src/components/DeptSelect/index.vue
@@ -1,7 +1,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/editDept.vue b/src/views/system/dept/editDept.vue
new file mode 100644
index 0000000..c16ec9a
--- /dev/null
+++ b/src/views/system/dept/editDept.vue
@@ -0,0 +1,223 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/list.dept.vue b/src/views/system/dept/list.dept.vue
deleted file mode 100644
index 51ff8e7..0000000
--- a/src/views/system/dept/list.dept.vue
+++ /dev/null
@@ -1,138 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
new file mode 100644
index 0000000..07382e9
--- /dev/null
+++ b/src/views/system/dept/listDept.vue
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/dict-interface.ts b/src/views/system/dict/dict-interface.ts
new file mode 100644
index 0000000..9b647ec
--- /dev/null
+++ b/src/views/system/dict/dict-interface.ts
@@ -0,0 +1,25 @@
+// 字典值列表
+export interface DictDetail {
+ name: string
+ value: string
+ num: number
+}
+
+// 字典
+export interface DictInfo {
+ dictId: string
+ dictCode: string
+ dictName: string
+ dictTips: string
+ dictValues: DictDetail[]
+}
+
+export interface DictListInfo {
+ id: string
+ name: string
+ code: string
+ pid: string
+ detail: string
+ tips: string
+ num: number
+}
diff --git a/src/views/system/dict/dict_interface.ts b/src/views/system/dict/dict_interface.ts
deleted file mode 100644
index 9b647ec..0000000
--- a/src/views/system/dict/dict_interface.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-// 字典值列表
-export interface DictDetail {
- name: string
- value: string
- num: number
-}
-
-// 字典
-export interface DictInfo {
- dictId: string
- dictCode: string
- dictName: string
- dictTips: string
- dictValues: DictDetail[]
-}
-
-export interface DictListInfo {
- id: string
- name: string
- code: string
- pid: string
- detail: string
- tips: string
- num: number
-}
diff --git a/src/views/system/dict/edit.dict.vue b/src/views/system/dict/edit.dict.vue
deleted file mode 100644
index d8a6d90..0000000
--- a/src/views/system/dict/edit.dict.vue
+++ /dev/null
@@ -1,250 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 字典值列表
-
- 添加
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dict/editDict.vue b/src/views/system/dict/editDict.vue
new file mode 100644
index 0000000..c2e9eb8
--- /dev/null
+++ b/src/views/system/dict/editDict.vue
@@ -0,0 +1,250 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 字典值列表
+
+ 添加
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/list.dict.vue b/src/views/system/dict/list.dict.vue
deleted file mode 100644
index 2c7d960..0000000
--- a/src/views/system/dict/list.dict.vue
+++ /dev/null
@@ -1,129 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
diff --git a/.env.development b/.env.development
index a5b855b..b34f073 100644
--- a/.env.development
+++ b/.env.development
@@ -1,8 +1,8 @@
# 页面标题
VITE_APP_TITLE = 后台基础框架
# 接口请求地址,会设置到 axios 的 baseURL 参数上
-VITE_APP_API_BASEURL = http://111.198.10.15:11309
-# VITE_APP_API_BASEURL = http://111.198.10.15:21409
+# VITE_APP_API_BASEURL = http://111.198.10.15:11309
+VITE_APP_API_BASEURL = http://111.198.10.15:21409
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
VITE_APP_DEBUG_TOOL =
diff --git a/.eslintrc b/.eslintrc
index 5d9c01f..5c6806e 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -3,6 +3,10 @@
"rules": {
"curly": ["error", "all"],
"no-tabs":"off",
- "no-const-assign": "off"
+ "no-const-assign": "off",
+ "vue/component-name-in-template-casing": ["error", "kebab-case", {
+ "registeredComponentsOnly": false,
+ "ignores": []
+ }]
}
}
diff --git a/README.md b/README.md
index 89ec586..d529f38 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
-
Vue3-admin
+SmartMeteringFront
-基于Vue3的中后台管理系统框架
+计量管理系统
## 简要说明
diff --git a/src/api/system/user.ts b/src/api/system/user.ts
index dac3b84..b76afc5 100644
--- a/src/api/system/user.ts
+++ b/src/api/system/user.ts
@@ -1,5 +1,5 @@
+// import qs from 'qs'
import request from '../index'
-import qs from 'qs'
const prefix = 'sys/'
// 修改密码
export function changePwd(data: { oldPwd: string; newPwd: string }) {
@@ -63,8 +63,8 @@
url: 'sys/mgr/roleAssign',
method: 'post',
data: {
- userId: userId,
- roleIds: ids
+ userId,
+ roleIds: ids,
},
// paramsSerializer: (params) => qs.stringify(params, { indices: false })
})
diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue
index 8405618..620806d 100644
--- a/src/components/DeptSelect/index.vue
+++ b/src/components/DeptSelect/index.vue
@@ -1,7 +1,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/editDept.vue b/src/views/system/dept/editDept.vue
new file mode 100644
index 0000000..c16ec9a
--- /dev/null
+++ b/src/views/system/dept/editDept.vue
@@ -0,0 +1,223 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/list.dept.vue b/src/views/system/dept/list.dept.vue
deleted file mode 100644
index 51ff8e7..0000000
--- a/src/views/system/dept/list.dept.vue
+++ /dev/null
@@ -1,138 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
new file mode 100644
index 0000000..07382e9
--- /dev/null
+++ b/src/views/system/dept/listDept.vue
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/dict-interface.ts b/src/views/system/dict/dict-interface.ts
new file mode 100644
index 0000000..9b647ec
--- /dev/null
+++ b/src/views/system/dict/dict-interface.ts
@@ -0,0 +1,25 @@
+// 字典值列表
+export interface DictDetail {
+ name: string
+ value: string
+ num: number
+}
+
+// 字典
+export interface DictInfo {
+ dictId: string
+ dictCode: string
+ dictName: string
+ dictTips: string
+ dictValues: DictDetail[]
+}
+
+export interface DictListInfo {
+ id: string
+ name: string
+ code: string
+ pid: string
+ detail: string
+ tips: string
+ num: number
+}
diff --git a/src/views/system/dict/dict_interface.ts b/src/views/system/dict/dict_interface.ts
deleted file mode 100644
index 9b647ec..0000000
--- a/src/views/system/dict/dict_interface.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-// 字典值列表
-export interface DictDetail {
- name: string
- value: string
- num: number
-}
-
-// 字典
-export interface DictInfo {
- dictId: string
- dictCode: string
- dictName: string
- dictTips: string
- dictValues: DictDetail[]
-}
-
-export interface DictListInfo {
- id: string
- name: string
- code: string
- pid: string
- detail: string
- tips: string
- num: number
-}
diff --git a/src/views/system/dict/edit.dict.vue b/src/views/system/dict/edit.dict.vue
deleted file mode 100644
index d8a6d90..0000000
--- a/src/views/system/dict/edit.dict.vue
+++ /dev/null
@@ -1,250 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 字典值列表
-
- 添加
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dict/editDict.vue b/src/views/system/dict/editDict.vue
new file mode 100644
index 0000000..c2e9eb8
--- /dev/null
+++ b/src/views/system/dict/editDict.vue
@@ -0,0 +1,250 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 字典值列表
+
+ 添加
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/list.dict.vue b/src/views/system/dict/list.dict.vue
deleted file mode 100644
index 2c7d960..0000000
--- a/src/views/system/dict/list.dict.vue
+++ /dev/null
@@ -1,129 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dict/listDict.vue b/src/views/system/dict/listDict.vue
new file mode 100644
index 0000000..feea486
--- /dev/null
+++ b/src/views/system/dict/listDict.vue
@@ -0,0 +1,129 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
diff --git a/.env.development b/.env.development
index a5b855b..b34f073 100644
--- a/.env.development
+++ b/.env.development
@@ -1,8 +1,8 @@
# 页面标题
VITE_APP_TITLE = 后台基础框架
# 接口请求地址,会设置到 axios 的 baseURL 参数上
-VITE_APP_API_BASEURL = http://111.198.10.15:11309
-# VITE_APP_API_BASEURL = http://111.198.10.15:21409
+# VITE_APP_API_BASEURL = http://111.198.10.15:11309
+VITE_APP_API_BASEURL = http://111.198.10.15:21409
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
VITE_APP_DEBUG_TOOL =
diff --git a/.eslintrc b/.eslintrc
index 5d9c01f..5c6806e 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -3,6 +3,10 @@
"rules": {
"curly": ["error", "all"],
"no-tabs":"off",
- "no-const-assign": "off"
+ "no-const-assign": "off",
+ "vue/component-name-in-template-casing": ["error", "kebab-case", {
+ "registeredComponentsOnly": false,
+ "ignores": []
+ }]
}
}
diff --git a/README.md b/README.md
index 89ec586..d529f38 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
-
Vue3-admin
+SmartMeteringFront
-基于Vue3的中后台管理系统框架
+计量管理系统
## 简要说明
diff --git a/src/api/system/user.ts b/src/api/system/user.ts
index dac3b84..b76afc5 100644
--- a/src/api/system/user.ts
+++ b/src/api/system/user.ts
@@ -1,5 +1,5 @@
+// import qs from 'qs'
import request from '../index'
-import qs from 'qs'
const prefix = 'sys/'
// 修改密码
export function changePwd(data: { oldPwd: string; newPwd: string }) {
@@ -63,8 +63,8 @@
url: 'sys/mgr/roleAssign',
method: 'post',
data: {
- userId: userId,
- roleIds: ids
+ userId,
+ roleIds: ids,
},
// paramsSerializer: (params) => qs.stringify(params, { indices: false })
})
diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue
index 8405618..620806d 100644
--- a/src/components/DeptSelect/index.vue
+++ b/src/components/DeptSelect/index.vue
@@ -1,7 +1,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/editDept.vue b/src/views/system/dept/editDept.vue
new file mode 100644
index 0000000..c16ec9a
--- /dev/null
+++ b/src/views/system/dept/editDept.vue
@@ -0,0 +1,223 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/list.dept.vue b/src/views/system/dept/list.dept.vue
deleted file mode 100644
index 51ff8e7..0000000
--- a/src/views/system/dept/list.dept.vue
+++ /dev/null
@@ -1,138 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
new file mode 100644
index 0000000..07382e9
--- /dev/null
+++ b/src/views/system/dept/listDept.vue
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/dict-interface.ts b/src/views/system/dict/dict-interface.ts
new file mode 100644
index 0000000..9b647ec
--- /dev/null
+++ b/src/views/system/dict/dict-interface.ts
@@ -0,0 +1,25 @@
+// 字典值列表
+export interface DictDetail {
+ name: string
+ value: string
+ num: number
+}
+
+// 字典
+export interface DictInfo {
+ dictId: string
+ dictCode: string
+ dictName: string
+ dictTips: string
+ dictValues: DictDetail[]
+}
+
+export interface DictListInfo {
+ id: string
+ name: string
+ code: string
+ pid: string
+ detail: string
+ tips: string
+ num: number
+}
diff --git a/src/views/system/dict/dict_interface.ts b/src/views/system/dict/dict_interface.ts
deleted file mode 100644
index 9b647ec..0000000
--- a/src/views/system/dict/dict_interface.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-// 字典值列表
-export interface DictDetail {
- name: string
- value: string
- num: number
-}
-
-// 字典
-export interface DictInfo {
- dictId: string
- dictCode: string
- dictName: string
- dictTips: string
- dictValues: DictDetail[]
-}
-
-export interface DictListInfo {
- id: string
- name: string
- code: string
- pid: string
- detail: string
- tips: string
- num: number
-}
diff --git a/src/views/system/dict/edit.dict.vue b/src/views/system/dict/edit.dict.vue
deleted file mode 100644
index d8a6d90..0000000
--- a/src/views/system/dict/edit.dict.vue
+++ /dev/null
@@ -1,250 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 字典值列表
-
- 添加
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dict/editDict.vue b/src/views/system/dict/editDict.vue
new file mode 100644
index 0000000..c2e9eb8
--- /dev/null
+++ b/src/views/system/dict/editDict.vue
@@ -0,0 +1,250 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 字典值列表
+
+ 添加
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/list.dict.vue b/src/views/system/dict/list.dict.vue
deleted file mode 100644
index 2c7d960..0000000
--- a/src/views/system/dict/list.dict.vue
+++ /dev/null
@@ -1,129 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dict/listDict.vue b/src/views/system/dict/listDict.vue
new file mode 100644
index 0000000..feea486
--- /dev/null
+++ b/src/views/system/dict/listDict.vue
@@ -0,0 +1,129 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/edit.resource.vue b/src/views/system/resource/edit.resource.vue
deleted file mode 100644
index 96c5015..0000000
--- a/src/views/system/resource/edit.resource.vue
+++ /dev/null
@@ -1,260 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/.env.development b/.env.development
index a5b855b..b34f073 100644
--- a/.env.development
+++ b/.env.development
@@ -1,8 +1,8 @@
# 页面标题
VITE_APP_TITLE = 后台基础框架
# 接口请求地址,会设置到 axios 的 baseURL 参数上
-VITE_APP_API_BASEURL = http://111.198.10.15:11309
-# VITE_APP_API_BASEURL = http://111.198.10.15:21409
+# VITE_APP_API_BASEURL = http://111.198.10.15:11309
+VITE_APP_API_BASEURL = http://111.198.10.15:21409
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
VITE_APP_DEBUG_TOOL =
diff --git a/.eslintrc b/.eslintrc
index 5d9c01f..5c6806e 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -3,6 +3,10 @@
"rules": {
"curly": ["error", "all"],
"no-tabs":"off",
- "no-const-assign": "off"
+ "no-const-assign": "off",
+ "vue/component-name-in-template-casing": ["error", "kebab-case", {
+ "registeredComponentsOnly": false,
+ "ignores": []
+ }]
}
}
diff --git a/README.md b/README.md
index 89ec586..d529f38 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
-
Vue3-admin
+SmartMeteringFront
-基于Vue3的中后台管理系统框架
+计量管理系统
## 简要说明
diff --git a/src/api/system/user.ts b/src/api/system/user.ts
index dac3b84..b76afc5 100644
--- a/src/api/system/user.ts
+++ b/src/api/system/user.ts
@@ -1,5 +1,5 @@
+// import qs from 'qs'
import request from '../index'
-import qs from 'qs'
const prefix = 'sys/'
// 修改密码
export function changePwd(data: { oldPwd: string; newPwd: string }) {
@@ -63,8 +63,8 @@
url: 'sys/mgr/roleAssign',
method: 'post',
data: {
- userId: userId,
- roleIds: ids
+ userId,
+ roleIds: ids,
},
// paramsSerializer: (params) => qs.stringify(params, { indices: false })
})
diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue
index 8405618..620806d 100644
--- a/src/components/DeptSelect/index.vue
+++ b/src/components/DeptSelect/index.vue
@@ -1,7 +1,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/editDept.vue b/src/views/system/dept/editDept.vue
new file mode 100644
index 0000000..c16ec9a
--- /dev/null
+++ b/src/views/system/dept/editDept.vue
@@ -0,0 +1,223 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/list.dept.vue b/src/views/system/dept/list.dept.vue
deleted file mode 100644
index 51ff8e7..0000000
--- a/src/views/system/dept/list.dept.vue
+++ /dev/null
@@ -1,138 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
new file mode 100644
index 0000000..07382e9
--- /dev/null
+++ b/src/views/system/dept/listDept.vue
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/dict-interface.ts b/src/views/system/dict/dict-interface.ts
new file mode 100644
index 0000000..9b647ec
--- /dev/null
+++ b/src/views/system/dict/dict-interface.ts
@@ -0,0 +1,25 @@
+// 字典值列表
+export interface DictDetail {
+ name: string
+ value: string
+ num: number
+}
+
+// 字典
+export interface DictInfo {
+ dictId: string
+ dictCode: string
+ dictName: string
+ dictTips: string
+ dictValues: DictDetail[]
+}
+
+export interface DictListInfo {
+ id: string
+ name: string
+ code: string
+ pid: string
+ detail: string
+ tips: string
+ num: number
+}
diff --git a/src/views/system/dict/dict_interface.ts b/src/views/system/dict/dict_interface.ts
deleted file mode 100644
index 9b647ec..0000000
--- a/src/views/system/dict/dict_interface.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-// 字典值列表
-export interface DictDetail {
- name: string
- value: string
- num: number
-}
-
-// 字典
-export interface DictInfo {
- dictId: string
- dictCode: string
- dictName: string
- dictTips: string
- dictValues: DictDetail[]
-}
-
-export interface DictListInfo {
- id: string
- name: string
- code: string
- pid: string
- detail: string
- tips: string
- num: number
-}
diff --git a/src/views/system/dict/edit.dict.vue b/src/views/system/dict/edit.dict.vue
deleted file mode 100644
index d8a6d90..0000000
--- a/src/views/system/dict/edit.dict.vue
+++ /dev/null
@@ -1,250 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 字典值列表
-
- 添加
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dict/editDict.vue b/src/views/system/dict/editDict.vue
new file mode 100644
index 0000000..c2e9eb8
--- /dev/null
+++ b/src/views/system/dict/editDict.vue
@@ -0,0 +1,250 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 字典值列表
+
+ 添加
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/list.dict.vue b/src/views/system/dict/list.dict.vue
deleted file mode 100644
index 2c7d960..0000000
--- a/src/views/system/dict/list.dict.vue
+++ /dev/null
@@ -1,129 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dict/listDict.vue b/src/views/system/dict/listDict.vue
new file mode 100644
index 0000000..feea486
--- /dev/null
+++ b/src/views/system/dict/listDict.vue
@@ -0,0 +1,129 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/edit.resource.vue b/src/views/system/resource/edit.resource.vue
deleted file mode 100644
index 96c5015..0000000
--- a/src/views/system/resource/edit.resource.vue
+++ /dev/null
@@ -1,260 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/resource/editResource.vue b/src/views/system/resource/editResource.vue
new file mode 100644
index 0000000..1e72e08
--- /dev/null
+++ b/src/views/system/resource/editResource.vue
@@ -0,0 +1,260 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.env.development b/.env.development
index a5b855b..b34f073 100644
--- a/.env.development
+++ b/.env.development
@@ -1,8 +1,8 @@
# 页面标题
VITE_APP_TITLE = 后台基础框架
# 接口请求地址,会设置到 axios 的 baseURL 参数上
-VITE_APP_API_BASEURL = http://111.198.10.15:11309
-# VITE_APP_API_BASEURL = http://111.198.10.15:21409
+# VITE_APP_API_BASEURL = http://111.198.10.15:11309
+VITE_APP_API_BASEURL = http://111.198.10.15:21409
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
VITE_APP_DEBUG_TOOL =
diff --git a/.eslintrc b/.eslintrc
index 5d9c01f..5c6806e 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -3,6 +3,10 @@
"rules": {
"curly": ["error", "all"],
"no-tabs":"off",
- "no-const-assign": "off"
+ "no-const-assign": "off",
+ "vue/component-name-in-template-casing": ["error", "kebab-case", {
+ "registeredComponentsOnly": false,
+ "ignores": []
+ }]
}
}
diff --git a/README.md b/README.md
index 89ec586..d529f38 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
-
Vue3-admin
+SmartMeteringFront
-基于Vue3的中后台管理系统框架
+计量管理系统
## 简要说明
diff --git a/src/api/system/user.ts b/src/api/system/user.ts
index dac3b84..b76afc5 100644
--- a/src/api/system/user.ts
+++ b/src/api/system/user.ts
@@ -1,5 +1,5 @@
+// import qs from 'qs'
import request from '../index'
-import qs from 'qs'
const prefix = 'sys/'
// 修改密码
export function changePwd(data: { oldPwd: string; newPwd: string }) {
@@ -63,8 +63,8 @@
url: 'sys/mgr/roleAssign',
method: 'post',
data: {
- userId: userId,
- roleIds: ids
+ userId,
+ roleIds: ids,
},
// paramsSerializer: (params) => qs.stringify(params, { indices: false })
})
diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue
index 8405618..620806d 100644
--- a/src/components/DeptSelect/index.vue
+++ b/src/components/DeptSelect/index.vue
@@ -1,7 +1,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/editDept.vue b/src/views/system/dept/editDept.vue
new file mode 100644
index 0000000..c16ec9a
--- /dev/null
+++ b/src/views/system/dept/editDept.vue
@@ -0,0 +1,223 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/list.dept.vue b/src/views/system/dept/list.dept.vue
deleted file mode 100644
index 51ff8e7..0000000
--- a/src/views/system/dept/list.dept.vue
+++ /dev/null
@@ -1,138 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
new file mode 100644
index 0000000..07382e9
--- /dev/null
+++ b/src/views/system/dept/listDept.vue
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/dict-interface.ts b/src/views/system/dict/dict-interface.ts
new file mode 100644
index 0000000..9b647ec
--- /dev/null
+++ b/src/views/system/dict/dict-interface.ts
@@ -0,0 +1,25 @@
+// 字典值列表
+export interface DictDetail {
+ name: string
+ value: string
+ num: number
+}
+
+// 字典
+export interface DictInfo {
+ dictId: string
+ dictCode: string
+ dictName: string
+ dictTips: string
+ dictValues: DictDetail[]
+}
+
+export interface DictListInfo {
+ id: string
+ name: string
+ code: string
+ pid: string
+ detail: string
+ tips: string
+ num: number
+}
diff --git a/src/views/system/dict/dict_interface.ts b/src/views/system/dict/dict_interface.ts
deleted file mode 100644
index 9b647ec..0000000
--- a/src/views/system/dict/dict_interface.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-// 字典值列表
-export interface DictDetail {
- name: string
- value: string
- num: number
-}
-
-// 字典
-export interface DictInfo {
- dictId: string
- dictCode: string
- dictName: string
- dictTips: string
- dictValues: DictDetail[]
-}
-
-export interface DictListInfo {
- id: string
- name: string
- code: string
- pid: string
- detail: string
- tips: string
- num: number
-}
diff --git a/src/views/system/dict/edit.dict.vue b/src/views/system/dict/edit.dict.vue
deleted file mode 100644
index d8a6d90..0000000
--- a/src/views/system/dict/edit.dict.vue
+++ /dev/null
@@ -1,250 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 字典值列表
-
- 添加
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dict/editDict.vue b/src/views/system/dict/editDict.vue
new file mode 100644
index 0000000..c2e9eb8
--- /dev/null
+++ b/src/views/system/dict/editDict.vue
@@ -0,0 +1,250 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 字典值列表
+
+ 添加
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/list.dict.vue b/src/views/system/dict/list.dict.vue
deleted file mode 100644
index 2c7d960..0000000
--- a/src/views/system/dict/list.dict.vue
+++ /dev/null
@@ -1,129 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dict/listDict.vue b/src/views/system/dict/listDict.vue
new file mode 100644
index 0000000..feea486
--- /dev/null
+++ b/src/views/system/dict/listDict.vue
@@ -0,0 +1,129 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/edit.resource.vue b/src/views/system/resource/edit.resource.vue
deleted file mode 100644
index 96c5015..0000000
--- a/src/views/system/resource/edit.resource.vue
+++ /dev/null
@@ -1,260 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/resource/editResource.vue b/src/views/system/resource/editResource.vue
new file mode 100644
index 0000000..1e72e08
--- /dev/null
+++ b/src/views/system/resource/editResource.vue
@@ -0,0 +1,260 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/list.resource.vue b/src/views/system/resource/list.resource.vue
deleted file mode 100644
index cb9c156..0000000
--- a/src/views/system/resource/list.resource.vue
+++ /dev/null
@@ -1,158 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
diff --git a/.env.development b/.env.development
index a5b855b..b34f073 100644
--- a/.env.development
+++ b/.env.development
@@ -1,8 +1,8 @@
# 页面标题
VITE_APP_TITLE = 后台基础框架
# 接口请求地址,会设置到 axios 的 baseURL 参数上
-VITE_APP_API_BASEURL = http://111.198.10.15:11309
-# VITE_APP_API_BASEURL = http://111.198.10.15:21409
+# VITE_APP_API_BASEURL = http://111.198.10.15:11309
+VITE_APP_API_BASEURL = http://111.198.10.15:21409
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
VITE_APP_DEBUG_TOOL =
diff --git a/.eslintrc b/.eslintrc
index 5d9c01f..5c6806e 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -3,6 +3,10 @@
"rules": {
"curly": ["error", "all"],
"no-tabs":"off",
- "no-const-assign": "off"
+ "no-const-assign": "off",
+ "vue/component-name-in-template-casing": ["error", "kebab-case", {
+ "registeredComponentsOnly": false,
+ "ignores": []
+ }]
}
}
diff --git a/README.md b/README.md
index 89ec586..d529f38 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
-
Vue3-admin
+SmartMeteringFront
-基于Vue3的中后台管理系统框架
+计量管理系统
## 简要说明
diff --git a/src/api/system/user.ts b/src/api/system/user.ts
index dac3b84..b76afc5 100644
--- a/src/api/system/user.ts
+++ b/src/api/system/user.ts
@@ -1,5 +1,5 @@
+// import qs from 'qs'
import request from '../index'
-import qs from 'qs'
const prefix = 'sys/'
// 修改密码
export function changePwd(data: { oldPwd: string; newPwd: string }) {
@@ -63,8 +63,8 @@
url: 'sys/mgr/roleAssign',
method: 'post',
data: {
- userId: userId,
- roleIds: ids
+ userId,
+ roleIds: ids,
},
// paramsSerializer: (params) => qs.stringify(params, { indices: false })
})
diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue
index 8405618..620806d 100644
--- a/src/components/DeptSelect/index.vue
+++ b/src/components/DeptSelect/index.vue
@@ -1,7 +1,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/editDept.vue b/src/views/system/dept/editDept.vue
new file mode 100644
index 0000000..c16ec9a
--- /dev/null
+++ b/src/views/system/dept/editDept.vue
@@ -0,0 +1,223 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/list.dept.vue b/src/views/system/dept/list.dept.vue
deleted file mode 100644
index 51ff8e7..0000000
--- a/src/views/system/dept/list.dept.vue
+++ /dev/null
@@ -1,138 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
new file mode 100644
index 0000000..07382e9
--- /dev/null
+++ b/src/views/system/dept/listDept.vue
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/dict-interface.ts b/src/views/system/dict/dict-interface.ts
new file mode 100644
index 0000000..9b647ec
--- /dev/null
+++ b/src/views/system/dict/dict-interface.ts
@@ -0,0 +1,25 @@
+// 字典值列表
+export interface DictDetail {
+ name: string
+ value: string
+ num: number
+}
+
+// 字典
+export interface DictInfo {
+ dictId: string
+ dictCode: string
+ dictName: string
+ dictTips: string
+ dictValues: DictDetail[]
+}
+
+export interface DictListInfo {
+ id: string
+ name: string
+ code: string
+ pid: string
+ detail: string
+ tips: string
+ num: number
+}
diff --git a/src/views/system/dict/dict_interface.ts b/src/views/system/dict/dict_interface.ts
deleted file mode 100644
index 9b647ec..0000000
--- a/src/views/system/dict/dict_interface.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-// 字典值列表
-export interface DictDetail {
- name: string
- value: string
- num: number
-}
-
-// 字典
-export interface DictInfo {
- dictId: string
- dictCode: string
- dictName: string
- dictTips: string
- dictValues: DictDetail[]
-}
-
-export interface DictListInfo {
- id: string
- name: string
- code: string
- pid: string
- detail: string
- tips: string
- num: number
-}
diff --git a/src/views/system/dict/edit.dict.vue b/src/views/system/dict/edit.dict.vue
deleted file mode 100644
index d8a6d90..0000000
--- a/src/views/system/dict/edit.dict.vue
+++ /dev/null
@@ -1,250 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 字典值列表
-
- 添加
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dict/editDict.vue b/src/views/system/dict/editDict.vue
new file mode 100644
index 0000000..c2e9eb8
--- /dev/null
+++ b/src/views/system/dict/editDict.vue
@@ -0,0 +1,250 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 字典值列表
+
+ 添加
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/list.dict.vue b/src/views/system/dict/list.dict.vue
deleted file mode 100644
index 2c7d960..0000000
--- a/src/views/system/dict/list.dict.vue
+++ /dev/null
@@ -1,129 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dict/listDict.vue b/src/views/system/dict/listDict.vue
new file mode 100644
index 0000000..feea486
--- /dev/null
+++ b/src/views/system/dict/listDict.vue
@@ -0,0 +1,129 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/edit.resource.vue b/src/views/system/resource/edit.resource.vue
deleted file mode 100644
index 96c5015..0000000
--- a/src/views/system/resource/edit.resource.vue
+++ /dev/null
@@ -1,260 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/resource/editResource.vue b/src/views/system/resource/editResource.vue
new file mode 100644
index 0000000..1e72e08
--- /dev/null
+++ b/src/views/system/resource/editResource.vue
@@ -0,0 +1,260 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/list.resource.vue b/src/views/system/resource/list.resource.vue
deleted file mode 100644
index cb9c156..0000000
--- a/src/views/system/resource/list.resource.vue
+++ /dev/null
@@ -1,158 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
diff --git a/src/views/system/resource/listResource.vue b/src/views/system/resource/listResource.vue
new file mode 100644
index 0000000..f332c24
--- /dev/null
+++ b/src/views/system/resource/listResource.vue
@@ -0,0 +1,158 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
diff --git a/.env.development b/.env.development
index a5b855b..b34f073 100644
--- a/.env.development
+++ b/.env.development
@@ -1,8 +1,8 @@
# 页面标题
VITE_APP_TITLE = 后台基础框架
# 接口请求地址,会设置到 axios 的 baseURL 参数上
-VITE_APP_API_BASEURL = http://111.198.10.15:11309
-# VITE_APP_API_BASEURL = http://111.198.10.15:21409
+# VITE_APP_API_BASEURL = http://111.198.10.15:11309
+VITE_APP_API_BASEURL = http://111.198.10.15:21409
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
VITE_APP_DEBUG_TOOL =
diff --git a/.eslintrc b/.eslintrc
index 5d9c01f..5c6806e 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -3,6 +3,10 @@
"rules": {
"curly": ["error", "all"],
"no-tabs":"off",
- "no-const-assign": "off"
+ "no-const-assign": "off",
+ "vue/component-name-in-template-casing": ["error", "kebab-case", {
+ "registeredComponentsOnly": false,
+ "ignores": []
+ }]
}
}
diff --git a/README.md b/README.md
index 89ec586..d529f38 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
-
Vue3-admin
+SmartMeteringFront
-基于Vue3的中后台管理系统框架
+计量管理系统
## 简要说明
diff --git a/src/api/system/user.ts b/src/api/system/user.ts
index dac3b84..b76afc5 100644
--- a/src/api/system/user.ts
+++ b/src/api/system/user.ts
@@ -1,5 +1,5 @@
+// import qs from 'qs'
import request from '../index'
-import qs from 'qs'
const prefix = 'sys/'
// 修改密码
export function changePwd(data: { oldPwd: string; newPwd: string }) {
@@ -63,8 +63,8 @@
url: 'sys/mgr/roleAssign',
method: 'post',
data: {
- userId: userId,
- roleIds: ids
+ userId,
+ roleIds: ids,
},
// paramsSerializer: (params) => qs.stringify(params, { indices: false })
})
diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue
index 8405618..620806d 100644
--- a/src/components/DeptSelect/index.vue
+++ b/src/components/DeptSelect/index.vue
@@ -1,7 +1,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/editDept.vue b/src/views/system/dept/editDept.vue
new file mode 100644
index 0000000..c16ec9a
--- /dev/null
+++ b/src/views/system/dept/editDept.vue
@@ -0,0 +1,223 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/list.dept.vue b/src/views/system/dept/list.dept.vue
deleted file mode 100644
index 51ff8e7..0000000
--- a/src/views/system/dept/list.dept.vue
+++ /dev/null
@@ -1,138 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
new file mode 100644
index 0000000..07382e9
--- /dev/null
+++ b/src/views/system/dept/listDept.vue
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/dict-interface.ts b/src/views/system/dict/dict-interface.ts
new file mode 100644
index 0000000..9b647ec
--- /dev/null
+++ b/src/views/system/dict/dict-interface.ts
@@ -0,0 +1,25 @@
+// 字典值列表
+export interface DictDetail {
+ name: string
+ value: string
+ num: number
+}
+
+// 字典
+export interface DictInfo {
+ dictId: string
+ dictCode: string
+ dictName: string
+ dictTips: string
+ dictValues: DictDetail[]
+}
+
+export interface DictListInfo {
+ id: string
+ name: string
+ code: string
+ pid: string
+ detail: string
+ tips: string
+ num: number
+}
diff --git a/src/views/system/dict/dict_interface.ts b/src/views/system/dict/dict_interface.ts
deleted file mode 100644
index 9b647ec..0000000
--- a/src/views/system/dict/dict_interface.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-// 字典值列表
-export interface DictDetail {
- name: string
- value: string
- num: number
-}
-
-// 字典
-export interface DictInfo {
- dictId: string
- dictCode: string
- dictName: string
- dictTips: string
- dictValues: DictDetail[]
-}
-
-export interface DictListInfo {
- id: string
- name: string
- code: string
- pid: string
- detail: string
- tips: string
- num: number
-}
diff --git a/src/views/system/dict/edit.dict.vue b/src/views/system/dict/edit.dict.vue
deleted file mode 100644
index d8a6d90..0000000
--- a/src/views/system/dict/edit.dict.vue
+++ /dev/null
@@ -1,250 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 字典值列表
-
- 添加
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dict/editDict.vue b/src/views/system/dict/editDict.vue
new file mode 100644
index 0000000..c2e9eb8
--- /dev/null
+++ b/src/views/system/dict/editDict.vue
@@ -0,0 +1,250 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 字典值列表
+
+ 添加
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/list.dict.vue b/src/views/system/dict/list.dict.vue
deleted file mode 100644
index 2c7d960..0000000
--- a/src/views/system/dict/list.dict.vue
+++ /dev/null
@@ -1,129 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dict/listDict.vue b/src/views/system/dict/listDict.vue
new file mode 100644
index 0000000..feea486
--- /dev/null
+++ b/src/views/system/dict/listDict.vue
@@ -0,0 +1,129 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/edit.resource.vue b/src/views/system/resource/edit.resource.vue
deleted file mode 100644
index 96c5015..0000000
--- a/src/views/system/resource/edit.resource.vue
+++ /dev/null
@@ -1,260 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/resource/editResource.vue b/src/views/system/resource/editResource.vue
new file mode 100644
index 0000000..1e72e08
--- /dev/null
+++ b/src/views/system/resource/editResource.vue
@@ -0,0 +1,260 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/list.resource.vue b/src/views/system/resource/list.resource.vue
deleted file mode 100644
index cb9c156..0000000
--- a/src/views/system/resource/list.resource.vue
+++ /dev/null
@@ -1,158 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
diff --git a/src/views/system/resource/listResource.vue b/src/views/system/resource/listResource.vue
new file mode 100644
index 0000000..f332c24
--- /dev/null
+++ b/src/views/system/resource/listResource.vue
@@ -0,0 +1,158 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/resource-interface.ts b/src/views/system/resource/resource-interface.ts
new file mode 100644
index 0000000..a9f2bd8
--- /dev/null
+++ b/src/views/system/resource/resource-interface.ts
@@ -0,0 +1,23 @@
+export enum ResourceTypeEnum {
+ '02' = '子系统',
+ '03' = '菜单',
+ '04' = '按钮',
+}
+// 资源类型
+export interface ResourceTypeInfo {
+ name: string
+ value: string
+}
+
+// 资源
+export interface ResourceInfo {
+ id: string
+ name: string
+ url: string
+ code: string
+ pid: string
+ resourceType: string
+ num: number
+ icon: string
+ children?: ResourceInfo[]
+}
diff --git a/.env.development b/.env.development
index a5b855b..b34f073 100644
--- a/.env.development
+++ b/.env.development
@@ -1,8 +1,8 @@
# 页面标题
VITE_APP_TITLE = 后台基础框架
# 接口请求地址,会设置到 axios 的 baseURL 参数上
-VITE_APP_API_BASEURL = http://111.198.10.15:11309
-# VITE_APP_API_BASEURL = http://111.198.10.15:21409
+# VITE_APP_API_BASEURL = http://111.198.10.15:11309
+VITE_APP_API_BASEURL = http://111.198.10.15:21409
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
VITE_APP_DEBUG_TOOL =
diff --git a/.eslintrc b/.eslintrc
index 5d9c01f..5c6806e 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -3,6 +3,10 @@
"rules": {
"curly": ["error", "all"],
"no-tabs":"off",
- "no-const-assign": "off"
+ "no-const-assign": "off",
+ "vue/component-name-in-template-casing": ["error", "kebab-case", {
+ "registeredComponentsOnly": false,
+ "ignores": []
+ }]
}
}
diff --git a/README.md b/README.md
index 89ec586..d529f38 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
-
Vue3-admin
+SmartMeteringFront
-基于Vue3的中后台管理系统框架
+计量管理系统
## 简要说明
diff --git a/src/api/system/user.ts b/src/api/system/user.ts
index dac3b84..b76afc5 100644
--- a/src/api/system/user.ts
+++ b/src/api/system/user.ts
@@ -1,5 +1,5 @@
+// import qs from 'qs'
import request from '../index'
-import qs from 'qs'
const prefix = 'sys/'
// 修改密码
export function changePwd(data: { oldPwd: string; newPwd: string }) {
@@ -63,8 +63,8 @@
url: 'sys/mgr/roleAssign',
method: 'post',
data: {
- userId: userId,
- roleIds: ids
+ userId,
+ roleIds: ids,
},
// paramsSerializer: (params) => qs.stringify(params, { indices: false })
})
diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue
index 8405618..620806d 100644
--- a/src/components/DeptSelect/index.vue
+++ b/src/components/DeptSelect/index.vue
@@ -1,7 +1,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/editDept.vue b/src/views/system/dept/editDept.vue
new file mode 100644
index 0000000..c16ec9a
--- /dev/null
+++ b/src/views/system/dept/editDept.vue
@@ -0,0 +1,223 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/list.dept.vue b/src/views/system/dept/list.dept.vue
deleted file mode 100644
index 51ff8e7..0000000
--- a/src/views/system/dept/list.dept.vue
+++ /dev/null
@@ -1,138 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
new file mode 100644
index 0000000..07382e9
--- /dev/null
+++ b/src/views/system/dept/listDept.vue
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/dict-interface.ts b/src/views/system/dict/dict-interface.ts
new file mode 100644
index 0000000..9b647ec
--- /dev/null
+++ b/src/views/system/dict/dict-interface.ts
@@ -0,0 +1,25 @@
+// 字典值列表
+export interface DictDetail {
+ name: string
+ value: string
+ num: number
+}
+
+// 字典
+export interface DictInfo {
+ dictId: string
+ dictCode: string
+ dictName: string
+ dictTips: string
+ dictValues: DictDetail[]
+}
+
+export interface DictListInfo {
+ id: string
+ name: string
+ code: string
+ pid: string
+ detail: string
+ tips: string
+ num: number
+}
diff --git a/src/views/system/dict/dict_interface.ts b/src/views/system/dict/dict_interface.ts
deleted file mode 100644
index 9b647ec..0000000
--- a/src/views/system/dict/dict_interface.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-// 字典值列表
-export interface DictDetail {
- name: string
- value: string
- num: number
-}
-
-// 字典
-export interface DictInfo {
- dictId: string
- dictCode: string
- dictName: string
- dictTips: string
- dictValues: DictDetail[]
-}
-
-export interface DictListInfo {
- id: string
- name: string
- code: string
- pid: string
- detail: string
- tips: string
- num: number
-}
diff --git a/src/views/system/dict/edit.dict.vue b/src/views/system/dict/edit.dict.vue
deleted file mode 100644
index d8a6d90..0000000
--- a/src/views/system/dict/edit.dict.vue
+++ /dev/null
@@ -1,250 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 字典值列表
-
- 添加
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dict/editDict.vue b/src/views/system/dict/editDict.vue
new file mode 100644
index 0000000..c2e9eb8
--- /dev/null
+++ b/src/views/system/dict/editDict.vue
@@ -0,0 +1,250 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 字典值列表
+
+ 添加
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/list.dict.vue b/src/views/system/dict/list.dict.vue
deleted file mode 100644
index 2c7d960..0000000
--- a/src/views/system/dict/list.dict.vue
+++ /dev/null
@@ -1,129 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dict/listDict.vue b/src/views/system/dict/listDict.vue
new file mode 100644
index 0000000..feea486
--- /dev/null
+++ b/src/views/system/dict/listDict.vue
@@ -0,0 +1,129 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/edit.resource.vue b/src/views/system/resource/edit.resource.vue
deleted file mode 100644
index 96c5015..0000000
--- a/src/views/system/resource/edit.resource.vue
+++ /dev/null
@@ -1,260 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/resource/editResource.vue b/src/views/system/resource/editResource.vue
new file mode 100644
index 0000000..1e72e08
--- /dev/null
+++ b/src/views/system/resource/editResource.vue
@@ -0,0 +1,260 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/list.resource.vue b/src/views/system/resource/list.resource.vue
deleted file mode 100644
index cb9c156..0000000
--- a/src/views/system/resource/list.resource.vue
+++ /dev/null
@@ -1,158 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
diff --git a/src/views/system/resource/listResource.vue b/src/views/system/resource/listResource.vue
new file mode 100644
index 0000000..f332c24
--- /dev/null
+++ b/src/views/system/resource/listResource.vue
@@ -0,0 +1,158 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/resource-interface.ts b/src/views/system/resource/resource-interface.ts
new file mode 100644
index 0000000..a9f2bd8
--- /dev/null
+++ b/src/views/system/resource/resource-interface.ts
@@ -0,0 +1,23 @@
+export enum ResourceTypeEnum {
+ '02' = '子系统',
+ '03' = '菜单',
+ '04' = '按钮',
+}
+// 资源类型
+export interface ResourceTypeInfo {
+ name: string
+ value: string
+}
+
+// 资源
+export interface ResourceInfo {
+ id: string
+ name: string
+ url: string
+ code: string
+ pid: string
+ resourceType: string
+ num: number
+ icon: string
+ children?: ResourceInfo[]
+}
diff --git a/src/views/system/resource/resource_interface.ts b/src/views/system/resource/resource_interface.ts
deleted file mode 100644
index a9f2bd8..0000000
--- a/src/views/system/resource/resource_interface.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-export enum ResourceTypeEnum {
- '02' = '子系统',
- '03' = '菜单',
- '04' = '按钮',
-}
-// 资源类型
-export interface ResourceTypeInfo {
- name: string
- value: string
-}
-
-// 资源
-export interface ResourceInfo {
- id: string
- name: string
- url: string
- code: string
- pid: string
- resourceType: string
- num: number
- icon: string
- children?: ResourceInfo[]
-}
diff --git a/.env.development b/.env.development
index a5b855b..b34f073 100644
--- a/.env.development
+++ b/.env.development
@@ -1,8 +1,8 @@
# 页面标题
VITE_APP_TITLE = 后台基础框架
# 接口请求地址,会设置到 axios 的 baseURL 参数上
-VITE_APP_API_BASEURL = http://111.198.10.15:11309
-# VITE_APP_API_BASEURL = http://111.198.10.15:21409
+# VITE_APP_API_BASEURL = http://111.198.10.15:11309
+VITE_APP_API_BASEURL = http://111.198.10.15:21409
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
VITE_APP_DEBUG_TOOL =
diff --git a/.eslintrc b/.eslintrc
index 5d9c01f..5c6806e 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -3,6 +3,10 @@
"rules": {
"curly": ["error", "all"],
"no-tabs":"off",
- "no-const-assign": "off"
+ "no-const-assign": "off",
+ "vue/component-name-in-template-casing": ["error", "kebab-case", {
+ "registeredComponentsOnly": false,
+ "ignores": []
+ }]
}
}
diff --git a/README.md b/README.md
index 89ec586..d529f38 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
-
Vue3-admin
+SmartMeteringFront
-基于Vue3的中后台管理系统框架
+计量管理系统
## 简要说明
diff --git a/src/api/system/user.ts b/src/api/system/user.ts
index dac3b84..b76afc5 100644
--- a/src/api/system/user.ts
+++ b/src/api/system/user.ts
@@ -1,5 +1,5 @@
+// import qs from 'qs'
import request from '../index'
-import qs from 'qs'
const prefix = 'sys/'
// 修改密码
export function changePwd(data: { oldPwd: string; newPwd: string }) {
@@ -63,8 +63,8 @@
url: 'sys/mgr/roleAssign',
method: 'post',
data: {
- userId: userId,
- roleIds: ids
+ userId,
+ roleIds: ids,
},
// paramsSerializer: (params) => qs.stringify(params, { indices: false })
})
diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue
index 8405618..620806d 100644
--- a/src/components/DeptSelect/index.vue
+++ b/src/components/DeptSelect/index.vue
@@ -1,7 +1,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/editDept.vue b/src/views/system/dept/editDept.vue
new file mode 100644
index 0000000..c16ec9a
--- /dev/null
+++ b/src/views/system/dept/editDept.vue
@@ -0,0 +1,223 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/list.dept.vue b/src/views/system/dept/list.dept.vue
deleted file mode 100644
index 51ff8e7..0000000
--- a/src/views/system/dept/list.dept.vue
+++ /dev/null
@@ -1,138 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
new file mode 100644
index 0000000..07382e9
--- /dev/null
+++ b/src/views/system/dept/listDept.vue
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/dict-interface.ts b/src/views/system/dict/dict-interface.ts
new file mode 100644
index 0000000..9b647ec
--- /dev/null
+++ b/src/views/system/dict/dict-interface.ts
@@ -0,0 +1,25 @@
+// 字典值列表
+export interface DictDetail {
+ name: string
+ value: string
+ num: number
+}
+
+// 字典
+export interface DictInfo {
+ dictId: string
+ dictCode: string
+ dictName: string
+ dictTips: string
+ dictValues: DictDetail[]
+}
+
+export interface DictListInfo {
+ id: string
+ name: string
+ code: string
+ pid: string
+ detail: string
+ tips: string
+ num: number
+}
diff --git a/src/views/system/dict/dict_interface.ts b/src/views/system/dict/dict_interface.ts
deleted file mode 100644
index 9b647ec..0000000
--- a/src/views/system/dict/dict_interface.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-// 字典值列表
-export interface DictDetail {
- name: string
- value: string
- num: number
-}
-
-// 字典
-export interface DictInfo {
- dictId: string
- dictCode: string
- dictName: string
- dictTips: string
- dictValues: DictDetail[]
-}
-
-export interface DictListInfo {
- id: string
- name: string
- code: string
- pid: string
- detail: string
- tips: string
- num: number
-}
diff --git a/src/views/system/dict/edit.dict.vue b/src/views/system/dict/edit.dict.vue
deleted file mode 100644
index d8a6d90..0000000
--- a/src/views/system/dict/edit.dict.vue
+++ /dev/null
@@ -1,250 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 字典值列表
-
- 添加
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dict/editDict.vue b/src/views/system/dict/editDict.vue
new file mode 100644
index 0000000..c2e9eb8
--- /dev/null
+++ b/src/views/system/dict/editDict.vue
@@ -0,0 +1,250 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 字典值列表
+
+ 添加
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/list.dict.vue b/src/views/system/dict/list.dict.vue
deleted file mode 100644
index 2c7d960..0000000
--- a/src/views/system/dict/list.dict.vue
+++ /dev/null
@@ -1,129 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dict/listDict.vue b/src/views/system/dict/listDict.vue
new file mode 100644
index 0000000..feea486
--- /dev/null
+++ b/src/views/system/dict/listDict.vue
@@ -0,0 +1,129 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/edit.resource.vue b/src/views/system/resource/edit.resource.vue
deleted file mode 100644
index 96c5015..0000000
--- a/src/views/system/resource/edit.resource.vue
+++ /dev/null
@@ -1,260 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/resource/editResource.vue b/src/views/system/resource/editResource.vue
new file mode 100644
index 0000000..1e72e08
--- /dev/null
+++ b/src/views/system/resource/editResource.vue
@@ -0,0 +1,260 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/list.resource.vue b/src/views/system/resource/list.resource.vue
deleted file mode 100644
index cb9c156..0000000
--- a/src/views/system/resource/list.resource.vue
+++ /dev/null
@@ -1,158 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
diff --git a/src/views/system/resource/listResource.vue b/src/views/system/resource/listResource.vue
new file mode 100644
index 0000000..f332c24
--- /dev/null
+++ b/src/views/system/resource/listResource.vue
@@ -0,0 +1,158 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/resource-interface.ts b/src/views/system/resource/resource-interface.ts
new file mode 100644
index 0000000..a9f2bd8
--- /dev/null
+++ b/src/views/system/resource/resource-interface.ts
@@ -0,0 +1,23 @@
+export enum ResourceTypeEnum {
+ '02' = '子系统',
+ '03' = '菜单',
+ '04' = '按钮',
+}
+// 资源类型
+export interface ResourceTypeInfo {
+ name: string
+ value: string
+}
+
+// 资源
+export interface ResourceInfo {
+ id: string
+ name: string
+ url: string
+ code: string
+ pid: string
+ resourceType: string
+ num: number
+ icon: string
+ children?: ResourceInfo[]
+}
diff --git a/src/views/system/resource/resource_interface.ts b/src/views/system/resource/resource_interface.ts
deleted file mode 100644
index a9f2bd8..0000000
--- a/src/views/system/resource/resource_interface.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-export enum ResourceTypeEnum {
- '02' = '子系统',
- '03' = '菜单',
- '04' = '按钮',
-}
-// 资源类型
-export interface ResourceTypeInfo {
- name: string
- value: string
-}
-
-// 资源
-export interface ResourceInfo {
- id: string
- name: string
- url: string
- code: string
- pid: string
- resourceType: string
- num: number
- icon: string
- children?: ResourceInfo[]
-}
diff --git a/src/views/system/role/data.perm.vue b/src/views/system/role/data.perm.vue
deleted file mode 100644
index 7276e21..0000000
--- a/src/views/system/role/data.perm.vue
+++ /dev/null
@@ -1,187 +0,0 @@
-
-
-
-
-
-
- 展开/折叠
-
-
- 全选
-
-
- 父子联动
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/.env.development b/.env.development
index a5b855b..b34f073 100644
--- a/.env.development
+++ b/.env.development
@@ -1,8 +1,8 @@
# 页面标题
VITE_APP_TITLE = 后台基础框架
# 接口请求地址,会设置到 axios 的 baseURL 参数上
-VITE_APP_API_BASEURL = http://111.198.10.15:11309
-# VITE_APP_API_BASEURL = http://111.198.10.15:21409
+# VITE_APP_API_BASEURL = http://111.198.10.15:11309
+VITE_APP_API_BASEURL = http://111.198.10.15:21409
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
VITE_APP_DEBUG_TOOL =
diff --git a/.eslintrc b/.eslintrc
index 5d9c01f..5c6806e 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -3,6 +3,10 @@
"rules": {
"curly": ["error", "all"],
"no-tabs":"off",
- "no-const-assign": "off"
+ "no-const-assign": "off",
+ "vue/component-name-in-template-casing": ["error", "kebab-case", {
+ "registeredComponentsOnly": false,
+ "ignores": []
+ }]
}
}
diff --git a/README.md b/README.md
index 89ec586..d529f38 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
-
Vue3-admin
+SmartMeteringFront
-基于Vue3的中后台管理系统框架
+计量管理系统
## 简要说明
diff --git a/src/api/system/user.ts b/src/api/system/user.ts
index dac3b84..b76afc5 100644
--- a/src/api/system/user.ts
+++ b/src/api/system/user.ts
@@ -1,5 +1,5 @@
+// import qs from 'qs'
import request from '../index'
-import qs from 'qs'
const prefix = 'sys/'
// 修改密码
export function changePwd(data: { oldPwd: string; newPwd: string }) {
@@ -63,8 +63,8 @@
url: 'sys/mgr/roleAssign',
method: 'post',
data: {
- userId: userId,
- roleIds: ids
+ userId,
+ roleIds: ids,
},
// paramsSerializer: (params) => qs.stringify(params, { indices: false })
})
diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue
index 8405618..620806d 100644
--- a/src/components/DeptSelect/index.vue
+++ b/src/components/DeptSelect/index.vue
@@ -1,7 +1,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/editDept.vue b/src/views/system/dept/editDept.vue
new file mode 100644
index 0000000..c16ec9a
--- /dev/null
+++ b/src/views/system/dept/editDept.vue
@@ -0,0 +1,223 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/list.dept.vue b/src/views/system/dept/list.dept.vue
deleted file mode 100644
index 51ff8e7..0000000
--- a/src/views/system/dept/list.dept.vue
+++ /dev/null
@@ -1,138 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
new file mode 100644
index 0000000..07382e9
--- /dev/null
+++ b/src/views/system/dept/listDept.vue
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/dict-interface.ts b/src/views/system/dict/dict-interface.ts
new file mode 100644
index 0000000..9b647ec
--- /dev/null
+++ b/src/views/system/dict/dict-interface.ts
@@ -0,0 +1,25 @@
+// 字典值列表
+export interface DictDetail {
+ name: string
+ value: string
+ num: number
+}
+
+// 字典
+export interface DictInfo {
+ dictId: string
+ dictCode: string
+ dictName: string
+ dictTips: string
+ dictValues: DictDetail[]
+}
+
+export interface DictListInfo {
+ id: string
+ name: string
+ code: string
+ pid: string
+ detail: string
+ tips: string
+ num: number
+}
diff --git a/src/views/system/dict/dict_interface.ts b/src/views/system/dict/dict_interface.ts
deleted file mode 100644
index 9b647ec..0000000
--- a/src/views/system/dict/dict_interface.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-// 字典值列表
-export interface DictDetail {
- name: string
- value: string
- num: number
-}
-
-// 字典
-export interface DictInfo {
- dictId: string
- dictCode: string
- dictName: string
- dictTips: string
- dictValues: DictDetail[]
-}
-
-export interface DictListInfo {
- id: string
- name: string
- code: string
- pid: string
- detail: string
- tips: string
- num: number
-}
diff --git a/src/views/system/dict/edit.dict.vue b/src/views/system/dict/edit.dict.vue
deleted file mode 100644
index d8a6d90..0000000
--- a/src/views/system/dict/edit.dict.vue
+++ /dev/null
@@ -1,250 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 字典值列表
-
- 添加
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dict/editDict.vue b/src/views/system/dict/editDict.vue
new file mode 100644
index 0000000..c2e9eb8
--- /dev/null
+++ b/src/views/system/dict/editDict.vue
@@ -0,0 +1,250 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 字典值列表
+
+ 添加
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/list.dict.vue b/src/views/system/dict/list.dict.vue
deleted file mode 100644
index 2c7d960..0000000
--- a/src/views/system/dict/list.dict.vue
+++ /dev/null
@@ -1,129 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dict/listDict.vue b/src/views/system/dict/listDict.vue
new file mode 100644
index 0000000..feea486
--- /dev/null
+++ b/src/views/system/dict/listDict.vue
@@ -0,0 +1,129 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/edit.resource.vue b/src/views/system/resource/edit.resource.vue
deleted file mode 100644
index 96c5015..0000000
--- a/src/views/system/resource/edit.resource.vue
+++ /dev/null
@@ -1,260 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/resource/editResource.vue b/src/views/system/resource/editResource.vue
new file mode 100644
index 0000000..1e72e08
--- /dev/null
+++ b/src/views/system/resource/editResource.vue
@@ -0,0 +1,260 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/list.resource.vue b/src/views/system/resource/list.resource.vue
deleted file mode 100644
index cb9c156..0000000
--- a/src/views/system/resource/list.resource.vue
+++ /dev/null
@@ -1,158 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
diff --git a/src/views/system/resource/listResource.vue b/src/views/system/resource/listResource.vue
new file mode 100644
index 0000000..f332c24
--- /dev/null
+++ b/src/views/system/resource/listResource.vue
@@ -0,0 +1,158 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/resource-interface.ts b/src/views/system/resource/resource-interface.ts
new file mode 100644
index 0000000..a9f2bd8
--- /dev/null
+++ b/src/views/system/resource/resource-interface.ts
@@ -0,0 +1,23 @@
+export enum ResourceTypeEnum {
+ '02' = '子系统',
+ '03' = '菜单',
+ '04' = '按钮',
+}
+// 资源类型
+export interface ResourceTypeInfo {
+ name: string
+ value: string
+}
+
+// 资源
+export interface ResourceInfo {
+ id: string
+ name: string
+ url: string
+ code: string
+ pid: string
+ resourceType: string
+ num: number
+ icon: string
+ children?: ResourceInfo[]
+}
diff --git a/src/views/system/resource/resource_interface.ts b/src/views/system/resource/resource_interface.ts
deleted file mode 100644
index a9f2bd8..0000000
--- a/src/views/system/resource/resource_interface.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-export enum ResourceTypeEnum {
- '02' = '子系统',
- '03' = '菜单',
- '04' = '按钮',
-}
-// 资源类型
-export interface ResourceTypeInfo {
- name: string
- value: string
-}
-
-// 资源
-export interface ResourceInfo {
- id: string
- name: string
- url: string
- code: string
- pid: string
- resourceType: string
- num: number
- icon: string
- children?: ResourceInfo[]
-}
diff --git a/src/views/system/role/data.perm.vue b/src/views/system/role/data.perm.vue
deleted file mode 100644
index 7276e21..0000000
--- a/src/views/system/role/data.perm.vue
+++ /dev/null
@@ -1,187 +0,0 @@
-
-
-
-
-
-
- 展开/折叠
-
-
- 全选
-
-
- 父子联动
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/role/dataPerm.vue b/src/views/system/role/dataPerm.vue
new file mode 100644
index 0000000..b86654e
--- /dev/null
+++ b/src/views/system/role/dataPerm.vue
@@ -0,0 +1,187 @@
+
+
+
+
+
+
+ 展开/折叠
+
+
+ 全选
+
+
+ 父子联动
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.env.development b/.env.development
index a5b855b..b34f073 100644
--- a/.env.development
+++ b/.env.development
@@ -1,8 +1,8 @@
# 页面标题
VITE_APP_TITLE = 后台基础框架
# 接口请求地址,会设置到 axios 的 baseURL 参数上
-VITE_APP_API_BASEURL = http://111.198.10.15:11309
-# VITE_APP_API_BASEURL = http://111.198.10.15:21409
+# VITE_APP_API_BASEURL = http://111.198.10.15:11309
+VITE_APP_API_BASEURL = http://111.198.10.15:21409
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
VITE_APP_DEBUG_TOOL =
diff --git a/.eslintrc b/.eslintrc
index 5d9c01f..5c6806e 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -3,6 +3,10 @@
"rules": {
"curly": ["error", "all"],
"no-tabs":"off",
- "no-const-assign": "off"
+ "no-const-assign": "off",
+ "vue/component-name-in-template-casing": ["error", "kebab-case", {
+ "registeredComponentsOnly": false,
+ "ignores": []
+ }]
}
}
diff --git a/README.md b/README.md
index 89ec586..d529f38 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
-
Vue3-admin
+SmartMeteringFront
-基于Vue3的中后台管理系统框架
+计量管理系统
## 简要说明
diff --git a/src/api/system/user.ts b/src/api/system/user.ts
index dac3b84..b76afc5 100644
--- a/src/api/system/user.ts
+++ b/src/api/system/user.ts
@@ -1,5 +1,5 @@
+// import qs from 'qs'
import request from '../index'
-import qs from 'qs'
const prefix = 'sys/'
// 修改密码
export function changePwd(data: { oldPwd: string; newPwd: string }) {
@@ -63,8 +63,8 @@
url: 'sys/mgr/roleAssign',
method: 'post',
data: {
- userId: userId,
- roleIds: ids
+ userId,
+ roleIds: ids,
},
// paramsSerializer: (params) => qs.stringify(params, { indices: false })
})
diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue
index 8405618..620806d 100644
--- a/src/components/DeptSelect/index.vue
+++ b/src/components/DeptSelect/index.vue
@@ -1,7 +1,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/editDept.vue b/src/views/system/dept/editDept.vue
new file mode 100644
index 0000000..c16ec9a
--- /dev/null
+++ b/src/views/system/dept/editDept.vue
@@ -0,0 +1,223 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/list.dept.vue b/src/views/system/dept/list.dept.vue
deleted file mode 100644
index 51ff8e7..0000000
--- a/src/views/system/dept/list.dept.vue
+++ /dev/null
@@ -1,138 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
new file mode 100644
index 0000000..07382e9
--- /dev/null
+++ b/src/views/system/dept/listDept.vue
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/dict-interface.ts b/src/views/system/dict/dict-interface.ts
new file mode 100644
index 0000000..9b647ec
--- /dev/null
+++ b/src/views/system/dict/dict-interface.ts
@@ -0,0 +1,25 @@
+// 字典值列表
+export interface DictDetail {
+ name: string
+ value: string
+ num: number
+}
+
+// 字典
+export interface DictInfo {
+ dictId: string
+ dictCode: string
+ dictName: string
+ dictTips: string
+ dictValues: DictDetail[]
+}
+
+export interface DictListInfo {
+ id: string
+ name: string
+ code: string
+ pid: string
+ detail: string
+ tips: string
+ num: number
+}
diff --git a/src/views/system/dict/dict_interface.ts b/src/views/system/dict/dict_interface.ts
deleted file mode 100644
index 9b647ec..0000000
--- a/src/views/system/dict/dict_interface.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-// 字典值列表
-export interface DictDetail {
- name: string
- value: string
- num: number
-}
-
-// 字典
-export interface DictInfo {
- dictId: string
- dictCode: string
- dictName: string
- dictTips: string
- dictValues: DictDetail[]
-}
-
-export interface DictListInfo {
- id: string
- name: string
- code: string
- pid: string
- detail: string
- tips: string
- num: number
-}
diff --git a/src/views/system/dict/edit.dict.vue b/src/views/system/dict/edit.dict.vue
deleted file mode 100644
index d8a6d90..0000000
--- a/src/views/system/dict/edit.dict.vue
+++ /dev/null
@@ -1,250 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 字典值列表
-
- 添加
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dict/editDict.vue b/src/views/system/dict/editDict.vue
new file mode 100644
index 0000000..c2e9eb8
--- /dev/null
+++ b/src/views/system/dict/editDict.vue
@@ -0,0 +1,250 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 字典值列表
+
+ 添加
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/list.dict.vue b/src/views/system/dict/list.dict.vue
deleted file mode 100644
index 2c7d960..0000000
--- a/src/views/system/dict/list.dict.vue
+++ /dev/null
@@ -1,129 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dict/listDict.vue b/src/views/system/dict/listDict.vue
new file mode 100644
index 0000000..feea486
--- /dev/null
+++ b/src/views/system/dict/listDict.vue
@@ -0,0 +1,129 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/edit.resource.vue b/src/views/system/resource/edit.resource.vue
deleted file mode 100644
index 96c5015..0000000
--- a/src/views/system/resource/edit.resource.vue
+++ /dev/null
@@ -1,260 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/resource/editResource.vue b/src/views/system/resource/editResource.vue
new file mode 100644
index 0000000..1e72e08
--- /dev/null
+++ b/src/views/system/resource/editResource.vue
@@ -0,0 +1,260 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/list.resource.vue b/src/views/system/resource/list.resource.vue
deleted file mode 100644
index cb9c156..0000000
--- a/src/views/system/resource/list.resource.vue
+++ /dev/null
@@ -1,158 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
diff --git a/src/views/system/resource/listResource.vue b/src/views/system/resource/listResource.vue
new file mode 100644
index 0000000..f332c24
--- /dev/null
+++ b/src/views/system/resource/listResource.vue
@@ -0,0 +1,158 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/resource-interface.ts b/src/views/system/resource/resource-interface.ts
new file mode 100644
index 0000000..a9f2bd8
--- /dev/null
+++ b/src/views/system/resource/resource-interface.ts
@@ -0,0 +1,23 @@
+export enum ResourceTypeEnum {
+ '02' = '子系统',
+ '03' = '菜单',
+ '04' = '按钮',
+}
+// 资源类型
+export interface ResourceTypeInfo {
+ name: string
+ value: string
+}
+
+// 资源
+export interface ResourceInfo {
+ id: string
+ name: string
+ url: string
+ code: string
+ pid: string
+ resourceType: string
+ num: number
+ icon: string
+ children?: ResourceInfo[]
+}
diff --git a/src/views/system/resource/resource_interface.ts b/src/views/system/resource/resource_interface.ts
deleted file mode 100644
index a9f2bd8..0000000
--- a/src/views/system/resource/resource_interface.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-export enum ResourceTypeEnum {
- '02' = '子系统',
- '03' = '菜单',
- '04' = '按钮',
-}
-// 资源类型
-export interface ResourceTypeInfo {
- name: string
- value: string
-}
-
-// 资源
-export interface ResourceInfo {
- id: string
- name: string
- url: string
- code: string
- pid: string
- resourceType: string
- num: number
- icon: string
- children?: ResourceInfo[]
-}
diff --git a/src/views/system/role/data.perm.vue b/src/views/system/role/data.perm.vue
deleted file mode 100644
index 7276e21..0000000
--- a/src/views/system/role/data.perm.vue
+++ /dev/null
@@ -1,187 +0,0 @@
-
-
-
-
-
-
- 展开/折叠
-
-
- 全选
-
-
- 父子联动
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/role/dataPerm.vue b/src/views/system/role/dataPerm.vue
new file mode 100644
index 0000000..b86654e
--- /dev/null
+++ b/src/views/system/role/dataPerm.vue
@@ -0,0 +1,187 @@
+
+
+
+
+
+
+ 展开/折叠
+
+
+ 全选
+
+
+ 父子联动
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/role/edit.role.vue b/src/views/system/role/edit.role.vue
deleted file mode 100644
index 30e628e..0000000
--- a/src/views/system/role/edit.role.vue
+++ /dev/null
@@ -1,256 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/.env.development b/.env.development
index a5b855b..b34f073 100644
--- a/.env.development
+++ b/.env.development
@@ -1,8 +1,8 @@
# 页面标题
VITE_APP_TITLE = 后台基础框架
# 接口请求地址,会设置到 axios 的 baseURL 参数上
-VITE_APP_API_BASEURL = http://111.198.10.15:11309
-# VITE_APP_API_BASEURL = http://111.198.10.15:21409
+# VITE_APP_API_BASEURL = http://111.198.10.15:11309
+VITE_APP_API_BASEURL = http://111.198.10.15:21409
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
VITE_APP_DEBUG_TOOL =
diff --git a/.eslintrc b/.eslintrc
index 5d9c01f..5c6806e 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -3,6 +3,10 @@
"rules": {
"curly": ["error", "all"],
"no-tabs":"off",
- "no-const-assign": "off"
+ "no-const-assign": "off",
+ "vue/component-name-in-template-casing": ["error", "kebab-case", {
+ "registeredComponentsOnly": false,
+ "ignores": []
+ }]
}
}
diff --git a/README.md b/README.md
index 89ec586..d529f38 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
-
Vue3-admin
+SmartMeteringFront
-基于Vue3的中后台管理系统框架
+计量管理系统
## 简要说明
diff --git a/src/api/system/user.ts b/src/api/system/user.ts
index dac3b84..b76afc5 100644
--- a/src/api/system/user.ts
+++ b/src/api/system/user.ts
@@ -1,5 +1,5 @@
+// import qs from 'qs'
import request from '../index'
-import qs from 'qs'
const prefix = 'sys/'
// 修改密码
export function changePwd(data: { oldPwd: string; newPwd: string }) {
@@ -63,8 +63,8 @@
url: 'sys/mgr/roleAssign',
method: 'post',
data: {
- userId: userId,
- roleIds: ids
+ userId,
+ roleIds: ids,
},
// paramsSerializer: (params) => qs.stringify(params, { indices: false })
})
diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue
index 8405618..620806d 100644
--- a/src/components/DeptSelect/index.vue
+++ b/src/components/DeptSelect/index.vue
@@ -1,7 +1,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/editDept.vue b/src/views/system/dept/editDept.vue
new file mode 100644
index 0000000..c16ec9a
--- /dev/null
+++ b/src/views/system/dept/editDept.vue
@@ -0,0 +1,223 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/list.dept.vue b/src/views/system/dept/list.dept.vue
deleted file mode 100644
index 51ff8e7..0000000
--- a/src/views/system/dept/list.dept.vue
+++ /dev/null
@@ -1,138 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
new file mode 100644
index 0000000..07382e9
--- /dev/null
+++ b/src/views/system/dept/listDept.vue
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/dict-interface.ts b/src/views/system/dict/dict-interface.ts
new file mode 100644
index 0000000..9b647ec
--- /dev/null
+++ b/src/views/system/dict/dict-interface.ts
@@ -0,0 +1,25 @@
+// 字典值列表
+export interface DictDetail {
+ name: string
+ value: string
+ num: number
+}
+
+// 字典
+export interface DictInfo {
+ dictId: string
+ dictCode: string
+ dictName: string
+ dictTips: string
+ dictValues: DictDetail[]
+}
+
+export interface DictListInfo {
+ id: string
+ name: string
+ code: string
+ pid: string
+ detail: string
+ tips: string
+ num: number
+}
diff --git a/src/views/system/dict/dict_interface.ts b/src/views/system/dict/dict_interface.ts
deleted file mode 100644
index 9b647ec..0000000
--- a/src/views/system/dict/dict_interface.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-// 字典值列表
-export interface DictDetail {
- name: string
- value: string
- num: number
-}
-
-// 字典
-export interface DictInfo {
- dictId: string
- dictCode: string
- dictName: string
- dictTips: string
- dictValues: DictDetail[]
-}
-
-export interface DictListInfo {
- id: string
- name: string
- code: string
- pid: string
- detail: string
- tips: string
- num: number
-}
diff --git a/src/views/system/dict/edit.dict.vue b/src/views/system/dict/edit.dict.vue
deleted file mode 100644
index d8a6d90..0000000
--- a/src/views/system/dict/edit.dict.vue
+++ /dev/null
@@ -1,250 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 字典值列表
-
- 添加
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dict/editDict.vue b/src/views/system/dict/editDict.vue
new file mode 100644
index 0000000..c2e9eb8
--- /dev/null
+++ b/src/views/system/dict/editDict.vue
@@ -0,0 +1,250 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 字典值列表
+
+ 添加
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/list.dict.vue b/src/views/system/dict/list.dict.vue
deleted file mode 100644
index 2c7d960..0000000
--- a/src/views/system/dict/list.dict.vue
+++ /dev/null
@@ -1,129 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dict/listDict.vue b/src/views/system/dict/listDict.vue
new file mode 100644
index 0000000..feea486
--- /dev/null
+++ b/src/views/system/dict/listDict.vue
@@ -0,0 +1,129 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/edit.resource.vue b/src/views/system/resource/edit.resource.vue
deleted file mode 100644
index 96c5015..0000000
--- a/src/views/system/resource/edit.resource.vue
+++ /dev/null
@@ -1,260 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/resource/editResource.vue b/src/views/system/resource/editResource.vue
new file mode 100644
index 0000000..1e72e08
--- /dev/null
+++ b/src/views/system/resource/editResource.vue
@@ -0,0 +1,260 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/list.resource.vue b/src/views/system/resource/list.resource.vue
deleted file mode 100644
index cb9c156..0000000
--- a/src/views/system/resource/list.resource.vue
+++ /dev/null
@@ -1,158 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
diff --git a/src/views/system/resource/listResource.vue b/src/views/system/resource/listResource.vue
new file mode 100644
index 0000000..f332c24
--- /dev/null
+++ b/src/views/system/resource/listResource.vue
@@ -0,0 +1,158 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/resource-interface.ts b/src/views/system/resource/resource-interface.ts
new file mode 100644
index 0000000..a9f2bd8
--- /dev/null
+++ b/src/views/system/resource/resource-interface.ts
@@ -0,0 +1,23 @@
+export enum ResourceTypeEnum {
+ '02' = '子系统',
+ '03' = '菜单',
+ '04' = '按钮',
+}
+// 资源类型
+export interface ResourceTypeInfo {
+ name: string
+ value: string
+}
+
+// 资源
+export interface ResourceInfo {
+ id: string
+ name: string
+ url: string
+ code: string
+ pid: string
+ resourceType: string
+ num: number
+ icon: string
+ children?: ResourceInfo[]
+}
diff --git a/src/views/system/resource/resource_interface.ts b/src/views/system/resource/resource_interface.ts
deleted file mode 100644
index a9f2bd8..0000000
--- a/src/views/system/resource/resource_interface.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-export enum ResourceTypeEnum {
- '02' = '子系统',
- '03' = '菜单',
- '04' = '按钮',
-}
-// 资源类型
-export interface ResourceTypeInfo {
- name: string
- value: string
-}
-
-// 资源
-export interface ResourceInfo {
- id: string
- name: string
- url: string
- code: string
- pid: string
- resourceType: string
- num: number
- icon: string
- children?: ResourceInfo[]
-}
diff --git a/src/views/system/role/data.perm.vue b/src/views/system/role/data.perm.vue
deleted file mode 100644
index 7276e21..0000000
--- a/src/views/system/role/data.perm.vue
+++ /dev/null
@@ -1,187 +0,0 @@
-
-
-
-
-
-
- 展开/折叠
-
-
- 全选
-
-
- 父子联动
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/role/dataPerm.vue b/src/views/system/role/dataPerm.vue
new file mode 100644
index 0000000..b86654e
--- /dev/null
+++ b/src/views/system/role/dataPerm.vue
@@ -0,0 +1,187 @@
+
+
+
+
+
+
+ 展开/折叠
+
+
+ 全选
+
+
+ 父子联动
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/role/edit.role.vue b/src/views/system/role/edit.role.vue
deleted file mode 100644
index 30e628e..0000000
--- a/src/views/system/role/edit.role.vue
+++ /dev/null
@@ -1,256 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/role/editRole.vue b/src/views/system/role/editRole.vue
new file mode 100644
index 0000000..6f668f9
--- /dev/null
+++ b/src/views/system/role/editRole.vue
@@ -0,0 +1,256 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.env.development b/.env.development
index a5b855b..b34f073 100644
--- a/.env.development
+++ b/.env.development
@@ -1,8 +1,8 @@
# 页面标题
VITE_APP_TITLE = 后台基础框架
# 接口请求地址,会设置到 axios 的 baseURL 参数上
-VITE_APP_API_BASEURL = http://111.198.10.15:11309
-# VITE_APP_API_BASEURL = http://111.198.10.15:21409
+# VITE_APP_API_BASEURL = http://111.198.10.15:11309
+VITE_APP_API_BASEURL = http://111.198.10.15:21409
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
VITE_APP_DEBUG_TOOL =
diff --git a/.eslintrc b/.eslintrc
index 5d9c01f..5c6806e 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -3,6 +3,10 @@
"rules": {
"curly": ["error", "all"],
"no-tabs":"off",
- "no-const-assign": "off"
+ "no-const-assign": "off",
+ "vue/component-name-in-template-casing": ["error", "kebab-case", {
+ "registeredComponentsOnly": false,
+ "ignores": []
+ }]
}
}
diff --git a/README.md b/README.md
index 89ec586..d529f38 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
-
Vue3-admin
+SmartMeteringFront
-基于Vue3的中后台管理系统框架
+计量管理系统
## 简要说明
diff --git a/src/api/system/user.ts b/src/api/system/user.ts
index dac3b84..b76afc5 100644
--- a/src/api/system/user.ts
+++ b/src/api/system/user.ts
@@ -1,5 +1,5 @@
+// import qs from 'qs'
import request from '../index'
-import qs from 'qs'
const prefix = 'sys/'
// 修改密码
export function changePwd(data: { oldPwd: string; newPwd: string }) {
@@ -63,8 +63,8 @@
url: 'sys/mgr/roleAssign',
method: 'post',
data: {
- userId: userId,
- roleIds: ids
+ userId,
+ roleIds: ids,
},
// paramsSerializer: (params) => qs.stringify(params, { indices: false })
})
diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue
index 8405618..620806d 100644
--- a/src/components/DeptSelect/index.vue
+++ b/src/components/DeptSelect/index.vue
@@ -1,7 +1,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/editDept.vue b/src/views/system/dept/editDept.vue
new file mode 100644
index 0000000..c16ec9a
--- /dev/null
+++ b/src/views/system/dept/editDept.vue
@@ -0,0 +1,223 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/list.dept.vue b/src/views/system/dept/list.dept.vue
deleted file mode 100644
index 51ff8e7..0000000
--- a/src/views/system/dept/list.dept.vue
+++ /dev/null
@@ -1,138 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
new file mode 100644
index 0000000..07382e9
--- /dev/null
+++ b/src/views/system/dept/listDept.vue
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/dict-interface.ts b/src/views/system/dict/dict-interface.ts
new file mode 100644
index 0000000..9b647ec
--- /dev/null
+++ b/src/views/system/dict/dict-interface.ts
@@ -0,0 +1,25 @@
+// 字典值列表
+export interface DictDetail {
+ name: string
+ value: string
+ num: number
+}
+
+// 字典
+export interface DictInfo {
+ dictId: string
+ dictCode: string
+ dictName: string
+ dictTips: string
+ dictValues: DictDetail[]
+}
+
+export interface DictListInfo {
+ id: string
+ name: string
+ code: string
+ pid: string
+ detail: string
+ tips: string
+ num: number
+}
diff --git a/src/views/system/dict/dict_interface.ts b/src/views/system/dict/dict_interface.ts
deleted file mode 100644
index 9b647ec..0000000
--- a/src/views/system/dict/dict_interface.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-// 字典值列表
-export interface DictDetail {
- name: string
- value: string
- num: number
-}
-
-// 字典
-export interface DictInfo {
- dictId: string
- dictCode: string
- dictName: string
- dictTips: string
- dictValues: DictDetail[]
-}
-
-export interface DictListInfo {
- id: string
- name: string
- code: string
- pid: string
- detail: string
- tips: string
- num: number
-}
diff --git a/src/views/system/dict/edit.dict.vue b/src/views/system/dict/edit.dict.vue
deleted file mode 100644
index d8a6d90..0000000
--- a/src/views/system/dict/edit.dict.vue
+++ /dev/null
@@ -1,250 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 字典值列表
-
- 添加
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dict/editDict.vue b/src/views/system/dict/editDict.vue
new file mode 100644
index 0000000..c2e9eb8
--- /dev/null
+++ b/src/views/system/dict/editDict.vue
@@ -0,0 +1,250 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 字典值列表
+
+ 添加
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/list.dict.vue b/src/views/system/dict/list.dict.vue
deleted file mode 100644
index 2c7d960..0000000
--- a/src/views/system/dict/list.dict.vue
+++ /dev/null
@@ -1,129 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dict/listDict.vue b/src/views/system/dict/listDict.vue
new file mode 100644
index 0000000..feea486
--- /dev/null
+++ b/src/views/system/dict/listDict.vue
@@ -0,0 +1,129 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/edit.resource.vue b/src/views/system/resource/edit.resource.vue
deleted file mode 100644
index 96c5015..0000000
--- a/src/views/system/resource/edit.resource.vue
+++ /dev/null
@@ -1,260 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/resource/editResource.vue b/src/views/system/resource/editResource.vue
new file mode 100644
index 0000000..1e72e08
--- /dev/null
+++ b/src/views/system/resource/editResource.vue
@@ -0,0 +1,260 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/list.resource.vue b/src/views/system/resource/list.resource.vue
deleted file mode 100644
index cb9c156..0000000
--- a/src/views/system/resource/list.resource.vue
+++ /dev/null
@@ -1,158 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
diff --git a/src/views/system/resource/listResource.vue b/src/views/system/resource/listResource.vue
new file mode 100644
index 0000000..f332c24
--- /dev/null
+++ b/src/views/system/resource/listResource.vue
@@ -0,0 +1,158 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/resource-interface.ts b/src/views/system/resource/resource-interface.ts
new file mode 100644
index 0000000..a9f2bd8
--- /dev/null
+++ b/src/views/system/resource/resource-interface.ts
@@ -0,0 +1,23 @@
+export enum ResourceTypeEnum {
+ '02' = '子系统',
+ '03' = '菜单',
+ '04' = '按钮',
+}
+// 资源类型
+export interface ResourceTypeInfo {
+ name: string
+ value: string
+}
+
+// 资源
+export interface ResourceInfo {
+ id: string
+ name: string
+ url: string
+ code: string
+ pid: string
+ resourceType: string
+ num: number
+ icon: string
+ children?: ResourceInfo[]
+}
diff --git a/src/views/system/resource/resource_interface.ts b/src/views/system/resource/resource_interface.ts
deleted file mode 100644
index a9f2bd8..0000000
--- a/src/views/system/resource/resource_interface.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-export enum ResourceTypeEnum {
- '02' = '子系统',
- '03' = '菜单',
- '04' = '按钮',
-}
-// 资源类型
-export interface ResourceTypeInfo {
- name: string
- value: string
-}
-
-// 资源
-export interface ResourceInfo {
- id: string
- name: string
- url: string
- code: string
- pid: string
- resourceType: string
- num: number
- icon: string
- children?: ResourceInfo[]
-}
diff --git a/src/views/system/role/data.perm.vue b/src/views/system/role/data.perm.vue
deleted file mode 100644
index 7276e21..0000000
--- a/src/views/system/role/data.perm.vue
+++ /dev/null
@@ -1,187 +0,0 @@
-
-
-
-
-
-
- 展开/折叠
-
-
- 全选
-
-
- 父子联动
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/role/dataPerm.vue b/src/views/system/role/dataPerm.vue
new file mode 100644
index 0000000..b86654e
--- /dev/null
+++ b/src/views/system/role/dataPerm.vue
@@ -0,0 +1,187 @@
+
+
+
+
+
+
+ 展开/折叠
+
+
+ 全选
+
+
+ 父子联动
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/role/edit.role.vue b/src/views/system/role/edit.role.vue
deleted file mode 100644
index 30e628e..0000000
--- a/src/views/system/role/edit.role.vue
+++ /dev/null
@@ -1,256 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/role/editRole.vue b/src/views/system/role/editRole.vue
new file mode 100644
index 0000000..6f668f9
--- /dev/null
+++ b/src/views/system/role/editRole.vue
@@ -0,0 +1,256 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/role/function.perm.vue b/src/views/system/role/function.perm.vue
deleted file mode 100644
index 294dc9f..0000000
--- a/src/views/system/role/function.perm.vue
+++ /dev/null
@@ -1,187 +0,0 @@
-
-
-
-
-
-
- 展开/折叠
-
-
- 全选
-
-
- 父子联动
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/.env.development b/.env.development
index a5b855b..b34f073 100644
--- a/.env.development
+++ b/.env.development
@@ -1,8 +1,8 @@
# 页面标题
VITE_APP_TITLE = 后台基础框架
# 接口请求地址,会设置到 axios 的 baseURL 参数上
-VITE_APP_API_BASEURL = http://111.198.10.15:11309
-# VITE_APP_API_BASEURL = http://111.198.10.15:21409
+# VITE_APP_API_BASEURL = http://111.198.10.15:11309
+VITE_APP_API_BASEURL = http://111.198.10.15:21409
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
VITE_APP_DEBUG_TOOL =
diff --git a/.eslintrc b/.eslintrc
index 5d9c01f..5c6806e 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -3,6 +3,10 @@
"rules": {
"curly": ["error", "all"],
"no-tabs":"off",
- "no-const-assign": "off"
+ "no-const-assign": "off",
+ "vue/component-name-in-template-casing": ["error", "kebab-case", {
+ "registeredComponentsOnly": false,
+ "ignores": []
+ }]
}
}
diff --git a/README.md b/README.md
index 89ec586..d529f38 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
-
Vue3-admin
+SmartMeteringFront
-基于Vue3的中后台管理系统框架
+计量管理系统
## 简要说明
diff --git a/src/api/system/user.ts b/src/api/system/user.ts
index dac3b84..b76afc5 100644
--- a/src/api/system/user.ts
+++ b/src/api/system/user.ts
@@ -1,5 +1,5 @@
+// import qs from 'qs'
import request from '../index'
-import qs from 'qs'
const prefix = 'sys/'
// 修改密码
export function changePwd(data: { oldPwd: string; newPwd: string }) {
@@ -63,8 +63,8 @@
url: 'sys/mgr/roleAssign',
method: 'post',
data: {
- userId: userId,
- roleIds: ids
+ userId,
+ roleIds: ids,
},
// paramsSerializer: (params) => qs.stringify(params, { indices: false })
})
diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue
index 8405618..620806d 100644
--- a/src/components/DeptSelect/index.vue
+++ b/src/components/DeptSelect/index.vue
@@ -1,7 +1,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/editDept.vue b/src/views/system/dept/editDept.vue
new file mode 100644
index 0000000..c16ec9a
--- /dev/null
+++ b/src/views/system/dept/editDept.vue
@@ -0,0 +1,223 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/list.dept.vue b/src/views/system/dept/list.dept.vue
deleted file mode 100644
index 51ff8e7..0000000
--- a/src/views/system/dept/list.dept.vue
+++ /dev/null
@@ -1,138 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
new file mode 100644
index 0000000..07382e9
--- /dev/null
+++ b/src/views/system/dept/listDept.vue
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/dict-interface.ts b/src/views/system/dict/dict-interface.ts
new file mode 100644
index 0000000..9b647ec
--- /dev/null
+++ b/src/views/system/dict/dict-interface.ts
@@ -0,0 +1,25 @@
+// 字典值列表
+export interface DictDetail {
+ name: string
+ value: string
+ num: number
+}
+
+// 字典
+export interface DictInfo {
+ dictId: string
+ dictCode: string
+ dictName: string
+ dictTips: string
+ dictValues: DictDetail[]
+}
+
+export interface DictListInfo {
+ id: string
+ name: string
+ code: string
+ pid: string
+ detail: string
+ tips: string
+ num: number
+}
diff --git a/src/views/system/dict/dict_interface.ts b/src/views/system/dict/dict_interface.ts
deleted file mode 100644
index 9b647ec..0000000
--- a/src/views/system/dict/dict_interface.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-// 字典值列表
-export interface DictDetail {
- name: string
- value: string
- num: number
-}
-
-// 字典
-export interface DictInfo {
- dictId: string
- dictCode: string
- dictName: string
- dictTips: string
- dictValues: DictDetail[]
-}
-
-export interface DictListInfo {
- id: string
- name: string
- code: string
- pid: string
- detail: string
- tips: string
- num: number
-}
diff --git a/src/views/system/dict/edit.dict.vue b/src/views/system/dict/edit.dict.vue
deleted file mode 100644
index d8a6d90..0000000
--- a/src/views/system/dict/edit.dict.vue
+++ /dev/null
@@ -1,250 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 字典值列表
-
- 添加
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dict/editDict.vue b/src/views/system/dict/editDict.vue
new file mode 100644
index 0000000..c2e9eb8
--- /dev/null
+++ b/src/views/system/dict/editDict.vue
@@ -0,0 +1,250 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 字典值列表
+
+ 添加
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/list.dict.vue b/src/views/system/dict/list.dict.vue
deleted file mode 100644
index 2c7d960..0000000
--- a/src/views/system/dict/list.dict.vue
+++ /dev/null
@@ -1,129 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dict/listDict.vue b/src/views/system/dict/listDict.vue
new file mode 100644
index 0000000..feea486
--- /dev/null
+++ b/src/views/system/dict/listDict.vue
@@ -0,0 +1,129 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/edit.resource.vue b/src/views/system/resource/edit.resource.vue
deleted file mode 100644
index 96c5015..0000000
--- a/src/views/system/resource/edit.resource.vue
+++ /dev/null
@@ -1,260 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/resource/editResource.vue b/src/views/system/resource/editResource.vue
new file mode 100644
index 0000000..1e72e08
--- /dev/null
+++ b/src/views/system/resource/editResource.vue
@@ -0,0 +1,260 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/list.resource.vue b/src/views/system/resource/list.resource.vue
deleted file mode 100644
index cb9c156..0000000
--- a/src/views/system/resource/list.resource.vue
+++ /dev/null
@@ -1,158 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
diff --git a/src/views/system/resource/listResource.vue b/src/views/system/resource/listResource.vue
new file mode 100644
index 0000000..f332c24
--- /dev/null
+++ b/src/views/system/resource/listResource.vue
@@ -0,0 +1,158 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/resource-interface.ts b/src/views/system/resource/resource-interface.ts
new file mode 100644
index 0000000..a9f2bd8
--- /dev/null
+++ b/src/views/system/resource/resource-interface.ts
@@ -0,0 +1,23 @@
+export enum ResourceTypeEnum {
+ '02' = '子系统',
+ '03' = '菜单',
+ '04' = '按钮',
+}
+// 资源类型
+export interface ResourceTypeInfo {
+ name: string
+ value: string
+}
+
+// 资源
+export interface ResourceInfo {
+ id: string
+ name: string
+ url: string
+ code: string
+ pid: string
+ resourceType: string
+ num: number
+ icon: string
+ children?: ResourceInfo[]
+}
diff --git a/src/views/system/resource/resource_interface.ts b/src/views/system/resource/resource_interface.ts
deleted file mode 100644
index a9f2bd8..0000000
--- a/src/views/system/resource/resource_interface.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-export enum ResourceTypeEnum {
- '02' = '子系统',
- '03' = '菜单',
- '04' = '按钮',
-}
-// 资源类型
-export interface ResourceTypeInfo {
- name: string
- value: string
-}
-
-// 资源
-export interface ResourceInfo {
- id: string
- name: string
- url: string
- code: string
- pid: string
- resourceType: string
- num: number
- icon: string
- children?: ResourceInfo[]
-}
diff --git a/src/views/system/role/data.perm.vue b/src/views/system/role/data.perm.vue
deleted file mode 100644
index 7276e21..0000000
--- a/src/views/system/role/data.perm.vue
+++ /dev/null
@@ -1,187 +0,0 @@
-
-
-
-
-
-
- 展开/折叠
-
-
- 全选
-
-
- 父子联动
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/role/dataPerm.vue b/src/views/system/role/dataPerm.vue
new file mode 100644
index 0000000..b86654e
--- /dev/null
+++ b/src/views/system/role/dataPerm.vue
@@ -0,0 +1,187 @@
+
+
+
+
+
+
+ 展开/折叠
+
+
+ 全选
+
+
+ 父子联动
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/role/edit.role.vue b/src/views/system/role/edit.role.vue
deleted file mode 100644
index 30e628e..0000000
--- a/src/views/system/role/edit.role.vue
+++ /dev/null
@@ -1,256 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/role/editRole.vue b/src/views/system/role/editRole.vue
new file mode 100644
index 0000000..6f668f9
--- /dev/null
+++ b/src/views/system/role/editRole.vue
@@ -0,0 +1,256 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/role/function.perm.vue b/src/views/system/role/function.perm.vue
deleted file mode 100644
index 294dc9f..0000000
--- a/src/views/system/role/function.perm.vue
+++ /dev/null
@@ -1,187 +0,0 @@
-
-
-
-
-
-
- 展开/折叠
-
-
- 全选
-
-
- 父子联动
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/role/functionPerm.vue b/src/views/system/role/functionPerm.vue
new file mode 100644
index 0000000..0bfc395
--- /dev/null
+++ b/src/views/system/role/functionPerm.vue
@@ -0,0 +1,186 @@
+
+
+
+
+
+
+ 展开/折叠
+
+
+ 全选
+
+
+ 父子联动
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.env.development b/.env.development
index a5b855b..b34f073 100644
--- a/.env.development
+++ b/.env.development
@@ -1,8 +1,8 @@
# 页面标题
VITE_APP_TITLE = 后台基础框架
# 接口请求地址,会设置到 axios 的 baseURL 参数上
-VITE_APP_API_BASEURL = http://111.198.10.15:11309
-# VITE_APP_API_BASEURL = http://111.198.10.15:21409
+# VITE_APP_API_BASEURL = http://111.198.10.15:11309
+VITE_APP_API_BASEURL = http://111.198.10.15:21409
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
VITE_APP_DEBUG_TOOL =
diff --git a/.eslintrc b/.eslintrc
index 5d9c01f..5c6806e 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -3,6 +3,10 @@
"rules": {
"curly": ["error", "all"],
"no-tabs":"off",
- "no-const-assign": "off"
+ "no-const-assign": "off",
+ "vue/component-name-in-template-casing": ["error", "kebab-case", {
+ "registeredComponentsOnly": false,
+ "ignores": []
+ }]
}
}
diff --git a/README.md b/README.md
index 89ec586..d529f38 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
-
Vue3-admin
+SmartMeteringFront
-基于Vue3的中后台管理系统框架
+计量管理系统
## 简要说明
diff --git a/src/api/system/user.ts b/src/api/system/user.ts
index dac3b84..b76afc5 100644
--- a/src/api/system/user.ts
+++ b/src/api/system/user.ts
@@ -1,5 +1,5 @@
+// import qs from 'qs'
import request from '../index'
-import qs from 'qs'
const prefix = 'sys/'
// 修改密码
export function changePwd(data: { oldPwd: string; newPwd: string }) {
@@ -63,8 +63,8 @@
url: 'sys/mgr/roleAssign',
method: 'post',
data: {
- userId: userId,
- roleIds: ids
+ userId,
+ roleIds: ids,
},
// paramsSerializer: (params) => qs.stringify(params, { indices: false })
})
diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue
index 8405618..620806d 100644
--- a/src/components/DeptSelect/index.vue
+++ b/src/components/DeptSelect/index.vue
@@ -1,7 +1,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/editDept.vue b/src/views/system/dept/editDept.vue
new file mode 100644
index 0000000..c16ec9a
--- /dev/null
+++ b/src/views/system/dept/editDept.vue
@@ -0,0 +1,223 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/list.dept.vue b/src/views/system/dept/list.dept.vue
deleted file mode 100644
index 51ff8e7..0000000
--- a/src/views/system/dept/list.dept.vue
+++ /dev/null
@@ -1,138 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
new file mode 100644
index 0000000..07382e9
--- /dev/null
+++ b/src/views/system/dept/listDept.vue
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/dict-interface.ts b/src/views/system/dict/dict-interface.ts
new file mode 100644
index 0000000..9b647ec
--- /dev/null
+++ b/src/views/system/dict/dict-interface.ts
@@ -0,0 +1,25 @@
+// 字典值列表
+export interface DictDetail {
+ name: string
+ value: string
+ num: number
+}
+
+// 字典
+export interface DictInfo {
+ dictId: string
+ dictCode: string
+ dictName: string
+ dictTips: string
+ dictValues: DictDetail[]
+}
+
+export interface DictListInfo {
+ id: string
+ name: string
+ code: string
+ pid: string
+ detail: string
+ tips: string
+ num: number
+}
diff --git a/src/views/system/dict/dict_interface.ts b/src/views/system/dict/dict_interface.ts
deleted file mode 100644
index 9b647ec..0000000
--- a/src/views/system/dict/dict_interface.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-// 字典值列表
-export interface DictDetail {
- name: string
- value: string
- num: number
-}
-
-// 字典
-export interface DictInfo {
- dictId: string
- dictCode: string
- dictName: string
- dictTips: string
- dictValues: DictDetail[]
-}
-
-export interface DictListInfo {
- id: string
- name: string
- code: string
- pid: string
- detail: string
- tips: string
- num: number
-}
diff --git a/src/views/system/dict/edit.dict.vue b/src/views/system/dict/edit.dict.vue
deleted file mode 100644
index d8a6d90..0000000
--- a/src/views/system/dict/edit.dict.vue
+++ /dev/null
@@ -1,250 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 字典值列表
-
- 添加
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dict/editDict.vue b/src/views/system/dict/editDict.vue
new file mode 100644
index 0000000..c2e9eb8
--- /dev/null
+++ b/src/views/system/dict/editDict.vue
@@ -0,0 +1,250 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 字典值列表
+
+ 添加
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/list.dict.vue b/src/views/system/dict/list.dict.vue
deleted file mode 100644
index 2c7d960..0000000
--- a/src/views/system/dict/list.dict.vue
+++ /dev/null
@@ -1,129 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dict/listDict.vue b/src/views/system/dict/listDict.vue
new file mode 100644
index 0000000..feea486
--- /dev/null
+++ b/src/views/system/dict/listDict.vue
@@ -0,0 +1,129 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/edit.resource.vue b/src/views/system/resource/edit.resource.vue
deleted file mode 100644
index 96c5015..0000000
--- a/src/views/system/resource/edit.resource.vue
+++ /dev/null
@@ -1,260 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/resource/editResource.vue b/src/views/system/resource/editResource.vue
new file mode 100644
index 0000000..1e72e08
--- /dev/null
+++ b/src/views/system/resource/editResource.vue
@@ -0,0 +1,260 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/list.resource.vue b/src/views/system/resource/list.resource.vue
deleted file mode 100644
index cb9c156..0000000
--- a/src/views/system/resource/list.resource.vue
+++ /dev/null
@@ -1,158 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
diff --git a/src/views/system/resource/listResource.vue b/src/views/system/resource/listResource.vue
new file mode 100644
index 0000000..f332c24
--- /dev/null
+++ b/src/views/system/resource/listResource.vue
@@ -0,0 +1,158 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/resource-interface.ts b/src/views/system/resource/resource-interface.ts
new file mode 100644
index 0000000..a9f2bd8
--- /dev/null
+++ b/src/views/system/resource/resource-interface.ts
@@ -0,0 +1,23 @@
+export enum ResourceTypeEnum {
+ '02' = '子系统',
+ '03' = '菜单',
+ '04' = '按钮',
+}
+// 资源类型
+export interface ResourceTypeInfo {
+ name: string
+ value: string
+}
+
+// 资源
+export interface ResourceInfo {
+ id: string
+ name: string
+ url: string
+ code: string
+ pid: string
+ resourceType: string
+ num: number
+ icon: string
+ children?: ResourceInfo[]
+}
diff --git a/src/views/system/resource/resource_interface.ts b/src/views/system/resource/resource_interface.ts
deleted file mode 100644
index a9f2bd8..0000000
--- a/src/views/system/resource/resource_interface.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-export enum ResourceTypeEnum {
- '02' = '子系统',
- '03' = '菜单',
- '04' = '按钮',
-}
-// 资源类型
-export interface ResourceTypeInfo {
- name: string
- value: string
-}
-
-// 资源
-export interface ResourceInfo {
- id: string
- name: string
- url: string
- code: string
- pid: string
- resourceType: string
- num: number
- icon: string
- children?: ResourceInfo[]
-}
diff --git a/src/views/system/role/data.perm.vue b/src/views/system/role/data.perm.vue
deleted file mode 100644
index 7276e21..0000000
--- a/src/views/system/role/data.perm.vue
+++ /dev/null
@@ -1,187 +0,0 @@
-
-
-
-
-
-
- 展开/折叠
-
-
- 全选
-
-
- 父子联动
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/role/dataPerm.vue b/src/views/system/role/dataPerm.vue
new file mode 100644
index 0000000..b86654e
--- /dev/null
+++ b/src/views/system/role/dataPerm.vue
@@ -0,0 +1,187 @@
+
+
+
+
+
+
+ 展开/折叠
+
+
+ 全选
+
+
+ 父子联动
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/role/edit.role.vue b/src/views/system/role/edit.role.vue
deleted file mode 100644
index 30e628e..0000000
--- a/src/views/system/role/edit.role.vue
+++ /dev/null
@@ -1,256 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/role/editRole.vue b/src/views/system/role/editRole.vue
new file mode 100644
index 0000000..6f668f9
--- /dev/null
+++ b/src/views/system/role/editRole.vue
@@ -0,0 +1,256 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/role/function.perm.vue b/src/views/system/role/function.perm.vue
deleted file mode 100644
index 294dc9f..0000000
--- a/src/views/system/role/function.perm.vue
+++ /dev/null
@@ -1,187 +0,0 @@
-
-
-
-
-
-
- 展开/折叠
-
-
- 全选
-
-
- 父子联动
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/role/functionPerm.vue b/src/views/system/role/functionPerm.vue
new file mode 100644
index 0000000..0bfc395
--- /dev/null
+++ b/src/views/system/role/functionPerm.vue
@@ -0,0 +1,186 @@
+
+
+
+
+
+
+ 展开/折叠
+
+
+ 全选
+
+
+ 父子联动
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/role/list.role.vue b/src/views/system/role/list.role.vue
deleted file mode 100644
index a775da3..0000000
--- a/src/views/system/role/list.role.vue
+++ /dev/null
@@ -1,175 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
- 功能权限
-
-
-
- 数据权限
-
-
-
-
-
-
-
-
-
-
diff --git a/.env.development b/.env.development
index a5b855b..b34f073 100644
--- a/.env.development
+++ b/.env.development
@@ -1,8 +1,8 @@
# 页面标题
VITE_APP_TITLE = 后台基础框架
# 接口请求地址,会设置到 axios 的 baseURL 参数上
-VITE_APP_API_BASEURL = http://111.198.10.15:11309
-# VITE_APP_API_BASEURL = http://111.198.10.15:21409
+# VITE_APP_API_BASEURL = http://111.198.10.15:11309
+VITE_APP_API_BASEURL = http://111.198.10.15:21409
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
VITE_APP_DEBUG_TOOL =
diff --git a/.eslintrc b/.eslintrc
index 5d9c01f..5c6806e 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -3,6 +3,10 @@
"rules": {
"curly": ["error", "all"],
"no-tabs":"off",
- "no-const-assign": "off"
+ "no-const-assign": "off",
+ "vue/component-name-in-template-casing": ["error", "kebab-case", {
+ "registeredComponentsOnly": false,
+ "ignores": []
+ }]
}
}
diff --git a/README.md b/README.md
index 89ec586..d529f38 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
-
Vue3-admin
+SmartMeteringFront
-基于Vue3的中后台管理系统框架
+计量管理系统
## 简要说明
diff --git a/src/api/system/user.ts b/src/api/system/user.ts
index dac3b84..b76afc5 100644
--- a/src/api/system/user.ts
+++ b/src/api/system/user.ts
@@ -1,5 +1,5 @@
+// import qs from 'qs'
import request from '../index'
-import qs from 'qs'
const prefix = 'sys/'
// 修改密码
export function changePwd(data: { oldPwd: string; newPwd: string }) {
@@ -63,8 +63,8 @@
url: 'sys/mgr/roleAssign',
method: 'post',
data: {
- userId: userId,
- roleIds: ids
+ userId,
+ roleIds: ids,
},
// paramsSerializer: (params) => qs.stringify(params, { indices: false })
})
diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue
index 8405618..620806d 100644
--- a/src/components/DeptSelect/index.vue
+++ b/src/components/DeptSelect/index.vue
@@ -1,7 +1,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/editDept.vue b/src/views/system/dept/editDept.vue
new file mode 100644
index 0000000..c16ec9a
--- /dev/null
+++ b/src/views/system/dept/editDept.vue
@@ -0,0 +1,223 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/list.dept.vue b/src/views/system/dept/list.dept.vue
deleted file mode 100644
index 51ff8e7..0000000
--- a/src/views/system/dept/list.dept.vue
+++ /dev/null
@@ -1,138 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
new file mode 100644
index 0000000..07382e9
--- /dev/null
+++ b/src/views/system/dept/listDept.vue
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/dict-interface.ts b/src/views/system/dict/dict-interface.ts
new file mode 100644
index 0000000..9b647ec
--- /dev/null
+++ b/src/views/system/dict/dict-interface.ts
@@ -0,0 +1,25 @@
+// 字典值列表
+export interface DictDetail {
+ name: string
+ value: string
+ num: number
+}
+
+// 字典
+export interface DictInfo {
+ dictId: string
+ dictCode: string
+ dictName: string
+ dictTips: string
+ dictValues: DictDetail[]
+}
+
+export interface DictListInfo {
+ id: string
+ name: string
+ code: string
+ pid: string
+ detail: string
+ tips: string
+ num: number
+}
diff --git a/src/views/system/dict/dict_interface.ts b/src/views/system/dict/dict_interface.ts
deleted file mode 100644
index 9b647ec..0000000
--- a/src/views/system/dict/dict_interface.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-// 字典值列表
-export interface DictDetail {
- name: string
- value: string
- num: number
-}
-
-// 字典
-export interface DictInfo {
- dictId: string
- dictCode: string
- dictName: string
- dictTips: string
- dictValues: DictDetail[]
-}
-
-export interface DictListInfo {
- id: string
- name: string
- code: string
- pid: string
- detail: string
- tips: string
- num: number
-}
diff --git a/src/views/system/dict/edit.dict.vue b/src/views/system/dict/edit.dict.vue
deleted file mode 100644
index d8a6d90..0000000
--- a/src/views/system/dict/edit.dict.vue
+++ /dev/null
@@ -1,250 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 字典值列表
-
- 添加
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dict/editDict.vue b/src/views/system/dict/editDict.vue
new file mode 100644
index 0000000..c2e9eb8
--- /dev/null
+++ b/src/views/system/dict/editDict.vue
@@ -0,0 +1,250 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 字典值列表
+
+ 添加
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/list.dict.vue b/src/views/system/dict/list.dict.vue
deleted file mode 100644
index 2c7d960..0000000
--- a/src/views/system/dict/list.dict.vue
+++ /dev/null
@@ -1,129 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dict/listDict.vue b/src/views/system/dict/listDict.vue
new file mode 100644
index 0000000..feea486
--- /dev/null
+++ b/src/views/system/dict/listDict.vue
@@ -0,0 +1,129 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/edit.resource.vue b/src/views/system/resource/edit.resource.vue
deleted file mode 100644
index 96c5015..0000000
--- a/src/views/system/resource/edit.resource.vue
+++ /dev/null
@@ -1,260 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/resource/editResource.vue b/src/views/system/resource/editResource.vue
new file mode 100644
index 0000000..1e72e08
--- /dev/null
+++ b/src/views/system/resource/editResource.vue
@@ -0,0 +1,260 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/list.resource.vue b/src/views/system/resource/list.resource.vue
deleted file mode 100644
index cb9c156..0000000
--- a/src/views/system/resource/list.resource.vue
+++ /dev/null
@@ -1,158 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
diff --git a/src/views/system/resource/listResource.vue b/src/views/system/resource/listResource.vue
new file mode 100644
index 0000000..f332c24
--- /dev/null
+++ b/src/views/system/resource/listResource.vue
@@ -0,0 +1,158 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/resource-interface.ts b/src/views/system/resource/resource-interface.ts
new file mode 100644
index 0000000..a9f2bd8
--- /dev/null
+++ b/src/views/system/resource/resource-interface.ts
@@ -0,0 +1,23 @@
+export enum ResourceTypeEnum {
+ '02' = '子系统',
+ '03' = '菜单',
+ '04' = '按钮',
+}
+// 资源类型
+export interface ResourceTypeInfo {
+ name: string
+ value: string
+}
+
+// 资源
+export interface ResourceInfo {
+ id: string
+ name: string
+ url: string
+ code: string
+ pid: string
+ resourceType: string
+ num: number
+ icon: string
+ children?: ResourceInfo[]
+}
diff --git a/src/views/system/resource/resource_interface.ts b/src/views/system/resource/resource_interface.ts
deleted file mode 100644
index a9f2bd8..0000000
--- a/src/views/system/resource/resource_interface.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-export enum ResourceTypeEnum {
- '02' = '子系统',
- '03' = '菜单',
- '04' = '按钮',
-}
-// 资源类型
-export interface ResourceTypeInfo {
- name: string
- value: string
-}
-
-// 资源
-export interface ResourceInfo {
- id: string
- name: string
- url: string
- code: string
- pid: string
- resourceType: string
- num: number
- icon: string
- children?: ResourceInfo[]
-}
diff --git a/src/views/system/role/data.perm.vue b/src/views/system/role/data.perm.vue
deleted file mode 100644
index 7276e21..0000000
--- a/src/views/system/role/data.perm.vue
+++ /dev/null
@@ -1,187 +0,0 @@
-
-
-
-
-
-
- 展开/折叠
-
-
- 全选
-
-
- 父子联动
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/role/dataPerm.vue b/src/views/system/role/dataPerm.vue
new file mode 100644
index 0000000..b86654e
--- /dev/null
+++ b/src/views/system/role/dataPerm.vue
@@ -0,0 +1,187 @@
+
+
+
+
+
+
+ 展开/折叠
+
+
+ 全选
+
+
+ 父子联动
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/role/edit.role.vue b/src/views/system/role/edit.role.vue
deleted file mode 100644
index 30e628e..0000000
--- a/src/views/system/role/edit.role.vue
+++ /dev/null
@@ -1,256 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/role/editRole.vue b/src/views/system/role/editRole.vue
new file mode 100644
index 0000000..6f668f9
--- /dev/null
+++ b/src/views/system/role/editRole.vue
@@ -0,0 +1,256 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/role/function.perm.vue b/src/views/system/role/function.perm.vue
deleted file mode 100644
index 294dc9f..0000000
--- a/src/views/system/role/function.perm.vue
+++ /dev/null
@@ -1,187 +0,0 @@
-
-
-
-
-
-
- 展开/折叠
-
-
- 全选
-
-
- 父子联动
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/role/functionPerm.vue b/src/views/system/role/functionPerm.vue
new file mode 100644
index 0000000..0bfc395
--- /dev/null
+++ b/src/views/system/role/functionPerm.vue
@@ -0,0 +1,186 @@
+
+
+
+
+
+
+ 展开/折叠
+
+
+ 全选
+
+
+ 父子联动
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/role/list.role.vue b/src/views/system/role/list.role.vue
deleted file mode 100644
index a775da3..0000000
--- a/src/views/system/role/list.role.vue
+++ /dev/null
@@ -1,175 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
- 功能权限
-
-
-
- 数据权限
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/role/listRole.vue b/src/views/system/role/listRole.vue
new file mode 100644
index 0000000..53b18e2
--- /dev/null
+++ b/src/views/system/role/listRole.vue
@@ -0,0 +1,177 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+ 功能权限
+
+
+
+ 数据权限
+
+
+
+
+
+
+
+
+
+
diff --git a/.env.development b/.env.development
index a5b855b..b34f073 100644
--- a/.env.development
+++ b/.env.development
@@ -1,8 +1,8 @@
# 页面标题
VITE_APP_TITLE = 后台基础框架
# 接口请求地址,会设置到 axios 的 baseURL 参数上
-VITE_APP_API_BASEURL = http://111.198.10.15:11309
-# VITE_APP_API_BASEURL = http://111.198.10.15:21409
+# VITE_APP_API_BASEURL = http://111.198.10.15:11309
+VITE_APP_API_BASEURL = http://111.198.10.15:21409
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
VITE_APP_DEBUG_TOOL =
diff --git a/.eslintrc b/.eslintrc
index 5d9c01f..5c6806e 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -3,6 +3,10 @@
"rules": {
"curly": ["error", "all"],
"no-tabs":"off",
- "no-const-assign": "off"
+ "no-const-assign": "off",
+ "vue/component-name-in-template-casing": ["error", "kebab-case", {
+ "registeredComponentsOnly": false,
+ "ignores": []
+ }]
}
}
diff --git a/README.md b/README.md
index 89ec586..d529f38 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
-
Vue3-admin
+SmartMeteringFront
-基于Vue3的中后台管理系统框架
+计量管理系统
## 简要说明
diff --git a/src/api/system/user.ts b/src/api/system/user.ts
index dac3b84..b76afc5 100644
--- a/src/api/system/user.ts
+++ b/src/api/system/user.ts
@@ -1,5 +1,5 @@
+// import qs from 'qs'
import request from '../index'
-import qs from 'qs'
const prefix = 'sys/'
// 修改密码
export function changePwd(data: { oldPwd: string; newPwd: string }) {
@@ -63,8 +63,8 @@
url: 'sys/mgr/roleAssign',
method: 'post',
data: {
- userId: userId,
- roleIds: ids
+ userId,
+ roleIds: ids,
},
// paramsSerializer: (params) => qs.stringify(params, { indices: false })
})
diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue
index 8405618..620806d 100644
--- a/src/components/DeptSelect/index.vue
+++ b/src/components/DeptSelect/index.vue
@@ -1,7 +1,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/editDept.vue b/src/views/system/dept/editDept.vue
new file mode 100644
index 0000000..c16ec9a
--- /dev/null
+++ b/src/views/system/dept/editDept.vue
@@ -0,0 +1,223 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/list.dept.vue b/src/views/system/dept/list.dept.vue
deleted file mode 100644
index 51ff8e7..0000000
--- a/src/views/system/dept/list.dept.vue
+++ /dev/null
@@ -1,138 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
new file mode 100644
index 0000000..07382e9
--- /dev/null
+++ b/src/views/system/dept/listDept.vue
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/dict-interface.ts b/src/views/system/dict/dict-interface.ts
new file mode 100644
index 0000000..9b647ec
--- /dev/null
+++ b/src/views/system/dict/dict-interface.ts
@@ -0,0 +1,25 @@
+// 字典值列表
+export interface DictDetail {
+ name: string
+ value: string
+ num: number
+}
+
+// 字典
+export interface DictInfo {
+ dictId: string
+ dictCode: string
+ dictName: string
+ dictTips: string
+ dictValues: DictDetail[]
+}
+
+export interface DictListInfo {
+ id: string
+ name: string
+ code: string
+ pid: string
+ detail: string
+ tips: string
+ num: number
+}
diff --git a/src/views/system/dict/dict_interface.ts b/src/views/system/dict/dict_interface.ts
deleted file mode 100644
index 9b647ec..0000000
--- a/src/views/system/dict/dict_interface.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-// 字典值列表
-export interface DictDetail {
- name: string
- value: string
- num: number
-}
-
-// 字典
-export interface DictInfo {
- dictId: string
- dictCode: string
- dictName: string
- dictTips: string
- dictValues: DictDetail[]
-}
-
-export interface DictListInfo {
- id: string
- name: string
- code: string
- pid: string
- detail: string
- tips: string
- num: number
-}
diff --git a/src/views/system/dict/edit.dict.vue b/src/views/system/dict/edit.dict.vue
deleted file mode 100644
index d8a6d90..0000000
--- a/src/views/system/dict/edit.dict.vue
+++ /dev/null
@@ -1,250 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 字典值列表
-
- 添加
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dict/editDict.vue b/src/views/system/dict/editDict.vue
new file mode 100644
index 0000000..c2e9eb8
--- /dev/null
+++ b/src/views/system/dict/editDict.vue
@@ -0,0 +1,250 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 字典值列表
+
+ 添加
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/list.dict.vue b/src/views/system/dict/list.dict.vue
deleted file mode 100644
index 2c7d960..0000000
--- a/src/views/system/dict/list.dict.vue
+++ /dev/null
@@ -1,129 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dict/listDict.vue b/src/views/system/dict/listDict.vue
new file mode 100644
index 0000000..feea486
--- /dev/null
+++ b/src/views/system/dict/listDict.vue
@@ -0,0 +1,129 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/edit.resource.vue b/src/views/system/resource/edit.resource.vue
deleted file mode 100644
index 96c5015..0000000
--- a/src/views/system/resource/edit.resource.vue
+++ /dev/null
@@ -1,260 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/resource/editResource.vue b/src/views/system/resource/editResource.vue
new file mode 100644
index 0000000..1e72e08
--- /dev/null
+++ b/src/views/system/resource/editResource.vue
@@ -0,0 +1,260 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/list.resource.vue b/src/views/system/resource/list.resource.vue
deleted file mode 100644
index cb9c156..0000000
--- a/src/views/system/resource/list.resource.vue
+++ /dev/null
@@ -1,158 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
diff --git a/src/views/system/resource/listResource.vue b/src/views/system/resource/listResource.vue
new file mode 100644
index 0000000..f332c24
--- /dev/null
+++ b/src/views/system/resource/listResource.vue
@@ -0,0 +1,158 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/resource-interface.ts b/src/views/system/resource/resource-interface.ts
new file mode 100644
index 0000000..a9f2bd8
--- /dev/null
+++ b/src/views/system/resource/resource-interface.ts
@@ -0,0 +1,23 @@
+export enum ResourceTypeEnum {
+ '02' = '子系统',
+ '03' = '菜单',
+ '04' = '按钮',
+}
+// 资源类型
+export interface ResourceTypeInfo {
+ name: string
+ value: string
+}
+
+// 资源
+export interface ResourceInfo {
+ id: string
+ name: string
+ url: string
+ code: string
+ pid: string
+ resourceType: string
+ num: number
+ icon: string
+ children?: ResourceInfo[]
+}
diff --git a/src/views/system/resource/resource_interface.ts b/src/views/system/resource/resource_interface.ts
deleted file mode 100644
index a9f2bd8..0000000
--- a/src/views/system/resource/resource_interface.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-export enum ResourceTypeEnum {
- '02' = '子系统',
- '03' = '菜单',
- '04' = '按钮',
-}
-// 资源类型
-export interface ResourceTypeInfo {
- name: string
- value: string
-}
-
-// 资源
-export interface ResourceInfo {
- id: string
- name: string
- url: string
- code: string
- pid: string
- resourceType: string
- num: number
- icon: string
- children?: ResourceInfo[]
-}
diff --git a/src/views/system/role/data.perm.vue b/src/views/system/role/data.perm.vue
deleted file mode 100644
index 7276e21..0000000
--- a/src/views/system/role/data.perm.vue
+++ /dev/null
@@ -1,187 +0,0 @@
-
-
-
-
-
-
- 展开/折叠
-
-
- 全选
-
-
- 父子联动
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/role/dataPerm.vue b/src/views/system/role/dataPerm.vue
new file mode 100644
index 0000000..b86654e
--- /dev/null
+++ b/src/views/system/role/dataPerm.vue
@@ -0,0 +1,187 @@
+
+
+
+
+
+
+ 展开/折叠
+
+
+ 全选
+
+
+ 父子联动
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/role/edit.role.vue b/src/views/system/role/edit.role.vue
deleted file mode 100644
index 30e628e..0000000
--- a/src/views/system/role/edit.role.vue
+++ /dev/null
@@ -1,256 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/role/editRole.vue b/src/views/system/role/editRole.vue
new file mode 100644
index 0000000..6f668f9
--- /dev/null
+++ b/src/views/system/role/editRole.vue
@@ -0,0 +1,256 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/role/function.perm.vue b/src/views/system/role/function.perm.vue
deleted file mode 100644
index 294dc9f..0000000
--- a/src/views/system/role/function.perm.vue
+++ /dev/null
@@ -1,187 +0,0 @@
-
-
-
-
-
-
- 展开/折叠
-
-
- 全选
-
-
- 父子联动
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/role/functionPerm.vue b/src/views/system/role/functionPerm.vue
new file mode 100644
index 0000000..0bfc395
--- /dev/null
+++ b/src/views/system/role/functionPerm.vue
@@ -0,0 +1,186 @@
+
+
+
+
+
+
+ 展开/折叠
+
+
+ 全选
+
+
+ 父子联动
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/role/list.role.vue b/src/views/system/role/list.role.vue
deleted file mode 100644
index a775da3..0000000
--- a/src/views/system/role/list.role.vue
+++ /dev/null
@@ -1,175 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
- 功能权限
-
-
-
- 数据权限
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/role/listRole.vue b/src/views/system/role/listRole.vue
new file mode 100644
index 0000000..53b18e2
--- /dev/null
+++ b/src/views/system/role/listRole.vue
@@ -0,0 +1,177 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+ 功能权限
+
+
+
+ 数据权限
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/role/role-interface.ts b/src/views/system/role/role-interface.ts
new file mode 100644
index 0000000..d3847c3
--- /dev/null
+++ b/src/views/system/role/role-interface.ts
@@ -0,0 +1,19 @@
+// 数据权限类型
+export interface DataScopeTypeInfo {
+ name: string
+ value: string
+}
+
+// 角色信息
+export interface RoleInfo {
+ id: string
+ name: string // 角色名
+ tips: string // 别名
+ dataScopeType: string // 数据权限类型
+ dataScopeTypeName?: string // 数据权限类型名称
+ pid: string // 父角色
+ deptId: string // 组织机构
+ num: number // 排序
+ version: string // 保留字段
+ children?: []
+}
diff --git a/.env.development b/.env.development
index a5b855b..b34f073 100644
--- a/.env.development
+++ b/.env.development
@@ -1,8 +1,8 @@
# 页面标题
VITE_APP_TITLE = 后台基础框架
# 接口请求地址,会设置到 axios 的 baseURL 参数上
-VITE_APP_API_BASEURL = http://111.198.10.15:11309
-# VITE_APP_API_BASEURL = http://111.198.10.15:21409
+# VITE_APP_API_BASEURL = http://111.198.10.15:11309
+VITE_APP_API_BASEURL = http://111.198.10.15:21409
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
VITE_APP_DEBUG_TOOL =
diff --git a/.eslintrc b/.eslintrc
index 5d9c01f..5c6806e 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -3,6 +3,10 @@
"rules": {
"curly": ["error", "all"],
"no-tabs":"off",
- "no-const-assign": "off"
+ "no-const-assign": "off",
+ "vue/component-name-in-template-casing": ["error", "kebab-case", {
+ "registeredComponentsOnly": false,
+ "ignores": []
+ }]
}
}
diff --git a/README.md b/README.md
index 89ec586..d529f38 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
-
Vue3-admin
+SmartMeteringFront
-基于Vue3的中后台管理系统框架
+计量管理系统
## 简要说明
diff --git a/src/api/system/user.ts b/src/api/system/user.ts
index dac3b84..b76afc5 100644
--- a/src/api/system/user.ts
+++ b/src/api/system/user.ts
@@ -1,5 +1,5 @@
+// import qs from 'qs'
import request from '../index'
-import qs from 'qs'
const prefix = 'sys/'
// 修改密码
export function changePwd(data: { oldPwd: string; newPwd: string }) {
@@ -63,8 +63,8 @@
url: 'sys/mgr/roleAssign',
method: 'post',
data: {
- userId: userId,
- roleIds: ids
+ userId,
+ roleIds: ids,
},
// paramsSerializer: (params) => qs.stringify(params, { indices: false })
})
diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue
index 8405618..620806d 100644
--- a/src/components/DeptSelect/index.vue
+++ b/src/components/DeptSelect/index.vue
@@ -1,7 +1,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/editDept.vue b/src/views/system/dept/editDept.vue
new file mode 100644
index 0000000..c16ec9a
--- /dev/null
+++ b/src/views/system/dept/editDept.vue
@@ -0,0 +1,223 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dept/list.dept.vue b/src/views/system/dept/list.dept.vue
deleted file mode 100644
index 51ff8e7..0000000
--- a/src/views/system/dept/list.dept.vue
+++ /dev/null
@@ -1,138 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/listDept.vue b/src/views/system/dept/listDept.vue
new file mode 100644
index 0000000..07382e9
--- /dev/null
+++ b/src/views/system/dept/listDept.vue
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/dict-interface.ts b/src/views/system/dict/dict-interface.ts
new file mode 100644
index 0000000..9b647ec
--- /dev/null
+++ b/src/views/system/dict/dict-interface.ts
@@ -0,0 +1,25 @@
+// 字典值列表
+export interface DictDetail {
+ name: string
+ value: string
+ num: number
+}
+
+// 字典
+export interface DictInfo {
+ dictId: string
+ dictCode: string
+ dictName: string
+ dictTips: string
+ dictValues: DictDetail[]
+}
+
+export interface DictListInfo {
+ id: string
+ name: string
+ code: string
+ pid: string
+ detail: string
+ tips: string
+ num: number
+}
diff --git a/src/views/system/dict/dict_interface.ts b/src/views/system/dict/dict_interface.ts
deleted file mode 100644
index 9b647ec..0000000
--- a/src/views/system/dict/dict_interface.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-// 字典值列表
-export interface DictDetail {
- name: string
- value: string
- num: number
-}
-
-// 字典
-export interface DictInfo {
- dictId: string
- dictCode: string
- dictName: string
- dictTips: string
- dictValues: DictDetail[]
-}
-
-export interface DictListInfo {
- id: string
- name: string
- code: string
- pid: string
- detail: string
- tips: string
- num: number
-}
diff --git a/src/views/system/dict/edit.dict.vue b/src/views/system/dict/edit.dict.vue
deleted file mode 100644
index d8a6d90..0000000
--- a/src/views/system/dict/edit.dict.vue
+++ /dev/null
@@ -1,250 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 字典值列表
-
- 添加
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dict/editDict.vue b/src/views/system/dict/editDict.vue
new file mode 100644
index 0000000..c2e9eb8
--- /dev/null
+++ b/src/views/system/dict/editDict.vue
@@ -0,0 +1,250 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 字典值列表
+
+ 添加
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/dict/list.dict.vue b/src/views/system/dict/list.dict.vue
deleted file mode 100644
index 2c7d960..0000000
--- a/src/views/system/dict/list.dict.vue
+++ /dev/null
@@ -1,129 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dict/listDict.vue b/src/views/system/dict/listDict.vue
new file mode 100644
index 0000000..feea486
--- /dev/null
+++ b/src/views/system/dict/listDict.vue
@@ -0,0 +1,129 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/edit.resource.vue b/src/views/system/resource/edit.resource.vue
deleted file mode 100644
index 96c5015..0000000
--- a/src/views/system/resource/edit.resource.vue
+++ /dev/null
@@ -1,260 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/resource/editResource.vue b/src/views/system/resource/editResource.vue
new file mode 100644
index 0000000..1e72e08
--- /dev/null
+++ b/src/views/system/resource/editResource.vue
@@ -0,0 +1,260 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/list.resource.vue b/src/views/system/resource/list.resource.vue
deleted file mode 100644
index cb9c156..0000000
--- a/src/views/system/resource/list.resource.vue
+++ /dev/null
@@ -1,158 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
diff --git a/src/views/system/resource/listResource.vue b/src/views/system/resource/listResource.vue
new file mode 100644
index 0000000..f332c24
--- /dev/null
+++ b/src/views/system/resource/listResource.vue
@@ -0,0 +1,158 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
diff --git a/src/views/system/resource/resource-interface.ts b/src/views/system/resource/resource-interface.ts
new file mode 100644
index 0000000..a9f2bd8
--- /dev/null
+++ b/src/views/system/resource/resource-interface.ts
@@ -0,0 +1,23 @@
+export enum ResourceTypeEnum {
+ '02' = '子系统',
+ '03' = '菜单',
+ '04' = '按钮',
+}
+// 资源类型
+export interface ResourceTypeInfo {
+ name: string
+ value: string
+}
+
+// 资源
+export interface ResourceInfo {
+ id: string
+ name: string
+ url: string
+ code: string
+ pid: string
+ resourceType: string
+ num: number
+ icon: string
+ children?: ResourceInfo[]
+}
diff --git a/src/views/system/resource/resource_interface.ts b/src/views/system/resource/resource_interface.ts
deleted file mode 100644
index a9f2bd8..0000000
--- a/src/views/system/resource/resource_interface.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-export enum ResourceTypeEnum {
- '02' = '子系统',
- '03' = '菜单',
- '04' = '按钮',
-}
-// 资源类型
-export interface ResourceTypeInfo {
- name: string
- value: string
-}
-
-// 资源
-export interface ResourceInfo {
- id: string
- name: string
- url: string
- code: string
- pid: string
- resourceType: string
- num: number
- icon: string
- children?: ResourceInfo[]
-}
diff --git a/src/views/system/role/data.perm.vue b/src/views/system/role/data.perm.vue
deleted file mode 100644
index 7276e21..0000000
--- a/src/views/system/role/data.perm.vue
+++ /dev/null
@@ -1,187 +0,0 @@
-
-
-
-
-
-
- 展开/折叠
-
-
- 全选
-
-
- 父子联动
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/role/dataPerm.vue b/src/views/system/role/dataPerm.vue
new file mode 100644
index 0000000..b86654e
--- /dev/null
+++ b/src/views/system/role/dataPerm.vue
@@ -0,0 +1,187 @@
+
+
+
+
+
+
+ 展开/折叠
+
+
+ 全选
+
+
+ 父子联动
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/role/edit.role.vue b/src/views/system/role/edit.role.vue
deleted file mode 100644
index 30e628e..0000000
--- a/src/views/system/role/edit.role.vue
+++ /dev/null
@@ -1,256 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/role/editRole.vue b/src/views/system/role/editRole.vue
new file mode 100644
index 0000000..6f668f9
--- /dev/null
+++ b/src/views/system/role/editRole.vue
@@ -0,0 +1,256 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/role/function.perm.vue b/src/views/system/role/function.perm.vue
deleted file mode 100644
index 294dc9f..0000000
--- a/src/views/system/role/function.perm.vue
+++ /dev/null
@@ -1,187 +0,0 @@
-
-
-
-
-
-
- 展开/折叠
-
-
- 全选
-
-
- 父子联动
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/role/functionPerm.vue b/src/views/system/role/functionPerm.vue
new file mode 100644
index 0000000..0bfc395
--- /dev/null
+++ b/src/views/system/role/functionPerm.vue
@@ -0,0 +1,186 @@
+
+
+
+
+
+
+ 展开/折叠
+
+
+ 全选
+
+
+ 父子联动
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/role/list.role.vue b/src/views/system/role/list.role.vue
deleted file mode 100644
index a775da3..0000000
--- a/src/views/system/role/list.role.vue
+++ /dev/null
@@ -1,175 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
- 功能权限
-
-
-
- 数据权限
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/role/listRole.vue b/src/views/system/role/listRole.vue
new file mode 100644
index 0000000..53b18e2
--- /dev/null
+++ b/src/views/system/role/listRole.vue
@@ -0,0 +1,177 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+ 修改
+
+
+ 删除
+
+
+ 功能权限
+
+
+
+ 数据权限
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/role/role-interface.ts b/src/views/system/role/role-interface.ts
new file mode 100644
index 0000000..d3847c3
--- /dev/null
+++ b/src/views/system/role/role-interface.ts
@@ -0,0 +1,19 @@
+// 数据权限类型
+export interface DataScopeTypeInfo {
+ name: string
+ value: string
+}
+
+// 角色信息
+export interface RoleInfo {
+ id: string
+ name: string // 角色名
+ tips: string // 别名
+ dataScopeType: string // 数据权限类型
+ dataScopeTypeName?: string // 数据权限类型名称
+ pid: string // 父角色
+ deptId: string // 组织机构
+ num: number // 排序
+ version: string // 保留字段
+ children?: []
+}
diff --git a/src/views/system/role/role_interface.ts b/src/views/system/role/role_interface.ts
deleted file mode 100644
index d3847c3..0000000
--- a/src/views/system/role/role_interface.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-// 数据权限类型
-export interface DataScopeTypeInfo {
- name: string
- value: string
-}
-
-// 角色信息
-export interface RoleInfo {
- id: string
- name: string // 角色名
- tips: string // 别名
- dataScopeType: string // 数据权限类型
- dataScopeTypeName?: string // 数据权限类型名称
- pid: string // 父角色
- deptId: string // 组织机构
- num: number // 排序
- version: string // 保留字段
- children?: []
-}