var welfareUnitMode = { UNIT: { modeName: '福利单位' }, UNION: { modeName: '所属工会' } } var welfare = { welfareUnitMode: "${getSysConfig('WelfareUnitMode')}", welfareUnitModeName: welfareUnitMode["${getSysConfig('WelfareUnitMode')}"].modeName } var welfarePersonTypeList = [] var welfareCommonUrl = "/platform/welfare/common"; var getWelfareUnit = async (isPermission = false) => { const {code, data} = await $.get(welfareCommonUrl + "/welfareUnit", {isPermission}) if (!code) { return data } return [] } var getComponentUnit = async (unitId) => { const {code, data} = await $.get(welfareCommonUrl + "/componentUnit", {unitId}) if (!code) { return data } return [] } var getWelfareProjects = async () => { const {code, data} = await $.get(welfareCommonUrl + "/welfareProjects") if (!code) { return data } return [] } var exportWelfareList = (projectId, personType) => { var url = welfareCommonUrl + "/exportWelfareList?projectId=" + projectId if (personType.length > 0) { url += "&personType=" + JSON.stringify(personType) } // location.href = url window.open(url) // location.href = welfareCommonUrl + "/exportWelfareList?projectId=" + projectId + "&personType=" + JSON.stringify(personType) } var doExportWelfare = (projectId) => { window.open(welfareCommonUrl + "/doExportWelfare?projectId=" + projectId) } var doExportWelfareReceive = (projectId) => { window.open(welfareCommonUrl + "/exportReceive?projectId=" + projectId) } var exportWelfareListSummary = (projectId) => { window.open(welfareCommonUrl + "/exportWelfareListSummary?projectId=" + projectId) } var getPersonTypeListGroupByWelfare = async () => { const {code, data} = await $.get(welfareCommonUrl + "/getPersonTypeListGroupByWelfare") if (!code) { return data } return [] } var minixs = { methods: { async yearChange(val) { if (val) { const option = this.projectOptions.find(v => v.label === parseInt(val)) if (option) { this.projectSelectOptions = this.projectOptions.find(v => v.label === parseInt(val)).children } else { this.pageForm.projectId = null this.projectSelectOptions = [] } } else { this.projectSelectOptions = [] this.projectOptions.forEach(v => { this.projectSelectOptions = this.projectSelectOptions.concat(v.children) }) } if (this.projectSelectOptions && this.projectSelectOptions.length > 0) { this.pageForm.projectId = this.projectSelectOptions[0].value } this.doSearch() } } } var judgmentAuthority = "${@shiro.hasRole('sysadmin')||@shiro.hasRole('flwyh01')||@shiro.hasRole('A06')}" === 'true' var sexOptions = ['男', '女'] var commonColumns = [{prop: 'loginname', label: '工号'}, {prop: 'username', label: '姓名'}, {prop: 'sex', label: '性别', sortable: true, width: '100px'}, {prop: 'personType', label: '人员类型', sortable: true, checked: 0}, {prop: 'unionname', label: '所属工会', sortable: true}, {prop: 'unitname', label: '所属单位', sortable: true}, // {prop: 'threeUnitName', label: '所在科室', sortable: true}, // {prop: 'unionGroupName', label: '工会小组', sortable: true}, // {prop: 'isReceive', label: '是否领取', sortable: true} ] // {prop: 'campusName', label: '所属校区', sortable: true},]