|
|
@@ -1,21 +1,24 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
- <div style="display:flex;justify-content: space-between;">
|
|
|
- <table-detail ref="tableRef" :layout="tablecols" :data="list" :opwidth="200" :custom="true" style="margin-top: 10px" @rowClick="rowClick">
|
|
|
- <template v-slot:customcol="scope">
|
|
|
- <div v-if="scope.column.columnname == 'status'">
|
|
|
- <div :style="tool.getStatusColor(scope.column.data[scope.column.columnname])">{{scope.column.data[scope.column.columnname]}}</div>
|
|
|
- </div>
|
|
|
- <div v-else>{{scope.column.data[scope.column.columnname]}}</div>
|
|
|
- </template>
|
|
|
- </table-detail>
|
|
|
- <div style="width: 45%" id="gantt222">
|
|
|
- <ganttChart :data="list" style="margin-top: 10px" ref="chartRef" clickCan="可以点击" @taskDetail="taskDetail"></ganttChart>
|
|
|
+ <div v-if="list.length > 0">
|
|
|
+ <div style="display:flex;justify-content: space-between;padding-right: 10px" >
|
|
|
+ <table-detail ref="tableRef" :layout="tablecols" :data="list" :opwidth="200" :custom="true" style="margin-top: 10px;margin-right: 10px;width: 50%" @rowClick="rowClick">
|
|
|
+ <template v-slot:customcol="scope">
|
|
|
+ <div v-if="scope.column.columnname == 'status'">
|
|
|
+ <div :style="tool.getStatusColor(scope.column.data[scope.column.columnname])">{{scope.column.data[scope.column.columnname]}}</div>
|
|
|
+ </div>
|
|
|
+ <div v-else>{{scope.column.data[scope.column.columnname]}}</div>
|
|
|
+ </template>
|
|
|
+ </table-detail>
|
|
|
+ <div style="width: 50%;" id="gantt222">
|
|
|
+ <ganttChart :data="list" style="margin-top: 10px;" ref="chartRef" clickCan="可以点击" @taskDetail="taskDetail"></ganttChart>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style="margin-top: 20px">
|
|
|
+ <actionDetail v-if="detailShow" ref="actionRef" :data="selectData" :mainData="mainData" @recordSet="recordSet" @onSuccess="onSuccess"></actionDetail>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div style="margin-top: 20px">
|
|
|
- <actionDetail v-if="detailShow" ref="actionRef" :data="selectData" :mainData="mainData" @recordSet="recordSet" @onSuccess="onSuccess"></actionDetail>
|
|
|
- </div>
|
|
|
+ <el-empty v-else description="暂无数据"></el-empty>
|
|
|
</div>
|
|
|
</template>
|
|
|
|