|
|
@@ -8,7 +8,13 @@
|
|
|
<div class="description-card-text" style="font-size: 18px;font-weight: bold">{{selectedProject.name}}</div>
|
|
|
<div class="description-card-text">项目地址:
|
|
|
<span>
|
|
|
- <el-link target="_blank" type="primary" :href="selectedProject.gitRemoteUrl">{{selectedProject.gitRemoteUrl}}</el-link>
|
|
|
+ <el-link
|
|
|
+ target="_blank"
|
|
|
+ type="primary"
|
|
|
+ @click.prevent="copy(selectedProject.gitRemoteUrl)"
|
|
|
+ >
|
|
|
+ {{selectedProject.gitRemoteUrl}}
|
|
|
+ </el-link>
|
|
|
</span>
|
|
|
</div>
|
|
|
<div class="description-card-text">项目介绍:
|
|
|
@@ -32,9 +38,6 @@
|
|
|
</el-card>
|
|
|
<el-row style="display: flex;flex-direction: row;align-items: center;margin-bottom: 10px;color: #333333">
|
|
|
<h4>项目规划</h4>
|
|
|
- <el-tooltip class="item" effect="dark" :content="scheduleGuide" placement="right-end">
|
|
|
- <i class="el-icon-question"></i>
|
|
|
- </el-tooltip>
|
|
|
</el-row>
|
|
|
<Tree
|
|
|
:data="requirements"
|
|
|
@@ -56,9 +59,9 @@ import Tree from '@/components/Tree.vue';
|
|
|
import * as echarts from 'echarts';
|
|
|
import { BugListAPI, RequirementAPI } from '@/api';
|
|
|
import RequirementDrawer from '@/components/RequirementDrawer.vue';
|
|
|
+import { copy } from '@/utils/clipboard';
|
|
|
import { useProjectList } from '../../composable/useProject';
|
|
|
|
|
|
-const scheduleGuide = '项目规划用于asdsadsadda';
|
|
|
export default {
|
|
|
name: 'Schedule',
|
|
|
components: { RequirementDrawer, Tree },
|
|
|
@@ -70,7 +73,6 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- scheduleGuide,
|
|
|
loading: false,
|
|
|
requirements: [],
|
|
|
showRequirementDrawer: false,
|
|
|
@@ -96,6 +98,7 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
|
+ copy,
|
|
|
async getTreeData() {
|
|
|
this.loading = true;
|
|
|
try {
|