@@ -634,27 +639,25 @@ layout("/layouts/platform.html"){
}
return null
},
- getTreeData() {
- const hasAdmin = this.$auth.hasRoleOr(["SYSADMIN", "SCHOOL_UNION_ADMIN", "SCHOOL_UNION_MEMBER_ADMIN"])
- const unionId = hasAdmin ? null : this.$store.state.user.union.id
- this.$businessTool.listUnion(unionId).then((data) => {
- this.treeData = [{
- id: this.unionRootId,
- name: "工会委员会",
- type: "root",
- children: (data || []).map((item) => ({
- id: item.id,
- name: item.name,
- type: "union"
- }))
- }]
- this.$nextTick(() => {
- this.currentTreeData = this.treeData[0]
- this.setCurrentTreeNode(this.unionRootId)
- if (this.tabActive !== "memberList") {
- this.tabActive = "memberList"
- }
- })
+ setTreeData(data) {
+ // 组织树与查询组件共用同一份工会选项,确保下拉框与左侧树始终保持一致。
+ const unions = Array.isArray(data) ? data : []
+ this.treeData = [{
+ id: this.unionRootId,
+ name: "工会委员会",
+ type: "root",
+ children: unions.map((item) => ({
+ id: item.id,
+ name: item.name,
+ type: "union"
+ }))
+ }]
+ this.$nextTick(() => {
+ this.currentTreeData = this.treeData[0]
+ this.setCurrentTreeNode(this.unionRootId)
+ if (this.tabActive !== "memberList") {
+ this.tabActive = "memberList"
+ }
})
},
setCurrentTreeNode(nodeKey) {
@@ -756,7 +759,7 @@ layout("/layouts/platform.html"){
created() {
this.checkedFields = this.tableColumns.filter(c => c.checked !== 0).map(c => c.prop);
this.initDefaultView()
- this.getTreeData()
+ // 会员列表查询不依赖前端组织树,避免组织信息异步加载影响列表展示。
this.pageData()
},
mounted() {
diff --git a/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/apply/index.html b/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/apply/index.html
index a35cab8..b4e7e12 100644
--- a/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/apply/index.html
+++ b/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/apply/index.html
@@ -3,7 +3,7 @@ layout("/layouts/platform_h5.html"){
#-->
-
@@ -85,11 +85,11 @@ layout("/layouts/platform_h5.html"){
} Axios 请求 Promise,响应 data 为 yyyy-MM-dd 日期字符串。
*/
queryApplyEndDate() {
@@ -471,8 +471,8 @@ layout("/layouts/platform_h5.html"){
}
},
/**
- * 按当前用户角色过滤可申请的慰问类型。
- * @param {Array} options 接口返回的全部启用慰问类型。
+ * 按当前用户角色过滤可申请的补贴类型。
+ * @param {Array} options 接口返回的全部启用补贴类型。
* @returns {Array} 系统管理员、校工会管理员返回全部类型,其他角色仅返回编码 A、B 的类型。
*/
filterTypeOptions(options) {
diff --git a/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/branchUnionApproval/index.html b/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/branchUnionApproval/index.html
index d793193..465d2a7 100644
--- a/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/branchUnionApproval/index.html
+++ b/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/branchUnionApproval/index.html
@@ -32,12 +32,12 @@ layout("/layouts/platform_h5.html"){
- {{row.helpUserName}}
- {{row.helpLoginName}}
+ {{row.helpUserName}}
+ {{row.helpLoginName}}
{{row.applyUserName}}
{{row.applyUnionName}}
{{row.applyUnitName}}
- {{row.typeName}}
+ {{row.typeName}}
{{row.curTaskName}}
@@ -110,7 +110,7 @@ layout("/layouts/platform_h5.html"){
const typeList = await this.queryCondolenceType()
this.typeOptions = [
{
- text: "全部慰问类型",
+ text: "全部补贴类型",
value: null
}
].concat(typeList.map((v) => ({ text: v.name, value: v.id })))
diff --git a/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/mine/index.html b/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/mine/index.html
index 49aec50..88d88d1 100644
--- a/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/mine/index.html
+++ b/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/mine/index.html
@@ -27,12 +27,12 @@ layout("/layouts/platform_h5.html"){
- {{row.helpUserName}}
- {{row.helpLoginName}}
+ {{row.helpUserName}}
+ {{row.helpLoginName}}
{{row.applyUserName}}
{{row.applyUnionName}}
{{row.applyUnitName}}
- {{row.typeName}}
+ {{row.typeName}}
{{row.taskName}}
@@ -86,7 +86,7 @@ layout("/layouts/platform_h5.html"){
const typeList = await this.queryCondolenceType()
this.typeOptions = [
{
- text: "全部慰问类型",
+ text: "全部补贴类型",
value: null
}
].concat(typeList.map((v) => ({ text: v.name, value: v.id })))
diff --git a/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/schoolPrincipalApproval/index.html b/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/schoolPrincipalApproval/index.html
index 974a250..e7ecce7 100644
--- a/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/schoolPrincipalApproval/index.html
+++ b/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/schoolPrincipalApproval/index.html
@@ -32,12 +32,12 @@ layout("/layouts/platform_h5.html"){
- {{row.helpUserName}}
- {{row.helpLoginName}}
+ {{row.helpUserName}}
+ {{row.helpLoginName}}
{{row.applyUserName}}
{{row.applyUnionName}}
{{row.applyUnitName}}
- {{row.typeName}}
+ {{row.typeName}}
{{row.curTaskName}}
@@ -110,7 +110,7 @@ layout("/layouts/platform_h5.html"){
const typeList = await this.queryCondolenceType()
this.typeOptions = [
{
- text: "全部慰问类型",
+ text: "全部补贴类型",
value: null
}
].concat(typeList.map((v) => ({ text: v.name, value: v.id })))
diff --git a/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/schoolUnionApproval/index.html b/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/schoolUnionApproval/index.html
index abd28fc..40a6f61 100644
--- a/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/schoolUnionApproval/index.html
+++ b/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/schoolUnionApproval/index.html
@@ -32,12 +32,12 @@ layout("/layouts/platform_h5.html"){
- {{row.helpUserName}}
- {{row.helpLoginName}}
+ {{row.helpUserName}}
+ {{row.helpLoginName}}
{{row.applyUserName}}
{{row.applyUnionName}}
{{row.applyUnitName}}
- {{row.typeName}}
+ {{row.typeName}}
{{row.curTaskName}}
@@ -110,7 +110,7 @@ layout("/layouts/platform_h5.html"){
const typeList = await this.queryCondolenceType()
this.typeOptions = [
{
- text: "全部慰问类型",
+ text: "全部补贴类型",
value: null
}
].concat(typeList.map((v) => ({ text: v.name, value: v.id })))