Commit fb3cc103 authored by 罗林杰's avatar 罗林杰

修改质量白名单

parent ad6c3251
...@@ -7,7 +7,13 @@ ...@@ -7,7 +7,13 @@
@ok="handleSubmit" @ok="handleSubmit"
> >
<div style="display: flex; justify-content: flex-end; padding-bottom: 10px"> <div style="display: flex; justify-content: flex-end; padding-bottom: 10px">
<a-button style="margin-right: 5px" type="primary" @click="upload">更新名单</a-button> <a-button
style="margin-right: 5px"
type="primary"
:disabled="isSave === 'false'"
@click="upload"
>更新名单</a-button
>
<a-button style="margin-right: 5px" type="primary" @click="handleSave">保存</a-button> <a-button style="margin-right: 5px" type="primary" @click="handleSave">保存</a-button>
</div> </div>
<Description size="middle" title="基本信息" :bordered="false" /> <Description size="middle" title="基本信息" :bordered="false" />
...@@ -24,8 +30,12 @@ ...@@ -24,8 +30,12 @@
<Description size="middle" title="名单数据" :bordered="false" /> <Description size="middle" title="名单数据" :bordered="false" />
<BasicTable @register="registerPartitionTable"> <BasicTable @register="registerPartitionTable">
<template #toolbar> <template #toolbar>
<a-button type="primary" @click="handleDownload">下载查找结果</a-button> <a-button type="primary" @click="handleDownload" :disabled="isSave === 'false'"
<a-button type="primary" @click="handleDownload">下载全部</a-button> >下载查找结果</a-button
>
<a-button type="primary" @click="handleDownload" :disabled="isSave === 'false'"
>下载全部</a-button
>
</template> </template>
</BasicTable> </BasicTable>
</BasicModal> </BasicModal>
...@@ -53,6 +63,7 @@ ...@@ -53,6 +63,7 @@
const emit = defineEmits(['success', 'register']); const emit = defineEmits(['success', 'register']);
const { createMessage } = useMessage(); const { createMessage } = useMessage();
const title = ref(); const title = ref();
const isSave = ref('false');
const [registerUploadModal, { openModal: openUploadModal }] = useModal(); const [registerUploadModal, { openModal: openUploadModal }] = useModal();
//获取接口数据并放在下拉框里(这里是打开了一个弹框) //获取接口数据并放在下拉框里(这里是打开了一个弹框)
//初始化表单 //初始化表单
...@@ -98,6 +109,7 @@ ...@@ -98,6 +109,7 @@
createMessage.success('下载成功'); createMessage.success('下载成功');
} }
function handleSave() { function handleSave() {
isSave.value = 'true';
createMessage.success('保存成功'); createMessage.success('保存成功');
} }
function upload() { function upload() {
......
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