af-mobile-client-vue3 1.0.73 → 1.0.75
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
|
@@ -36,20 +36,22 @@ const emits = defineEmits(['confirm', 'change', 'cancel', 'input'])
|
|
|
36
36
|
const show = ref(false)
|
|
37
37
|
const searchVal = ref('')
|
|
38
38
|
const resultValue = defineModel()
|
|
39
|
-
|
|
39
|
+
const columnsData = ref([])
|
|
40
40
|
const selectedOption = ref([])
|
|
41
41
|
|
|
42
42
|
// 转换空children为空字符串
|
|
43
43
|
function transformColumns(data) {
|
|
44
|
-
return data.map(item => {
|
|
44
|
+
return data.map((item) => {
|
|
45
45
|
if (item.children && item.children.length === 0) {
|
|
46
46
|
return {
|
|
47
47
|
...item,
|
|
48
|
-
children: ''
|
|
48
|
+
children: '',
|
|
49
49
|
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
}
|
|
51
|
+
else if (item.children && item.children.length !== 0) {
|
|
52
|
+
return { ...item, children: transformColumns(item.children) }
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
53
55
|
return { ...item }
|
|
54
56
|
}
|
|
55
57
|
})
|
|
@@ -78,7 +80,8 @@ function search(val) {
|
|
|
78
80
|
const data = props.offOption ? item : item[props.option.text]
|
|
79
81
|
return data.includes(val)
|
|
80
82
|
})
|
|
81
|
-
}
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
82
85
|
columnsData.value = transformColumns(props.columns)
|
|
83
86
|
}
|
|
84
87
|
}
|
|
@@ -139,6 +142,6 @@ watch(() => resultValue, (newVal, _oldVal) => {
|
|
|
139
142
|
</VanPopup>
|
|
140
143
|
</template>
|
|
141
144
|
|
|
142
|
-
<style
|
|
145
|
+
<style scoped>
|
|
143
146
|
/* 样式定义 */
|
|
144
|
-
</style>
|
|
147
|
+
</style>
|
|
@@ -45,7 +45,7 @@ const colFieldNames = {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
// 查询条件参数 !!!!!建议最后点击确认的时候完成这个的整理
|
|
48
|
-
const conditionParams = ref({
|
|
48
|
+
const conditionParams = ref({})
|
|
49
49
|
|
|
50
50
|
// 重置某个选项
|
|
51
51
|
function resetOptionItem(type) {
|
|
@@ -57,7 +57,6 @@ function resetOption() {
|
|
|
57
57
|
currentOrderVal.value = undefined
|
|
58
58
|
currentSortordVal.value = undefined
|
|
59
59
|
// 条件参数
|
|
60
|
-
conditionParams.value = {fixQueryForm: props.fixQueryForm}
|
|
61
60
|
}
|
|
62
61
|
function checkOrderOption() {
|
|
63
62
|
let isCheck = true
|
|
@@ -141,7 +140,7 @@ onMounted(() => {
|
|
|
141
140
|
</div>
|
|
142
141
|
</VanCol>
|
|
143
142
|
</VanRow>
|
|
144
|
-
<XFormItem v-model="conditionParams[item.model]" :form=
|
|
143
|
+
<XFormItem v-model="conditionParams[item.model]" :form="conditionParams" :attr="item" :show-label="false" />
|
|
145
144
|
</template>
|
|
146
145
|
</div>
|
|
147
146
|
<div class="operations-panel">
|