diff --git a/.env.development.example b/.env.development.example index db5d809..1048672 100644 --- a/.env.development.example +++ b/.env.development.example @@ -1,4 +1,4 @@ NODE_ENV = 'development' # Base API -VITE_APP_BASE_URL='https://76458.com' \ No newline at end of file +VITE_APP_BASE_URL='https://test1.stnav.com' \ No newline at end of file diff --git a/.env.production.example b/.env.production.example index 83692d5..6a2c1ef 100644 --- a/.env.production.example +++ b/.env.production.example @@ -1,3 +1,3 @@ NODE_ENV = 'production' # Base API -VITE_APP_BASE_URL='https://76458.com' \ No newline at end of file +VITE_APP_BASE_URL='https://test1.stnav.com' \ No newline at end of file diff --git a/src/api/broker.ts b/src/api/broker.ts new file mode 100644 index 0000000..b708338 --- /dev/null +++ b/src/api/broker.ts @@ -0,0 +1,26 @@ +import request from '@/utils/request' + +// 茶艺师经纪人表列表 +export function apiBrokerLists(params: any) { + return request.get({ url: '/broker/lists', params }) +} + +// 添加茶艺师经纪人表 +export function apiBrokerAdd(params: any) { + return request.post({ url: '/broker/add', params }) +} + +// 编辑茶艺师经纪人表 +export function apiBrokerEdit(params: any) { + return request.post({ url: '/broker/edit', params }) +} + +// 删除茶艺师经纪人表 +export function apiBrokerDelete(params: any) { + return request.post({ url: '/broker/delete', params }) +} + +// 茶艺师经纪人表详情 +export function apiBrokerDetail(params: any) { + return request.get({ url: '/broker/detail', params }) +} \ No newline at end of file diff --git a/src/api/teamaster_leaf.ts b/src/api/teamaster_leaf.ts new file mode 100644 index 0000000..3e9a925 --- /dev/null +++ b/src/api/teamaster_leaf.ts @@ -0,0 +1,26 @@ +import request from '@/utils/request' + +// 茶叶表列表 +export function apiTeamasterLeafLists(params: any) { + return request.get({ url: '/teamaster_leaf/lists', params }) +} + +// 添加茶叶表 +export function apiTeamasterLeafAdd(params: any) { + return request.post({ url: '/teamaster_leaf/add', params }) +} + +// 编辑茶叶表 +export function apiTeamasterLeafEdit(params: any) { + return request.post({ url: '/teamaster_leaf/edit', params }) +} + +// 删除茶叶表 +export function apiTeamasterLeafDelete(params: any) { + return request.post({ url: '/teamaster_leaf/delete', params }) +} + +// 茶叶表详情 +export function apiTeamasterLeafDetail(params: any) { + return request.get({ url: '/teamaster_leaf/detail', params }) +} \ No newline at end of file diff --git a/src/config/index.ts b/src/config/index.ts index cedb580..d5c707a 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -3,10 +3,10 @@ const config = { title: '后台管理系统', //网站默认标题 version: '1.9.4', //版本号 // 开发环境使用相对路径(通过代理),生产环境使用完整URL - baseUrl: import.meta.env.DEV - ? '/' - : `${import.meta.env.VITE_APP_BASE_URL || 'https://76458.com'}/`, //请求接口域名 - urlPrefix: 'adminapi', //请求默认前缀 + baseUrl: import.meta.env.DEV + ? '/' + : `${import.meta.env.VITE_APP_BASE_URL || 'https://test1.stnav.com'}/`, //请求接口域名 + urlPrefix: 'partenapi', //请求默认前缀 timeout: 10 * 1000 //请求超时时长 } diff --git a/src/utils/util.ts b/src/utils/util.ts index b472f8c..36c602a 100644 --- a/src/utils/util.ts +++ b/src/utils/util.ts @@ -27,10 +27,12 @@ export const isEmpty = (value: unknown) => { export const treeToArray = (data: any[], props = { children: 'children' }) => { data = cloneDeep(data) + // console.log("🚀 ~ treeToArray ~ data:", data) const { children } = props const newData = [] const queue: any[] = [] data.forEach((child: any) => queue.push(child)) + // console.log("🚀 ~ treeToArray ~ data:", data) while (queue.length) { const item: any = queue.shift() if (item[children]) { diff --git a/src/views/permission/menu/index.vue b/src/views/permission/menu/index.vue index f91307e..37293bd 100644 --- a/src/views/permission/menu/index.vue +++ b/src/views/permission/menu/index.vue @@ -10,21 +10,9 @@ 展开/折叠 - - + + - + - + @@ -111,6 +75,7 @@ const { pager, getLists } = usePaging({ page_type: 0 } }) +console.log("🚀 ~ pager:", pager) const handleAdd = async (id?: number) => { showEdit.value = true diff --git a/src/views/permission/role/auth.vue b/src/views/permission/role/auth.vue index 70c3f8e..42209c3 100644 --- a/src/views/permission/role/auth.vue +++ b/src/views/permission/role/auth.vue @@ -1,21 +1,8 @@