-
-
-
-
-
-
- {{ item.meta.title }}
-
- {{ ele.meta.title }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ item.meta.title }}
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+ {{ item.meta.title }}
+
+
+ {{ ele.meta.title }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.meta.title }}
+
+
+
+
+
\ No newline at end of file
+
diff --git a/src/router/index.js b/src/router/index.js
index 0433a5f..2c47b8a 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -22,19 +22,19 @@ export const routes = [
path: 'BusinessManage',
name: 'BusinessManage',
redirect: '/BusinessManage/EnterpriseManage',
- meta: { title: '企业管理' },
+ meta: { title: '门店管理' },
children: [
{
path: 'EnterpriseManage',
name: 'EnterpriseManage',
component: () => import('@/views/BusinessManage/index.vue'),
- meta: { title: '企业列表', hide: true },
+ meta: { title: '门店列表' },
},
{
path: 'DataManage',
name: 'DataManage',
component: () => import('@/views/BusinessManage/DataManage.vue'),
- meta: { title: '资料管理', hide: true },
+ meta: { title: '分类管理' },
},
],
},
@@ -48,7 +48,7 @@ export const routes = [
path: 'MessageCenter',
name: 'MessageCenter',
component: () => import('@/views/MessageCenter/index.vue'),
- meta: { title: '消息中心' },
+ meta: { title: '门店审核', needAdmin: true },
},
],
},
@@ -74,6 +74,9 @@ router.beforeEach((to) => {
NProgress.start()
// 如果没有 token ,并且不在白名单中,则从定向到登陆
if (!useUserStore().token && !wihteList.includes(to.path)) return '/login'
+ if (to.meta.needAdmin && !(useUserStore().userInfo?.jurisdictions?.findIndex(item => item.code === 'superadmin') !== -1)) {
+ return false
+ }
})
// 全局后置导航守卫
diff --git a/src/utils/hook.js b/src/utils/hook.js
index 606fc0b..e01fdb5 100644
--- a/src/utils/hook.js
+++ b/src/utils/hook.js
@@ -165,7 +165,7 @@ export function useTableRPC({
RPC.post(remoteDataFn, params)
.then((response) => {
tableData.value = response?.rows || []
- total.value = response.count
+ total.value = response.count || 0
})
.finally(() => {
loading.value = false
diff --git a/src/views/BusinessManage/DataManage.vue b/src/views/BusinessManage/DataManage.vue
index 5339c1a..7d9ce90 100644
--- a/src/views/BusinessManage/DataManage.vue
+++ b/src/views/BusinessManage/DataManage.vue
@@ -1,11 +1,121 @@
-
- 资料管理
+
+
分类管理
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+ 新建
+
+
+
+
+
+
+
+ 编辑
+
+ 删除
+
+
+
+
+
+
+
+
-
\ No newline at end of file
+
diff --git a/src/views/BusinessManage/DataManageDialog.vue b/src/views/BusinessManage/DataManageDialog.vue
new file mode 100644
index 0000000..602ece8
--- /dev/null
+++ b/src/views/BusinessManage/DataManageDialog.vue
@@ -0,0 +1,179 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/BusinessManage/HandleDialog.vue b/src/views/BusinessManage/HandleDialog.vue
index 9172171..790ec54 100644
--- a/src/views/BusinessManage/HandleDialog.vue
+++ b/src/views/BusinessManage/HandleDialog.vue
@@ -1,33 +1,18 @@
{
:model="formField"
:rules="formRules"
v-loading="loading"
+ label-width="100"
>
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
+
+
+
+ 选择坐标
- 选择坐标
@@ -116,4 +179,9 @@ const handleCoordinateConfirm = (coordinates) => {
/>
-
+
diff --git a/src/views/BusinessManage/index.vue b/src/views/BusinessManage/index.vue
index f65410a..cf43521 100644
--- a/src/views/BusinessManage/index.vue
+++ b/src/views/BusinessManage/index.vue
@@ -1,86 +1,146 @@
-
-
- 企业管理
-
-
-
-
-
+
+
企业管理
+
+
+
+
-
-
- 搜索
-
-
- 重置
-
-
-
+
+ 搜索
+ 重置
+
+
-
-
- 新建
-
-
-
-
-
-
-
-
-
-
-
-
- 修改
-
+
+ 新建
+
+
+
+
+
+
+
+
+
+
+
+ {{ row.created_at ? dayjs(row.created_at * 1000).format('YYYY-MM-DD HH:mm:ss') : '' }}
+
+
+
+
+ 待审核
+ 通过
+ 驳回
+
+
+
+
+
+ 编辑
-
- 删除
-
-
-
-
-
+ 删除
+
+
+
+
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 选择坐标
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/MessageCenter/index.vue b/src/views/MessageCenter/index.vue
index 33e35cb..1427361 100644
--- a/src/views/MessageCenter/index.vue
+++ b/src/views/MessageCenter/index.vue
@@ -1,11 +1,182 @@
-
- 消息中心
+
+
门店审核
+
+
+
+
+
+
+
+ 搜索
+
+ 重置
+
+
+
+
+ 新建
+
+
+
+
+
+
+
+
+
+
+ {{ row.created_at ? dayjs(row.created_at * 1000).format('YYYY-MM-DD HH:mm:ss') : '' }}
+
+
+
+
+ 查看
+ 通过
+ 驳回
+
+
+
+
+
+
+
+
+
-
\ No newline at end of file
+
diff --git a/vite.config.js b/vite.config.js
index 6ebd668..646d1ee 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -62,6 +62,10 @@ export default defineConfig({
target: 'https://lift-dev.ruixininfo.com/',
changeOrigin: true,
},
+ '/filestransfer': {
+ target: 'https://lift-dev.ruixininfo.com/',
+ changeOrigin: true,
+ },
},
},
})