Selaa lähdekoodia

feat: 修复筛选项操作人文案问题

zhangyuhan 5 kuukautta sitten
vanhempi
commit
bf9d1a6b2a

+ 6 - 2
apps/bigmember_pc/src/components/filter-items/PersonStaffsSelector.vue

@@ -28,6 +28,10 @@ export default {
       type: String,
       default: '接收人员'
     },
+    preText: {
+      type: String,
+      default: '接收人员'
+    },
     value: {
       type: [String, Object],
       default: ''
@@ -37,9 +41,9 @@ export default {
     computedVal() {
       if (this.value) {
         if (this.value.indexOf(',') !== -1) {
-          return '接收人员' + this.value.split(',').length + '人'
+          return this.preText + this.value.split(',').length + '人'
         } else {
-          return '接收人员1人'
+          return this.preText + '1人'
         }
       } else {
         return ''

+ 1 - 0
apps/bigmember_pc/src/views/datapack/model/history.js

@@ -84,6 +84,7 @@ const filterSchema = [
       hooks: {},
       props: {
         placeholder: '全部',
+        preText: '操作人',
         cname: 'staffs'
       }
     }

+ 1 - 0
apps/bigmember_pc/src/views/datapack/model/home-filter.js

@@ -97,6 +97,7 @@ const filterSchema = [
       hooks: {},
       props: {
         placeholder: '全部',
+        preText: '人员',
         cname: 'staffs'
       }
     }