fix: tip
This commit is contained in:
parent
368c175f62
commit
e618b37309
@ -38,7 +38,7 @@
|
|||||||
<el-button @click.prevent="dialogVisible = false" :loading="loading">
|
<el-button @click.prevent="dialogVisible = false" :loading="loading">
|
||||||
{{ $t('common.cancel') }}
|
{{ $t('common.cancel') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button type="primary" @click="submitValid(applicationFormRef)" :loading="loading">
|
<el-button type="primary" @click="submitHandle(applicationFormRef)" :loading="loading">
|
||||||
{{ $t('common.copy') }}
|
{{ $t('common.copy') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</span>
|
</span>
|
||||||
@ -144,21 +144,6 @@ const open = (data: any, folder: string) => {
|
|||||||
dialogVisible.value = true
|
dialogVisible.value = true
|
||||||
}
|
}
|
||||||
|
|
||||||
const submitValid = (formEl: FormInstance | undefined) => {
|
|
||||||
if (user.isEE() || user.isPE()) {
|
|
||||||
submitHandle(formEl)
|
|
||||||
} else {
|
|
||||||
common
|
|
||||||
.asyncGetValid(ValidType.Application, ValidCount.Application, loading)
|
|
||||||
.then(async (res: any) => {
|
|
||||||
if (res?.data) {
|
|
||||||
submitHandle(formEl)
|
|
||||||
} else {
|
|
||||||
MsgAlert(t('common.tip'), t('views.application.tip.professionalMessage'))
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const submitHandle = async (formEl: FormInstance | undefined) => {
|
const submitHandle = async (formEl: FormInstance | undefined) => {
|
||||||
if (!formEl) return
|
if (!formEl) return
|
||||||
await formEl.validate((valid) => {
|
await formEl.validate((valid) => {
|
||||||
|
|||||||
@ -117,7 +117,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</el-dropdown-item> -->
|
</el-dropdown-item> -->
|
||||||
<el-dropdown-item @click="openCreateFolder" divided>
|
<el-dropdown-item @click="openCreateFolder" divided v-if="apiType === 'workspace'">
|
||||||
<div class="flex align-center">
|
<div class="flex align-center">
|
||||||
<AppIcon iconName="app-folder" style="font-size: 32px"></AppIcon>
|
<AppIcon iconName="app-folder" style="font-size: 32px"></AppIcon>
|
||||||
<div class="pre-wrap ml-4">
|
<div class="pre-wrap ml-4">
|
||||||
|
|||||||
@ -565,7 +565,7 @@ function importTool(file: any) {
|
|||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
getList()
|
getList()
|
||||||
|
|
||||||
})
|
})
|
||||||
.catch((e: any) => {
|
.catch((e: any) => {
|
||||||
if (e.code === 400) {
|
if (e.code === 400) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user