feat: 困难帮扶 优化
This commit is contained in:
-3
@@ -398,9 +398,6 @@ public class DifficultHelpReadingController {
|
|||||||
if (!taskKeys[i].equals(task.getTaskName())) continue;
|
if (!taskKeys[i].equals(task.getTaskName())) continue;
|
||||||
cn.hutool.core.lang.Dict data = taskVO.getTaskFormData();
|
cn.hutool.core.lang.Dict data = taskVO.getTaskFormData();
|
||||||
String opinion = StrUtil.nullToEmpty(data.getStr("opinion"));
|
String opinion = StrUtil.nullToEmpty(data.getStr("opinion"));
|
||||||
if (i < 2 && data.get("money") != null) {
|
|
||||||
opinion += "\n级别:" + StrUtil.nullToEmpty(data.getStr("level")) + " 帮扶金额:" + data.get("money") + "元";
|
|
||||||
}
|
|
||||||
docData.put(fields[i] + "Opinion", opinion);
|
docData.put(fields[i] + "Opinion", opinion);
|
||||||
docData.put(fields[i] + "User", StrUtil.nullToEmpty(data.getStr("userName")));
|
docData.put(fields[i] + "User", StrUtil.nullToEmpty(data.getStr("userName")));
|
||||||
if (StrUtil.isNotBlank(data.getStr("sign"))) {
|
if (StrUtil.isNotBlank(data.getStr("sign"))) {
|
||||||
|
|||||||
@@ -426,10 +426,10 @@
|
|||||||
this.$set(this.formData, 'proxyLoginName', user.loginname)
|
this.$set(this.formData, 'proxyLoginName', user.loginname)
|
||||||
this.$set(this.formData, 'mode', "1")
|
this.$set(this.formData, 'mode', "1")
|
||||||
this.$set(this.formData, 'sex', user.sex)
|
this.$set(this.formData, 'sex', user.sex)
|
||||||
this.$set(this.formData, 'unitId', user.unit.id)
|
this.$set(this.formData, 'unitId', (user.unit || {}).id || user.unitId || null)
|
||||||
this.$set(this.formData, 'unitName', user.unit.name)
|
this.$set(this.formData, 'unitName', (user.unit || {}).name || '')
|
||||||
this.$set(this.formData, 'unionId', user.union.id)
|
this.$set(this.formData, 'unionId', (user.union || {}).id || (user.unit || {}).unionId || null)
|
||||||
this.$set(this.formData, 'unionName', user.union.name)
|
this.$set(this.formData, 'unionName', (user.union || {}).name || '')
|
||||||
this.$set(this.formData, 'monthlyIncome', null)
|
this.$set(this.formData, 'monthlyIncome', null)
|
||||||
this.$set(this.formData, 'birthday', user.birthday)
|
this.$set(this.formData, 'birthday', user.birthday)
|
||||||
this.$set(this.formData, 'mobile', user.mobile)
|
this.$set(this.formData, 'mobile', user.mobile)
|
||||||
|
|||||||
@@ -297,7 +297,7 @@ layout("/layouts/platform.html"){
|
|||||||
</el-card>
|
</el-card>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<el-card class="box-card" style="height: 92vh" shadow="never">
|
<el-card class="box-card" style="height: 92vh" shadow="never">
|
||||||
<el-result icon="warning" title="温馨提醒" subTitle="">
|
<el-result icon="warning" title="温馨提醒" sub-title="">
|
||||||
<template slot="extra">
|
<template slot="extra">
|
||||||
<span v-if="blockMessage">{{blockMessage}}</span>
|
<span v-if="blockMessage">{{blockMessage}}</span>
|
||||||
<span v-else>抱歉,当前时间不能申请,可申请时间为{{time}}。</span>
|
<span v-else>抱歉,当前时间不能申请,可申请时间为{{time}}。</span>
|
||||||
@@ -495,10 +495,10 @@ layout("/layouts/platform.html"){
|
|||||||
this.$set(this.formData, 'proxyLoginName', user.loginname)
|
this.$set(this.formData, 'proxyLoginName', user.loginname)
|
||||||
this.$set(this.formData, 'mode', "1")
|
this.$set(this.formData, 'mode', "1")
|
||||||
this.$set(this.formData, 'sex', user.sex)
|
this.$set(this.formData, 'sex', user.sex)
|
||||||
this.$set(this.formData, 'unitId', user.unit.id)
|
this.$set(this.formData, 'unitId', (user.unit || {}).id || user.unitId || null)
|
||||||
this.$set(this.formData, 'unitName', user.unit.name)
|
this.$set(this.formData, 'unitName', (user.unit || {}).name || '')
|
||||||
this.$set(this.formData, 'unionId', user.union.id)
|
this.$set(this.formData, 'unionId', (user.union || {}).id || (user.unit || {}).unionId || null)
|
||||||
this.$set(this.formData, 'unionName', user.union.name)
|
this.$set(this.formData, 'unionName', (user.union || {}).name || '')
|
||||||
this.$set(this.formData, 'yearIncome', null)
|
this.$set(this.formData, 'yearIncome', null)
|
||||||
this.$set(this.formData, 'birthday', user.birthday)
|
this.$set(this.formData, 'birthday', user.birthday)
|
||||||
this.$set(this.formData, 'idCard', user.idCard)
|
this.$set(this.formData, 'idCard', user.idCard)
|
||||||
|
|||||||
+2
-2
@@ -350,7 +350,7 @@ layout("/layouts/platform.html"){
|
|||||||
if (this.$auth.hasRoleOr('SYSADMIN, SCHOOL_UNION_ADMIN')) {
|
if (this.$auth.hasRoleOr('SYSADMIN, SCHOOL_UNION_ADMIN')) {
|
||||||
this.units = await this.$businessTool.listUnit(this.pageForm.unionId)
|
this.units = await this.$businessTool.listUnit(this.pageForm.unionId)
|
||||||
} else {
|
} else {
|
||||||
this.units = await this.$businessTool.listUnit(this.$store.state.user.union.id)
|
this.units = await this.$businessTool.listUnit((this.$store.state.user.union || {}).id || this.pageForm.unionId)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleSelectionChange: function (val) {
|
handleSelectionChange: function (val) {
|
||||||
@@ -362,7 +362,7 @@ layout("/layouts/platform.html"){
|
|||||||
if (this.$auth.hasRoleOr('SYSADMIN, SCHOOL_UNION_ADMIN')) {
|
if (this.$auth.hasRoleOr('SYSADMIN, SCHOOL_UNION_ADMIN')) {
|
||||||
this.unions = await this.$businessTool.listUnion()
|
this.unions = await this.$businessTool.listUnion()
|
||||||
} else {
|
} else {
|
||||||
this.unions = await this.$businessTool.listUnion(this.$store.state.user.union.id)
|
this.unions = await this.$businessTool.listUnion((this.$store.state.user.union || {}).id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -184,7 +184,7 @@ layout("/layouts/platform.html"){
|
|||||||
if (this.$auth.hasRoleOr('SYSADMIN, SCHOOL_UNION_ADMIN')) {
|
if (this.$auth.hasRoleOr('SYSADMIN, SCHOOL_UNION_ADMIN')) {
|
||||||
this.units = await this.$businessTool.listUnit(this.pageForm.unionId)
|
this.units = await this.$businessTool.listUnit(this.pageForm.unionId)
|
||||||
} else {
|
} else {
|
||||||
this.units = await this.$businessTool.listUnit(this.$store.state.user.union.id)
|
this.units = await this.$businessTool.listUnit((this.$store.state.user.union || {}).id || this.pageForm.unionId)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
doExportApply(row, format) {
|
doExportApply(row, format) {
|
||||||
@@ -196,7 +196,7 @@ layout("/layouts/platform.html"){
|
|||||||
if (this.$auth.hasRoleOr('SYSADMIN, SCHOOL_UNION_ADMIN')) {
|
if (this.$auth.hasRoleOr('SYSADMIN, SCHOOL_UNION_ADMIN')) {
|
||||||
this.unions = await this.$businessTool.listUnion()
|
this.unions = await this.$businessTool.listUnion()
|
||||||
} else {
|
} else {
|
||||||
this.unions = await this.$businessTool.listUnion(this.$store.state.user.union.id)
|
this.unions = await this.$businessTool.listUnion((this.$store.state.user.union || {}).id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
+2
-2
@@ -181,7 +181,7 @@ layout("/layouts/platform.html"){
|
|||||||
if (this.$auth.hasRoleOr('SYSADMIN, SCHOOL_UNION_ADMIN')) {
|
if (this.$auth.hasRoleOr('SYSADMIN, SCHOOL_UNION_ADMIN')) {
|
||||||
this.units = await this.$businessTool.listUnit(this.pageForm.unionId)
|
this.units = await this.$businessTool.listUnit(this.pageForm.unionId)
|
||||||
} else {
|
} else {
|
||||||
this.units = await this.$businessTool.listUnit(this.$store.state.user.union.id)
|
this.units = await this.$businessTool.listUnit((this.$store.state.user.union || {}).id || this.pageForm.unionId)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
exportYearPayRecord(){
|
exportYearPayRecord(){
|
||||||
@@ -207,7 +207,7 @@ layout("/layouts/platform.html"){
|
|||||||
if (this.$auth.hasRoleOr('SYSADMIN, SCHOOL_UNION_ADMIN')) {
|
if (this.$auth.hasRoleOr('SYSADMIN, SCHOOL_UNION_ADMIN')) {
|
||||||
this.unions = await this.$businessTool.listUnion()
|
this.unions = await this.$businessTool.listUnion()
|
||||||
} else {
|
} else {
|
||||||
this.unions = await this.$businessTool.listUnion(this.$store.state.user.union.id)
|
this.unions = await this.$businessTool.listUnion((this.$store.state.user.union || {}).id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
+2
-2
@@ -296,7 +296,7 @@ layout("/layouts/platform.html"){
|
|||||||
if (this.$auth.hasRoleOr('SYSADMIN, SCHOOL_UNION_ADMIN')) {
|
if (this.$auth.hasRoleOr('SYSADMIN, SCHOOL_UNION_ADMIN')) {
|
||||||
this.units = await this.$businessTool.listUnit(this.pageForm.unionId)
|
this.units = await this.$businessTool.listUnit(this.pageForm.unionId)
|
||||||
} else {
|
} else {
|
||||||
this.units = await this.$businessTool.listUnit(this.$store.state.user.union.id)
|
this.units = await this.$businessTool.listUnit((this.$store.state.user.union || {}).id || this.pageForm.unionId)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -305,7 +305,7 @@ layout("/layouts/platform.html"){
|
|||||||
if (this.$auth.hasRoleOr('SYSADMIN, SCHOOL_UNION_ADMIN')) {
|
if (this.$auth.hasRoleOr('SYSADMIN, SCHOOL_UNION_ADMIN')) {
|
||||||
this.unions = await this.$businessTool.listUnion()
|
this.unions = await this.$businessTool.listUnion()
|
||||||
} else {
|
} else {
|
||||||
this.unions = await this.$businessTool.listUnion(this.$store.state.user.union.id)
|
this.unions = await this.$businessTool.listUnion((this.$store.state.user.union || {}).id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
+2
-2
@@ -343,7 +343,7 @@ layout("/layouts/platform.html"){
|
|||||||
if (this.$auth.hasRoleOr('SYSADMIN, SCHOOL_UNION_ADMIN')) {
|
if (this.$auth.hasRoleOr('SYSADMIN, SCHOOL_UNION_ADMIN')) {
|
||||||
this.units = await this.$businessTool.listUnit(this.pageForm.unionId)
|
this.units = await this.$businessTool.listUnit(this.pageForm.unionId)
|
||||||
} else {
|
} else {
|
||||||
this.units = await this.$businessTool.listUnit(this.$store.state.user.union.id)
|
this.units = await this.$businessTool.listUnit((this.$store.state.user.union || {}).id || this.pageForm.unionId)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleSelectionChange: function (val) {
|
handleSelectionChange: function (val) {
|
||||||
@@ -355,7 +355,7 @@ layout("/layouts/platform.html"){
|
|||||||
if (this.$auth.hasRoleOr('SYSADMIN, SCHOOL_UNION_ADMIN')) {
|
if (this.$auth.hasRoleOr('SYSADMIN, SCHOOL_UNION_ADMIN')) {
|
||||||
this.unions = await this.$businessTool.listUnion()
|
this.unions = await this.$businessTool.listUnion()
|
||||||
} else {
|
} else {
|
||||||
this.unions = await this.$businessTool.listUnion(this.$store.state.user.union.id)
|
this.unions = await this.$businessTool.listUnion((this.$store.state.user.union || {}).id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user