|
|
@@ -1,6 +1,5 @@
|
|
|
<template>
|
|
|
<d2-container>
|
|
|
-
|
|
|
<!-- <img class="page_logo"
|
|
|
src="./image/logo.png"
|
|
|
width="100%"
|
|
|
@@ -31,25 +30,21 @@
|
|
|
border
|
|
|
fit
|
|
|
@row-click="openDetails"
|
|
|
- tooltip-effect="dark"
|
|
|
- style="width: 100%;margin: 5px;"
|
|
|
+ style="width: 100%;margin:5px;white-space:pre;"
|
|
|
height="280px">
|
|
|
<el-table-column prop="title"
|
|
|
fit
|
|
|
min-width="80px"
|
|
|
label="信息标题"
|
|
|
- align="center"
|
|
|
- show-overflow-tooltip></el-table-column>
|
|
|
+ align="center"></el-table-column>
|
|
|
<el-table-column prop="content"
|
|
|
label="信息内容"
|
|
|
align="center"
|
|
|
- min-width="160px"
|
|
|
- show-overflow-tooltip></el-table-column>
|
|
|
+ min-width="160px"></el-table-column>
|
|
|
<el-table-column prop="createdtime"
|
|
|
align="center"
|
|
|
- min-width="120px"
|
|
|
- label="发布时间"
|
|
|
- show-overflow-tooltip></el-table-column>
|
|
|
+ min-width="50px"
|
|
|
+ label="发布时间"></el-table-column>
|
|
|
</el-table>
|
|
|
<el-pagination style="margin: 10px;float:right;"
|
|
|
@size-change="handleSizeChange"
|
|
|
@@ -77,7 +72,8 @@
|
|
|
style="margin-top: 7px;text-align:right;">
|
|
|
<el-form-item label="学年">
|
|
|
<el-select v-model="searchcourse.Year"
|
|
|
- style="width: 140px;">
|
|
|
+ style="width: 140px;"
|
|
|
+ filterable>
|
|
|
<el-option v-for="item in years"
|
|
|
:key="item.value"
|
|
|
:label="item.label"
|
|
|
@@ -89,7 +85,8 @@
|
|
|
class="sbutton_margin">
|
|
|
<el-select ref="reftube"
|
|
|
v-model="searchcourse.ClassId"
|
|
|
- placeholder="请选择年级学年"
|
|
|
+ filterable
|
|
|
+ placeholder="请选择"
|
|
|
style="width:100%">
|
|
|
<el-option v-for="item in classList"
|
|
|
:key="item.Id"
|
|
|
@@ -172,9 +169,12 @@
|
|
|
:inline="true"
|
|
|
class="sbutton_padding"
|
|
|
style="margin-top: 7px;text-align:right;">
|
|
|
- <el-form-item label="学年">
|
|
|
+ <el-form-item label="学年"
|
|
|
+ class="sbutton_margin">
|
|
|
+
|
|
|
<el-select v-model="searchduty.Year"
|
|
|
- style="width: 140px;">
|
|
|
+ placeholder="请选择年级学年"
|
|
|
+ filterable>
|
|
|
<el-option v-for="item in years"
|
|
|
:key="item.value"
|
|
|
:label="item.label"
|
|
|
@@ -182,19 +182,24 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="班级"
|
|
|
+ <el-form-item label="学期"
|
|
|
class="sbutton_margin">
|
|
|
- <el-select ref="reftube"
|
|
|
- v-model="searchduty.ClassId"
|
|
|
- placeholder="请选择年级学年"
|
|
|
- style="width:100%">
|
|
|
- <el-option v-for="item in classList"
|
|
|
- :key="item.Id"
|
|
|
- :label="item.Name"
|
|
|
- :value="parseInt(item.Id)">
|
|
|
+ <el-select v-model="searchduty.Term"
|
|
|
+ style="width: 140px;"
|
|
|
+ filterable>
|
|
|
+ <el-option v-for="item in termList"
|
|
|
+ :key="item.ItemValue"
|
|
|
+ :label="item.ItemName"
|
|
|
+ :value="parseInt(item.ItemValue)">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="标题"
|
|
|
+ class="sbutton_margin">
|
|
|
+ <el-input style="width: 140px;"
|
|
|
+ v-model="searchduty.Title"
|
|
|
+ placeholder="请输入标题"></el-input>
|
|
|
+ </el-form-item>
|
|
|
<el-button size="mini"
|
|
|
type="primary"
|
|
|
@click="initDatas_duty()"
|
|
|
@@ -250,17 +255,14 @@
|
|
|
|
|
|
<!-- 信息发布 -->
|
|
|
<informationInfoDialog ref="informationDialog"
|
|
|
- @handleClose="handleClose"
|
|
|
:informationId="informationId"
|
|
|
width="75"></informationInfoDialog>
|
|
|
<!-- 课程管理 -->
|
|
|
<courseInfoDialog ref="courseDialog"
|
|
|
- @handleClose="handleClose"
|
|
|
:courselist="courselist"
|
|
|
width="75"></courseInfoDialog>
|
|
|
<!-- 值班表 -->
|
|
|
<dutyInfoDialog ref="dutyDialog"
|
|
|
- @handleClose="handleClose"
|
|
|
:dutydetail="dutydetail"
|
|
|
width="75"></dutyInfoDialog>
|
|
|
</d2-container>
|
|
|
@@ -349,12 +351,12 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mounted () {
|
|
|
+ this.getTerm()
|
|
|
this.initDatas()
|
|
|
this.initDatasCourse()
|
|
|
this.initSelectYear()
|
|
|
this.initDatas_duty()
|
|
|
// this.initDatas_class()
|
|
|
- this.getTerm()
|
|
|
this.getClassList()
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -362,10 +364,11 @@ export default {
|
|
|
this.informationId = row.id
|
|
|
this.$refs.informationDialog.dialogvisible = true
|
|
|
},
|
|
|
+ //课程
|
|
|
openCourseDetails (row) {
|
|
|
- this.courselist = []
|
|
|
this.courselist.CourseId = row.Id
|
|
|
this.courselist.Year = row.Year
|
|
|
+ this.courselist.Title = row.Title
|
|
|
this.courselist.Term = row.Term
|
|
|
this.courselist.ClassId = row.ClassId
|
|
|
this.$refs.courseDialog.dialogvisible = true
|
|
|
@@ -373,17 +376,16 @@ export default {
|
|
|
openDutyDetails (row) {
|
|
|
this.dutydetail = []
|
|
|
this.dutydetail.Id = row.Id
|
|
|
- // this.courselist.Year = row.Year
|
|
|
- // this.courselist.Term = row.Term
|
|
|
- // this.courselist.ClassId = row.ClassId
|
|
|
+ this.dutydetail.Title = row.Title
|
|
|
+ this.dutydetail.Year = row.Year
|
|
|
+ this.dutydetail.Term = row.Term
|
|
|
this.$refs.dutyDialog.dialogvisible = true
|
|
|
},
|
|
|
- // 获取字典表
|
|
|
- getTerm () {
|
|
|
+ // 获取学期
|
|
|
+ getTerm1 () {
|
|
|
itemDetailApi.getItemDetailByItemCode({ ItemCode: 'Term' })
|
|
|
.then(res => {
|
|
|
this.term = res
|
|
|
- // this.initDatas()
|
|
|
})
|
|
|
.catch(err => {
|
|
|
console.error(err)
|
|
|
@@ -524,13 +526,12 @@ export default {
|
|
|
// this.$refs.informationDialog.dialogvisible = true
|
|
|
// },
|
|
|
// 新增修改弹窗关闭 返回页面
|
|
|
- handleClose () {
|
|
|
- this.informationId = -1
|
|
|
- this.$refs.informationDialog.dialogvisible = false
|
|
|
- this.initPageInfo()
|
|
|
- this.initDatas()
|
|
|
- console.log('handleClose informationId' + this.informationId)
|
|
|
- },
|
|
|
+ // handleClose () {
|
|
|
+ // this.informationId = -1
|
|
|
+ // this.$refs.informationDialog.dialogvisible = false
|
|
|
+ // this.initPageInfo()
|
|
|
+ // this.initDatas()
|
|
|
+ // },
|
|
|
publish (information) {
|
|
|
information.status = 1
|
|
|
InformationApi.save(information)
|
|
|
@@ -583,7 +584,8 @@ export default {
|
|
|
},
|
|
|
clearSearchduty () {
|
|
|
this.searchduty.Year = ''
|
|
|
- this.searchduty.ClassId = ''
|
|
|
+ this.searchduty.Term = ''
|
|
|
+ this.searchduty.Title = ''
|
|
|
this.initDatas_duty()
|
|
|
},
|
|
|
|