diff --git a/src/views/modules/base/residentManagement/unemployment/unemployment.vue b/src/views/modules/base/residentManagement/unemployment/unemployment.vue
index 273fc9003..b71fcccdf 100644
--- a/src/views/modules/base/residentManagement/unemployment/unemployment.vue
+++ b/src/views/modules/base/residentManagement/unemployment/unemployment.vue
@@ -497,7 +497,7 @@
>
-
-
-
-
-
-
-
-
+
+
+ {{ satisfactionCategory(scope.row, 'evaCulturalFacility') }}
+
+
+
+
+ {{ satisfactionCategory(scope.row, 'evaSportsFacility') }}
+
+
+
+
+ {{ satisfactionCategory(scope.row, 'evaEcologicalEnv') }}
+
+
+
+
+ {{ satisfactionCategory(scope.row, 'evaSocialSecurity') }}
+
+
+
+
+ {{ satisfactionCategory(scope.row, 'evaSocialAssistance') }}
+
+
+
+
+ {{ satisfactionCategory(scope.row, 'evaOldPeopleProvide') }}
+
+
+
+ {{ satisfactionCategory(scope.row, 'evaBasicEducation') }}
+
+
+
+
+ {{ satisfactionCategory(scope.row, 'evaMedical') }}
+
+
@@ -151,12 +174,16 @@ export default {
name: '',
region: '',
type: ''
+ },
+ dicts: {
+ satisfaction_level: []
}
}
},
async created() {
this.getResiDetail();
await this.loadEvent();
+ this.getDicts()
},
computed: {
maxTableHeight() {
@@ -204,6 +231,32 @@ export default {
this.$message.error(msg);
}
},
+ async getDicts() {
+ try {
+ const requests = [
+ this.$http.post("sys/dict/data/dictlist", {
+ dictType: "satisfaction_level",
+ }),
+ ];
+ const dictKeys = ['satisfaction_level']; // 对应的键名
+ const results = await Promise.all(requests);
+ results.forEach((result, index) => {
+ if (result.data.code === 0) {
+ this.dicts[dictKeys[index]].push(...result.data.data);
+ } else {
+ console.log(`获取${dictKeys[index]}失败: ${result.data.msg}`);
+ }
+ });
+ } catch (error) {
+ console.log("获取字典失败: ", error);
+ }
+ },
+ satisfactionCategory(row, name) {
+ if (row[name]) {
+ let text = this.dicts.satisfaction_level.find(item => item.value === row[name]).label
+ return text
+ }
+ },
async getResiDetail() {
this.$http
.post(`/actual/base/residentBaseInfo/detail/${this.resiId}`)
@@ -280,7 +333,8 @@ export default {
this.loadCommunity();
}
},
- formatter: function (row) {
+ formatter(row) {
+
let value = '';
if (row.evaCulturalFacility) {
value = row.evaCulturalFacility
@@ -299,6 +353,7 @@ export default {
} else if (row.evaMedical) {
value = row.evaMedical
}
+ console.log(value);
return value === 'veryGood' ? '满意' : value === 'good' ? '基本满意' : value === 'bad' ? '不满意' : '';
},
formatterFollowUpWay: function (row) {
@@ -326,4 +381,5 @@ export default {
.f-font-color {
color: #000;
font-weight: 400;
-}
\ No newline at end of file
+}
+
\ No newline at end of file