Commit 76fb1041 authored by ztf's avatar ztf

项目要素相关组件

parent ab0ba506
<!--
* @Author: zhangtianfeng 3232807530@qq.com
* @Date: 2024-09-03 16:02:46
* @LastEditors: zhangtianfeng 3232807530@qq.com
* @LastEditTime: 2024-09-09 14:05:46
-->
<template> <template>
<el-tabs type="card"> <el-tabs type="card">
<el-tab-pane label="收入合同"> <el-tab-pane label="收入合同">
<div class="content"> <div class="content">
<dee-as-page :key="incomeContractPageKey" :page-key="incomeContractPageKey" /> <dee-as-page
:key="incomeContractPageKey"
:page-key="incomeContractPageKey"
/>
</div> </div>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="支出合同"> <el-tab-pane label="支出合同">
......
<!--
* @Author: zhangtianfeng 3232807530@qq.com
* @Date: 2024-09-02 11:34:39
* @LastEditors: zhangtianfeng 3232807530@qq.com
* @LastEditTime: 2024-09-05 14:43:50
-->
<template> <template>
<div class="link" @click="ToRelatedPage">{{ currentValue }}</div> <div class="link" @click="ToRelatedPage">{{ currentValue }}</div>
</template> </template>
...@@ -56,7 +50,7 @@ export default { ...@@ -56,7 +50,7 @@ export default {
const title = '项目要素' const title = '项目要素'
this.$router.push({ this.$router.push({
path: `/page/${pageNumber}/${id}?title=${title}&id=${id}&name=${name}`, path: `/page/${pageNumber}/${id}?title=${title}&id=${id}&name=${name}`,
query: { name: name + '详情', id: id } query: { name: name, id: id }
}) })
} }
} }
......
...@@ -2,13 +2,18 @@ ...@@ -2,13 +2,18 @@
* @Author: zhangtianfeng 3232807530@qq.com * @Author: zhangtianfeng 3232807530@qq.com
* @Date: 2024-09-02 09:44:58 * @Date: 2024-09-02 09:44:58
* @LastEditors: zhangtianfeng 3232807530@qq.com * @LastEditors: zhangtianfeng 3232807530@qq.com
* @LastEditTime: 2024-09-05 11:39:18 * @LastEditTime: 2024-09-06 17:35:03
*/ */
export default { export default {
props: {}, props: {},
data() { data() {
return { return {
projectMenus: [ projectMenus: [
// 这里还要监听是项目还是子项
// 项目全都展示
// 子项只有进度计划、采购计划,没有ICM接口计划 、IED计划
// 通过传进来的id进行判断这个项目的分类,进行判断,然后进行显示与隐藏
// 通过data.ifShow控制显隐
{ {
disabled: false, disabled: false,
name: '计划', name: '计划',
...@@ -24,7 +29,8 @@ export default { ...@@ -24,7 +29,8 @@ export default {
icon: '/icons/dee-project/baseline.png', icon: '/icons/dee-project/baseline.png',
componentType: 'formConfig', componentType: 'formConfig',
formConfigType: 'page', formConfigType: 'page',
pageKey: '22c90a9f-0907-49ea-8f8d-d5234e93e0e6' pageKey: '22c90a9f-0907-49ea-8f8d-d5234e93e0e6',
ifShow: true
}, },
{ {
name: '采购计划', name: '采购计划',
...@@ -32,7 +38,8 @@ export default { ...@@ -32,7 +38,8 @@ export default {
icon: '/icons/dee-project/baseline.png', icon: '/icons/dee-project/baseline.png',
componentType: 'formConfig', componentType: 'formConfig',
formConfigType: 'page', formConfigType: 'page',
pageKey: 'a5728005-cd38-4568-bc63-8888fd7e5b5a' pageKey: 'a5728005-cd38-4568-bc63-8888fd7e5b5a',
ifShow: true
}, },
{ {
name: 'IED计划', name: 'IED计划',
...@@ -40,7 +47,8 @@ export default { ...@@ -40,7 +47,8 @@ export default {
icon: '/icons/dee-project/baseline.png', icon: '/icons/dee-project/baseline.png',
componentType: 'formConfig', componentType: 'formConfig',
formConfigType: 'page', formConfigType: 'page',
pageKey: 'd4e791a9-57bf-477c-b760-53bdc351bc7f' pageKey: 'd4e791a9-57bf-477c-b760-53bdc351bc7f',
ifShow: true
}, },
{ {
name: '接口计划', name: '接口计划',
...@@ -48,11 +56,12 @@ export default { ...@@ -48,11 +56,12 @@ export default {
icon: '/icons/dee-project/baseline.png', icon: '/icons/dee-project/baseline.png',
componentType: 'formConfig', componentType: 'formConfig',
formConfigType: 'page', formConfigType: 'page',
pageKey: 'fe0b5925-0b7f-42bd-adbc-8ecb738013a0' pageKey: 'fe0b5925-0b7f-42bd-adbc-8ecb738013a0',
ifShow: true
}] }]
}, },
{ {
name: '资源', name: '团队',
planId: this.$route.query.id, planId: this.$route.query.id,
componentName: 'PlanTeam', componentName: 'PlanTeam',
icon: '/icons/dee-project/team.png', icon: '/icons/dee-project/team.png',
...@@ -106,10 +115,13 @@ export default { ...@@ -106,10 +115,13 @@ export default {
} }
}, },
computed: {}, computed: {},
watch: {}, watch: {
},
created() { created() {
}, },
methods: { methods: {
// 判断是项目还是子项进行显示与隐藏
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment