| | |
| | | /* |
| | | * @Author: Morpheus |
| | | * @Date: 2021-07-05 16:31:54 |
| | | * @Last Modified by: Morpheus |
| | | * @Last Modified time: 2021-07-19 19:39:45 |
| | | * @Last Modified by: liu |
| | | * @Last Modified time: 2021-11-25 19:32:55 |
| | | * menu-name 报名考试 |
| | | */ |
| | | <template> |
| | |
| | | @size-change="questionBankSizeChange" |
| | | @row-save="questionBankRowSave" |
| | | @row-del="questionBankRowDel" |
| | | :before-open="beforeOpen" |
| | | > |
| | | <!-- 自定义按钮 --> |
| | | <!-- <template slot="menuLeft"> |
| | |
| | | import { mapState } from "vuex"; |
| | | import { mapGetters } from "vuex"; |
| | | import { getRoleDetail } from "@/api/system/role"; |
| | | import { getUserDetails } from "@/api/experience/experience" |
| | | import { getUserDetails } from "@/api/experience/experience"; |
| | | var DIC = { |
| | | applyStatus: [ |
| | | { |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | obj:{ |
| | | userId:'' |
| | | obj: { |
| | | userId: "", |
| | | deptId: "", |
| | | }, |
| | | dialogFormVisible: false, |
| | | dialogExamFormVisible: false, |
| | |
| | | prop: "deptId", |
| | | type: "tree", |
| | | hide: true, |
| | | viewDisabled:false, |
| | | viewDisplay:false, |
| | | viewDisabled: false, |
| | | viewDisplay: false, |
| | | dicUrl: |
| | | "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697", |
| | | props: { |
| | |
| | | prop: "userId", |
| | | type: "tree", |
| | | dicUrl: |
| | | "/api/blade-user/security-apply-tree?examType=1&deptId={{key}}", |
| | | "/api/blade-user/page-security-units?status=1&deptId={{key}}", |
| | | hide: true, |
| | | slot: true, |
| | | searchSpan: 4, |
| | |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | props: { |
| | | label: "name", |
| | | label: "realName", |
| | | value: "id", |
| | | }, |
| | | rules: [ |
| | |
| | | addDisabled: true, |
| | | // 表单新增时是否可见 |
| | | addDisplay: true, |
| | | hide:true, |
| | | hide: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | |
| | | "obj.userId": { |
| | | // form是表单或者表格绑定的数据集,v-model='form' |
| | | handler(val) { |
| | | if(val){ |
| | | if (val) { |
| | | //查询用户信息 |
| | | getUserDetails(this.userId).then((res)=>{ |
| | | getUserDetails(this.userId).then((res) => { |
| | | var data = res.data.data; |
| | | this.obj.cardid = data.cardid; |
| | | this.obj.age = data.age; |
| | | this.obj.nativeplace = data.nativeplace; |
| | | this.obj.phone = data.phone; |
| | | }) |
| | | }); |
| | | } |
| | | }, |
| | | immediate: true, |
| | |
| | | return ids.join(","); |
| | | }, |
| | | userId() { |
| | | var d = this.obj.userId + ""; |
| | | return d; |
| | | var d = this.obj.userId + ""; |
| | | return d; |
| | | }, |
| | | }, |
| | | methods: { |
| | | beforeOpen(done, type) { |
| | | // :before-open="beforeOpen" |
| | | if (this.userInfo.role_name == "保安公司管理员") { |
| | | // console.log("保安公司管理员登入"); |
| | | const deptColumn = this.findObject( |
| | | this.questionBankOption.column, |
| | | "deptId" |
| | | ); |
| | | deptColumn.disabled = true; |
| | | this.obj["deptId"] = this.userInfo.dept_id; |
| | | } else { |
| | | const deptColumn = this.findObject( |
| | | this.questionBankOption.column, |
| | | "dispatcherUnitId" |
| | | ); |
| | | deptColumn.search = false; |
| | | } |
| | | done(); |
| | | }, |
| | | //准考证查看 |
| | | handlePrint(row) { |
| | | var obj = row; |
| | |
| | | }, |
| | | questionBankSearchReset() { |
| | | this.questionBankQuery = { |
| | | applyStatus:1, |
| | | applyStatus: 1, |
| | | }; |
| | | this.questionBankOnLoad(this.questionBankPage); |
| | | }, |
| | |
| | | // 新增 |
| | | questionBankRowSave(row, done, loading) { |
| | | // debugger; |
| | | console.log(row,11111); |
| | | console.log(row, 11111); |
| | | addApply(row).then( |
| | | (res) => { |
| | | this.questionBankOnLoad(this.questionBankPage); |
| | |
| | | ...params, |
| | | ...this.query1, |
| | | status: 1, |
| | | roleAlias: 111, |
| | | ...this.card, |
| | | }; |
| | | getList(page.currentPage, page.pageSize, params).then((res) => { |
| | |
| | | :data="data1" |
| | | :page.sync="page1" |
| | | :table-loading="loading1" |
| | | @on-load="getPractitionersPageInfo(page1)" |
| | | @on-load="getPractitionersPageInfo" |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @refresh-change="refreshChange" |
| | |
| | | ...params, |
| | | ...this.query1, |
| | | status: 1, |
| | | roleAlias: 111, |
| | | ...this.card, |
| | | }; |
| | | getList(page.currentPage, page.pageSize, params).then((res) => { |
| | |
| | | this.platformForm = res.data.data; |
| | | }); |
| | | } |
| | | if (this.userInfo.role_name == "保安公司管理员") { |
| | | // console.log("保安公司管理员登入"); |
| | | const deptColumn = this.findObject( |
| | | this.questionBankOption.column, |
| | | "deptId" |
| | | ); |
| | | deptColumn.disabled = true; |
| | | console.log(this.userInfo.dept_id); |
| | | this.obj["deptId"] = this.userInfo.dept_id; |
| | | } |
| | | |
| | | done(); |
| | | }, |
| | | platformSearchReset() { |
| | |
| | | /* |
| | | * @Author: Morpheus |
| | | * @Date: 2021-07-05 16:31:54 |
| | | * @Last Modified by: Morpheus |
| | | * @Last Modified time: 2021-07-19 19:39:45 |
| | | * @Last Modified by: liu |
| | | * @Last Modified time: 2021-11-25 19:32:21 |
| | | * menu-name 报名考试 |
| | | */ |
| | | <template> |
| | |
| | | @size-change="questionBankSizeChange" |
| | | @row-save="questionBankRowSave" |
| | | @row-del="questionBankRowDel" |
| | | :before-open="beforeOpen" |
| | | > |
| | | <!-- 自定义按钮 --> |
| | | <!-- <template slot="menuLeft"> |
| | |
| | | <template slot="menuLeft"> |
| | | <el-button |
| | | type="primary" |
| | | style="display:none" |
| | | style="display: none" |
| | | size="small" |
| | | plain |
| | | icon="el-icon-folder-checked" |
| | |
| | | </el-button> |
| | | <!-- v-if="examPersission" --> |
| | | <el-button |
| | | style="display:none" |
| | | style="display: none" |
| | | type="primary" |
| | | size="small" |
| | | plain |
| | |
| | | import { mapState } from "vuex"; |
| | | import { mapGetters } from "vuex"; |
| | | import { getRoleDetail } from "@/api/system/role"; |
| | | import { getUserDetails } from "@/api/experience/experience" |
| | | import { getUserDetails } from "@/api/experience/experience"; |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | | obj:{ |
| | | userId:'' |
| | | obj: { |
| | | userId: "", |
| | | deptId: "", |
| | | }, |
| | | dialogFormVisible: false, |
| | | dialogExamFormVisible: false, |
| | |
| | | prop: "deptId", |
| | | type: "tree", |
| | | hide: true, |
| | | viewDisabled:false, |
| | | viewDisplay:false, |
| | | viewDisabled: false, |
| | | viewDisplay: false, |
| | | dicUrl: |
| | | "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697", |
| | | props: { |
| | |
| | | prop: "userId", |
| | | type: "tree", |
| | | dicUrl: |
| | | "/api/blade-user/security-apply-tree?examType=2&deptId={{key}}", |
| | | "/api/blade-user/page-security-units?status=1&deptId={{key}}", |
| | | hide: true, |
| | | slot: true, |
| | | searchSpan: 4, |
| | |
| | | // 表单编辑时是否为查看模式 |
| | | editDetail: false, |
| | | props: { |
| | | label: "name", |
| | | label: "realName", |
| | | value: "id", |
| | | }, |
| | | rules: [ |
| | |
| | | label: "培训机构名称", |
| | | prop: "trainingUnitId", |
| | | type: "select", |
| | | labelWidth:110, |
| | | dicUrl: |
| | | "/api/information/train-unit-tree", |
| | | labelWidth: 110, |
| | | dicUrl: "/api/information/train-unit-tree", |
| | | hide: true, |
| | | slot: true, |
| | | searchSpan: 4, |
| | |
| | | addDisabled: true, |
| | | // 表单新增时是否可见 |
| | | addDisplay: true, |
| | | hide:true, |
| | | hide: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | |
| | | "obj.userId": { |
| | | // form是表单或者表格绑定的数据集,v-model='form' |
| | | handler(val) { |
| | | if(val){ |
| | | if (val) { |
| | | //查询用户信息 |
| | | getUserDetails(this.userId).then((res)=>{ |
| | | getUserDetails(this.userId).then((res) => { |
| | | var data = res.data.data; |
| | | this.obj.cardid = data.cardid; |
| | | this.obj.age = data.age; |
| | | this.obj.nativeplace = data.nativeplace; |
| | | this.obj.phone = data.phone; |
| | | }) |
| | | }); |
| | | } |
| | | }, |
| | | immediate: true, |
| | |
| | | return ids.join(","); |
| | | }, |
| | | userId() { |
| | | var d = this.obj.userId + ""; |
| | | return d; |
| | | var d = this.obj.userId + ""; |
| | | return d; |
| | | }, |
| | | }, |
| | | methods: { |
| | | beforeOpen(done, type) { |
| | | // :before-open="beforeOpen" |
| | | // deptId: "", |
| | | // realName |
| | | // `/api/blade-user/page-security-units?status=1&deptId={{key}}` |
| | | if (this.userInfo.role_name == "保安公司管理员") { |
| | | // console.log("保安公司管理员登入"); |
| | | const deptColumn = this.findObject( |
| | | this.questionBankOption.column, |
| | | "deptId" |
| | | ); |
| | | deptColumn.disabled = true; |
| | | console.log(this.userInfo.dept_id); |
| | | this.obj["deptId"] = this.userInfo.dept_id; |
| | | } else { |
| | | const deptColumn = this.findObject( |
| | | this.questionBankOption.column, |
| | | "dispatcherUnitId" |
| | | ); |
| | | deptColumn.search = false; |
| | | } |
| | | done(); |
| | | }, |
| | | //准考证查看 |
| | | handlePrint(row) { |
| | | var obj = row; |
| | |
| | | }, |
| | | questionBankSearchReset() { |
| | | this.questionBankQuery = { |
| | | cancel:11, |
| | | cancel: 11, |
| | | }; |
| | | this.questionBankOnLoad(this.questionBankPage); |
| | | }, |
| | |
| | | // 新增 |
| | | questionBankRowSave(row, done, loading) { |
| | | // debugger; |
| | | console.log(row,11111); |
| | | console.log(row, 11111); |
| | | adddata(row).then( |
| | | (res) => { |
| | | this.questionBankOnLoad(this.questionBankPage); |
| | |
| | | }) |
| | | .then(() => { |
| | | row.cancel = 2; |
| | | row['isExam'] = 1; |
| | | row["isExam"] = 1; |
| | | return cancelTrain(row); |
| | | }) |
| | | .then(() => { |