11 changed files with 73 additions and 19 deletions
@ -1,10 +1,12 @@ |
|||||
|
import { computed } from 'vue'; |
||||
import store from '@/store/index'; |
import store from '@/store/index'; |
||||
|
|
||||
const fullPath = store.getters['finance/fullPath']; |
// const fullPath = store.getters['finance/fullPath'];
|
||||
console.log('fullPath: ', fullPath); |
// console.log('fullPath: ', fullPath);
|
||||
|
const domain = computed(() => store.state.domain); |
||||
|
|
||||
export function setupFinance(app) { |
export function setupFinance(app) { |
||||
uni.$u.api = { ...uni.$u.api } || {}; |
uni.$u.api = { ...uni.$u.api } || {}; |
||||
// 根据任务id获取财务条信息
|
// 根据任务id获取财务条信息
|
||||
uni.$u.api.getFinanceByTask = taskDetailId => uni.$u.post(`${fullPath}/getByTask`, { taskDetailId }); |
uni.$u.api.getFinanceByTask = taskDetailId => uni.$u.post(`${domain.value}/finance/getByTask`, { taskDetailId }); |
||||
} |
} |
||||
|
|||||
@ -0,0 +1,18 @@ |
|||||
|
<template> |
||||
|
<div class="flex justify-around"> |
||||
|
<button class="text-xs bg-blue-500 text-white leading-6" style="width: 250rpx" @click="openAudit">个人账号管理</button> |
||||
|
<button class="text-xs bg-blue-500 text-white leading-6" style="width: 250rpx" @click="openStatistical">终端UI配置</button> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script setup> |
||||
|
// DEBUG:打开财务审批详情页 |
||||
|
function openAudit() { |
||||
|
uni.$ui.openDetail({ url: 'https://www.bilibili.com/', name: '个人账号管理' }); |
||||
|
} |
||||
|
|
||||
|
// DEBUG:打开财务统计详情页 |
||||
|
function openStatistical() { |
||||
|
uni.$ui.openDetail({ url: 'https://v.qq.com/', name: '终端UI配置' }); |
||||
|
} |
||||
|
</script> |
||||
@ -0,0 +1,11 @@ |
|||||
|
<!-- 资源管理 --> |
||||
|
<template> |
||||
|
<button class="text-xs bg-blue-500 text-white leading-6" style="width: 500rpx" @click="openSourceManage">域资源管理</button> |
||||
|
</template> |
||||
|
|
||||
|
<script setup> |
||||
|
function openSourceManage() { |
||||
|
// DEBUG: 假数据 换成财务条 资源管理的地址 |
||||
|
uni.$ui.openDetail({ url: 'https://www.taobao.com/', name: '域资源管理' }); |
||||
|
} |
||||
|
</script> |
||||
@ -0,0 +1,11 @@ |
|||||
|
<!-- 资源管理 --> |
||||
|
<template> |
||||
|
<button class="text-xs bg-blue-500 text-white leading-6" style="width: 500rpx" @click="openSourceManage">项目版本管理</button> |
||||
|
</template> |
||||
|
|
||||
|
<script setup> |
||||
|
function openSourceManage() { |
||||
|
// DEBUG: 假数据 换成财务条 资源管理的地址 |
||||
|
uni.$ui.openDetail({ url: 'https://www.taobao.com/', name: '项目版本管理' }); |
||||
|
} |
||||
|
</script> |
||||
Loading…
Reference in new issue