无用代码删除
This commit is contained in:
parent
1fac9a3114
commit
f466bcec47
|
|
@ -242,12 +242,6 @@
|
|||
}
|
||||
},
|
||||
handleUpSuccess1(res, file, filelist) {
|
||||
debugger;
|
||||
console.log(res)
|
||||
console.log(file)
|
||||
console.log(filelist)
|
||||
// this.form.pgoal_1_file = res.data.id;
|
||||
console.log(filelist)
|
||||
this.form.pgoal_1_file = '';
|
||||
this.form.pgoal_2_file = '';
|
||||
this.form.pgoal_3_file = '';
|
||||
|
|
@ -261,15 +255,11 @@
|
|||
this.form[key] = filelist[i].id;
|
||||
}
|
||||
}
|
||||
console.log(this.form)
|
||||
},
|
||||
// handleUpSuccess2(res, file, filelist) {
|
||||
// this.form.pgoal_2_file = res.data.id;
|
||||
// },
|
||||
handleRemove1(file, filelist){
|
||||
debugger;
|
||||
console.log(file)
|
||||
console.log(filelist)
|
||||
this.form.pgoal_1_file = '';
|
||||
this.form.pgoal_2_file = '';
|
||||
this.form.pgoal_3_file = '';
|
||||
|
|
@ -293,7 +283,6 @@
|
|||
getPgoalList(this.listQuery).then((response) => {
|
||||
if (response.data) {
|
||||
let data = response.data.results;
|
||||
debugger;
|
||||
for(let i=0;i<data.length;i++){
|
||||
let
|
||||
pgoal_2 = data[i].pgoal_2+'',
|
||||
|
|
@ -318,9 +307,8 @@
|
|||
data[i].pgoal_5 = pgoal_5;
|
||||
}
|
||||
}
|
||||
debugger;
|
||||
this.dataList.results = data;
|
||||
this.dataList.count = response.data.count;
|
||||
this.dataList.results = data;
|
||||
this.dataList.count = response.data.count;
|
||||
}
|
||||
this.listLoading = false;
|
||||
});
|
||||
|
|
@ -334,7 +322,6 @@
|
|||
});
|
||||
},
|
||||
handleEdit(scope) {
|
||||
debugger;
|
||||
this.form = Object.assign({}, scope.row); // copy obj
|
||||
this.form.year = ''+this.form.year;
|
||||
this.fileList1=[];
|
||||
|
|
@ -398,15 +385,12 @@
|
|||
});
|
||||
},
|
||||
confirm(form) {
|
||||
debugger;
|
||||
console.log(this.form)
|
||||
this.$refs[form].validate((valid) => {
|
||||
if (valid) {
|
||||
const isEdit = this.dialogType === "edit";
|
||||
if (isEdit) {
|
||||
updatePgoal(this.form.id, this.form).then((res) => {
|
||||
if (res.code >= 200) {
|
||||
debugger;
|
||||
this.getList();
|
||||
this.dialogVisible = false;
|
||||
this.$message.success("成功");
|
||||
|
|
@ -415,7 +399,6 @@
|
|||
} else {
|
||||
createPgoal(this.form).then((res) => {
|
||||
if (res.code >= 200) {
|
||||
debugger;
|
||||
this.getList();
|
||||
this.dialogVisible = false;
|
||||
this.$message.success("成功");
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@
|
|||
that.listQuery.year = date.getFullYear()+'';
|
||||
}
|
||||
|
||||
console.log(that.listQuery)
|
||||
// console.log(that.listQuery)
|
||||
getPgoalDeptList(that.listQuery).then((res) => {
|
||||
if (res.data) {
|
||||
let data0 = res.data;
|
||||
|
|
@ -167,8 +167,6 @@
|
|||
dataList[index].pgoal_5=goal_value_b;
|
||||
}
|
||||
}
|
||||
debugger;
|
||||
console.log(dataList)
|
||||
that.dataList.results = dataList;
|
||||
}
|
||||
that.listLoading = false;
|
||||
|
|
|
|||
|
|
@ -783,7 +783,7 @@ import user from "@/store/modules/user";
|
|||
this.getList();
|
||||
},
|
||||
itemClick(item){
|
||||
console.log(item);
|
||||
// console.log(item);
|
||||
let that = this;
|
||||
that.task2Item = item;
|
||||
that.task2do = item.id;
|
||||
|
|
@ -811,7 +811,7 @@ import user from "@/store/modules/user";
|
|||
//获取集团指导文件
|
||||
getPgoalList({year:item.task2_.year,page:0}).then(resp=>{
|
||||
that.task= resp.data[0];
|
||||
console.log(that.task)
|
||||
// console.log(that.task)
|
||||
// debugger;
|
||||
})
|
||||
}else{//日常监督
|
||||
|
|
@ -886,7 +886,7 @@ import user from "@/store/modules/user";
|
|||
delGoal(item,index){
|
||||
if(item.id){
|
||||
deletePgoalDept(item.id).then(res=>{
|
||||
console.log(res)
|
||||
// console.log(res)
|
||||
if(res.code>=200){
|
||||
this.subData.splice(index,1)
|
||||
this.$message.success('删除成功')
|
||||
|
|
|
|||
Loading…
Reference in New Issue