eztech-core-components 1.0.77 → 1.0.79
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/comps/CoreForm.vue +1 -1
- package/comps/CoreFormFields.vue +2 -2
- package/package.json +1 -1
- package/utils/table-helper.js +2 -2
package/comps/CoreForm.vue
CHANGED
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
:group="group"
|
|
100
100
|
:searching="searching"
|
|
101
101
|
:disabled="disabled || group.disabled"
|
|
102
|
-
:ref-column="refColumns.
|
|
102
|
+
:ref-column="refColumns.findLast(c => c.tableName === group.group_fields)"
|
|
103
103
|
:ref-columns="refColumns"
|
|
104
104
|
:is-sub-menu="false"
|
|
105
105
|
:show-pkid="showPkid"
|
package/comps/CoreFormFields.vue
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
v-if="group.group_type === 'SUB_FORM'" :class="['w-full col-span-full']"
|
|
32
32
|
>
|
|
33
33
|
<core-form-sub
|
|
34
|
-
:ref-column="refColumns.
|
|
34
|
+
:ref-column="refColumns.findLast(c => c.tableName === group.col_fields)"
|
|
35
35
|
:project-id="projectId"
|
|
36
36
|
:temp-id="temp && temp._id"
|
|
37
37
|
:root-api-id="rootApiId"
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
:group-name="group.name"
|
|
94
94
|
:table_name="group.col_fields"
|
|
95
95
|
:text-where="group.text_where"
|
|
96
|
-
:ref-column="refColumns.
|
|
96
|
+
:ref-column="refColumns.findLast(c => c.tableName === group.col_fields)"
|
|
97
97
|
:project-id="projectId"
|
|
98
98
|
:root-api-id="rootApiId"
|
|
99
99
|
:root-temp-id="rootTempId"
|
package/package.json
CHANGED
package/utils/table-helper.js
CHANGED
|
@@ -1019,7 +1019,7 @@ export const tableMethods = {
|
|
|
1019
1019
|
const sort = this.sorts[ind]
|
|
1020
1020
|
let aVal = get(a, sort.prop)
|
|
1021
1021
|
let bVal = get(b, sort.prop)
|
|
1022
|
-
if (['index_name', 'custom_index_num', 'index_num'].includes(sort.prop)) {
|
|
1022
|
+
if (['index_name', 'custom_index_nums', 'custom_index_num', 'index_num'].includes(sort.prop)) {
|
|
1023
1023
|
aVal = aVal?.split('\n')[0]
|
|
1024
1024
|
bVal = bVal?.split('\n')[0]
|
|
1025
1025
|
const aVals = [aVal?.split('/')[0], aVal?.split('/')[1], aVal?.split('/')[2], aVal?.split('/')[3]]
|
|
@@ -1227,7 +1227,7 @@ export const tableMethods = {
|
|
|
1227
1227
|
that.cancel = c
|
|
1228
1228
|
})
|
|
1229
1229
|
})).data
|
|
1230
|
-
|
|
1230
|
+
this.data.list.sort(this.handleListSort)
|
|
1231
1231
|
this.listPage = this.currentPage
|
|
1232
1232
|
},
|
|
1233
1233
|
handleSearchInput ({ col_key, value, op }) {
|