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
@@ -1,7 +1,7 @@
1
1
  # Change Log
2
2
  > 所有关于本项目的变化都在该文档里。
3
3
 
4
- **1.2.94 -2022-08-05 - 1.2.96 @张振宇**
4
+ **1.2.94 -2022-08-05 - 1.2.97 @张振宇**
5
5
  - 功能新增:
6
6
  - 新增表单组件 人员选择框
7
7
  - 新增表单配置可以配置自定义请求
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.2.96",
3
+ "version": "1.2.97",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -174,7 +174,7 @@
174
174
  :disabled="disabled"
175
175
  change-on-select
176
176
  :options="option"
177
- :value="form[attr.model]"
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] = fileIds
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) {