feat: 账号管理-授权、添加、分组管理、标签管理
This commit is contained in:
@ -160,6 +160,13 @@ const UploadStatus = {
|
||||
WAITING: 'waiting',
|
||||
ERROR: 'error',
|
||||
};
|
||||
const INITIAL_FORM = {
|
||||
mobile: '',
|
||||
operator_name: '',
|
||||
holder_name: '',
|
||||
platform: 0,
|
||||
is_sync: 0,
|
||||
};
|
||||
|
||||
const visible = ref(false);
|
||||
const uploadType = ref('manual');
|
||||
@ -172,13 +179,7 @@ const authorizedAccountModalRef = ref(null);
|
||||
// const importPromptModalRef = ref(null);
|
||||
const uploadRef = ref(null);
|
||||
const file = ref(null);
|
||||
const form = ref({
|
||||
mobile: '',
|
||||
operator_name: '',
|
||||
holder_name: '',
|
||||
platform: 0,
|
||||
is_sync: 0,
|
||||
});
|
||||
const form = ref(cloneDeep(INITIAL_FORM));
|
||||
|
||||
const rules = {
|
||||
mobile: [
|
||||
@ -227,6 +228,7 @@ const reset = () => {
|
||||
formRef.value.resetFields();
|
||||
formRef.value.clearValidate();
|
||||
|
||||
form.value = cloneDeep(INITIAL_FORM);
|
||||
fileName.value = '';
|
||||
file.value = null;
|
||||
isEdit.value = false;
|
||||
@ -268,6 +270,7 @@ const handleBatchImport = async () => {
|
||||
});
|
||||
if (code === 200) {
|
||||
AMessage.success('导入成功');
|
||||
emits('update');
|
||||
onClose();
|
||||
} else {
|
||||
uploadStatus.value = UploadStatus.ERROR;
|
||||
|
||||
Reference in New Issue
Block a user