暂存
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
<template>
|
||||
<view style="min-height: calc(100vh - 120rpx); background-color: #ebf2f5;">
|
||||
<z-nav-bar :title="pageName"></z-nav-bar>
|
||||
<z-nav-bar :title="pageName">
|
||||
<uni-icons v-if="pageType == 1 && classState == '1' && (roleCode.includes('1') || roleCode.includes('2'))" type="plus" class="addBtn" slot="right" @click="addTask()" size="14">添加医案</uni-icons>
|
||||
</z-nav-bar>
|
||||
<view class="pad20">
|
||||
<view class="" v-if="taskList.length == 0">
|
||||
<view class="" v-if="pageType == 0 && classState == '0'">
|
||||
<view class="listTitle">
|
||||
<text>根据教学时长,须至少发布 {{minNumber}} 条作业</text>
|
||||
<!-- <text>根据教学时长,须至少发布 {{minNumber}} 条作业</text> -->
|
||||
</view>
|
||||
<view class="addTips border_radius_10">
|
||||
<view class="" >
|
||||
@@ -13,7 +15,7 @@
|
||||
</view>
|
||||
<view class="btnBox flex_box flex_center">
|
||||
<text class="zidong border_radius_10" @click="autoCreate()">自动生成</text>
|
||||
<text class="shoudong border_radius_10" @click="addTask()">手动创建</text>
|
||||
<text class="shoudong border_radius_10" @click="addTask()">逐个添加</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -25,13 +27,13 @@
|
||||
<view class="item " v-for="(item, index) in taskList" @click="clickTask(item)">
|
||||
<view class="leve1 flex_box flex_between">
|
||||
<text style="flex: 1;">{{item.title}}</text>
|
||||
<text class="edit border_radius_10 small_btn" @click.stop="goEdit(item)">修改</text>
|
||||
<text class="edit border_radius_10 small_btn" @click.stop="goEdit(item)" v-if="pageType == 0 && classState == 0 || pageType == 1 && classState == 1 && item.otherInfo.setGiveHomeWorkNumber == 0">修改</text>
|
||||
</view>
|
||||
<view class="leve2 ">
|
||||
<view class="jianjie" v-html="item.content">
|
||||
</view>
|
||||
</view>
|
||||
<view class="leve3">
|
||||
<view class="leve3" v-if="pageType == 0 && classState == 0">
|
||||
<text class="border_radius_10 small_btn add" @click.stop="addTask(item)">在本条后面添加一条</text>
|
||||
<text class="border_radius_10 small_btn del" @click.stop="delTask(item)">删除</text>
|
||||
</view>
|
||||
@@ -211,10 +213,13 @@
|
||||
})
|
||||
},
|
||||
addTask(item){
|
||||
var _sort = undefined
|
||||
item ? _sort = item.sort : undefined
|
||||
uni.navigateTo({
|
||||
url: `/pages/miniClass/addHomeWork?classId=${this.classId}&sort=${item.sort}`
|
||||
url: `/pages/miniClass/addHomeWork?classId=${this.classId}&sort=${_sort}&type=${this.pageType}`
|
||||
})
|
||||
},
|
||||
|
||||
clickHelp(){
|
||||
uni.showModal({
|
||||
title:'说明',
|
||||
@@ -319,7 +324,7 @@
|
||||
/* #endif */
|
||||
flex: 1
|
||||
}
|
||||
|
||||
.addBtn{padding-right:20rpx;}
|
||||
.submitRecode {
|
||||
// padding: 20rpx;
|
||||
|
||||
@@ -352,7 +357,7 @@
|
||||
|
||||
.leve2 { justify-content: center; margin-top: 20rpx;
|
||||
color: #999; font-size: 24rpx;border-top: 1px dashed #eee;
|
||||
.jianjie{@include bov(2)}
|
||||
.jianjie{@include bov(2); margin-top: 20rpx;}
|
||||
b{font-size: 34rpx; padding: 0 4rpx; font-weight: normal; color: #333; color: red;}
|
||||
.item{text-align: center; padding-top: 0; padding-bottom: 0; margin-bottom: 0;}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user