| | |
| | | import { mapGetters } from "vuex"; |
| | | import { getToken } from "@/util/auth"; |
| | | export default { |
| | | props: ["deptid"], |
| | | props: ["deptid", "socialRE"], |
| | | data() { |
| | | var deptid = this.deptid; |
| | | if (this.deptid == undefined) { |
| | |
| | | label: "女", |
| | | value: 2, |
| | | }, |
| | | { |
| | | label: "未知", |
| | | value: 3, |
| | | }, |
| | | ], |
| | | labelWidth: 110, |
| | | addDisabled: true, |
| | |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "民族", |
| | | prop: "nation", |
| | | addDisabled: true, |
| | | editDisabled: true, |
| | | width: 55, |
| | | labelWidth: 110, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请输入民族", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | }, |
| | | // { |
| | | // label: "民族", |
| | | // prop: "nation", |
| | | // addDisabled: true, |
| | | // editDisabled: true, |
| | | // width: 55, |
| | | // labelWidth: 110, |
| | | // rules: [ |
| | | // { |
| | | // required: true, |
| | | // message: "请输入民族", |
| | | // trigger: "blur", |
| | | // }, |
| | | // ], |
| | | // }, |
| | | // { |
| | | // label: "出生日期", |
| | | // labelWidth: 110, |
| | |
| | | this.deptid; |
| | | } |
| | | }, |
| | | socialRE() { |
| | | this.$refs.crud.refreshTable(); |
| | | this.$refs.crud.doLayout(); |
| | | }, |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["permission", "userInfo"]), |
| | |
| | | this.page.total = data.total; |
| | | this.data = data.records; |
| | | this.loading = false; |
| | | this.$refs.crud.refreshTable(); |
| | | this.$refs.crud.doLayout(); |
| | | this.selectionClear(); |
| | | }); |
| | | }, |