主题整合bug
This commit is contained in:
		| @@ -58,4 +58,12 @@ export function listActivityByThemeId(id) { | ||||
|     url: '/benyi/activity/listbythemeid/' + id, | ||||
|     method: 'post' | ||||
|   }) | ||||
| } | ||||
|  | ||||
| // 查询主题整合活动 | ||||
| export function listActivityById(id) { | ||||
|   return request({ | ||||
|     url: '/benyi/activity/listbyid/' + id, | ||||
|     method: 'post' | ||||
|   }) | ||||
| } | ||||
| @@ -1,9 +1,15 @@ | ||||
| <template> | ||||
|   <div class="table-container" ref="printMe"> | ||||
|     <h2 class="title">{{title}}</h2> | ||||
|     <h2 class="title">{{ title }}</h2> | ||||
|     <div class="table"> | ||||
|       <div class="print no-print"> | ||||
|         <el-button type="primary" plain size="mini" icon="el-icon-printer" @click="prints"></el-button> | ||||
|         <el-button | ||||
|           type="primary" | ||||
|           plain | ||||
|           size="mini" | ||||
|           icon="el-icon-printer" | ||||
|           @click="prints" | ||||
|         ></el-button> | ||||
|       </div> | ||||
|       <table> | ||||
|         <tr class="align-center"> | ||||
| @@ -13,34 +19,42 @@ | ||||
|           </td>--> | ||||
|           <td> | ||||
|             <b class="table-title">班级:</b> | ||||
|             {{classname}} | ||||
|             {{ classname }} | ||||
|           </td> | ||||
|           <td> | ||||
|             <b class="table-title">月份:</b> | ||||
|             {{month}} | ||||
|             {{ month }} | ||||
|           </td> | ||||
|           <td colspan="2"> | ||||
|             <b class="table-title">月主题:</b> | ||||
|             {{monththeme}} | ||||
|             {{ monththeme }} | ||||
|           </td> | ||||
|           <td> | ||||
|             <b class="table-title">制表人:</b> | ||||
|             {{tbr}} | ||||
|             {{ tbr }} | ||||
|           </td> | ||||
|         </tr> | ||||
|         <tr class="align-center table-bg"> | ||||
|           <td v-for="h in bodyData.title" :key="h.prop"> | ||||
|             <b>{{h.label}}</b> | ||||
|             <b>{{ h.label }}</b> | ||||
|           </td> | ||||
|         </tr> | ||||
|         <tr v-for="item in bodyData.monthplanitemList" :key="item.id"> | ||||
|           <td v-if="item.theme" :rowspan="bodyData.monthplanitemList.length" class="align-center"> | ||||
|             <span>{{monththeme}}</span> | ||||
|           <td | ||||
|             v-if="item.theme" | ||||
|             :rowspan="bodyData.monthplanitemList.length" | ||||
|             class="align-center" | ||||
|           > | ||||
|             <span>{{ monththeme }}</span> | ||||
|           </td> | ||||
|           <td class="align-center">{{item.zc}}</td> | ||||
|           <td class="align-center">{{item.starttime}}---{{item.endtime}}</td> | ||||
|           <td class="align-center">{{themeactivityFormat(item.activityid)}}</td> | ||||
|           <td>{{item.jzzc}}</td> | ||||
|           <td class="align-center">{{ item.zc }}</td> | ||||
|           <td class="align-center"> | ||||
|             {{ item.starttime }}---{{ item.endtime }} | ||||
|           </td> | ||||
|           <td class="align-center"> | ||||
|             {{ themeactivityFormat(item.activityid) }} | ||||
|           </td> | ||||
|           <td>{{ item.jzzc }}</td> | ||||
|         </tr> | ||||
|         <tr> | ||||
|           <td class="align-center">本月微型课程</td> | ||||
| @@ -48,11 +62,11 @@ | ||||
|         </tr> | ||||
|         <tr> | ||||
|           <td class="align-center">备注</td> | ||||
|           <td colspan="4">{{bz}}</td> | ||||
|           <td colspan="4">{{ bz }}</td> | ||||
|         </tr> | ||||
|         <tr> | ||||
|           <td class="align-center">教学主管审批</td> | ||||
|           <td colspan="4">{{spyj}}</td> | ||||
|           <td colspan="4">{{ spyj }}</td> | ||||
|         </tr> | ||||
|       </table> | ||||
|       <!-- <p | ||||
| @@ -63,7 +77,7 @@ | ||||
| </template> | ||||
|  | ||||
| <script> | ||||
| import { listActivityByThemeId } from "@/api/benyi/activity"; | ||||
| import { listActivityById } from "@/api/benyi/activity"; | ||||
| import { listMonthplan, getMonthplan } from "@/api/benyi/thememonthplan"; | ||||
| import { listMonthplanitem } from "@/api/benyi/thememonthplanitem"; | ||||
| import { listThemeByIds, listThemeByActivityIds } from "@/api/benyi/theme"; | ||||
| @@ -210,7 +224,7 @@ export default { | ||||
|           } | ||||
|  | ||||
|           this.bodyData.monthplanitemList[0].theme = activityIds; | ||||
|         }else{ | ||||
|         } else { | ||||
|           this.bodyData.monthplanitemList[0].theme = " "; | ||||
|         } | ||||
|       }); | ||||
| @@ -221,6 +235,8 @@ export default { | ||||
|         var ilength = activityid.split(";").length - 1; | ||||
|         var names = ""; | ||||
|         for (var i = 1; i < ilength; i++) { | ||||
|           // console.log(activityid.split(";")[i]); | ||||
|           // console.log(this.themeactivityOptions); | ||||
|           names = | ||||
|             names + | ||||
|             this.selectMoeDictLabel( | ||||
| @@ -230,14 +246,16 @@ export default { | ||||
|             ";"; | ||||
|         } | ||||
|         //this.selectDictLabel(this.scopeOptions, row.xnxq); | ||||
|         // console.log(names); | ||||
|         return names; | ||||
|       } | ||||
|       return ""; | ||||
|     }, | ||||
|     //主题活动 | ||||
|     getThemeActivityList(themeid) { | ||||
|       listActivityByThemeId(themeid).then((response) => { | ||||
|         //console.log(response.rows); | ||||
|       listActivityById(themeid).then((response) => { | ||||
|         // console.log("111" + themeid); | ||||
|         // console.log("222" + response.rows); | ||||
|         this.themeactivityOptions = response.rows; | ||||
|       }); | ||||
|     }, | ||||
|   | ||||
| @@ -274,7 +274,7 @@ import { | ||||
| } from "@/api/benyi/themeweekplanitem"; | ||||
|  | ||||
| import { listWeekplan, getWeekplan } from "@/api/benyi/themeweekplan"; | ||||
| import { listActivityByThemeId } from "@/api/benyi/activity"; | ||||
| import { listActivityById } from "@/api/benyi/activity"; | ||||
| import { listMonthplan } from "@/api/benyi/thememonthplan"; | ||||
| import { listMonthplanitem } from "@/api/benyi/thememonthplanitem"; | ||||
|  | ||||
| @@ -390,7 +390,7 @@ export default { | ||||
|     }, | ||||
|     //主题活动 | ||||
|     getThemeActivityList(themeid) { | ||||
|       listActivityByThemeId(themeid).then((response) => { | ||||
|       listActivityById(themeid).then((response) => { | ||||
|         //console.log(response.rows); | ||||
|         this.themeactivityOptions = response.rows; | ||||
|       }); | ||||
|   | ||||
| @@ -43,7 +43,7 @@ | ||||
|             ></el-date-picker> | ||||
|           </el-form-item> | ||||
|         </el-col> | ||||
|         <el-col :xs="24" :ms="12" :md="5"> | ||||
|         <el-col :xs="24" :ms="12" :md="4"> | ||||
|           <el-form-item label="所属周次" prop="zc"> | ||||
|             <el-input-number | ||||
|               v-model="queryParams.zc" | ||||
|   | ||||
| @@ -69,7 +69,7 @@ import { | ||||
| } from "@/api/benyi/themeweekplanitem"; | ||||
|  | ||||
| import { listWeekplan, getWeekplan } from "@/api/benyi/themeweekplan"; | ||||
| import { listActivityByThemeId } from "@/api/benyi/activity"; | ||||
| import { listActivityById } from "@/api/benyi/activity"; | ||||
| import { listMonthplan } from "@/api/benyi/thememonthplan"; | ||||
| import { listMonthplanitem } from "@/api/benyi/thememonthplanitem"; | ||||
| import { listThemeByIds, listThemeByActivityIds } from "@/api/benyi/theme"; | ||||
| @@ -150,6 +150,7 @@ export default { | ||||
|       queryParams_MonPlan: { | ||||
|         xnxq: undefined, | ||||
|         month: undefined, | ||||
|         classid:undefined, | ||||
|         status: "2", | ||||
|       }, | ||||
|       queryParams_MonPlanItem: { | ||||
| @@ -214,15 +215,15 @@ export default { | ||||
|     }, | ||||
|     //主题活动 | ||||
|     getThemeActivityList(themeid) { | ||||
|       listActivityByThemeId(themeid).then((response) => { | ||||
|         console.log(response.rows); | ||||
|       listActivityById(themeid).then((response) => { | ||||
|         // console.log(response.rows); | ||||
|         this.themeactivityOptions = response.rows; | ||||
|       }); | ||||
|     }, | ||||
|     //获取周教学计划详情 | ||||
|     getThemeWeekPlan(themeweekplanid) { | ||||
|       getWeekplan(themeweekplanid).then((response) => { | ||||
|         //(response); | ||||
|         console.log(response.data.classid); | ||||
|         this.queryParams.wpid = response.data.id; | ||||
|         this.title = response.data.name; | ||||
|         this.zc = response.data.zc; | ||||
| @@ -235,8 +236,9 @@ export default { | ||||
|         //查找活动id | ||||
|         this.queryParams_MonPlan.month = response.data.month; | ||||
|         this.queryParams_MonPlan.xnxq = response.data.xnxq; | ||||
|         this.queryParams_MonPlan.classid=response.data.classid; | ||||
|         listMonthplan(this.queryParams_MonPlan).then((resMonPlan) => { | ||||
|           //console.log(resMonPlan.rows); | ||||
|           console.log(resMonPlan.rows); | ||||
|           //获取的月主题 | ||||
|           var monththemeids = resMonPlan.rows[0].themes; | ||||
|  | ||||
|   | ||||
| @@ -120,7 +120,21 @@ public class ByThemeActivityController extends BaseController { | ||||
|     @PreAuthorize("@ss.hasPermi('benyi:theme:list')"+ "||@ss.hasPermi('benyi:thememonthplan:list')") | ||||
|     @PostMapping("/listbythemeid/{ids}") | ||||
|     public TableDataInfo listbythemeid(@PathVariable Long[] ids) { | ||||
| //        System.out.println("ids:"+ids); | ||||
|         List<ByThemeActivity> list = byThemeActivityService.selectByThemeActivityByThemeIds(ids); | ||||
| //        System.out.println(list.size()); | ||||
|         return getDataTable(list); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 查询主题整合活动列表 | ||||
|      */ | ||||
|     @PreAuthorize("@ss.hasPermi('benyi:theme:list')"+ "||@ss.hasPermi('benyi:thememonthplan:list')") | ||||
|     @PostMapping("/listbyid/{ids}") | ||||
|     public TableDataInfo listbyid(@PathVariable Long[] ids) { | ||||
| //        System.out.println("ids:"+ids); | ||||
|         List<ByThemeActivity> list = byThemeActivityService.selectByThemeActivityByIds(ids); | ||||
| //        System.out.println(list.size()); | ||||
|         return getDataTable(list); | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -66,4 +66,12 @@ public interface ByThemeActivityMapper { | ||||
|      * @return 主题整合活动集合 | ||||
|      */ | ||||
|     public List<ByThemeActivity> selectByThemeActivityByThemeIds(Long[] ids); | ||||
|  | ||||
|     /** | ||||
|      * 查询主题整合活动列表 | ||||
|      * | ||||
|      * @param ids 主题整合活动 | ||||
|      * @return 主题整合活动集合 | ||||
|      */ | ||||
|     public List<ByThemeActivity> selectByThemeActivityByIds(Long[] ids); | ||||
| } | ||||
|   | ||||
| @@ -66,4 +66,12 @@ public interface IByThemeActivityService { | ||||
|      * @return 主题整合活动集合 | ||||
|      */ | ||||
|     public List<ByThemeActivity> selectByThemeActivityByThemeIds(Long[] ids); | ||||
|  | ||||
|     /** | ||||
|      * 查询主题整合活动列表 | ||||
|      * | ||||
|      * @param ids 主题整合活动 | ||||
|      * @return 主题整合活动集合 | ||||
|      */ | ||||
|     public List<ByThemeActivity> selectByThemeActivityByIds(Long[] ids); | ||||
| } | ||||
|   | ||||
| @@ -97,4 +97,15 @@ public class ByThemeActivityServiceImpl implements IByThemeActivityService { | ||||
|     public List<ByThemeActivity> selectByThemeActivityByThemeIds(Long[] ids){ | ||||
|         return byThemeActivityMapper.selectByThemeActivityByThemeIds(ids); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 查询主题整合活动列表 | ||||
|      * | ||||
|      * @param ids 主题整合活动 | ||||
|      * @return 主题整合活动集合 | ||||
|      */ | ||||
|     @Override | ||||
|     public List<ByThemeActivity> selectByThemeActivityByIds(Long[] ids){ | ||||
|         return byThemeActivityMapper.selectByThemeActivityByIds(ids); | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -117,4 +117,13 @@ | ||||
|         order by themeid,sort | ||||
|     </select> | ||||
|  | ||||
|     <select id="selectByThemeActivityByIds" parameterType="String" resultMap="ByThemeActivityResult"> | ||||
|         <include refid="selectByThemeActivityVo"/> | ||||
|         where id in | ||||
|         <foreach item="id" collection="array" open="(" separator="," close=")"> | ||||
|             #{id} | ||||
|         </foreach> | ||||
|         order by themeid,sort | ||||
|     </select> | ||||
|  | ||||
| </mapper> | ||||
		Reference in New Issue
	
	Block a user