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