文档服务地址:http://47.92.0.57:3000/ 周报索引地址:http://47.92.0.57:3000/s/NruNXRYmV

Commit 7c1e8464 by 李严凡

修改任务时删除文件

parent a4d383a2
...@@ -380,7 +380,7 @@ ...@@ -380,7 +380,7 @@
alert('无法修改任务'); alert('无法修改任务');
} }
else{ else{
alert(res.data.taskId); // alert(res.data.taskId);
this.dynamicValidateForm.domains = res.data.domains; this.dynamicValidateForm.domains = res.data.domains;
this.dynamicValidateForm.pictureDomains = res.data.pictureDomains; this.dynamicValidateForm.pictureDomains = res.data.pictureDomains;
this.dynamicValidateForm.layerDomains = res.data.layerDomains; this.dynamicValidateForm.layerDomains = res.data.layerDomains;
...@@ -511,8 +511,11 @@ ...@@ -511,8 +511,11 @@
handleRemoveP(file,fileList){ handleRemoveP(file,fileList){
var flag = 0; var flag = 0;
for(var i = 0 ; i < this.dynamicValidateForm.pictureDomains.length && flag ==0;i++){ for(var i = 0 ; i < this.dynamicValidateForm.pictureDomains.length && flag ==0;i++){
// alert("Inin");
for(var j = 0 ; j < this.dynamicValidateForm.pictureDomains[i].fileList.length ; j++){ for(var j = 0 ; j < this.dynamicValidateForm.pictureDomains[i].fileList.length ; j++){
if(file.name == this.dynamicValidateForm.pictureDomains[i].fileFile[j].name){ // alert(file.name);
// alert(this.dynamicValidateForm.pictureDomains[i].fileList[j].name);
if(file.name == this.dynamicValidateForm.pictureDomains[i].fileList[j].name){
this.url = this.dynamicValidateForm.pictureDomains[i].fileList[j].url; this.url = this.dynamicValidateForm.pictureDomains[i].fileList[j].url;
this.dynamicValidateForm.pictureDomains[i].fileList.splice(j,1); this.dynamicValidateForm.pictureDomains[i].fileList.splice(j,1);
flag = 1; flag = 1;
...@@ -520,6 +523,7 @@ ...@@ -520,6 +523,7 @@
} }
} }
} }
alert(this.url);
this.axios({ this.axios({
method:'post', method:'post',
params:{ params:{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment