Commit aded49bb by 李伟康

fix(form): 修复表单组件中员工列表选择功能

- 将multipleSelect的popupType值从1调整为2
- 修正storeStaffList选项的条件判断逻辑,增加type为select的验证
- 添加popupType为1的员工列表配置项
- 更新加载动画图片的引用方式为require语法
1 parent 0006b587
......@@ -18,6 +18,16 @@ const componentConfig = {
searchValue: '',
noData: false
},
1: {
name: 'EmployeeList',
title: '选择人员',
placeholder: '请输入姓名',
idKey: ['userId'],
cacheData: [],
loadComplete: false,
searchValue: '',
noData: false
},
2: {
name: 'EmployeeList',
title: '多选',
......
......@@ -71,7 +71,7 @@
<image
v-if="!componentObject[popupType].loadComplete"
class="loading"
src="/assets/images/common/loadding.gif"
:src="require('@/assets/images/common/loadding.gif')"
/>
</view>
</popup>
......
......@@ -167,7 +167,7 @@ export default {
popupType () {
let { item } = this,
popupType = {
multipleSelect: 1,
multipleSelect: 2,
carBrandSelect: 3,
datetime: 5,
date: 6
......@@ -191,7 +191,7 @@ export default {
select (e) {
let { item, popupType } = this
if (item.optionsKey || ['date', 'datetime', 'carBrandSelect'].includes(item.type)) {
if (item.optionsKey == 'storeStaffList') popupType = 2
if (item.optionsKey == 'storeStaffList' && item.type == 'select') popupType = 1
if (item.optionsKey == 'orderList') popupType = 4
this.$emit('openSelect', item, popupType)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!