15 changed files with 150 additions and 8 deletions
|
After Width: | Height: | Size: 43 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 118 KiB |
|
After Width: | Height: | Size: 14 KiB |
@ -0,0 +1,7 @@ |
|||
<template> |
|||
<div class="text-center"> |
|||
<a-image src="/src/assets/personal.png" /> |
|||
</div> |
|||
</template> |
|||
|
|||
<script setup></script> |
|||
@ -0,0 +1,7 @@ |
|||
<template> |
|||
<div class="text-center"> |
|||
<a-image src="/src/assets/uidispose.png" /> |
|||
</div> |
|||
</template> |
|||
|
|||
<script setup></script> |
|||
@ -0,0 +1,26 @@ |
|||
<template> |
|||
<div class="flex justify-around"> |
|||
<a-button type="primary" style="width: 125px" @click="openAudit">账号管理</a-button> |
|||
<a-button type="primary" style="width: 125px" @click="openStatistical">UI配置</a-button> |
|||
</div> |
|||
</template> |
|||
|
|||
<script setup> |
|||
import { useStore } from 'vuex'; |
|||
|
|||
const store = useStore(); |
|||
|
|||
// 账号管理详情页 |
|||
function openAudit() { |
|||
store.commit('task/setTaskDetailParams', ''); // 设置详情页参数 |
|||
store.commit('task/setTaskDetailUrl', ''); // 设置详情页链接 |
|||
store.commit('task/setTaskDetailShow', 'personal'); // 设置内置组件关键字(根据关键字判断显示的详情页) |
|||
} |
|||
|
|||
// UI配置详情页 |
|||
function openStatistical() { |
|||
store.commit('task/setTaskDetailParams', ''); // 设置详情页参数 |
|||
store.commit('task/setTaskDetailUrl', ''); // 设置详情页链接 |
|||
store.commit('task/setTaskDetailShow', 'uidispose'); // 设置内置组件关键字(根据关键字判断显示的详情页) |
|||
} |
|||
</script> |
|||
@ -0,0 +1,8 @@ |
|||
<!-- 项目版本管理 --> |
|||
<template> |
|||
<div class="text-center"> |
|||
<a-image src="/src/assets/exarresources.png" /> |
|||
</div> |
|||
</template> |
|||
|
|||
<script setup></script> |
|||
@ -0,0 +1,18 @@ |
|||
<!-- 域资源管理 --> |
|||
<template> |
|||
<div class="text-center"> |
|||
<a-button type="primary" style="width: 250px" @click="openSourceManage">域资源管理</a-button> |
|||
</div> |
|||
</template> |
|||
|
|||
<script setup> |
|||
import { useStore } from 'vuex'; |
|||
|
|||
const store = useStore(); |
|||
|
|||
function openSourceManage() { |
|||
store.commit('task/setTaskDetailParams', ''); // 设置详情页参数 |
|||
store.commit('task/setTaskDetailUrl', ''); // 设置详情页链接 |
|||
store.commit('task/setTaskDetailShow', 'exarresources'); // 设置内置组件关键字(根据关键字判断显示的详情页) |
|||
} |
|||
</script> |
|||
@ -0,0 +1,8 @@ |
|||
<!-- 项目版本管理 --> |
|||
<template> |
|||
<div class="text-center"> |
|||
<a-image src="/src/assets/projectVersion.png" /> |
|||
</div> |
|||
</template> |
|||
|
|||
<script setup></script> |
|||
@ -0,0 +1,18 @@ |
|||
<!-- 项目版本管理 --> |
|||
<template> |
|||
<div class="text-center"> |
|||
<a-button type="primary" style="width: 250px" @click="openSourceManage">项目版本管理</a-button> |
|||
</div> |
|||
</template> |
|||
|
|||
<script setup> |
|||
import { useStore } from 'vuex'; |
|||
|
|||
const store = useStore(); |
|||
|
|||
function openSourceManage() { |
|||
store.commit('task/setTaskDetailParams', ''); // 设置详情页参数 |
|||
store.commit('task/setTaskDetailUrl', ''); // 设置详情页链接 |
|||
store.commit('task/setTaskDetailShow', 'projectVersion'); // 设置内置组件关键字(根据关键字判断显示的详情页) |
|||
} |
|||
</script> |
|||
@ -0,0 +1,30 @@ |
|||
<!-- 资源管理 --> |
|||
<template> |
|||
<div class="text-center"> |
|||
<a-button type="primary" class="" style="width: 250px" @click="openSourceManage">资源管理</a-button> |
|||
</div> |
|||
</template> |
|||
|
|||
<script setup> |
|||
import { useStore } from 'vuex'; |
|||
import { inject, computed } from 'vue'; |
|||
|
|||
const store = useStore(); |
|||
const task = inject('task'); |
|||
const token = computed(() => store.state.user.token); |
|||
const project = computed(() => store.state.projects.project); |
|||
const sessionProject = sessionStorage.getItem('project'); |
|||
|
|||
if (sessionProject && !project.value.id) { |
|||
store.commit('projects/setProject', JSON.parse(sessionProject)); |
|||
} |
|||
|
|||
function openSourceManage() { |
|||
const param = `name=资源管理&token=${token.value}&projectId=${project.value.id}&id=${task.detailId}&pn=${project.value.name}&tn=${task.name}`; |
|||
const url = `http://121.36.3.207/finance/index?${param}`; |
|||
|
|||
store.commit('task/setTaskDetailParams', ''); // 设置详情页参数 |
|||
store.commit('task/setTaskDetailUrl', url); // 设置详情页链接 |
|||
store.commit('task/setTaskDetailShow', ''); // 设置内置组件关键字(根据关键字判断显示的详情页) |
|||
} |
|||
</script> |
|||
Loading…
Reference in new issue