Browse Source

清除打印

master
YF-yuan 3 years ago
parent
commit
758b735e0c
7 changed files with 2 additions and 21 deletions
  1. +1
    -5
      src/views/chain/assessmentContent.vue
  2. +1
    -4
      src/views/chain/coordinationManage/applyCooperation.vue
  3. +0
    -2
      src/views/chain/coordinationManage/approvalCooperation.vue
  4. +0
    -3
      src/views/second/segmentation/contentDetail.vue
  5. +0
    -3
      src/views/second/taskSummary/basicTable.vue
  6. +0
    -2
      src/views/second/taskSummary/constraint.vue
  7. +0
    -2
      src/views/second/taskSummary/reward.vue

+ 1
- 5
src/views/chain/assessmentContent.vue View File

getList() { getList() {
try { try {
this.$refs.body.scrollTop = 0; this.$refs.body.scrollTop = 0;
} catch (e) {
console.log(e);
}
} catch (e) {}
this.loading = true; this.loading = true;
api api
.getList(Object.assign({}, this.searchParams)) .getList(Object.assign({}, this.searchParams))
.then((res) => { .then((res) => {
this.dataList = res.data.data; this.dataList = res.data.data;
console.log(this.dataList);
}) })
.catch((e) => { .catch((e) => {
this.dataList = []; this.dataList = [];
if (valid) { if (valid) {
let form = JSON.parse(JSON.stringify(this.form)); let form = JSON.parse(JSON.stringify(this.form));
try { try {
console.log(form);
form.otherDept = form.otherDept.join(","); form.otherDept = form.otherDept.join(",");
form.cooperateDept = form.cooperateDept.join(","); form.cooperateDept = form.cooperateDept.join(",");
} catch (e) { } catch (e) {

+ 1
- 4
src/views/chain/coordinationManage/applyCooperation.vue View File

methods: { methods: {
exportData(data){ exportData(data){
this.loading=true; this.loading=true;
api.exportList(Object.assign({sheetName:"链长制配合申请列表"},data)).then(res=>{
console.log(res.data.data)
api.exportList(Object.assign({sheetName:"链长制配合申请列表", isApply: 1},data)).then(res=>{
window.open(res.data.data); window.open(res.data.data);
this.$message({ this.$message({
type:"success", type:"success",
message:"导出成功" message:"导出成功"
}) })
}).catch(e=>{ }).catch(e=>{
console.log(e)
this.$message.error("导出失败") this.$message.error("导出失败")
}).finally(()=>{ }).finally(()=>{
this.loading=false; this.loading=false;
}); });
}); });
}); });
// console.log(list);
list = list.filter((item) => { list = list.filter((item) => {
return !this.judge(item); return !this.judge(item);
}); });

+ 0
- 2
src/views/chain/coordinationManage/approvalCooperation.vue View File

exportData(data){ exportData(data){
this.loading=true; this.loading=true;
api.exportList(Object.assign({sheetName:"链长制配合申请审核记录"},data)).then(res=>{ api.exportList(Object.assign({sheetName:"链长制配合申请审核记录"},data)).then(res=>{
console.log(res.data.data)
window.open(res.data.data); window.open(res.data.data);
this.$message({ this.$message({
type:"success", type:"success",
message:"导出成功" message:"导出成功"
}) })
}).catch(e=>{ }).catch(e=>{
console.log(e)
this.$message.error("导出失败") this.$message.error("导出失败")
}).finally(()=>{ }).finally(()=>{
this.loading=false; this.loading=false;

+ 0
- 3
src/views/second/segmentation/contentDetail.vue View File

let nameIds = []; let nameIds = [];
depts.forEach((dept) => { depts.forEach((dept) => {
this.department.forEach((item) => { this.department.forEach((item) => {
console.log(item, dept);
if (item.id == dept) { if (item.id == dept) {
nameIds.push(parseInt(item.principal)); nameIds.push(parseInt(item.principal));
} }
this.getApi() this.getApi()
.addItem(Object.assign({}, form, obj)) .addItem(Object.assign({}, form, obj))
.then((res) => { .then((res) => {
console.log(res.data.code);
if (res.data.code === 0) { if (res.data.code === 0) {
this.$message({ this.$message({
type: "success", type: "success",
this.getData(); this.getData();
}) })
.catch((e) => { .catch((e) => {
console.log(e);
this.$message.error("删除小项失败"); this.$message.error("删除小项失败");
}) })
.finally(() => { .finally(() => {

+ 0
- 3
src/views/second/taskSummary/basicTable.vue View File

exportData(data){ exportData(data){
this.loading=true; this.loading=true;
api.exportBasicList(Object.assign({sheetName:"基础目标任务细分小条"},data)).then(res=>{ api.exportBasicList(Object.assign({sheetName:"基础目标任务细分小条"},data)).then(res=>{
console.log(res.data.data)
window.open(res.data.data); window.open(res.data.data);
this.$message({ this.$message({
type:"success", type:"success",
message:"导出成功" message:"导出成功"
}) })
}).catch(e=>{ }).catch(e=>{
console.log(e)
this.$message.error("导出失败") this.$message.error("导出失败")
}).finally(()=>{ }).finally(()=>{
this.loading=false; this.loading=false;
}); });
return; return;
} }
console.log(form[param]);
if ( if (
form[param] && form[param] &&
typeof form[param] == "string" && typeof form[param] == "string" &&

+ 0
- 2
src/views/second/taskSummary/constraint.vue View File

}); });
}) })
.catch((e) => { .catch((e) => {
console.log(e);
this.$message.error("导出失败"); this.$message.error("导出失败");
}) })
.finally(() => { .finally(() => {
}); });
return; return;
} }
console.log(form[param]);
if ( if (
form[param] && form[param] &&
typeof form[param] == "string" && typeof form[param] == "string" &&

+ 0
- 2
src/views/second/taskSummary/reward.vue View File

}); });
}) })
.catch((e) => { .catch((e) => {
console.log(e);
this.$message.error("导出失败"); this.$message.error("导出失败");
}) })
.finally(() => { .finally(() => {
}); });
return; return;
} }
console.log(form[param]);
if ( if (
form[param] && form[param] &&
typeof form[param] == "string" && typeof form[param] == "string" &&

Loading…
Cancel
Save