修改导入
This commit is contained in:
parent
753825acad
commit
df829e4abb
11
web/src/views/testdata/testtask/index.vue
vendored
11
web/src/views/testdata/testtask/index.vue
vendored
@ -474,6 +474,10 @@ function reset() {
|
|||||||
getdata()
|
getdata()
|
||||||
}
|
}
|
||||||
function importproject() {
|
function importproject() {
|
||||||
|
fileList.value = []
|
||||||
|
importForm.value.fileName = ''
|
||||||
|
importForm.value.localStorageId = ''
|
||||||
|
importForm.value.backupStorageId = ''
|
||||||
getMaxTaskCode().then((res: any) => {
|
getMaxTaskCode().then((res: any) => {
|
||||||
if (res.data) {
|
if (res.data) {
|
||||||
importForm.value.taskCode = res.data
|
importForm.value.taskCode = res.data
|
||||||
@ -489,7 +493,6 @@ function fileChange(uploadFile, uploadFiles) {
|
|||||||
importForm.value.fileName = uploadFile.name
|
importForm.value.fileName = uploadFile.name
|
||||||
fileList.value = []
|
fileList.value = []
|
||||||
fileList.value = [uploadFile.raw]
|
fileList.value = [uploadFile.raw]
|
||||||
console.log(fileList.value, 999)
|
|
||||||
}
|
}
|
||||||
const isconnect = ref(false)
|
const isconnect = ref(false)
|
||||||
function importSubmit(formEl: any) {
|
function importSubmit(formEl: any) {
|
||||||
@ -499,7 +502,7 @@ function importSubmit(formEl: any) {
|
|||||||
if (fileList.value.length == 0) {
|
if (fileList.value.length == 0) {
|
||||||
return ElMessage.warning('请上传导入文件!')
|
return ElMessage.warning('请上传导入文件!')
|
||||||
}
|
}
|
||||||
if (isconnect) {
|
if (isconnect.value) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
const formData = new FormData()
|
const formData = new FormData()
|
||||||
@ -642,8 +645,8 @@ function importClose() {
|
|||||||
style="cursor: pointer;">
|
style="cursor: pointer;">
|
||||||
<img src="@/assets/MenuIcon/lbcz_sc.png" alt="" title="删除" @click="delproject(scope.row)"
|
<img src="@/assets/MenuIcon/lbcz_sc.png" alt="" title="删除" @click="delproject(scope.row)"
|
||||||
style="cursor: pointer;">
|
style="cursor: pointer;">
|
||||||
<img v-if="standAlone" src="@/assets/MenuIcon/lbcz_dc.png" alt="" title="导出" @click="expproject(scope.row)"
|
<img v-if="standAlone" src="@/assets/MenuIcon/lbcz_dc.png" alt="" title="导出"
|
||||||
style="cursor: pointer;">
|
@click="expproject(scope.row)" style="cursor: pointer;">
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user