Browse Source

专题管理板块bug完善

dev_kxc
xzt 2 years ago
parent
commit
b15a36bcff
  1. 23
      jwtech-admin-page/src/views/project/special/options/ContractPage.vue
  2. 29
      jwtech-admin-page/src/views/project/special/options/documentPage.vue
  3. 28
      jwtech-admin-page/src/views/project/special/options/resultsPage.vue
  4. 38
      jwtech-admin-page/src/views/project/special/options/taskPage.vue

23
jwtech-admin-page/src/views/project/special/options/ContractPage.vue

@ -152,7 +152,13 @@
/>
<!-- 添加或修改专题项目合同管理对话框 -->
<el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
<el-dialog
:title="title"
:visible.sync="open"
@close="close"
width="800px"
append-to-body
>
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
<el-form-item label="合同编号" prop="contractNumber">
<el-input
@ -317,11 +323,7 @@ export default {
contractTypeFormat(row, column) {
return this.selectDictLabel(this.contractTypeOptions, row.contractType);
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
@ -340,6 +342,7 @@ export default {
remark: null,
};
this.resetForm("form");
this.contractFileList.splice(0, this.contractFileList.length);
},
//
resetQueryForm() {
@ -432,6 +435,14 @@ export default {
this.contractFileList.length = 0;
});
},
//
cancel() {
this.open = false;
},
//
close() {
this.reset();
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;

29
jwtech-admin-page/src/views/project/special/options/documentPage.vue

@ -172,7 +172,13 @@
/>
<!-- 添加或修改专题项目文档管理对话框 -->
<el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
<el-dialog
:title="title"
:visible.sync="open"
@close="close"
width="800px"
append-to-body
>
<el-form ref="form" :model="form" :rules="rules" label-width="160px">
<el-form-item label="文档类型" prop="documentType">
<el-select v-model="form.documentType" placeholder="请选择文档类型">
@ -332,11 +338,7 @@ export default {
documentTypeFormat(row, column) {
return this.selectDictLabel(this.documentTypeOptions, row.documentType);
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
@ -353,6 +355,8 @@ export default {
remark: null,
};
this.resetForm("form");
//
this.acceptDocumentFileList.splice(0, this.acceptDocumentFileList.length);
},
//
resetQueryForm() {
@ -393,17 +397,14 @@ export default {
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加专题项目文档管理";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids;
getDocument(id).then((response) => {
this.form = response.data;
console.log("response.data", response.data);
if (response.data.acceptDocumentAttachment) {
this.acceptDocumentFileList = JSON.parse(
response.data.acceptDocumentAttachment
@ -441,10 +442,16 @@ export default {
});
}
}
//
this.acceptDocumentFileList.length = 0;
});
},
//
cancel() {
this.open = false;
},
//
close() {
this.reset();
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;

28
jwtech-admin-page/src/views/project/special/options/resultsPage.vue

@ -438,7 +438,9 @@ export default {
remark: null,
};
this.resetForm("form");
this.resultsFileList.splice(0, this.resultsFileList.length);
},
//
resetQueryForm() {
this.queryParams = {
@ -479,13 +481,12 @@ export default {
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
// console.log(" this.resultsFileList", this.resultsFileList);
this.open = true;
this.title = "添加专题成果";
},
/** 修改按钮操作 */
handleUpdate(row) {
// this.reset();
const id = row.id || this.ids;
getGain(id).then((response) => {
this.form = response.data;
@ -527,38 +528,17 @@ export default {
});
}
}
//
this.resultsFileList.length = 0;
});
this.reset();
},
//
cancel() {
this.open = false;
this.reset();
},
//
colseDialog() {
this.reset();
},
//
reset() {
this.form = {
id: null,
evaluator: null,
evaluationTime: null,
evaluationContent: null,
fileAttachmentRelation: null,
proNo: null,
createUid: null,
createTime: null,
updateUid: null,
updateTime: null,
owerDept: null,
remark: null,
};
this.tableForm = this.form;
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;

38
jwtech-admin-page/src/views/project/special/options/taskPage.vue

@ -200,6 +200,7 @@
<el-dialog
:title="title"
:visible.sync="open"
@close="close"
width="1000px"
append-to-body
style="margin-top: 0"
@ -361,6 +362,7 @@ import {
exportApproval,
} from "@/api/earlyStage/approval";
import { getToken } from "@/utils/auth";
import { getFileStream } from "@/api/system/upload";
export default {
props: ["proNo"],
@ -467,11 +469,7 @@ export default {
categoryFormat(row, column) {
return this.selectDictLabel(this.categoryOptions, row.category);
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
@ -494,6 +492,11 @@ export default {
remark: null,
};
this.resetForm("form");
//
// this.projectFileList.length = 0;
// this.opinionFileList.length = 0;
this.projectFileList.splice(0, this.projectFileList.length);
this.opinionFileList.splice(0, this.opinionFileList.length);
},
//
resetQueryForm() {
@ -540,17 +543,14 @@ export default {
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加专题项目报批任务书信息";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids;
getApproval(id).then((response) => {
this.form = response.data;
console.log(response.data);
//
if (response.data.projectAttachment) {
this.projectFileList = JSON.parse(response.data.projectAttachment);
@ -562,10 +562,6 @@ export default {
this.title = "修改专题项目报批任务书信息";
});
},
//
openForm() {
this.open = true;
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate((valid) => {
@ -592,11 +588,16 @@ export default {
});
}
}
//
this.projectFileList.length = 0;
this.opinionFileList.length = 0;
});
},
//
cancel() {
this.open = false;
},
//
close() {
this.reset();
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
@ -623,8 +624,9 @@ export default {
console.log("fileList", fileList);
this.projectFileList.push({
name: fileList.name,
fileName: fileList.response.fileName,
url: fileList.response.url,
fileList: fileList,
uid: fileList.uid,
});
},
handleProjectRemove(file, fileList) {
@ -636,7 +638,8 @@ export default {
this.projectFileList.splice(index, 1);
},
handleProjectPreview(file) {
console.log(file);
console.log(file.fileName);
getFileStream({ fileName: file.fileName });
},
handleProjectExceed(files, fileList) {
this.$message.warning(
@ -653,6 +656,7 @@ export default {
console.log("fileList", fileList);
this.opinionFileList.push({
name: fileList.name,
fileName: fileList.response.fileName,
url: fileList.response.url,
uid: fileList.uid,
// fileList: fileList,

Loading…
Cancel
Save