|
@@ -34,7 +34,7 @@
|
|
|
<el-dropdown placement="bottom">
|
|
|
<i class="el-icon-circle-plus icon-add" />
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
- <el-dropdown-item @click.native="createDialogVisible = true">新建需求</el-dropdown-item>
|
|
|
+ <el-dropdown-item @click.native="need_open = true">新建需求</el-dropdown-item>
|
|
|
<el-dropdown-item @click.native="reated_task()">新建任务</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
@@ -46,36 +46,8 @@
|
|
|
<i class="el-icon-delete icon-delete" @click="dele_pro()" />
|
|
|
</div>
|
|
|
</el-header>
|
|
|
- <el-container class="is-vertical">
|
|
|
- <section v-show="activeName === '5'" class="bgborder" style=" margin:0 1%;minWidth: 55%;overflow-x: hidden;">
|
|
|
- <div class="titDiv">
|
|
|
- <div class="titIcon" />
|
|
|
- <div class="titSonName">数据统计</div>
|
|
|
- </div>
|
|
|
- <div class="special-button" style="display: flex; justify-content: space-between; align-items: center;">
|
|
|
- <span style="text-align: center; margin-left: 10%">
|
|
|
- <p>需求数量</p>
|
|
|
- <p style="font-size: 72px;margin: 0">{{ form_query.requirementCount }}</p>
|
|
|
- <p>
|
|
|
- <el-button size="mini" type="info" plain @click="createDialogVisible = true">提需求</el-button>
|
|
|
- </p>
|
|
|
- </span>
|
|
|
- <span style="text-align: center;">
|
|
|
- <p>任务数量</p>
|
|
|
- <p style="font-size: 72px;margin: 0">{{ form_query.taskCount }}</p>
|
|
|
- <p>
|
|
|
- <el-button size="mini" type="info" plain @click="reated_task()">建任务</el-button>
|
|
|
- </p>
|
|
|
- </span>
|
|
|
- <span style="text-align: center;margin-right:10%;">
|
|
|
- <p>Bug数量</p>
|
|
|
- <p style="font-size: 72px;margin: 0">{{ form_query.bugCount }}</p>
|
|
|
- <p>
|
|
|
- <el-button size="mini" type="info" plain @click="created_bug">提bug</el-button>
|
|
|
- </p>
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- </section>
|
|
|
+ <!-- 概览 -->
|
|
|
+ <el-container v-show="activeName === '1'" class="is-vertical">
|
|
|
<section class="main-section">
|
|
|
<div class="el-main-title">
|
|
|
<div class="title-left-icon" />
|
|
@@ -113,13 +85,22 @@
|
|
|
</el-form>
|
|
|
</article>
|
|
|
</section>
|
|
|
+ <section class="main-section">
|
|
|
+ <div class="el-main-title">
|
|
|
+ <div class="title-left-icon" />
|
|
|
+ <div class="title-left-name">项目描述</div>
|
|
|
+ </div>
|
|
|
+ <article>
|
|
|
+ <text-area :value.sync="form_query.description" :empty-text="'请输入'" :input-button="'需求描述'" @change="changeArea" />
|
|
|
+ </article>
|
|
|
+ </section>
|
|
|
<section class="main-section">
|
|
|
<div class="el-main-title">
|
|
|
<div class="title-left-icon" />
|
|
|
<div class="title-left-name">项目总目标</div>
|
|
|
</div>
|
|
|
<article>
|
|
|
- <text-area :value.sync="form_query.target" @change="changeArea" />
|
|
|
+ <text-area :value.sync="form_query.target" :empty-text="'您还没有设定目标请'" :input-button="'立即添加'" @change="changeArea" />
|
|
|
</article>
|
|
|
</section>
|
|
|
<section class="main-section">
|
|
@@ -132,6 +113,14 @@
|
|
|
</article>
|
|
|
</section>
|
|
|
</el-container>
|
|
|
+ <!-- 概览 -->
|
|
|
+ <!-- 统计 -->
|
|
|
+ <el-container v-show="activeName === '5'" class="is-vertical">
|
|
|
+ <section class="main-section">
|
|
|
+ <data-statistics :value="form_query" @change="get_list" />
|
|
|
+ </section>
|
|
|
+ </el-container>
|
|
|
+ <!-- 统计 -->
|
|
|
<el-container v-show="activeName === '3'">
|
|
|
<el-aside class="bgborder" style="margin:0 1% 1% 1%;">
|
|
|
<div class="titDiv">
|
|
@@ -446,15 +435,15 @@
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
<!-- 弹窗 -->
|
|
|
- <openDialog v-if="dialog_open" ref="task_createdUpdata" />
|
|
|
- <createdBug v-if="modalShow" ref="createdBug" />
|
|
|
+ <openDialog v-if="task_open" ref="task_createdUpdata" />
|
|
|
+ <createdBug v-if="bug_open" ref="createdBug" />
|
|
|
<requirement-create
|
|
|
class="diologPadding"
|
|
|
title="新建需求"
|
|
|
:data="requirement"
|
|
|
- :visible="createDialogVisible"
|
|
|
+ :visible="need_open"
|
|
|
@cancel="closeDioang()"
|
|
|
- @confirm="createDialogVisible=false"
|
|
|
+ @confirm="need_open=false"
|
|
|
/>
|
|
|
<TestReport v-if="dialogTestReport" ref="TestReport" />
|
|
|
<DailyReport v-if="dialogDailyReport" ref="DailyReport" />
|
|
@@ -482,9 +471,6 @@ import {
|
|
|
projectUpdate,
|
|
|
mileStoneList,
|
|
|
settingGetBizList,
|
|
|
- mileStoneCreate,
|
|
|
- mileStoneUpdate,
|
|
|
- mileStoneDelete,
|
|
|
projectDelete,
|
|
|
projectDeleteCheck,
|
|
|
taskList,
|
|
@@ -493,6 +479,7 @@ import {
|
|
|
import searchPeople from '@/components/select/searchPeople'
|
|
|
import textArea from '@/components/input/textArea'
|
|
|
import mileStone from './component/mileStone'
|
|
|
+import dataStatistics from './component/dataStatistics'
|
|
|
import openDialog from '@/views/projectManage/dialog_vue'
|
|
|
import Utils from '../../../util.js'
|
|
|
import RequirementCreate from '@/views/projectManage/requirement/list/create'
|
|
@@ -515,7 +502,8 @@ export default {
|
|
|
drawer,
|
|
|
searchPeople,
|
|
|
textArea,
|
|
|
- mileStone
|
|
|
+ mileStone,
|
|
|
+ dataStatistics
|
|
|
},
|
|
|
filters: {
|
|
|
ellipsis(value, num) {
|
|
@@ -528,15 +516,15 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- activeName: '1', // 顶部tab切换
|
|
|
+ activeName: '5', // 顶部tab切换
|
|
|
num: '',
|
|
|
image_url: image_url,
|
|
|
display: false,
|
|
|
- modalShow: false, // 弹窗(新建)
|
|
|
+ bug_open: false, // 弹窗(新建)
|
|
|
loading: false,
|
|
|
- dialog_open: false,
|
|
|
+ task_open: false,
|
|
|
pauseDescription: '',
|
|
|
- createDialogVisible: false, // 需求
|
|
|
+ need_open: false, // 需求
|
|
|
options: [],
|
|
|
test: [],
|
|
|
rules_form: {
|
|
@@ -648,7 +636,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
closeDioang() {
|
|
|
- this.createDialogVisible = false
|
|
|
+ this.need_open = false
|
|
|
this.get_list()
|
|
|
this.initRequirementCreateDialog()
|
|
|
},
|
|
@@ -675,15 +663,9 @@ export default {
|
|
|
}
|
|
|
this.form_query = res.data[0]
|
|
|
this.project_from = res.data[0]
|
|
|
- this.form_query.status === 0
|
|
|
- ? this.$set(this.form_query, 'statusString', '未开始')
|
|
|
- : ''
|
|
|
- this.form_query.status === 1
|
|
|
- ? this.$set(this.form_query, 'statusString', '进行中')
|
|
|
- : ''
|
|
|
- this.form_query.status === 2
|
|
|
- ? this.$set(this.form_query, 'statusString', '已完成')
|
|
|
- : ''
|
|
|
+ this.form_query.status === 0 ? this.$set(this.form_query, 'statusString', '未开始') : ''
|
|
|
+ this.form_query.status === 1 ? this.$set(this.form_query, 'statusString', '进行中') : ''
|
|
|
+ this.form_query.status === 2 ? this.$set(this.form_query, 'statusString', '已完成') : ''
|
|
|
this.get_allTask()
|
|
|
})
|
|
|
settingGetBizList({}).then(res => {
|
|
@@ -783,7 +765,7 @@ export default {
|
|
|
window.open(href, '_blank')
|
|
|
},
|
|
|
created_bug() {
|
|
|
- this.modalShow = true
|
|
|
+ this.bug_open = true
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.createdBug.init(1)
|
|
|
})
|
|
@@ -899,7 +881,7 @@ export default {
|
|
|
},
|
|
|
reated_task(e) {
|
|
|
// 建任务
|
|
|
- this.dialog_open = true
|
|
|
+ this.task_open = true
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.task_createdUpdata.init(2)
|
|
|
})
|
|
@@ -1017,9 +999,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- .time-line {
|
|
|
- @include time-line;
|
|
|
- }
|
|
|
}
|
|
|
.plan-checked {
|
|
|
padding-left: 21px;
|