lzq 2025-08-10 20:22:42 +08:00
parent 139ddd5a67
commit 9cff255899
9 changed files with 45 additions and 46 deletions

2
.env
View File

@ -4,7 +4,7 @@ VITE_APP_NAME=垃圾回收监管平台
# 服务器基础地址 # 服务器基础地址
VITE_HTTP_SERVER_BASE_URL=/api VITE_HTTP_SERVER_BASE_URL=/api
VITE_WS_SERVER_BASE_URL=/ws VITE_WS_SERVER_BASE_URL=/ws
VITE_OSS_UPLOAD_BASE_URL=http://localhost:9000/zsy VITE_OSS_UPLOAD_BASE_URL=/api/oss
VITE_OSS_DOWNLOAD_BASE_URL=/api/oss/download VITE_OSS_DOWNLOAD_BASE_URL=/api/oss/download
VITE_OSS_BUCKET_NAME=zsy VITE_OSS_BUCKET_NAME=zsy

View File

@ -12,9 +12,9 @@ export const appName = import.meta.env.VITE_APP_NAME
* *
*/ */
export const serverBaseUrl = import.meta.env.VITE_HTTP_SERVER_BASE_URL ?? '/' export const serverBaseUrl = import.meta.env.VITE_HTTP_SERVER_BASE_URL ?? '/'
export const uploadBaseUrl = import.meta.env.VITE_OSS_UPLOAD_BASE_URL ?? '/'
export const downloadBaseUrl = import.meta.env.VITE_OSS_DOWNLOAD_BASE_URL ?? '/' export const downloadBaseUrl = import.meta.env.VITE_OSS_DOWNLOAD_BASE_URL ?? '/'
export const bucketName = import.meta.env.VITE_OSS_BUCKET_NAME ?? 'zsy' export const bucketName = import.meta.env.VITE_OSS_BUCKET_NAME ?? 'zsy'
export const uploadBaseUrl = import.meta.env.VITE_OSS_UPLOAD_BASE_URL ?? '/' + bucketName
/** /**
* Axios * Axios

View File

@ -12,7 +12,7 @@ import DistrictTree from '@/components/district/district-tree.ts'
import District from '@/components/district/district.ts' import District from '@/components/district/district.ts'
import Colls from '@/common/utils/colls.ts' import Colls from '@/common/utils/colls.ts'
const props = defineProps<{ defineProps<{
'model:value': { 'model:value': {
provinceCode: number provinceCode: number
// (); sys_district.name // (); sys_district.name
@ -32,17 +32,26 @@ const emits = defineEmits([ 'update:modelValue' ])
const value = reactive<string[]>([]) const value = reactive<string[]>([])
const map = Colls.keyArr(District, it => it.id) const map: {
[p: string]: {
id: string
pid: string
name: string
}[]
} = Colls.keyArr(District, it => it.id)
function valueChangeHandle(data: string[]) { function valueChangeHandle(data: string[]) {
value.splice(0, 3, ...data) value.splice(0, 3, ...data)
const d0 = map[data[0]][0]
const d1 = map[data[1]][0]
const d2 = map[data[2]][0]
const districtValue = { const districtValue = {
provinceCode: +map[data[0]].id, provinceCode: +d0.id,
provinceName: map[data[0]].name, provinceName: d0.name,
cityCode: +map[data[1]].id, cityCode: +d1.id,
cityName: map[data[1]].name, cityName: d1.name,
countyCode: +map[data[2]].id, countyCode: +d2.id,
countyName: map[data[2]].name, countyName: d2.name,
} }
emits('update:modelValue', districtValue) emits('update:modelValue', districtValue)
} }

View File

@ -0,0 +1,16 @@
export default reactive([
{name: 'igw-f-role'},
{name: 'menu'},
{name: 'cog'},
{name: 'user'},
{name: 'bar-chart'},
{name: 'arrow-up'},
{name: 'exclamationcircle-f'},
{name: 'check-circle-fill'},
{name: 'map-pin'},
{name: 'wenbenkuang'},
{name: 'zujian'},
{name: 'shanchu'},
{name: 'mapmarker'},
{name: 'xunhuan'}
])

View File

@ -13,33 +13,24 @@ declare module 'vue' {
Funbar: typeof import('./../components/fun-bar/Funbar.vue')['default'] Funbar: typeof import('./../components/fun-bar/Funbar.vue')['default']
Iconfont: typeof import('./../components/iconfont/Iconfont.vue')['default'] Iconfont: typeof import('./../components/iconfont/Iconfont.vue')['default']
IxAvatar: typeof import('@idux/components/avatar')['IxAvatar'] IxAvatar: typeof import('@idux/components/avatar')['IxAvatar']
IxBreadcrumb: typeof import('@idux/components/breadcrumb')['IxBreadcrumb']
IxBreadcrumbItem: typeof import('@idux/components/breadcrumb')['IxBreadcrumbItem']
IxButton: typeof import('@idux/components/button')['IxButton'] IxButton: typeof import('@idux/components/button')['IxButton']
IxButtonGroup: typeof import('@idux/components/button')['IxButtonGroup'] IxButtonGroup: typeof import('@idux/components/button')['IxButtonGroup']
IxCard: typeof import('@idux/components/card')['IxCard'] IxCard: typeof import('@idux/components/card')['IxCard']
IxCascader: typeof import('@idux/components/cascader')['IxCascader']
IxCheckbox: typeof import('@idux/components/checkbox')['IxCheckbox']
IxCol: typeof import('@idux/components/grid')['IxCol'] IxCol: typeof import('@idux/components/grid')['IxCol']
IxCollapse: typeof import('@idux/components/collapse')['IxCollapse']
IxCollapsePanel: typeof import('@idux/components/collapse')['IxCollapsePanel']
IxDatePicker: typeof import('@idux/components/date-picker')['IxDatePicker'] IxDatePicker: typeof import('@idux/components/date-picker')['IxDatePicker']
IxDivider: typeof import('@idux/components/divider')['IxDivider'] IxDivider: typeof import('@idux/components/divider')['IxDivider']
IxDrawer: typeof import('@idux/components/drawer')['IxDrawer']
IxDropdown: typeof import('@idux/components/dropdown')['IxDropdown'] IxDropdown: typeof import('@idux/components/dropdown')['IxDropdown']
IxEmpty: typeof import('@idux/components/empty')['IxEmpty'] IxEmpty: typeof import('@idux/components/empty')['IxEmpty']
IxForm: typeof import('@idux/components/form')['IxForm'] IxForm: typeof import('@idux/components/form')['IxForm']
IxFormItem: typeof import('@idux/components/form')['IxFormItem'] IxFormItem: typeof import('@idux/components/form')['IxFormItem']
IxFormWrapper: typeof import('@idux/components/form')['IxFormWrapper'] IxFormWrapper: typeof import('@idux/components/form')['IxFormWrapper']
IxIcon: typeof import('@idux/components/icon')['IxIcon'] IxIcon: typeof import('@idux/components/icon')['IxIcon']
IxIconClose: typeof import('@idux/components/icon')['IxIconClose']
IxInput: typeof import('@idux/components/input')['IxInput'] IxInput: typeof import('@idux/components/input')['IxInput']
IxInputNumber: typeof import('@idux/components/input-number')['IxInputNumber'] IxInputNumber: typeof import('@idux/components/input-number')['IxInputNumber']
IxLayoutSiderTrigger: typeof import('@idux/components/layout')['IxLayoutSiderTrigger'] IxLayoutSiderTrigger: typeof import('@idux/components/layout')['IxLayoutSiderTrigger']
IxList: typeof import('@idux/components/list')['IxList'] IxList: typeof import('@idux/components/list')['IxList']
IxListItem: typeof import('@idux/components/list')['IxListItem'] IxListItem: typeof import('@idux/components/list')['IxListItem']
IxLoadingBarProvider: typeof import('@idux/components/loading-bar')['IxLoadingBarProvider'] IxLoadingBarProvider: typeof import('@idux/components/loading-bar')['IxLoadingBarProvider']
IxMenu: typeof import('@idux/components/menu')['IxMenu']
IxMessage: typeof import('@idux/components/message')['IxMessage'] IxMessage: typeof import('@idux/components/message')['IxMessage']
IxModal: typeof import('@idux/components/modal')['IxModal'] IxModal: typeof import('@idux/components/modal')['IxModal']
IxPagination: typeof import('@idux/components/pagination')['IxPagination'] IxPagination: typeof import('@idux/components/pagination')['IxPagination']
@ -47,16 +38,12 @@ declare module 'vue' {
IxPopover: typeof import('@idux/components/popover')['IxPopover'] IxPopover: typeof import('@idux/components/popover')['IxPopover']
IxProLayout: typeof import('@idux/pro/layout')['IxProLayout'] IxProLayout: typeof import('@idux/pro/layout')['IxProLayout']
IxPwdInput: typeof import('./../components/input/IxPwdInput.vue')['default'] IxPwdInput: typeof import('./../components/input/IxPwdInput.vue')['default']
IxRadio: typeof import('@idux/components/radio')['IxRadio']
IxRadioGroup: typeof import('@idux/components/radio')['IxRadioGroup']
IxRow: typeof import('@idux/components/grid')['IxRow'] IxRow: typeof import('@idux/components/grid')['IxRow']
IxSelect: typeof import('@idux/components/select')['IxSelect'] IxSelect: typeof import('@idux/components/select')['IxSelect']
IxSelector: typeof import('@idux/components/selector')['IxSelector']
IxSpace: typeof import('@idux/components/space')['IxSpace'] IxSpace: typeof import('@idux/components/space')['IxSpace']
IxTable: typeof import('@idux/components/table')['IxTable'] IxTable: typeof import('@idux/components/table')['IxTable']
IxTabs: typeof import('@idux/components/tabs')['IxTabs'] IxTabs: typeof import('@idux/components/tabs')['IxTabs']
IxTag: typeof import('@idux/components/tag')['IxTag'] IxTag: typeof import('@idux/components/tag')['IxTag']
IxTextarea: typeof import('@idux/components/textarea')['IxTextarea']
IxTooltip: typeof import('@idux/components/tooltip')['IxTooltip'] IxTooltip: typeof import('@idux/components/tooltip')['IxTooltip']
IxTreeSelect: typeof import('@idux/components/tree-select')['IxTreeSelect'] IxTreeSelect: typeof import('@idux/components/tree-select')['IxTreeSelect']
IxUpload: typeof import('@idux/components/upload')['IxUpload'] IxUpload: typeof import('@idux/components/upload')['IxUpload']

View File

@ -1,5 +1,5 @@
<script lang="ts" setup> <script lang="ts" setup>
const leftFuns = computed<PageTypes.Fun[]>(() => { /* const leftFuns = computed<PageTypes.Fun[]>(() => {
return [ return [
{ {
title: '容器', title: '容器',
@ -9,7 +9,7 @@ const leftFuns = computed<PageTypes.Fun[]>(() => {
} }
}, },
] ]
}) }) */
</script> </script>

View File

@ -24,10 +24,7 @@
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { import { MenuData } from '@idux/components/menu'
MenuClickOptions,
MenuData
} from '@idux/components/menu'
import Nav from '@/common/router/nav.ts' import Nav from '@/common/router/nav.ts'
import Evt from '@/common/utils/evt.ts' import Evt from '@/common/utils/evt.ts'
@ -47,7 +44,7 @@ const tabList = ref<(TabList.Tab & MenuData)[]>([ {
type: 'item' type: 'item'
} ]) } ])
const selectedKeys = computed(() => { /* const selectedKeys = computed(() => {
return [ tabList.value[0].id ] return [ tabList.value[0].id ]
}) })
@ -62,7 +59,7 @@ function openTabHandler(options: MenuClickOptions) {
function closeTabHandler(data: MenuData) { function closeTabHandler(data: MenuData) {
Nav.close(data.key as string) Nav.close(data.key as string)
} } */
function openTab(tab: TabList.Tab & MenuData) { function openTab(tab: TabList.Tab & MenuData) {
tab.breadcrumb.splice(tab.breadcrumb.length - 1, 1, tab.title) tab.breadcrumb.splice(tab.breadcrumb.length - 1, 1, tab.title)

View File

@ -94,7 +94,6 @@ import {
TableColumn, TableColumn,
TableColumnSelectable TableColumnSelectable
} from '@idux/components/table' } from '@idux/components/table'
import Iconfont from '@/components/iconfont/Iconfont.vue'
import { TablePagination } from '@idux/components/table/src/types' import { TablePagination } from '@idux/components/table/src/types'
interface IconData { interface IconData {
@ -121,9 +120,9 @@ const columns: TableColumn<IconData>[] = [
{ {
title: '图标', title: '图标',
dataKey: 'name', dataKey: 'name',
customCell: ({record}: { record: IconData }) => { /* customCell: ({record}: { record: IconData }) => {
return h(Iconfont, {name: record.name}) return h(Iconfont, {name: record.name})
} } */
}, },
{ {
title: '名称', title: '名称',

View File

@ -1,18 +1,9 @@
<template> <template>
<Page :left="leftFuns">
<TenantForm ref="formIns" :status="formStatus"/>
</Page>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import Page from '@/components/page/Page.vue' /*
import Nav from '@/common/router/nav.ts'
import Toast from '@/components/toast'
import { useProductDetailStore } from '@/pages/product/product-detail/product-detail-store.ts'
import TenantForm from '@/pages/sys/tenant/tenant-form/TenantForm.vue'
import TenantApi from '@/pages/sys/tenant/tenant-api.ts'
const detailStore = useProductDetailStore()
const formIns = ref<InstanceType<typeof TenantForm> | null>(null) const formIns = ref<InstanceType<typeof TenantForm> | null>(null)
@ -60,7 +51,7 @@ onMounted(() => {
.then(res => { .then(res => {
formIns.value!.setValue(res.data) formIns.value!.setValue(res.data)
}) })
}) }) */
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>