diff --git a/src/api/bpm/index.ts b/src/api/bpm/index.ts new file mode 100644 index 0000000..0da8602 --- /dev/null +++ b/src/api/bpm/index.ts @@ -0,0 +1,10 @@ +import { http } from '@/utils/http'; + +/*通过id查询数据*/ +export function queryCarRentalByIdApi(id : string) { + return http({ + url: '/CarRental/cxcCarRental/queryById', + method: 'GET', + data: { id } + }) +} \ No newline at end of file diff --git a/src/api/humanResource/absence/index.ts b/src/api/humanResource/absence/index.ts index 874629f..1fa18e2 100644 --- a/src/api/humanResource/absence/index.ts +++ b/src/api/humanResource/absence/index.ts @@ -49,7 +49,7 @@ export function countByOrgApi(params : object) { }) } -/*通过id查询请假数据*/ +/*通过id查询数据*/ export function queryByIdApi(id : string) { return http({ url: '/CxcQxj/cxcQxj/queryById', diff --git a/src/pages-bpm/carRental/index.vue b/src/pages-bpm/carRental/index.vue new file mode 100644 index 0000000..fb73567 --- /dev/null +++ b/src/pages-bpm/carRental/index.vue @@ -0,0 +1,54 @@ + + + \ No newline at end of file diff --git a/src/pages-bpm/leaveApplication/index.vue b/src/pages-bpm/leaveApplication/index.vue index c7e60ee..20d5ae5 100644 --- a/src/pages-bpm/leaveApplication/index.vue +++ b/src/pages-bpm/leaveApplication/index.vue @@ -26,13 +26,6 @@ import { imgUrl } from '@/utils/index' - - defineOptions({ - name: 'index', - options: { - styleIsolation: 'shared', - }, - }) const info = ref({}) const image = ref([]) const props = defineProps({ @@ -52,7 +45,9 @@ queryByIdApi(props.formData.dataId).then((res) => { if (res.success) { info.value = res.result.records[0] - image.value = info.value.path.split(',').map(path => imgUrl(path)) + if(info.value.path){ + image.value = info.value.path.split(',').map(path => imgUrl(path)) + } } }) } @@ -60,128 +55,4 @@ onMounted(() => { qjQueryById() }) - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/pages.json b/src/pages.json index 198c56b..ae75715 100644 --- a/src/pages.json +++ b/src/pages.json @@ -517,6 +517,10 @@ { "root": "pages-bpm", "pages": [ + { + "path": "carRental/index", + "type": "page" + }, { "path": "leaveApplication/index", "type": "page" diff --git a/src/types/uni-pages.d.ts b/src/types/uni-pages.d.ts index fa180f2..b109d57 100644 --- a/src/types/uni-pages.d.ts +++ b/src/types/uni-pages.d.ts @@ -56,6 +56,7 @@ interface NavigateToOptions { "/pages-process/approvalTabbar" | "/pages-process/myApplyProcess" | "/pages-process/taskHandle" | + "/pages-bpm/carRental/index" | "/pages-bpm/leaveApplication/index"; } interface RedirectToOptions extends NavigateToOptions {}