|  | @@ -76,7 +76,7 @@
 | 
	
		
			
				|  |  |          <el-form-item>
 | 
	
		
			
				|  |  |            <el-button type="danger" @click="search">搜索</el-button>
 | 
	
		
			
				|  |  |            <el-button @click="onReSet" type="primary">重置</el-button>
 | 
	
		
			
				|  |  | -          <el-button @click="onExport" type="primary" style=" background: #14928a; border:1px solid #14928a;">导出</el-button>
 | 
	
		
			
				|  |  | +          <el-button @click="onExport" type="primary" v-permission="'export/extraExercisesReplys'" style=" background: #14928a; border:1px solid #14928a;">导出</el-button>
 | 
	
		
			
				|  |  |          </el-form-item>
 | 
	
		
			
				|  |  |        </el-form>
 | 
	
		
			
				|  |  |        <div class="tableWrap">
 | 
	
	
		
			
				|  | @@ -278,30 +278,7 @@ export default {
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      getList() {
 | 
	
		
			
				|  |  |        // assignStartTime  assignEndTime page search teacherId title
 | 
	
		
			
				|  |  | -      let obj = {};
 | 
	
		
			
				|  |  | -      if (this.searchForm.timer && this.searchForm.timer.length > 0) {
 | 
	
		
			
				|  |  | -        obj.submitStartTime = this.searchForm.timer[0];
 | 
	
		
			
				|  |  | -        obj.submitEndTime = this.searchForm.timer[1];
 | 
	
		
			
				|  |  | -      }
 | 
	
		
			
				|  |  | -      if(this.searchForm.expireDate && this.searchForm.expireDate.length>0){
 | 
	
		
			
				|  |  | -        obj.expireStartDate = this.searchForm.expireDate[0]
 | 
	
		
			
				|  |  | -         obj.expireEndDate = this.searchForm.expireDate[1]
 | 
	
		
			
				|  |  | -      }
 | 
	
		
			
				|  |  | -      obj.page = this.rules.page;
 | 
	
		
			
				|  |  | -      (obj.rows = this.rules.limit),
 | 
	
		
			
				|  |  | -        this.searchForm.teacherId
 | 
	
		
			
				|  |  | -          ? (obj.teacherId = this.searchForm.teacherId)
 | 
	
		
			
				|  |  | -          : null;
 | 
	
		
			
				|  |  | -      this.searchForm.search ? (obj.search = this.searchForm.search) : null;
 | 
	
		
			
				|  |  | -      this.searchForm.status ? (obj.status = this.searchForm.status) : null;
 | 
	
		
			
				|  |  | -      this.searchForm.isReplied
 | 
	
		
			
				|  |  | -        ? (obj.isReplied = this.searchForm.isReplied)
 | 
	
		
			
				|  |  | -        : null;
 | 
	
		
			
				|  |  | -      this.searchForm.isView ? (obj.isView = this.searchForm.isView) : null;
 | 
	
		
			
				|  |  | -      this.extracurricularExercisesId
 | 
	
		
			
				|  |  | -        ? (obj.extracurricularExercisesId = this.extracurricularExercisesId)
 | 
	
		
			
				|  |  | -        : null;
 | 
	
		
			
				|  |  | -      this.searchForm.organId ? (obj.organId = this.searchForm.organId) : null;
 | 
	
		
			
				|  |  | +      let obj = this.getDate();
 | 
	
		
			
				|  |  |        extracurricularExercisesReply(obj).then(res => {
 | 
	
		
			
				|  |  |          if (res.code == 200) {
 | 
	
		
			
				|  |  |            this.tableList = res.data.rows;
 | 
	
	
		
			
				|  | @@ -316,30 +293,7 @@ export default {
 | 
	
		
			
				|  |  |      // 导出 
 | 
	
		
			
				|  |  |      onExport(){
 | 
	
		
			
				|  |  |         let url = "/api-web/export/extraExercisesReplys";
 | 
	
		
			
				|  |  | -     let obj = {};
 | 
	
		
			
				|  |  | -      if (this.searchForm.timer && this.searchForm.timer.length > 0) {
 | 
	
		
			
				|  |  | -        obj.submitStartTime = this.searchForm.timer[0];
 | 
	
		
			
				|  |  | -        obj.submitEndTime = this.searchForm.timer[1];
 | 
	
		
			
				|  |  | -      }
 | 
	
		
			
				|  |  | -      if(this.searchForm.expireDate && this.searchForm.expireDate.length>0){
 | 
	
		
			
				|  |  | -        obj.expireStartDate = this.searchForm.expireDate[0]
 | 
	
		
			
				|  |  | -         obj.expireEndDate = this.searchForm.expireDate[1]
 | 
	
		
			
				|  |  | -      }
 | 
	
		
			
				|  |  | -      obj.page = this.rules.page;
 | 
	
		
			
				|  |  | -      (obj.rows = this.rules.limit),
 | 
	
		
			
				|  |  | -        this.searchForm.teacherId
 | 
	
		
			
				|  |  | -          ? (obj.teacherId = this.searchForm.teacherId)
 | 
	
		
			
				|  |  | -          : null;
 | 
	
		
			
				|  |  | -      this.searchForm.search ? (obj.search = this.searchForm.search) : null;
 | 
	
		
			
				|  |  | -      this.searchForm.status ? (obj.status = this.searchForm.status) : null;
 | 
	
		
			
				|  |  | -      this.searchForm.isReplied
 | 
	
		
			
				|  |  | -        ? (obj.isReplied = this.searchForm.isReplied)
 | 
	
		
			
				|  |  | -        : null;
 | 
	
		
			
				|  |  | -      this.searchForm.isView ? (obj.isView = this.searchForm.isView) : null;
 | 
	
		
			
				|  |  | -      this.extracurricularExercisesId
 | 
	
		
			
				|  |  | -        ? (obj.extracurricularExercisesId = this.extracurricularExercisesId)
 | 
	
		
			
				|  |  | -        : null;
 | 
	
		
			
				|  |  | -      this.searchForm.organId ? (obj.organId = this.searchForm.organId) : null;
 | 
	
		
			
				|  |  | +      let obj = this.getDate()
 | 
	
		
			
				|  |  |        const options = {
 | 
	
		
			
				|  |  |          method: "get",
 | 
	
		
			
				|  |  |          headers: {
 | 
	
	
		
			
				|  | @@ -377,6 +331,33 @@ export default {
 | 
	
		
			
				|  |  |          })
 | 
	
		
			
				|  |  |          .catch(() => {});
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +    getDate(){
 | 
	
		
			
				|  |  | +       let obj = {};
 | 
	
		
			
				|  |  | +      if (this.searchForm.timer && this.searchForm.timer.length > 0) {
 | 
	
		
			
				|  |  | +        obj.submitStartTime = this.searchForm.timer[0];
 | 
	
		
			
				|  |  | +        obj.submitEndTime = this.searchForm.timer[1];
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +      if(this.searchForm.expireDate && this.searchForm.expireDate.length>0){
 | 
	
		
			
				|  |  | +        obj.expireStartDate = this.searchForm.expireDate[0]
 | 
	
		
			
				|  |  | +         obj.expireEndDate = this.searchForm.expireDate[1]
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +      obj.page = this.rules.page;
 | 
	
		
			
				|  |  | +      (obj.rows = this.rules.limit),
 | 
	
		
			
				|  |  | +        this.searchForm.teacherId
 | 
	
		
			
				|  |  | +          ? (obj.teacherId = this.searchForm.teacherId)
 | 
	
		
			
				|  |  | +          : null;
 | 
	
		
			
				|  |  | +      this.searchForm.search ? (obj.search = this.searchForm.search) : null;
 | 
	
		
			
				|  |  | +      this.searchForm.status ? (obj.status = this.searchForm.status) : null;
 | 
	
		
			
				|  |  | +      this.searchForm.isReplied
 | 
	
		
			
				|  |  | +        ? (obj.isReplied = this.searchForm.isReplied)
 | 
	
		
			
				|  |  | +        : null;
 | 
	
		
			
				|  |  | +      this.searchForm.isView ? (obj.isView = this.searchForm.isView) : null;
 | 
	
		
			
				|  |  | +      this.extracurricularExercisesId
 | 
	
		
			
				|  |  | +        ? (obj.extracurricularExercisesId = this.extracurricularExercisesId)
 | 
	
		
			
				|  |  | +        : null;
 | 
	
		
			
				|  |  | +      this.searchForm.organId ? (obj.organId = this.searchForm.organId) : null;
 | 
	
		
			
				|  |  | +      return obj
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      onReSet() {
 | 
	
		
			
				|  |  |        this.searchForm = {
 | 
	
		
			
				|  |  |          search: null,
 |