Commit ea6890cd authored by LiXuyang's avatar LiXuyang

Merge remote-tracking branch 'origin/master'

parents 05c00abf 98eb61d4
...@@ -16,7 +16,9 @@ ...@@ -16,7 +16,9 @@
import { ModelFormSchematab2 } from './audiModal.data'; import { ModelFormSchematab2 } from './audiModal.data';
import { getDeptList } from '@/api/system/dept/dept'; import { getDeptList } from '@/api/system/dept/dept';
import { addUserApi, UserDetailApi, UserUpdataApi } from '@/api/system/user/user'; import { addUserApi, UserDetailApi, UserUpdataApi } from '@/api/system/user/user';
import { encryptTwo } from '../../../../src/utils/jsencrypt.js';
import { useMessage } from '@/hooks/web/useMessage'; import { useMessage } from '@/hooks/web/useMessage';
import { TableData } from './mock';
import { router } from '@/router'; import { router } from '@/router';
defineOptions({ name: 'ModelModal' }); defineOptions({ name: 'ModelModal' });
......
<template>
</template>
<script>
export default {
name: "beforeOutputModal"
}
</script>
<style scoped>
</style>
...@@ -39,19 +39,43 @@ export const SearchFormSchema: FormSchema[] = [ ...@@ -39,19 +39,43 @@ export const SearchFormSchema: FormSchema[] = [
]; ];
export const storageManagementColumns: BasicColumn[] = [ export const storageManagementColumns: BasicColumn[] = [
{ {
title: '清理开始时间', title: '参数名',
dataIndex: 'startTime', dataIndex: 'parameterName',
width: 120, width: 120,
}, },
{ {
title: '清理结束时间', title: '参数类型',
dataIndex: 'endTime', dataIndex: 'parameterType',
width: 120, edit: true,
editComponent: 'Select',
editComponentProps: {
options: [
{
label: '时间类',
value: '1',
},
{
label: '字符类',
value: '2',
},
{
label: '数值类',
value: '3',
},
{
label: '自定义类',
value: '4',
},
],
},
width: 200,
}, },
{ {
title: '执行耗时', title: '参数值',
dataIndex: 'useTime', dataIndex: 'parameterValue',
width: 80, width: 80,
editable: true,
edit: true,
}, },
]; ];
export const storageManagementFormSchema: FormSchema[] = [ export const storageManagementFormSchema: FormSchema[] = [
...@@ -62,7 +86,7 @@ export const storageManagementFormSchema: FormSchema[] = [ ...@@ -62,7 +86,7 @@ export const storageManagementFormSchema: FormSchema[] = [
componentProps: { componentProps: {
placeholder: '请输入关键字搜索', placeholder: '请输入关键字搜索',
}, },
colProps: { lg: 4, md: 4 }, colProps: { lg: 8, md: 4 },
}, },
]; ];
export const storageManagementData: any[] = [ export const storageManagementData: any[] = [
...@@ -76,6 +100,9 @@ export const storageManagementData: any[] = [ ...@@ -76,6 +100,9 @@ export const storageManagementData: any[] = [
pointNum: '5000', pointNum: '5000',
num: '2000', num: '2000',
user: '张三', user: '张三',
parameterName: 'check_date',
parameterType: '字符类',
parameterValue: '参数值',
}, },
{ {
id: '2', id: '2',
...@@ -87,6 +114,9 @@ export const storageManagementData: any[] = [ ...@@ -87,6 +114,9 @@ export const storageManagementData: any[] = [
pointNum: '7000', pointNum: '7000',
num: '3500', num: '3500',
user: '李四', user: '李四',
parameterName: 'check_date',
parameterType: '时间类',
parameterValue: '参数值',
}, },
{ {
id: '3', id: '3',
...@@ -98,6 +128,9 @@ export const storageManagementData: any[] = [ ...@@ -98,6 +128,9 @@ export const storageManagementData: any[] = [
pointNum: '6000', pointNum: '6000',
num: '3000', num: '3000',
user: '王五', user: '王五',
parameterName: 'check_date',
parameterType: '数值类',
parameterValue: '参数值',
}, },
{ {
id: '4', id: '4',
...@@ -109,6 +142,9 @@ export const storageManagementData: any[] = [ ...@@ -109,6 +142,9 @@ export const storageManagementData: any[] = [
pointNum: '4500', pointNum: '4500',
num: '2250', num: '2250',
user: '赵六', user: '赵六',
parameterName: 'check_date',
parameterType: '自定义类',
parameterValue: '参数值',
}, },
{ {
id: '5', id: '5',
...@@ -120,5 +156,64 @@ export const storageManagementData: any[] = [ ...@@ -120,5 +156,64 @@ export const storageManagementData: any[] = [
pointNum: '5500', pointNum: '5500',
num: '2750', num: '2750',
user: '孙七', user: '孙七',
parameterName: 'check_date',
parameterType: '数值类',
parameterValue: '参数值',
},
];
export const storageManagementBasicFormSchema: FormSchema[] = [
{
field: 'field12',
component: 'BasicTitle',
label: '规则展示',
componentProps: {
// line: true,
span: true,
},
colProps: {
span: 24,
},
},
{
field: 'divider-linked',
component: 'Divider',
label: 'name日期逻辑正确',
colProps: {
span: 24,
},
},
{
field: 'field122',
component: 'InputTextArea',
label: '',
componentProps: {
disabled: true,
defaultValue:
'RESPONSE_DATA_SUCCESSFULLY_RECEIVED_FROM_SERVER_WITH_STATUS_CODE_200_AND_RESPONSE_BODY_CONTAINING_EXPECTED_DATA_IN_JSON_FORMAT_WITH_NO_ERRORS_OR_WARNINGS_DETECTED_IN_THE_PROCESSRESPONSE_DATA_SUCCESSFULLY_RECEIVED_FROM_SERVER_WITH_STATUS_CODE_200_AND_RESPONSE_BODY_CONTAINING_EXPECTED_DATA_IN_JSON_FORMAT_WITH_NO_ERRORS_OR_WARNINGS_DETECTED_IN_THE_PROCESSRESPONSE_DATA_SUCCESSFULLY_RECEIVED_FROM_SERVER_WITH_STATUS_CODE_200_AND_RESPONSE_BODY_CONTAINING_EXPECTED_DATA_IN_JSON_FORMAT_WITH_NO_ERRORS_OR_WARNINGS_DETECTED_IN_THE_PROCESS',
},
colProps: {
span: 24,
},
},
{
field: 'divider-linked',
component: 'Divider',
label: '创建日期逻辑',
colProps: {
span: 24,
},
},
{
field: 'field123',
component: 'InputTextArea',
label: '',
componentProps: {
disabled: true,
defaultValue:
'RESPONSE_DATA_SUCCESSFULLY_RECEIVED_FROM_SERVER_WITH_STATUS_CODE_200_AND_RESPONSE_BODY_CONTAINING_EXPECTED_DATA_IN_JSON_FORMAT_WITH_NO_ERRORS_OR_WARNINGS_DETECTED_IN_THE_PROCESSRESPONSE_DATA_SUCCESSFULLY_RECEIVED_FROM_SERVER_WITH_STATUS_CODE_200_AND_RESPONSE_BODY_CONTAINING_EXPECTED_DATA_IN_JSON_FORMAT_WITH_NO_ERRORS_OR_WARNINGS_DETECTED_IN_THE_PROCESSRESPONSE_DATA_SUCCESSFULLY_RECEIVED_FROM_SERVER_WITH_STATUS_CODE_200_AND_RESPONSE_BODY_CONTAINING_EXPECTED_DATA_IN_JSON_FORMAT_WITH_NO_ERRORS_OR_WARNINGS_DETECTED_IN_THE_PROCESS',
},
colProps: {
span: 24,
},
}, },
]; ];
...@@ -52,6 +52,7 @@ ...@@ -52,6 +52,7 @@
</template> </template>
</template> </template>
</BasicTable> </BasicTable>
<BasicForm @register="registerForm" />
</BasicModal> </BasicModal>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
...@@ -59,10 +60,12 @@ ...@@ -59,10 +60,12 @@
import { BasicModal, useModalInner } from '@/components/Modal'; import { BasicModal, useModalInner } from '@/components/Modal';
import { useMessage } from '@/hooks/web/useMessage'; import { useMessage } from '@/hooks/web/useMessage';
import { BasicTable, TableAction, useTable } from '@/components/Table'; import { BasicTable, TableAction, useTable } from '@/components/Table';
import { BasicForm, useForm } from '@/components/Form';
import { import {
storageManagementColumns, storageManagementColumns,
storageManagementFormSchema, storageManagementFormSchema,
storageManagementData, storageManagementData,
storageManagementBasicFormSchema,
} from './QualityTaskRunSetting.data'; } from './QualityTaskRunSetting.data';
// import { storageManagementData } from './analysisData'; // import { storageManagementData } from './analysisData';
import { Tag } from 'ant-design-vue'; import { Tag } from 'ant-design-vue';
...@@ -103,14 +106,14 @@ ...@@ -103,14 +106,14 @@
autoSubmitOnEnter: true, autoSubmitOnEnter: true,
}, },
rowKey: 'id', rowKey: 'id',
rowSelection: true, // rowSelection: true,
bordered: true, bordered: true,
showIndexColumn: false, showIndexColumn: false,
actionColumn: { // actionColumn: {
width: 150, // width: 150,
title: '操作', // title: '操作',
dataIndex: 'action', // dataIndex: 'action',
}, // },
}); });
//初始化弹框 //初始化弹框
const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => { const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => {
...@@ -118,7 +121,15 @@ ...@@ -118,7 +121,15 @@
setModalProps({ confirmLoading: false }); setModalProps({ confirmLoading: false });
title.value = data.title; title.value = data.title;
}); });
const [registerForm, { setFieldsValue, updateSchema, resetFields, validate }] = useForm({
labelWidth: 100,
schemas: storageManagementBasicFormSchema,
showActionButtonGroup: false,
actionColOptions: {
span: 23,
},
});
async function handleSubmit() { async function handleSubmit() {
closeModal(); closeModal();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment