Skip to content

Commit f2f9391

Browse files
committed
Merge branch 'master' of https://gitee.com/yudaocode/yudao-ui-admin-vue3 into feature/bpm
# Conflicts: # pnpm-lock.yaml
2 parents 2de6266 + c79f027 commit f2f9391

File tree

10 files changed

+528
-398
lines changed

10 files changed

+528
-398
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"vue": "3.5.12",
7272
"vue-dompurify-html": "^4.1.4",
7373
"vue-i18n": "9.10.2",
74-
"vue-router": "^4.3.0",
74+
"vue-router": "4.4.5",
7575
"vue-types": "^5.1.1",
7676
"vuedraggable": "^4.1.0",
7777
"web-storage-cache": "^1.1.1",

pnpm-lock.yaml

Lines changed: 510 additions & 387 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/config/axios/service.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ service.interceptors.request.use(
4444
// 是否需要设置 token
4545
let isToken = (config!.headers || {}).isToken === false
4646
whiteList.some((v) => {
47-
if (config.url) {
48-
config.url.indexOf(v) > -1
47+
if (config.url && config.url.indexOf(v) > -1) {
4948
return (isToken = false)
5049
}
5150
})

src/plugins/formCreate/index.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ import {
5151
ElMenu,
5252
ElMenuItem,
5353
ElFooter,
54-
ElMessage
54+
ElMessage,
55+
ElCollapse,
56+
ElCollapseItem,
57+
ElCard,
5558
// ElFormItem,
5659
// ElOption
5760
} from 'element-plus'
@@ -113,7 +116,10 @@ const components = [
113116
UserSelect,
114117
DeptSelect,
115118
ApiSelect,
116-
Editor
119+
Editor,
120+
ElCollapse,
121+
ElCollapseItem,
122+
ElCard,
117123
]
118124

119125
// 参考 http://www.form-create.com/v3/element-ui/auto-import.html 文档

src/utils/routerHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export const generateRoute = (routes: AppCustomRouteRecordRaw[]): AppRouteRecord
120120
data.children = [childrenData]
121121
} else {
122122
// 目录
123-
if (route.children) {
123+
if (route.children?.length) {
124124
data.component = Layout
125125
data.redirect = getRedirect(route.path, route.children)
126126
// 外链

src/views/crm/product/detail/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ defineOptions({ name: 'CrmProductDetail' })
2424
2525
const route = useRoute()
2626
const message = useMessage()
27-
const id = Number(route.params.id) // 编号
27+
const id = route.params.id // 编号
2828
const loading = ref(true) // 加载中
2929
const product = ref<ProductApi.ProductVO>({} as ProductApi.ProductVO) // 详情
3030

src/views/iot/device/detail/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ defineOptions({ name: 'IoTDeviceDetail' })
2727
2828
const route = useRoute()
2929
const message = useMessage()
30-
const id = Number(route.params.id) // 编号
30+
const id = route.params.id // 编号
3131
const loading = ref(true) // 加载中
3232
const product = ref<ProductVO>({} as ProductVO) // 产品详情
3333
const device = ref<DeviceVO>({} as DeviceVO) // 设备详情

src/views/iot/product/detail/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const { currentRoute } = useRouter()
3333
3434
const route = useRoute()
3535
const message = useMessage()
36-
const id = Number(route.params.id) // 编号
36+
const id = route.params.id // 编号
3737
const loading = ref(true) // 加载中
3838
const product = ref<ProductVO>({} as ProductVO) // 详情
3939
const activeTab = ref('info') // 默认激活的标签页

src/views/member/user/detail/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ const getUserData = async (id: number) => {
113113
const { currentRoute } = useRouter() // 路由
114114
const { delView } = useTagsViewStore() // 视图操作
115115
const route = useRoute()
116-
const id = Number(route.params.id)
116+
const id = route.params.id
117117
/* 用户钱包相关信息 */
118118
const WALLET_INIT_DATA = {
119119
balance: 0,

src/views/pay/order/index.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
plain
9898
@click="handleExport"
9999
:loading="exportLoading"
100-
v-hasPermi="['system:tenant:export']"
100+
v-hasPermi="['pay:order:export']"
101101
>
102102
<Icon icon="ep:download" class="mr-5px" /> 导出
103103
</el-button>
@@ -192,6 +192,7 @@ import { dateFormatter } from '@/utils/formatTime'
192192
import * as OrderApi from '@/api/pay/order'
193193
import OrderDetail from './OrderDetail.vue'
194194
import download from '@/utils/download'
195+
import { getAppList } from '@/api/pay/app'
195196
196197
defineOptions({ name: 'PayOrder' })
197198
@@ -263,6 +264,7 @@ const openDetail = (id: number) => {
263264
/** 初始化 **/
264265
onMounted(async () => {
265266
await getList()
267+
appList.value = await getAppList()
266268
})
267269
</script>
268270
<style>

0 commit comments

Comments
 (0)