| | |
| | | import { mapGetters } from "vuex"; |
| | | import { getToken } from "@/util/auth"; |
| | | export default { |
| | | props: ["deptid"], |
| | | props: ["deptid","stats"], |
| | | data() { |
| | | var deptid = this.deptid; |
| | | if (deptid == undefined) { |
| | |
| | | label: "姓名", |
| | | prop: "name", |
| | | search: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: "请输入姓名", |
| | | trigger: "blur" |
| | | }], |
| | | }, |
| | | { |
| | | label: "职务", |
| | | prop: "post", |
| | | search: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: "请输入职务", |
| | | trigger: "blur" |
| | | }], |
| | | }, |
| | | { |
| | | label: "身份证", |
| | |
| | | { |
| | | label: "联系电话", |
| | | prop: "cell", |
| | | }, |
| | | { |
| | | label: "学历", |
| | | prop: "education", |
| | | display:false, |
| | | row:true, |
| | | hide:true, |
| | | rules: [{ |
| | | required: true, |
| | | message: "请选择学历", |
| | | trigger: "blur" |
| | | }], |
| | | dicUrl: "/api/blade-system/dict-biz/dictionary?code=educationTypes", |
| | | search: false, |
| | | searchSpan: 4, |
| | | type: "select", |
| | | props: { |
| | | label: "dictValue", |
| | | value: "dictKey" |
| | | }, |
| | | dataType: "number", |
| | | }, |
| | | { |
| | | label: "证书", |
| | | prop: "paper", |
| | | type: "upload", |
| | | dataType:"string", |
| | | listType: "picture-card", |
| | | span: 24, |
| | | propsHttp: { |
| | | res: "data", |
| | | }, |
| | | tip: "只能上传jpg/png格式图片,且不超过2Mb", |
| | | action: "/api/blade-resource/oss/endpoint/put-files", |
| | | display:false, |
| | | hide:true, |
| | | }, |
| | | ], |
| | | }, |
| | |
| | | }, |
| | | created() { |
| | | this.option.height = this.windowHeight - 320; |
| | | if (this.stats == "1") { |
| | | //分公司 |
| | | const educationcolumn = this.findObject( |
| | | this.option.column, |
| | | "education" |
| | | ); |
| | | const papercolumn = this.findObject( |
| | | this.option.column, |
| | | "paper" |
| | | ); |
| | | //法人及电话不可见 |
| | | educationcolumn.display = true; |
| | | educationcolumn.hide = false; |
| | | educationcolumn.search = true; |
| | | papercolumn.display = true; |
| | | papercolumn.hide = false; |
| | | } |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["permission", "userInfo", "windowHeight"]), |
| | |
| | | ); |
| | | }, |
| | | uploadAfter(res, done, loading, column) { |
| | | window.console.log(column); |
| | | // window.console.log(column); |
| | | this.excelBox = false; |
| | | this.refreshChange(); |
| | | done(); |