Commit becf191e by 李伟康

style(storeDailyReport): 移除保存按钮的默认样式类

fix(editForm): 优化选择器赋值逻辑,兼容无value/label的选项
1 parent 75cecb9b
......@@ -54,7 +54,7 @@
<view class="btn" @click="$emit('submitReport')" v-if="showPushBtn">上报数据</view>
</template>
<template v-else>
<view class="btn default-btn w100" @click="save">保存</view>
<view class="btn w100" @click="save">保存</view>
</template>
</Footer>
</view>
......
......@@ -176,8 +176,8 @@ export default {
},
onSelect(item, index) {
let { key } = this.data[index]
this.$set(this.data[index], key, item.value)
this.$set(this.data[index], 'value', item.label)
this.$set(this.data[index], key, item.value || item)
this.$set(this.data[index], 'value', item.label || item)
},
openSelect(item, type, index) {
let list = this.data || []
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!