Merge branch 'master' of http://s16s652780.51mypc.cn:49896/r/jczz_web
| | |
| | | |
| | | <div class="topic-options" v-if="item.choicesType == 0"> |
| | | <el-radio-group v-model="item.chooseId"> |
| | | <el-radio :label="item1.optionName" v-for="(item1, index1) in item.subjectOptionList" |
| | | :key="index1"></el-radio> |
| | | <el-radio :label="item1.id" v-for="(item1, index1) in item.subjectOptionList" |
| | | :key="index1">{{ item1.optionName }}</el-radio> |
| | | </el-radio-group> |
| | | </div> |
| | | |
| | |
| | | prop: "remark", |
| | | span: 24, |
| | | // offset: 2, |
| | | } |
| | | ] |
| | | }] |
| | | }, |
| | | wyForm: {}, |
| | | activeName: 'info1', |
| | |
| | | |
| | | created () { |
| | | this.initBasicInfo() |
| | | this.questionBankOnLoad(this.page) |
| | | }, |
| | | |
| | | methods: { |
| | |
| | | initBasicInfo () { |
| | | getDetailByDeptId().then(res => { |
| | | this.wyForm = res.data.data |
| | | this.questionBankOnLoad(this.page) |
| | | }) |
| | | }, |
| | | |
| | |
| | | }, |
| | | |
| | | // 获取题目 |
| | | questionBankOnLoad (page, params = { subclassName: '基础信息' }) { |
| | | questionBankOnLoad(page, params = { |
| | | subclassName: '基础信息', |
| | | propertyId: this.wyForm.id |
| | | }) { |
| | | getList( |
| | | page.currentPage, |
| | | page.pageSize, |
| | |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }) |
| | | this.questionBankOnLoad(this.page) |
| | | // this.questionBankOnLoad(this.page, param = { |
| | | // subclassName: this.activeName, |
| | | // propertyId: this.wyForm.id |
| | | // }) |
| | | }, |
| | | (error) => { |
| | | window.console.log(error) |
| | |
| | | // 点击tab切换 |
| | | handleClick (tab) { |
| | | let param = { |
| | | subclassName: tab.label |
| | | subclassName: tab.label, |
| | | propertyId: this.wyForm.id |
| | | } |
| | | this.questionBankOnLoad(this.page, param) |
| | | }, |
| | |
| | | // 保存按钮 |
| | | handleSubmit () { |
| | | // 保存基本信息 |
| | | this.saveBasicInfo() |
| | | // this.saveBasicInfo() |
| | | // 保持考试信息 |
| | | this.saveQuestionBank() |
| | | }, |
| | |
| | | <template> |
| | | <basic-container> |
| | | <avue-crud :option="option" :table-loading="loading" :data="data" :page.sync="page" ref="crud" @row-del="rowDel" |
| | | v-model="form" :permission="permissionList" @row-update="rowUpdate" @row-save="rowSave" |
| | | :before-open="beforeOpen" @search-change="searchChange" @search-reset="searchReset" |
| | | @selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange" |
| | | @refresh-change="refreshChange" @on-load="onLoad"> |
| | | v-model="form" :permission="permissionList" @row-update="rowUpdate" @row-save="rowSave" :before-open="beforeOpen" |
| | | @search-change="searchChange" @search-reset="searchReset" @selection-change="selectionChange" |
| | | @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad"> |
| | | <template slot="menuLeft"> |
| | | <el-button size="small" icon="el-icon-delete" plain v-if="permission.propertyCompany_delete" |
| | | @click="handleDelete">删 除 |
| | |
| | | @click="openPayConfig(row)">商户配置 |
| | | </el-button> |
| | | |
| | | <el-button :size="size" v-if="permission.property_evaluation" icon="el-icon-circle-plus-outline" type="text" |
| | | @click="addProperty(row)">物业评定 |
| | | <el-button :size="size" icon="el-icon-circle-plus-outline" type="text" @click="addProperty(row)">物业评定 |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |