mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-07 01:40:25 +08:00
feat: 机器脚本新增分配、组件属性类型不匹配警告调整
This commit is contained in:
@@ -99,6 +99,7 @@ import { DynamicFormDialog } from '@/components/dynamic-form';
|
||||
import { SearchItem } from '@/components/SearchForm';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { useI18nCreateTitle, useI18nDeleteConfirm, useI18nDeleteSuccessMsg, useI18nEditTitle } from '@/hooks/useI18n';
|
||||
import { OptionsApi } from '@/components/SearchForm/index';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
@@ -117,11 +118,24 @@ const pageTableRef: Ref<any> = ref(null);
|
||||
|
||||
const state = reactive({
|
||||
selectionData: [],
|
||||
searchItems: [SearchItem.select('type', 'common.type').withEnum(ScriptTypeEnum)],
|
||||
searchItems: [
|
||||
SearchItem.select('type', 'common.type').withEnum(ScriptTypeEnum),
|
||||
SearchItem.select('category', 'machine.category').withOptionsApi(
|
||||
OptionsApi.new(machineApi.scriptCategorys, {}).withConvertFn((res) => {
|
||||
return res.map((x: any) => {
|
||||
return {
|
||||
label: x,
|
||||
value: x,
|
||||
};
|
||||
});
|
||||
})
|
||||
),
|
||||
],
|
||||
columns: [
|
||||
TableColumn.new('name', 'common.name'),
|
||||
TableColumn.new('description', 'common.remark'),
|
||||
TableColumn.new('type', 'common.type').typeTag(ScriptResultEnum),
|
||||
TableColumn.new('category', 'machine.category'),
|
||||
TableColumn.new('action', 'common.operation').isSlot().setMinWidth(140).alignCenter(),
|
||||
],
|
||||
query: {
|
||||
|
||||
Reference in New Issue
Block a user