diff --git a/src/api/factoryManager/dataPreentry.js b/src/api/factoryManager/dataPreentry.js
index e92a7b7..bf3fcb5 100644
--- a/src/api/factoryManager/dataPreentry.js
+++ b/src/api/factoryManager/dataPreentry.js
@@ -31,9 +31,8 @@
// 删除
export function delFactoryManagerList(data) {
return request({
- url: 'well/pre/delete',
- method: 'post',
- data
+ url: `well/pre/delete?id=${data.id}`,
+ method: 'get'
})
}
@@ -48,3 +47,11 @@
data: param
})
}
+
+// 井类型
+export function getWellType() {
+ return request({
+ url: 'dict/code/sluicewellType',
+ method: 'get'
+ })
+}
diff --git a/src/api/factoryManager/dataPreentry.js b/src/api/factoryManager/dataPreentry.js
index e92a7b7..bf3fcb5 100644
--- a/src/api/factoryManager/dataPreentry.js
+++ b/src/api/factoryManager/dataPreentry.js
@@ -31,9 +31,8 @@
// 删除
export function delFactoryManagerList(data) {
return request({
- url: 'well/pre/delete',
- method: 'post',
- data
+ url: `well/pre/delete?id=${data.id}`,
+ method: 'get'
})
}
@@ -48,3 +47,11 @@
data: param
})
}
+
+// 井类型
+export function getWellType() {
+ return request({
+ url: 'dict/code/sluicewellType',
+ method: 'get'
+ })
+}
diff --git a/src/api/factoryManager/miniUserManage.js b/src/api/factoryManager/miniUserManage.js
new file mode 100644
index 0000000..aa272a0
--- /dev/null
+++ b/src/api/factoryManager/miniUserManage.js
@@ -0,0 +1,56 @@
+// 小程序用户管理接口
+import request from '@/utils/request'
+
+// 列表
+export function getMiniUserManageList(data) {
+ return request({
+ url: `app/user/listPage?offset=${data.offset}&limit=${data.limit}`,
+ method: 'post',
+ data
+ })
+}
+
+// 新增
+export function addMiniUserManageList(data) {
+ return request({
+ url: 'app/user/add',
+ method: 'post',
+ data
+ })
+}
+
+// 编辑
+export function editMiniUserManageList(data) {
+ return request({
+ url: 'app/user/update',
+ method: 'post',
+ data
+ })
+}
+
+// 解除绑定
+export function unbind(data) {
+ return request({
+ url: 'app/user/unbind',
+ method: 'post',
+ data
+ })
+}
+
+// 删除
+export function delList(data) {
+ return request({
+ url: 'app/user/delete',
+ method: 'post',
+ data
+ })
+}
+
+// 井类型
+export function getRoleType() {
+ return request({
+ url: 'dict/code/roleType',
+ method: 'get'
+ })
+}
+
diff --git a/src/api/factoryManager/dataPreentry.js b/src/api/factoryManager/dataPreentry.js
index e92a7b7..bf3fcb5 100644
--- a/src/api/factoryManager/dataPreentry.js
+++ b/src/api/factoryManager/dataPreentry.js
@@ -31,9 +31,8 @@
// 删除
export function delFactoryManagerList(data) {
return request({
- url: 'well/pre/delete',
- method: 'post',
- data
+ url: `well/pre/delete?id=${data.id}`,
+ method: 'get'
})
}
@@ -48,3 +47,11 @@
data: param
})
}
+
+// 井类型
+export function getWellType() {
+ return request({
+ url: 'dict/code/sluicewellType',
+ method: 'get'
+ })
+}
diff --git a/src/api/factoryManager/miniUserManage.js b/src/api/factoryManager/miniUserManage.js
new file mode 100644
index 0000000..aa272a0
--- /dev/null
+++ b/src/api/factoryManager/miniUserManage.js
@@ -0,0 +1,56 @@
+// 小程序用户管理接口
+import request from '@/utils/request'
+
+// 列表
+export function getMiniUserManageList(data) {
+ return request({
+ url: `app/user/listPage?offset=${data.offset}&limit=${data.limit}`,
+ method: 'post',
+ data
+ })
+}
+
+// 新增
+export function addMiniUserManageList(data) {
+ return request({
+ url: 'app/user/add',
+ method: 'post',
+ data
+ })
+}
+
+// 编辑
+export function editMiniUserManageList(data) {
+ return request({
+ url: 'app/user/update',
+ method: 'post',
+ data
+ })
+}
+
+// 解除绑定
+export function unbind(data) {
+ return request({
+ url: 'app/user/unbind',
+ method: 'post',
+ data
+ })
+}
+
+// 删除
+export function delList(data) {
+ return request({
+ url: 'app/user/delete',
+ method: 'post',
+ data
+ })
+}
+
+// 井类型
+export function getRoleType() {
+ return request({
+ url: 'dict/code/roleType',
+ method: 'get'
+ })
+}
+
diff --git a/src/router/modules/system.js b/src/router/modules/system.js
index 96f7716..e8e77df 100644
--- a/src/router/modules/system.js
+++ b/src/router/modules/system.js
@@ -131,30 +131,30 @@
name: 'ConstructionList',
meta: { title: '日志列表', permission: ['/construction/list'] }
},
- // {
- // path: '/projectManagementList',
- // component: () => import('@/views/factoryManager/projectManagement/list.vue'), // Parent router-view
- // name: 'ProjectManagementList',
- // meta: { title: '项目管理', permission: ['/projectManagement/list'] }
- // },
- // {
- // path: '/MiniUserManageList',
- // component: () => import('@/views/factoryManager/MiniUserManage/list.vue'), // Parent router-view
- // name: 'MiniUserManageList',
- // meta: { title: '小程序用户管理', permission: ['/MiniUserManage/list'] }
- // },
- // {
- // path: '/safeManageList',
- // component: () => import('@/views/factoryManager/safeManage/list.vue'), // Parent router-view
- // name: 'SafeManageList',
- // meta: { title: '安全生产管理', permission: ['/safeManage/list'] }
- // },
- // {
- // path: '/dataPreentryList',
- // component: () => import('@/views/factoryManager/dataPreentry/list.vue'), // Parent router-view
- // name: 'DataPreentry',
- // meta: { title: '安全生产管理', permission: ['/dataPreentry/list'] }
- // }
+ {
+ path: '/projectManagementList',
+ component: () => import('@/views/factoryManager/projectManagement/list.vue'), // Parent router-view
+ name: 'ProjectManagementList',
+ meta: { title: '项目管理', permission: ['/projectManagement/list'] }
+ },
+ {
+ path: '/MiniUserManageList',
+ component: () => import('@/views/factoryManager/MiniUserManage/list.vue'), // Parent router-view
+ name: 'MiniUserManageList',
+ meta: { title: '小程序用户管理', permission: ['/MiniUserManage/list'] }
+ },
+ {
+ path: '/safeManageList',
+ component: () => import('@/views/factoryManager/safeManage/list.vue'), // Parent router-view
+ name: 'SafeManageList',
+ meta: { title: '安全生产管理', permission: ['/safeManage/list'] }
+ },
+ {
+ path: '/dataPreentryList',
+ component: () => import('@/views/factoryManager/dataPreentry/list.vue'), // Parent router-view
+ name: 'DataPreentry',
+ meta: { title: '安全生产管理', permission: ['/dataPreentry/list'] }
+ }
]
},
{
@@ -205,12 +205,12 @@
name: 'User',
meta: { title: '用户管理', permission: ['/mgr'] }
},
- {
- path: '/projectlist',
- component: () => import('@/views/system/project/listProject'), // Parent router-view
- name: 'ProjectList',
- meta: { title: '项目列表', permission: ['/project/list'] }
- },
+ // {
+ // path: '/projectlist',
+ // component: () => import('@/views/system/project/listProject'), // Parent router-view
+ // name: 'ProjectList',
+ // meta: { title: '项目列表', permission: ['/project/list'] }
+ // },
{
path: '/log',
component: () => import('@/views/system/log/listLog'), // Parent router-view
diff --git a/src/api/factoryManager/dataPreentry.js b/src/api/factoryManager/dataPreentry.js
index e92a7b7..bf3fcb5 100644
--- a/src/api/factoryManager/dataPreentry.js
+++ b/src/api/factoryManager/dataPreentry.js
@@ -31,9 +31,8 @@
// 删除
export function delFactoryManagerList(data) {
return request({
- url: 'well/pre/delete',
- method: 'post',
- data
+ url: `well/pre/delete?id=${data.id}`,
+ method: 'get'
})
}
@@ -48,3 +47,11 @@
data: param
})
}
+
+// 井类型
+export function getWellType() {
+ return request({
+ url: 'dict/code/sluicewellType',
+ method: 'get'
+ })
+}
diff --git a/src/api/factoryManager/miniUserManage.js b/src/api/factoryManager/miniUserManage.js
new file mode 100644
index 0000000..aa272a0
--- /dev/null
+++ b/src/api/factoryManager/miniUserManage.js
@@ -0,0 +1,56 @@
+// 小程序用户管理接口
+import request from '@/utils/request'
+
+// 列表
+export function getMiniUserManageList(data) {
+ return request({
+ url: `app/user/listPage?offset=${data.offset}&limit=${data.limit}`,
+ method: 'post',
+ data
+ })
+}
+
+// 新增
+export function addMiniUserManageList(data) {
+ return request({
+ url: 'app/user/add',
+ method: 'post',
+ data
+ })
+}
+
+// 编辑
+export function editMiniUserManageList(data) {
+ return request({
+ url: 'app/user/update',
+ method: 'post',
+ data
+ })
+}
+
+// 解除绑定
+export function unbind(data) {
+ return request({
+ url: 'app/user/unbind',
+ method: 'post',
+ data
+ })
+}
+
+// 删除
+export function delList(data) {
+ return request({
+ url: 'app/user/delete',
+ method: 'post',
+ data
+ })
+}
+
+// 井类型
+export function getRoleType() {
+ return request({
+ url: 'dict/code/roleType',
+ method: 'get'
+ })
+}
+
diff --git a/src/router/modules/system.js b/src/router/modules/system.js
index 96f7716..e8e77df 100644
--- a/src/router/modules/system.js
+++ b/src/router/modules/system.js
@@ -131,30 +131,30 @@
name: 'ConstructionList',
meta: { title: '日志列表', permission: ['/construction/list'] }
},
- // {
- // path: '/projectManagementList',
- // component: () => import('@/views/factoryManager/projectManagement/list.vue'), // Parent router-view
- // name: 'ProjectManagementList',
- // meta: { title: '项目管理', permission: ['/projectManagement/list'] }
- // },
- // {
- // path: '/MiniUserManageList',
- // component: () => import('@/views/factoryManager/MiniUserManage/list.vue'), // Parent router-view
- // name: 'MiniUserManageList',
- // meta: { title: '小程序用户管理', permission: ['/MiniUserManage/list'] }
- // },
- // {
- // path: '/safeManageList',
- // component: () => import('@/views/factoryManager/safeManage/list.vue'), // Parent router-view
- // name: 'SafeManageList',
- // meta: { title: '安全生产管理', permission: ['/safeManage/list'] }
- // },
- // {
- // path: '/dataPreentryList',
- // component: () => import('@/views/factoryManager/dataPreentry/list.vue'), // Parent router-view
- // name: 'DataPreentry',
- // meta: { title: '安全生产管理', permission: ['/dataPreentry/list'] }
- // }
+ {
+ path: '/projectManagementList',
+ component: () => import('@/views/factoryManager/projectManagement/list.vue'), // Parent router-view
+ name: 'ProjectManagementList',
+ meta: { title: '项目管理', permission: ['/projectManagement/list'] }
+ },
+ {
+ path: '/MiniUserManageList',
+ component: () => import('@/views/factoryManager/MiniUserManage/list.vue'), // Parent router-view
+ name: 'MiniUserManageList',
+ meta: { title: '小程序用户管理', permission: ['/MiniUserManage/list'] }
+ },
+ {
+ path: '/safeManageList',
+ component: () => import('@/views/factoryManager/safeManage/list.vue'), // Parent router-view
+ name: 'SafeManageList',
+ meta: { title: '安全生产管理', permission: ['/safeManage/list'] }
+ },
+ {
+ path: '/dataPreentryList',
+ component: () => import('@/views/factoryManager/dataPreentry/list.vue'), // Parent router-view
+ name: 'DataPreentry',
+ meta: { title: '安全生产管理', permission: ['/dataPreentry/list'] }
+ }
]
},
{
@@ -205,12 +205,12 @@
name: 'User',
meta: { title: '用户管理', permission: ['/mgr'] }
},
- {
- path: '/projectlist',
- component: () => import('@/views/system/project/listProject'), // Parent router-view
- name: 'ProjectList',
- meta: { title: '项目列表', permission: ['/project/list'] }
- },
+ // {
+ // path: '/projectlist',
+ // component: () => import('@/views/system/project/listProject'), // Parent router-view
+ // name: 'ProjectList',
+ // meta: { title: '项目列表', permission: ['/project/list'] }
+ // },
{
path: '/log',
component: () => import('@/views/system/log/listLog'), // Parent router-view
diff --git a/src/views/factoryManager/components/addUserDialog.vue b/src/views/factoryManager/components/addUserDialog.vue
index 38e3fc5..480d835 100644
--- a/src/views/factoryManager/components/addUserDialog.vue
+++ b/src/views/factoryManager/components/addUserDialog.vue
@@ -9,14 +9,23 @@
-
+
-
+
+
+
+
+
+
@@ -29,17 +38,32 @@