|
@@ -28,34 +28,60 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="right-container"></div>
|
|
|
+ <!-- 任务看板 -->
|
|
|
+ <div class="right-container">
|
|
|
+ <div
|
|
|
+ v-for="item in CSItemList"
|
|
|
+ class="cs-item"
|
|
|
+ :key="item.ID"
|
|
|
+ :style="{
|
|
|
+ 'background-color':
|
|
|
+ item.Finish_Status === 0 ? '#E7F8E1' : item.Finish_Status === 1 ? '#FFFBD8' : '#F7DFDF'
|
|
|
+ }"
|
|
|
+ >
|
|
|
+ <el-row class="task-date">
|
|
|
+ <el-col :span="20">{{ item.Date_Stamp }} {{ item.Minute_Space }}</el-col>
|
|
|
+ <el-col :span="4" :style="{ 'text-align': 'right' }"
|
|
|
+ >任务{{
|
|
|
+ item.Finish_Status === 0 ? '未开始' : item.Finish_Status === 1 ? '已开始' : '已结束'
|
|
|
+ }}</el-col
|
|
|
+ >
|
|
|
+ </el-row>
|
|
|
+ <el-row class="task-name">
|
|
|
+ <el-col :span="24">{{ item.Name }}</el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row class="task-class-name">
|
|
|
+ <el-col :span="24">{{ item.Class_Name }}</el-col>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import { getMyCsItemsDateTeacher } from '@/api/table';
|
|
|
+import { formatDate } from '@/utils';
|
|
|
|
|
|
export default {
|
|
|
name: 'Taskkanban',
|
|
|
data() {
|
|
|
return {
|
|
|
- date: new Date()
|
|
|
+ date: new Date(),
|
|
|
+ CSItemList: null
|
|
|
};
|
|
|
},
|
|
|
- // created: {
|
|
|
- // getMyCSItem() {
|
|
|
- // getMyCsItemsDateTeacher({ Date_Stamp: this.date }).then(response => {
|
|
|
- // console.log(response.data);
|
|
|
- // });
|
|
|
- // }
|
|
|
- // },
|
|
|
+ mounted() {
|
|
|
+ getMyCsItemsDateTeacher({ Date_Stamp: formatDate(this.date) }).then(response => {
|
|
|
+ console.log(response.CSItem_List);
|
|
|
+ this.CSItemList = response.CSItem_List;
|
|
|
+ });
|
|
|
+ },
|
|
|
computed: {
|
|
|
dateTime: {
|
|
|
get: function () {
|
|
|
return this.date;
|
|
|
},
|
|
|
set: function (newValue) {
|
|
|
- // console.log(newValue.getTime());
|
|
|
this.date = newValue;
|
|
|
}
|
|
|
}
|
|
@@ -90,17 +116,19 @@ export default {
|
|
|
}
|
|
|
|
|
|
$left-item-h: 322px;
|
|
|
+$right-w: 661px;
|
|
|
|
|
|
.task-kanban {
|
|
|
height: 100%;
|
|
|
overflow: hidden;
|
|
|
+ padding: 40px 0 0 18vw;
|
|
|
+ display: flex;
|
|
|
.left-container {
|
|
|
- width: 37.5vw;
|
|
|
+ width: 341px;
|
|
|
height: 100%;
|
|
|
- display: inline-block;
|
|
|
.panel {
|
|
|
height: 100%;
|
|
|
- padding: 8% 19px 175px 218px;
|
|
|
+ padding-right: 19px;
|
|
|
.avatar {
|
|
|
width: $left-item-h;
|
|
|
}
|
|
@@ -131,8 +159,26 @@ $left-item-h: 322px;
|
|
|
height: 122px;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.right-container {
|
|
|
- width: 72.5vw;
|
|
|
+ width: $right-w + 20px;
|
|
|
+ min-width: $right-w + 20px;
|
|
|
+ padding-right: 20px;
|
|
|
+ overflow-y: auto;
|
|
|
+ // 99px 是 顶部导航菜单高度 + 5px 底部距离
|
|
|
+ height: calc(100vh - #{$header-h} - 99px);
|
|
|
+ .cs-item {
|
|
|
+ margin-top: 24px;
|
|
|
+ width: $right-w;
|
|
|
+ height: 122px;
|
|
|
+ padding: 15px 30px;
|
|
|
+ .task-name {
|
|
|
+ padding: 20px 0;
|
|
|
+ }
|
|
|
+ .task-class-name {
|
|
|
+ color: #a4a4a4;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</style>
|