editAuditRulesModal.vue 1.92 KB
<template >
  <PageWrapper dense contentFullHeight fixedHeight contentClass="flex" >

    <PageWrapper dense contentFullHeight fixedHeight contentClass="flex flex-col"  class="toolbar"  style="width: 910px; ">
      <div class="toolbar" style="background: white;" >
        <div class="tools"  >
          <a-button type="primary" style="float: right; margin: 10px 15px 10px 0" @click="preservation">保存</a-button>
        </div>
      </div>

      <BasicForm
          style="background: white; height: 686px;"
          size="middle"
          :bordered="false"
          :column="2"
          :model="info"
          @register="registerGuideModeForm"

      >
        <template #fileSlot>
          <div style="display: flex; width: 342px">
            <a-button type="primary">文件选择</a-button>
            <p style="margin: 5px">仅允许导入单个.jar文件</p>
          </div>
          <div style="margin-top: 10px">
            <a-input style="width: 342px; margin-right: auto"  allowClear />
          </div>

        </template>

      </BasicForm>
      <SaveSettingsModal @register="saveSettings" />
    </PageWrapper>
  </PageWrapper>
</template>

<script lang="ts" setup>
import {ref, } from 'vue';
import {PageWrapper} from "@/components/Page";
import {tableList} from "./mock";
import {personSchema} from "./mainBody.data";
import {BasicForm, useForm} from "@/components/Form";
import SaveSettingsModal from "./saveSettingsModal.vue";
import {useModal} from "@/components/Modal";


// 初始化 info 为一个响应式对象
const info = ref({...tableList[0]});
const [saveSettings, { openModal: openModal }] =
    useModal(); // 新建质量主体弹窗


function preservation() {
  openModal(true, {
    isUpdate: false,
  });
}

const [registerGuideModeForm] = useForm({
  labelWidth: 100,
  schemas: personSchema,
  showActionButtonGroup: false,
  actionColOptions: {
    span: 23,
  },

});



</script>

<style scoped>

</style>