| | |
| | | <div class="dispatch"> |
| | | <avue-tabs :option="optionTABS" @change="handleChangeTABS"></avue-tabs> |
| | | <span v-if="typeTABS.prop === 'tab1'"> |
| | | <avue-form ref="form" v-model="obj0" :option="option0" @submit="submit"> </avue-form> |
| | | <avue-form ref="form" v-model="obj0" :option="option0" @submit="submit"> |
| | | </avue-form> |
| | | </span> |
| | | <span v-else-if="typeTABS.prop === 'tab2'"> |
| | | <avue-crud |
| | |
| | | updateExperience, |
| | | getUserDetails, |
| | | experienceRemove, |
| | | getExperienceList |
| | | getExperienceList, |
| | | } from "@/api/experience/experience"; |
| | | |
| | | import { |
| | |
| | | getER, |
| | | } from "@/api/performance/performance"; |
| | | |
| | | import {update as updateUserInfo} from "@/api/system/user"; |
| | | import { update as updateUserInfo } from "@/api/system/user"; |
| | | |
| | | import { mapState } from "vuex"; |
| | | |
| | |
| | | return { |
| | | typeTABS: {}, //标签页 |
| | | row: {}, //数据 |
| | | isSecurity:false, |
| | | isSecurity: false, |
| | | optionTABS: { |
| | | column: [ |
| | | { |
| | |
| | | option2: { |
| | | card: true, |
| | | menu: false, |
| | | addBtn:false, |
| | | addBtn: false, |
| | | height: "auto", |
| | | widtd: "auto", |
| | | calcHeight: 54, |
| | |
| | | ...mapState({ |
| | | userInfo: (state) => state.user.userInfo, |
| | | }), |
| | | |
| | | }, |
| | | methods: { |
| | | Print() { |
| | |
| | | securityid: this.id, |
| | | }; |
| | | //获取用户从业信息 |
| | | getExperienceList(this.current, this.size,param).then((res1) => { |
| | | getExperienceList(this.current, this.size, param).then((res1) => { |
| | | const data = res1.data.data; |
| | | this.page1.total = data.total; |
| | | this.data1 = data.records; |
| | |
| | | this.loading2 = false; |
| | | }); |
| | | }, |
| | | |
| | | |
| | | rowSave2(form, done, loading) { |
| | | form.securityid = this.id; |
| | |
| | | }); |
| | | }, |
| | | //信息修改 |
| | | submit(){ |
| | | |
| | | updateUserInfo(this.obj0).then(()=>{ |
| | | this.$message({ |
| | | submit() { |
| | | updateUserInfo(this.obj0).then(() => { |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | }) |
| | | } |
| | | }); |
| | | }, |
| | | }, |
| | | mounted() { |
| | | this.typeTABS = this.optionTABS.column[0]; |
| | | // var data = JSON.parse(this.$route.query.row); |
| | | //查询保安员信息 |
| | | console.log(this.userInfo,456); |
| | | console.log(this.userInfo, 456); |
| | | this.id = this.userInfo.Id; |
| | | var roleName = this.userInfo.role_name; |
| | | debugger; |
| | | var roleName = this.userInfo.role_name; |
| | | // debugger; |
| | | //如果保安,才能看保安证 |
| | | if(roleName=="保安"){ |
| | | this.isSecurity= true; |
| | | if (roleName == "保安") { |
| | | this.isSecurity = true; |
| | | this.optionTABS.column = [ |
| | | { |
| | | // icon: "el-icon-info", |
| | | label: "保安员基本信息", |
| | | prop: "tab1", |
| | | }, |
| | | { |
| | | // icon: "el-icon-info", |
| | | label: "从业记录", |
| | | prop: "tab2", |
| | | }, |
| | | { |
| | | // icon: "el-icon-info", |
| | | label: "现实表现记录", |
| | | prop: "tab3", |
| | | }, |
| | | { |
| | | // icon: "el-icon-info", |
| | | label: "保安员证", |
| | | prop: "tab4", |
| | | }, |
| | | ] |
| | | { |
| | | // icon: "el-icon-info", |
| | | label: "保安员基本信息", |
| | | prop: "tab1", |
| | | }, |
| | | { |
| | | // icon: "el-icon-info", |
| | | label: "从业记录", |
| | | prop: "tab2", |
| | | }, |
| | | { |
| | | // icon: "el-icon-info", |
| | | label: "现实表现记录", |
| | | prop: "tab3", |
| | | }, |
| | | { |
| | | // icon: "el-icon-info", |
| | | label: "保安员证", |
| | | prop: "tab4", |
| | | }, |
| | | ]; |
| | | } |
| | | getUserDetails(this.id).then((res)=>{ |
| | | console.log(res.data.data,123); |
| | | getUserDetails(this.id).then((res) => { |
| | | console.log(res.data.data, 123); |
| | | var data = res.data.data; |
| | | this.obj0 = data; |
| | | }) |
| | | |
| | | }); |
| | | |
| | | var flag = false, |
| | | i = 0, |