imeik-bizui 2.2.3 → 2.2.4
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/dist/bizui/src/FieldCostBearDepartmentSelect/index.vue +7 -2
- package/dist/imeik-bizui.common.js +87 -82
- package/dist/imeik-bizui.common.js.gz +0 -0
- package/dist/imeik-bizui.css +1 -1
- package/dist/imeik-bizui.css.gz +0 -0
- package/dist/imeik-bizui.umd.js +87 -82
- package/dist/imeik-bizui.umd.js.gz +0 -0
- package/dist/imeik-bizui.umd.min.js +3 -3
- package/dist/imeik-bizui.umd.min.js.gz +0 -0
- package/package.json +1 -1
|
@@ -29,6 +29,11 @@
|
|
|
29
29
|
import { queryBudgetDepartManage } from '../../api/applycenter.js'
|
|
30
30
|
export default {
|
|
31
31
|
name: 'FieldCostBearDepartmentSelect',
|
|
32
|
+
inject: {
|
|
33
|
+
isConfig: {
|
|
34
|
+
default: false
|
|
35
|
+
}
|
|
36
|
+
},
|
|
32
37
|
props: {
|
|
33
38
|
value: {
|
|
34
39
|
type: String,
|
|
@@ -179,8 +184,8 @@ export default {
|
|
|
179
184
|
} else if (defaultType === '3') {
|
|
180
185
|
tempValue = this.attrs.defaultValue
|
|
181
186
|
}
|
|
182
|
-
//
|
|
183
|
-
if (tempValue && !this.value) {
|
|
187
|
+
// 当tempValue有值且没有初始值时,或者是在配置模式下,则设置默认值并触发change事件
|
|
188
|
+
if ((tempValue && !this.value) || this.isConfig) {
|
|
184
189
|
this.myValue = tempValue
|
|
185
190
|
this.onChange()
|
|
186
191
|
}
|