mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
fix(projects): 修复用户导入功能无法更新问题
This commit is contained in:
@ -48,6 +48,7 @@ function closeDrawer() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function handleSubmit() {
|
async function handleSubmit() {
|
||||||
|
console.log(data.value);
|
||||||
fileList.value.forEach(item => {
|
fileList.value.forEach(item => {
|
||||||
item.status = 'pending';
|
item.status = 'pending';
|
||||||
});
|
});
|
||||||
@ -91,6 +92,7 @@ function handleDownloadTemplate() {
|
|||||||
|
|
||||||
watch(visible, () => {
|
watch(visible, () => {
|
||||||
if (visible.value) {
|
if (visible.value) {
|
||||||
|
data.value.updateSupport = false;
|
||||||
fileList.value = [];
|
fileList.value = [];
|
||||||
success.value = false;
|
success.value = false;
|
||||||
message.value = '';
|
message.value = '';
|
||||||
@ -140,7 +142,7 @@ watch(visible, () => {
|
|||||||
</NUploadDragger>
|
</NUploadDragger>
|
||||||
</NUpload>
|
</NUpload>
|
||||||
<div class="flex-center">
|
<div class="flex-center">
|
||||||
<NCheckbox v-model="data.updateSupport">{{ $t('common.updateExisting') }}</NCheckbox>
|
<NCheckbox v-model:checked="data.updateSupport">{{ $t('common.updateExisting') }}</NCheckbox>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
||||||
|
Reference in New Issue
Block a user