拆分导出文件名称修改

This commit is contained in:
caoyang
2022-04-07 11:20:09 +08:00
parent 5dc67d8a5f
commit 93edc979d9
3 changed files with 15 additions and 13 deletions
@@ -265,9 +265,9 @@
if(!this.form.file) { if(!this.form.file) {
this.$refs.ruleForm.validate(valid => { this.$refs.ruleForm.validate(valid => {
if (valid) { if (valid) {
this.flag = true
if (this.flag) {
if (!this.flag) {
this.flag = true
axios({ axios({
url: '/jero-boot/split/sarFileSplitItems/importSplitResult', url: '/jero-boot/split/sarFileSplitItems/importSplitResult',
method: 'post', method: 'post',
@@ -291,9 +291,10 @@
} }
}) })
}else { }else {
this.flag = true
this.$refs.ruleForm.clearValidate() this.$refs.ruleForm.clearValidate()
if (this.flag) { if (!this.flag) {
this.flag = true
axios({ axios({
url: '/jero-boot/split/sarFileSplitItems/importSplitResult', url: '/jero-boot/split/sarFileSplitItems/importSplitResult',
method: 'post', method: 'post',
@@ -48,7 +48,7 @@
<a-input-number class="box-input" <a-input-number class="box-input"
:placeholder="$t('PleaseEnter')+item.db_field_txt" :placeholder="$t('PleaseEnter')+item.db_field_txt"
:disabled="disabled" :disabled="disabled"
v-model="formInline[item.db_field_name]" :min="1" :max="99999999"/> v-model="formInline[item.db_field_name]" :max="99999999"/>
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
@@ -666,9 +666,10 @@
// console.log('vallll',this.contentList) // console.log('vallll',this.contentList)
this.$refs.splitEditForm.validate(valid=>{ this.$refs.splitEditForm.validate(valid=>{
if(valid){ if(valid){
this.submitFlag=true
this.confirmLoading = true this.loading = true
if(this.submitFlag){ if(!this.submitFlag){
this.submitFlag=true
let url = '' let url = ''
if (this.formInline.id) { if (this.formInline.id) {
url = this.url.updateInfo url = this.url.updateInfo
@@ -709,7 +710,7 @@
}) })
.then( (res) =>{ .then( (res) =>{
if (res.data.success) { if (res.data.success) {
this.confirmLoading = false this.loading = false
this.$message.success(this.$t('OperationSuccessful')) this.$message.success(this.$t('OperationSuccessful'))
this.visible=false this.visible=false
// this.$emit('closeVisible',false) // this.$emit('closeVisible',false)
@@ -728,7 +729,7 @@
.catch( (error) =>{ .catch( (error) =>{
console.log(error); console.log(error);
}).finally(()=>{ }).finally(()=>{
this.confirmLoading=false this.loading=false
this.submitFlag=false this.submitFlag=false
}) })
} }
@@ -748,8 +749,8 @@
// console.log('contentList111111',this.contentList) // console.log('contentList111111',this.contentList)
this.$refs.numberForm.validate(valid=>{ this.$refs.numberForm.validate(valid=>{
if(valid){ if(valid){
this.numberFlag=true if(!this.numberFlag){
if(this.numberFlag){ this.numberFlag=true
for(let i=this.contentList.length;i>this.addIndex;i--){ for(let i=this.contentList.length;i>this.addIndex;i--){
this.contentList[i+this.numberForm.textNumber-1]=this.contentList[i-1] this.contentList[i+this.numberForm.textNumber-1]=this.contentList[i-1]
} }
@@ -727,7 +727,7 @@
let name = this.$route.query.infoNumber +' '+ dateName+'.zip' let name = this.$route.query.infoNumber +' '+ dateName+'.zip'
let query = { let query = {
infoId:this.infoId, infoId:this.infoId,
exportName:name, exportName:this.$route.query.infoNumber +' '+ dateName,
idList:this.selectedRowKeys.join(',') idList:this.selectedRowKeys.join(',')
} }