vue2-client 1.2.96 → 1.2.97
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/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
:disabled="disabled"
|
|
175
175
|
change-on-select
|
|
176
176
|
:options="option"
|
|
177
|
-
|
|
177
|
+
v-model="form[attr.model]"
|
|
178
178
|
:placeholder="attr.placeholder ? attr.placeholder : '请选择'+attr.name.replace(/\s*/g, '')"
|
|
179
179
|
:rows="4"/>
|
|
180
180
|
</a-form-model-item>
|
|
@@ -313,7 +313,6 @@ export default {
|
|
|
313
313
|
created () {
|
|
314
314
|
if (this.attr.keyName && this.attr.keyName.indexOf('logic@') !== -1) {
|
|
315
315
|
this.getData({}, res => {
|
|
316
|
-
console.log(res, '====')
|
|
317
316
|
this.option = res
|
|
318
317
|
})
|
|
319
318
|
}
|
|
@@ -325,7 +324,10 @@ export default {
|
|
|
325
324
|
},
|
|
326
325
|
// 文件框时设置上传组件的值
|
|
327
326
|
setFiles (fileIds) {
|
|
328
|
-
this.form[this.attr.model]
|
|
327
|
+
if (!this.form[this.attr.model]) {
|
|
328
|
+
this.form[this.attr.model] = []
|
|
329
|
+
}
|
|
330
|
+
this.form[this.attr.model] = [...this.form[this.attr.model], ...fileIds]
|
|
329
331
|
},
|
|
330
332
|
// 懒加载检索方法
|
|
331
333
|
fetchFunction (value) {
|