| @ -0,0 +1,153 @@ | |||
| <template> | |||
| <!-- 详情 --> | |||
| <div v-show="open"> | |||
| <div class="detail-container"> | |||
| <div class="detail-top"> | |||
| <div class="left-top"> | |||
| <img src="@/assets/images/back.png" @click="cancel()" /> | |||
| <div class="left-title"></div> | |||
| </div> | |||
| <div class="right-top"> | |||
| </div> | |||
| </div> | |||
| <!-- <div class="detail-title"><img src="@/assets/images/detail-title.png" >{{ $t('page.business.study.study.mjyxq') }}<img src="@/assets/images/detail-title.png" /></div> --> | |||
| <div class="detail-content"> | |||
| <div class="content-left"> | |||
| <div class="content-title"> | |||
| <div class="line"></div> | |||
| <div class="subtitle"> {{ $t('page.business.study.study.jbxx') }}</div> | |||
| </div> | |||
| <div class="pal"> | |||
| <div class="left"> | |||
| <div class="left-title">{{ $t('page.business.study.studyRoom.syjh') }}</div> | |||
| <el-input type="text" :value="form.syjh" maxlength="50" disabled /> | |||
| </div> | |||
| <div class="right"> | |||
| <div class="right-title">{{ $t('page.business.study.studyRoom.syqy') }}</div> | |||
| <el-input type="text" :value="form.syqy" maxlength="50" disabled /> | |||
| </div> | |||
| </div> | |||
| <div class="pal"> | |||
| <div class="left"> | |||
| <div class="left-title">{{ $t('page.business.study.studyRoom.dwzs') }}</div> | |||
| <el-input type="text" :value="form.dwzs" maxlength="50" disabled /> | |||
| </div> | |||
| <div class="right"> | |||
| <div class="right-title">{{ $t('page.business.study.studyRoom.longju') }}</div> | |||
| <el-input type="text" :value="form.lj" maxlength="50" disabled /> | |||
| </div> | |||
| </div> | |||
| <div class="pal"> | |||
| <div class="left"> | |||
| <div class="left-title">{{ $t('page.business.study.studyRoom.kssyyl') }}</div> | |||
| <el-input type="text" :value="form.kssyyl" maxlength="50" disabled /> | |||
| </div> | |||
| <div class="right"> | |||
| <div class="right-title">{{ $t('page.business.study.studyRoom.qyr') }}</div> | |||
| <el-input type="text" :value="form.qyrMc" maxlength="50" disabled /> | |||
| </div> | |||
| </div> | |||
| <div class="pal"> | |||
| <div class="left"> | |||
| <div class="left-title">{{ $t('page.business.study.studyRoom.kssj') }}</div> | |||
| <el-input type="text" :value="form.createTime" maxlength="50" disabled /> | |||
| </div> | |||
| <div class="right"> | |||
| <div class="right-title">{{ $t('page.business.study.studyRoom.jssyyl') }}</div> | |||
| <el-input type="text" :value="form.jssyyl" maxlength="50" disabled /> | |||
| </div> | |||
| </div> | |||
| <div class="pal"> | |||
| <div class="left"> | |||
| <div class="left-title">{{ $t('page.business.study.studyRoom.jsr') }}</div> | |||
| <el-input type="text" :value="form.jsrMc" maxlength="50" disabled /> | |||
| </div> | |||
| <div class="right"> | |||
| <div class="right-title">{{ $t('page.business.study.studyRoom.jssj') }}</div> | |||
| <el-input type="text" :value="form.jssj" maxlength="50" disabled /> | |||
| </div> | |||
| </div> | |||
| <div class="pal"> | |||
| <div class="left"> | |||
| <div class="left-title">{{ $t('page.business.study.studyRoom.zt') }}</div> | |||
| <el-select v-model="form.zt" disabled style="width: 100%;"> | |||
| <el-option key="1" :label="$t('page.business.study.studyRoom.syz')" :value="1" /> | |||
| <el-option key="3" :label="$t('page.business.study.studyRoom.yjs')" :value="3" /> | |||
| </el-select> | |||
| </div> | |||
| </div> | |||
| </div> | |||
| <div class="content-right"> | |||
| <div class="content-title"> | |||
| <div class="line"></div> | |||
| <div class="subtitle"> {{ $t('page.business.study.study.jcgj') }}</div> | |||
| </div> | |||
| <jcgjList ref="jcgjList" :showBj="false" :showLc="false" :showLj="true" @handleQuery="jcgjListHandleQuery" /> | |||
| <pagination v-show="jcgjTotal > 0" :total="jcgjTotal" small layout="prev, pager, next" | |||
| :page.sync="queryJcgjParams.pageNum" :limit.sync="queryJcgjParams.pageSize" @pagination="getJjcgjList" /> | |||
| </div> | |||
| </div> | |||
| </div> | |||
| </div> | |||
| </template> | |||
| <script> | |||
| import { studyRoom_info, studyRoom_jcgjList } from "@/api/business/study/studyRoom" | |||
| import JcgjList from "@/views/business/comps/common/JcgjList"; | |||
| export default { | |||
| name: "StudyDetail", | |||
| components: { JcgjList }, | |||
| data() { | |||
| return { | |||
| form: {}, | |||
| open: false, | |||
| jcgjTotal: 0, | |||
| jcgjList: [], | |||
| queryJcgjParams: { | |||
| pageNum: 1, | |||
| studyId: null, | |||
| pageSize: 10, | |||
| } | |||
| } | |||
| }, | |||
| created() { | |||
| }, | |||
| methods: { | |||
| jcgjListHandleQuery(val) { | |||
| console.log(val) | |||
| this.queryJcgjParams.pageNum = 1 | |||
| studyRoom_jcgjList(_.merge({}, this.queryJcgjParams, val)).then(response => { | |||
| this.jcgjList = response.rows | |||
| this.jcgjTotal = response.total | |||
| this.$refs.jcgjList.init(this.jcgjList) | |||
| }) | |||
| }, | |||
| getJjcgjList() { | |||
| studyRoom_jcgjList(this.queryJcgjParams).then(response => { | |||
| this.jcgjList = response.rows | |||
| this.jcgjTotal = response.total | |||
| this.$refs.jcgjList.init(this.jcgjList) | |||
| }).finally(() => { | |||
| }) | |||
| }, | |||
| cancel() { | |||
| this.$emit('close') | |||
| }, | |||
| show(row) { | |||
| this.$modal.loading() | |||
| this.queryJcgjParams.studyRoomId = row.id | |||
| studyRoom_info({ id: row.id }).then(response => { | |||
| this.form = response.data | |||
| this.open = true | |||
| }).finally(() => { | |||
| this.$modal.closeLoading() | |||
| }) | |||
| this.getJjcgjList() | |||
| } | |||
| } | |||
| } | |||
| </script> | |||