|
@@ -809,10 +809,33 @@ export default {
|
|
|
methods: {
|
|
|
uploadFlie(file) {
|
|
|
this.fileName = file.name
|
|
|
+ },
|
|
|
+ handleImportExcel(data){
|
|
|
+ if(data.fileList.length>this.fileList.length){
|
|
|
+ this.fileList=[]
|
|
|
+ data.fileList.map(item=>{
|
|
|
+ this.fileList.push({
|
|
|
+ uid: '-1',
|
|
|
+ name: item.name,
|
|
|
+ status: 'done',
|
|
|
+ url:'http://www.myfitt.cn:18001/jeecg-boot/sys/common/static' +'/'+item.name
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
removeFile(data){
|
|
|
deleteFileDetail({code:this.planNO,name:data.name}).then(res => {
|
|
|
if (res.success) {
|
|
|
+ var cc=[]
|
|
|
+ this.fileList.map(item=>{
|
|
|
+ if(item.name !== data.name){
|
|
|
+ cc.push(item)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.fileList = cc
|
|
|
+ this.loading =false
|
|
|
this.$message.success('删除成功');
|
|
|
}else{
|
|
|
this.$message.error(res.message);
|