t20-common-lib 0.12.16 → 0.12.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -11,6 +11,12 @@
|
|
|
11
11
|
@focus="handleFocus"
|
|
12
12
|
@clear="() => handleFilter('')"
|
|
13
13
|
>
|
|
14
|
+
<el-option
|
|
15
|
+
v-if="displayOption"
|
|
16
|
+
:key="`display-${displayOption[valueKey]}`"
|
|
17
|
+
:label="displayOption.branchBankName"
|
|
18
|
+
:value="displayOption[valueKey]"
|
|
19
|
+
/>
|
|
14
20
|
<el-option
|
|
15
21
|
v-for="item in branchBankList"
|
|
16
22
|
:key="item.cnapsNo"
|
|
@@ -73,6 +79,10 @@ export default {
|
|
|
73
79
|
requestFn: {
|
|
74
80
|
type: Function,
|
|
75
81
|
required: true
|
|
82
|
+
},
|
|
83
|
+
branchBankName: {
|
|
84
|
+
type: String,
|
|
85
|
+
default: "",
|
|
76
86
|
}
|
|
77
87
|
},
|
|
78
88
|
data() {
|
|
@@ -116,6 +126,19 @@ export default {
|
|
|
116
126
|
mounted() {
|
|
117
127
|
this.fetchBranchData(true);
|
|
118
128
|
},
|
|
129
|
+
computed: {
|
|
130
|
+
displayOption() {
|
|
131
|
+
if (this.multiple) return null;
|
|
132
|
+
if (!this.branchBankNo || !this.branchBankName) return null;
|
|
133
|
+
const existed = this.branchBankList.some(item => item[this.valueKey] == this.branchBankNo);
|
|
134
|
+
if (existed) return null;
|
|
135
|
+
|
|
136
|
+
return {
|
|
137
|
+
[this.valueKey]: this.branchBankNo,
|
|
138
|
+
branchBankName: this.branchBankName,
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
},
|
|
119
142
|
methods: {
|
|
120
143
|
lazyGet() {
|
|
121
144
|
if (this.page.hasMore) {
|