|
@@ -44,7 +44,7 @@
|
|
|
<Task class="icon" />
|
|
|
<div class="title">任务状态</div>
|
|
|
</div>
|
|
|
- <div :style="{'background': ganttDetail.color && ganttDetail.color[1]?ganttDetail.color[1] : '', 'color': ganttDetail.color && ganttDetail.color[0]?ganttDetail.color[0] : ''}">{{ganttDetail.status}}</div>
|
|
|
+ <div v-show="ganttDetail.status" :style="{'background': ganttDetail.color && ganttDetail.color[1]?ganttDetail.color[1] : '', 'color': ganttDetail.color && ganttDetail.color[0]?ganttDetail.color[0] : ''}">{{ganttDetail.status}}</div>
|
|
|
</div>
|
|
|
<div class="row">
|
|
|
<div>
|
|
@@ -444,14 +444,16 @@ export default {
|
|
|
* 获取甘特图详情
|
|
|
*/
|
|
|
getGanttDetailData() {
|
|
|
+ const { id, statusType } = this.curTask._pdata;
|
|
|
let param = {
|
|
|
plazaId: this.plazaId,
|
|
|
- type: 2,
|
|
|
- id: 1078467
|
|
|
+ type: statusType,
|
|
|
+ id: id
|
|
|
};
|
|
|
queryGanttDetail("/data/base/queryGanttChartDetails", param).then(res => {
|
|
|
const { result, data } = res;
|
|
|
if (result === "success") {
|
|
|
+ if (!data) return
|
|
|
const {
|
|
|
status,
|
|
|
planStartDate,
|