mult-delineation-dialog.vue 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // 批量划定 弹框
  2. <template>
  3. <my-dialog
  4. :visible="visible"
  5. @close="emit('update:visible', false)"
  6. header="批量划定"
  7. :width="500"
  8. :closeOnOverlayClick="false"
  9. >
  10. <t-form ref="formRef" :model="formData" labelWidth="120px">
  11. <t-form-item label="服务单元名称:">
  12. <t-select v-model="formData.a"></t-select>
  13. </t-form-item>
  14. </t-form>
  15. <template #foot>
  16. <t-button theme="default" @click="emit('update:visible', false)"
  17. >取消</t-button
  18. >
  19. <t-button theme="primary" @click="save">保存</t-button>
  20. </template>
  21. </my-dialog>
  22. </template>
  23. <script setup name="MultDelineationDialog">
  24. import { ref, reactive } from 'vue';
  25. const emit = defineEmits(['update:visible', 'success']);
  26. const formRef = ref(null);
  27. const props = defineProps({
  28. visible: Boolean,
  29. title: String,
  30. selectedRowKeys: Array,
  31. });
  32. const formData = reactive({
  33. a: 1,
  34. });
  35. const save = () => {
  36. //ajax...
  37. emit('success');
  38. };
  39. </script>