File tree 10 files changed +528
-398
lines changed
10 files changed +528
-398
lines changed Original file line number Diff line number Diff line change 71
71
"vue" : " 3.5.12" ,
72
72
"vue-dompurify-html" : " ^4.1.4" ,
73
73
"vue-i18n" : " 9.10.2" ,
74
- "vue-router" : " ^4.3.0 " ,
74
+ "vue-router" : " 4.4.5 " ,
75
75
"vue-types" : " ^5.1.1" ,
76
76
"vuedraggable" : " ^4.1.0" ,
77
77
"web-storage-cache" : " ^1.1.1" ,
Original file line number Diff line number Diff line change @@ -44,8 +44,7 @@ service.interceptors.request.use(
44
44
// 是否需要设置 token
45
45
let isToken = ( config ! . headers || { } ) . isToken === false
46
46
whiteList . some ( ( v ) => {
47
- if ( config . url ) {
48
- config . url . indexOf ( v ) > - 1
47
+ if ( config . url && config . url . indexOf ( v ) > - 1 ) {
49
48
return ( isToken = false )
50
49
}
51
50
} )
Original file line number Diff line number Diff line change @@ -51,7 +51,10 @@ import {
51
51
ElMenu ,
52
52
ElMenuItem ,
53
53
ElFooter ,
54
- ElMessage
54
+ ElMessage ,
55
+ ElCollapse ,
56
+ ElCollapseItem ,
57
+ ElCard ,
55
58
// ElFormItem,
56
59
// ElOption
57
60
} from 'element-plus'
@@ -113,7 +116,10 @@ const components = [
113
116
UserSelect ,
114
117
DeptSelect ,
115
118
ApiSelect ,
116
- Editor
119
+ Editor ,
120
+ ElCollapse ,
121
+ ElCollapseItem ,
122
+ ElCard ,
117
123
]
118
124
119
125
// 参考 http://www.form-create.com/v3/element-ui/auto-import.html 文档
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ export const generateRoute = (routes: AppCustomRouteRecordRaw[]): AppRouteRecord
120
120
data . children = [ childrenData ]
121
121
} else {
122
122
// 目录
123
- if ( route . children ) {
123
+ if ( route . children ?. length ) {
124
124
data . component = Layout
125
125
data . redirect = getRedirect ( route . path , route . children )
126
126
// 外链
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ defineOptions({ name: 'CrmProductDetail' })
24
24
25
25
const route = useRoute ()
26
26
const message = useMessage ()
27
- const id = Number ( route .params .id ) // 编号
27
+ const id = route .params .id // 编号
28
28
const loading = ref (true ) // 加载中
29
29
const product = ref <ProductApi .ProductVO >({} as ProductApi .ProductVO ) // 详情
30
30
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ defineOptions({ name: 'IoTDeviceDetail' })
27
27
28
28
const route = useRoute ()
29
29
const message = useMessage ()
30
- const id = Number ( route .params .id ) // 编号
30
+ const id = route .params .id // 编号
31
31
const loading = ref (true ) // 加载中
32
32
const product = ref <ProductVO >({} as ProductVO ) // 产品详情
33
33
const device = ref <DeviceVO >({} as DeviceVO ) // 设备详情
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ const { currentRoute } = useRouter()
33
33
34
34
const route = useRoute ()
35
35
const message = useMessage ()
36
- const id = Number ( route .params .id ) // 编号
36
+ const id = route .params .id // 编号
37
37
const loading = ref (true ) // 加载中
38
38
const product = ref <ProductVO >({} as ProductVO ) // 详情
39
39
const activeTab = ref (' info' ) // 默认激活的标签页
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ const getUserData = async (id: number) => {
113
113
const { currentRoute } = useRouter () // 路由
114
114
const { delView } = useTagsViewStore () // 视图操作
115
115
const route = useRoute ()
116
- const id = Number ( route .params .id )
116
+ const id = route .params .id
117
117
/* 用户钱包相关信息 */
118
118
const WALLET_INIT_DATA = {
119
119
balance: 0 ,
Original file line number Diff line number Diff line change 97
97
plain
98
98
@click =" handleExport"
99
99
:loading =" exportLoading"
100
- v-hasPermi =" ['system:tenant :export']"
100
+ v-hasPermi =" ['pay:order :export']"
101
101
>
102
102
<Icon icon =" ep:download" class =" mr-5px" /> 导出
103
103
</el-button >
@@ -192,6 +192,7 @@ import { dateFormatter } from '@/utils/formatTime'
192
192
import * as OrderApi from ' @/api/pay/order'
193
193
import OrderDetail from ' ./OrderDetail.vue'
194
194
import download from ' @/utils/download'
195
+ import { getAppList } from ' @/api/pay/app'
195
196
196
197
defineOptions ({ name: ' PayOrder' })
197
198
@@ -263,6 +264,7 @@ const openDetail = (id: number) => {
263
264
/** 初始化 **/
264
265
onMounted (async () => {
265
266
await getList ()
267
+ appList .value = await getAppList ()
266
268
})
267
269
</script >
268
270
<style >
You can’t perform that action at this time.
0 commit comments