n20-common-lib 3.2.1 → 3.2.3
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/package.json
CHANGED
|
@@ -185,12 +185,13 @@
|
|
|
185
185
|
</template>
|
|
186
186
|
|
|
187
187
|
<script>
|
|
188
|
+
import axios from '../../utils/axios.js'
|
|
188
189
|
import ClDatePicker from '../DatePicker/index.vue'
|
|
189
190
|
import ClDatePickerPor from '../DatePicker/por.vue'
|
|
190
191
|
import ClInputNumber from '../InputNumber/index.vue'
|
|
191
192
|
import ClInputNumberRange from '../InputNumber/numberRange.vue'
|
|
192
193
|
import ClInputSearch from '../InputSearch/index.vue'
|
|
193
|
-
|
|
194
|
+
|
|
194
195
|
export default {
|
|
195
196
|
name: 'AdvancedQuery',
|
|
196
197
|
components: {
|
|
@@ -554,6 +555,15 @@ export default {
|
|
|
554
555
|
updatefield(field, row) {
|
|
555
556
|
this.$set(row, 'advancedQueryType', field.advancedQueryType)
|
|
556
557
|
if (field.advancedQueryType === 4) {
|
|
558
|
+
field.options = field.options.map((item) => {
|
|
559
|
+
if (field.props?.labelKey) {
|
|
560
|
+
item.label = item[field.props.labelKey]
|
|
561
|
+
}
|
|
562
|
+
if (field.props?.valueKey) {
|
|
563
|
+
item.value = item[field.props.valueKey]
|
|
564
|
+
}
|
|
565
|
+
return item
|
|
566
|
+
})
|
|
557
567
|
this.$set(row, 'options', field.options)
|
|
558
568
|
}
|
|
559
569
|
// slot 类型特殊处理
|