SetImportParamsDialog.vue 808 B

12345678910111213141516171819202122232425262728293031323334
  1. <template>
  2. <my-modal v-model:open="visible" title="设置导入参数" :width="400">
  3. <qm-low-form :params="params" :fields="fields" :label-width="80">
  4. </qm-low-form>
  5. </my-modal>
  6. </template>
  7. <script name="SetImportParamsDialog" lang="ts" setup>
  8. import { ref } from "vue";
  9. import { setValueFromObj } from "@/utils/tool";
  10. const visible = defineModel();
  11. const props = defineProps<{ curRow: any }>();
  12. //todo 入参名
  13. const params = ref({
  14. a: "",
  15. b: "",
  16. });
  17. // params.value = setValueFromObj(params.value, props.curRow);
  18. const fields = ref([
  19. {
  20. prop: "a",
  21. label: "考试年度",
  22. colSpan: 24,
  23. type: "select",
  24. },
  25. {
  26. prop: "b",
  27. label: "考次",
  28. colSpan: 24,
  29. type: "select",
  30. },
  31. ]);
  32. </script>
  33. <style lang="less" scoped></style>