|
@@ -19,13 +19,24 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="typeBox">
|
|
|
+ <!-- <div class="typeBox">
|
|
|
<span>权限:</span>
|
|
|
<el-select v-model="sJuri" placeholder="权限" @change="juriChange">
|
|
|
<el-option label="所有人" value="0"></el-option>
|
|
|
<el-option label="老师" value="1"></el-option>
|
|
|
<el-option label="学生" value="2"></el-option>
|
|
|
</el-select>
|
|
|
+ </div> -->
|
|
|
+ <div class="typeBox">
|
|
|
+ <span>截止日期:</span>
|
|
|
+ <el-date-picker
|
|
|
+ v-model="selectedDate"
|
|
|
+ type="date"
|
|
|
+ :picker-options="pickerOptions"
|
|
|
+ @change="DateChange"
|
|
|
+ format="yyyy-MM-dd"
|
|
|
+ clearable=""
|
|
|
+ ></el-date-picker>
|
|
|
</div>
|
|
|
<div class="typeBox" v-if="typeArray.length">
|
|
|
<span>类型:</span>
|
|
@@ -116,6 +127,9 @@ export default {
|
|
|
},
|
|
|
juri:{
|
|
|
type: String
|
|
|
+ },
|
|
|
+ overDate:{
|
|
|
+ type: String
|
|
|
}
|
|
|
},
|
|
|
data() {
|
|
@@ -131,7 +145,13 @@ export default {
|
|
|
typeArray: [],
|
|
|
typeCheck: '',
|
|
|
sJuri: '',
|
|
|
- courseText: ''
|
|
|
+ courseText: '',
|
|
|
+ selectedDate: '',
|
|
|
+ pickerOptions: {
|
|
|
+ disabledDate(time) {
|
|
|
+ return time.getTime() < Date.now(); // 只能选择大于今天的日期
|
|
|
+ },
|
|
|
+ },
|
|
|
}
|
|
|
},
|
|
|
directives: {
|
|
@@ -237,6 +257,9 @@ export default {
|
|
|
juriChange(){
|
|
|
this.$emit("update:juri", this.sJuri)
|
|
|
},
|
|
|
+ DateChange(){
|
|
|
+ this.$emit("update:overDate", this.selectedDate)
|
|
|
+ },
|
|
|
briefChange(){
|
|
|
this.$emit("update:brief", this.courseText)
|
|
|
},
|
|
@@ -276,6 +299,7 @@ export default {
|
|
|
this.typeCheck = this.depthCopy(this.typeid)
|
|
|
this.courseText = this.depthCopy(this.brief)
|
|
|
this.sJuri = this.depthCopy(this.juri)
|
|
|
+ this.selectedDate = this.depthCopy(this.overDate)
|
|
|
this.$forceUpdate()
|
|
|
// this.selectAllType();
|
|
|
this.selectType();
|