20260727173703
This commit is contained in:
1 parent
a8478d60ed
commit
9dbaef7787
114 files changed
+959
-2588
No files matched your search
@@ -8,10 +8,11 @@ const props = defineProps({
|
||||
editConfig: { type: Array, default: () => [] },
|
||||
fields: { type: Array, default: () => [] },
|
||||
groups: { type: Array, default: () => [] },
|
||||
referencedGroupIds: { type: Array, default: () => [] },
|
||||
loading: { type: Boolean, default: false },
|
||||
});
|
||||
|
||||
const emit = defineEmits(["update", "updateGroups"]);
|
||||
const emit = defineEmits(["update", "groupsSaved"]);
|
||||
|
||||
const localEdit = ref([]);
|
||||
const groupManagerVisible = ref(false);
|
||||
@@ -62,7 +63,7 @@ function makeSwitchCol(field, title, width) {
|
||||
title,
|
||||
width: width || 60,
|
||||
align: "center",
|
||||
editor: { type: "checkbox", onChange: () => emitUpdate() },
|
||||
editor: { type: "checkbox" },
|
||||
};
|
||||
}
|
||||
|
||||
@@ -74,7 +75,6 @@ const columns = shallowRef([
|
||||
editor: {
|
||||
type: "select",
|
||||
options: () => availableFields.value,
|
||||
onChange: () => emitUpdate(),
|
||||
},
|
||||
},
|
||||
makeSwitchCol("b_required", "必填"),
|
||||
@@ -87,7 +87,6 @@ const columns = shallowRef([
|
||||
editor: {
|
||||
type: "select",
|
||||
options: () => groupOptions.value,
|
||||
onChange: () => emitUpdate(),
|
||||
},
|
||||
},
|
||||
{ dataIndex: "b_xh", title: "排序号", width: 80 },
|
||||
@@ -123,7 +122,8 @@ const columns = shallowRef([
|
||||
:row-draggable="!loading"
|
||||
row-key="b_id"
|
||||
:active-row-key="activeKey"
|
||||
@row-click="(ev, row) => (activeKey = row.b_id)"
|
||||
@row-click="(_, row) => (activeKey = String(row.b_id))"
|
||||
@change="emitUpdate"
|
||||
@row-order-change="onRowOrderChange"
|
||||
/>
|
||||
</div>
|
||||
@@ -131,7 +131,8 @@ const columns = shallowRef([
|
||||
v-model:visible="groupManagerVisible"
|
||||
:module-id="moduleId"
|
||||
:groups="groups"
|
||||
@update="(v) => emit('updateGroups', v)"
|
||||
:referenced-group-ids="referencedGroupIds"
|
||||
@saved="(groups, idMapping) => emit('groupsSaved', groups, idMapping)"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in new issue
Block a user