| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <template>
- <div class="dialog-input-area-top-container">
- <BtnConfigDynamic @confirm="handleChujuanConfirm" @init_model="initModel" :user_input_form="user_input_form" />
- </div>
- </template>
- <script setup>
- import { ref, onMounted, onUnmounted } from 'vue';
- import BtnConfigDynamic from '../form-dynamic/BtnConfigDynamic.vue';
- /**
- * 此组件用以处理对话的附加参数
- * 父组件通过ref调用此组件expose的两个方法
- */
- const props = defineProps({
- disabled: Boolean,
- /**
- * 对应的表单数据
- *
- * */
- user_input_form: Array
- });
- const emit = defineEmits(['initModel']);
- const act_type = ref(1);
- // const upload_warning_text = `支持上传文件pdf、docx文档(最多${MAX_ACCEPT_FILE}个,每个大小不超过10MB)`;
- const radio_qingxi_text = '对上传的文档进行清洗,输出生成清洗后的文档';
- const radio_shengcheng_text = '对上传的(经过清洗的)文档生成报告,输出生成的报告文档';
- // const emit = defineEmits(['change']);
- const menuid7_config_datas = ref({});
- const handleRadioClick = (value) => {
- act_type.value = value / 1;
- };
- /**
- * 清空表单的内容
- */
- const clear = () => {};
- /**
- * 出卷的数据
- */
- const handleChujuanConfirm = (data) => {
- menuid7_config_datas.value = data;
- };
- /**
- * 获取所有的数据
- * 父组件应该使用 ref,调用此参数
- */
- const getOptions = () => {
- const obj = {};
- const params = menuid7_config_datas.value;
- for (const key in params) {
- obj[key] = params[key];
- }
- return obj;
- };
- const initModel = (val) => {
- emit('initModel', val);
- };
- defineExpose({
- /**
- * 清空表单里的内容
- */
- clear: clear,
- /**
- * 获取附件参数的键值对
- */
- getOptions: getOptions
- });
- </script>
- <style lang="css" scoped>
- .dialog-input-area-top-container {
- margin-bottom: 10px;
- }
- </style>
|