Commit 012b89f2 authored by LiXuyang's avatar LiXuyang

质量白名单动态字段

parent 1254931c
import {BasicColumn, FormSchema} from '@/components/Table'; import { BasicColumn, FormSchema } from '@/components/Table';
export const ruleFormSchema = [ export const ruleFormSchema = [
{ {
...@@ -146,6 +146,10 @@ export const ruleModelFormSchema: any[] = [ ...@@ -146,6 +146,10 @@ export const ruleModelFormSchema: any[] = [
label: '质量白名单', label: '质量白名单',
component: 'Select', component: 'Select',
colProps: { lg: 24, md: 24 }, colProps: { lg: 24, md: 24 },
show: ({ values }) => {
console.log('values', values);
return values.group ? values.group.substring(0, 2) === '主体' : false;
},
}, },
{ {
field: 'preview', field: 'preview',
...@@ -219,6 +223,10 @@ export const ruleEditModelFormSchema: any[] = [ ...@@ -219,6 +223,10 @@ export const ruleEditModelFormSchema: any[] = [
label: '质量白名单', label: '质量白名单',
component: 'Select', component: 'Select',
colProps: { lg: 24, md: 24 }, colProps: { lg: 24, md: 24 },
show: ({ values }) => {
console.log('values', values);
return values.group ? values.group.substring(0, 2) === '主体' : false;
},
}, },
{ {
field: 'preview', field: 'preview',
......
...@@ -13,24 +13,24 @@ ...@@ -13,24 +13,24 @@
<Select <Select
:options="[ :options="[
{ {
label: 'tyh', label: '主体/tyh',
value: 'tyh', value: '主体/tyh',
}, },
{ {
label: '毕业生-mob', label: '主体/毕业生-mob',
value: '毕业生-mob', value: '主体/毕业生-mob',
}, },
{ {
label: '毕业生-moca', label: '数据表/毕业生-moca',
value: '毕业生-moca', value: '数据表/毕业生-moca',
}, },
{ {
label: '毕业生-moe', label: '数据表/毕业生-moe',
value: '毕业生-moe', value: '数据表/毕业生-moe',
}, },
{ {
label: '毕业生-test', label: '数据表/毕业生-test',
value: '毕业生-test', value: '数据表/毕业生-test',
}, },
]" ]"
v-model:value="model[field]" v-model:value="model[field]"
...@@ -99,15 +99,16 @@ ...@@ -99,15 +99,16 @@
</BasicModal> </BasicModal>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import {ref, computed, unref, defineProps} from 'vue'; import { ref, computed, unref, defineProps } from 'vue';
import { Select } from 'ant-design-vue'; import { Select } from 'ant-design-vue';
import { BasicModal, useModalInner, useModal } from '@/components/Modal'; import { BasicModal, useModalInner, useModal } from '@/components/Modal';
import { BasicForm, useForm } from '@/components/Form'; import { BasicForm, useForm } from '@/components/Form';
import { import {
configColumn, configColumn,
ruleEditModelFormSchema, ruleModelFormSchema, ruleEditModelFormSchema,
ruleModelFormSchema,
taskColumn, taskColumn,
} from '@/views/dataQuality/dataSheet/rule/rule.data'; } from '@/views/dataQuality/dataSheet/rule/rule.data';
import BasicTable from '@/components/Table/src/BasicTable.vue'; import BasicTable from '@/components/Table/src/BasicTable.vue';
import RuleGroupAddModel from './ruleGroupAddModel.vue'; import RuleGroupAddModel from './ruleGroupAddModel.vue';
import AddNewVersion from './addNewVersion.vue'; import AddNewVersion from './addNewVersion.vue';
......
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