diff --git a/src/main/resources/views/platform/zhgh/staffmanage/member/change/record/index.html b/src/main/resources/views/platform/zhgh/staffmanage/member/change/record/index.html
index 2dfe33b1..3ab08b2e 100644
--- a/src/main/resources/views/platform/zhgh/staffmanage/member/change/record/index.html
+++ b/src/main/resources/views/platform/zhgh/staffmanage/member/change/record/index.html
@@ -32,8 +32,11 @@ layout("/layouts/platform.html"){
code="USER_PERSON_TYPE">
-
+
+
+
-
+
+
+
@@ -292,6 +295,8 @@ layout("/layouts/platform.html"){
taskId: GetQueryString("taskId"),
units: [],
unions: [],
+ // 民族下拉需要保留原字典顺序,仅在存在“汉族”时将其置顶。
+ nationOptions: [],
// 允许变更的字段
allowChangeFields: [],
formData: {
@@ -434,6 +439,16 @@ layout("/layouts/platform.html"){
allowFields(prop) {
return !this.allowChangeFields.map(v => v.code).includes(prop)
},
+ // 民族字典按页面要求处理排序,如果存在“汉族”则优先显示在第一位。
+ async initNationOptions() {
+ const nationOptions = await this.$businessTool.getDictOptions("USER_NATION")
+ const hanIndex = nationOptions.findIndex(item => item && item.name === "汉族")
+ if (hanIndex > 0) {
+ const hanNation = nationOptions.splice(hanIndex, 1)[0]
+ nationOptions.unshift(hanNation)
+ }
+ this.nationOptions = nationOptions
+ },
// 初始化表单数据
async init(userId){
if (userId) {
@@ -451,6 +466,7 @@ layout("/layouts/platform.html"){
} else {
this.units = await this.$businessTool.listUnit(this.user.union.id)
}
+ await this.initNationOptions()
},
// 获取根据userId获取用户信息
async getUserById(userId){
diff --git a/src/main/resources/views/platform/zhgh/staffmanage/member/info/input/index.html b/src/main/resources/views/platform/zhgh/staffmanage/member/info/input/index.html
index a5b4abcd..b8751ded 100644
--- a/src/main/resources/views/platform/zhgh/staffmanage/member/info/input/index.html
+++ b/src/main/resources/views/platform/zhgh/staffmanage/member/info/input/index.html
@@ -46,14 +46,6 @@ layout("/layouts/platform.html"){
-
-
-