-
-
-
-
-
-
-
![]()
-
![]()
-
![]()
-
{{ item.fileName }}
+
+
+
+
+
+
+
![]()
+
![]()
+
![]()
+
{{ item.fileName }}
+
+
×
-
×
-
- 保存
+ 保存
取消
- 新增成员
+ 新增成员
-
+
-
+
{{ row.userName }}
-
-
+
+
{{
postOptions.find((post) => post.dictValue === row.postId)
? postOptions.find((post) => post.dictValue === row.postId)
- .dictLabel
+ .dictLabel
: ""
}}
- 确认
- 取消
+ 确认
+ 取消
- 保存
- 取消
+ 保存
+ 取消
- 编辑
- 工作日志
- 删除
+ 编辑
+ 工作日志
+ 删除
@@ -287,21 +145,12 @@
-
+
-
+
@@ -338,7 +187,7 @@ export default {
budgetDate: 0,
state: 0,
dataState: 0,
- fileList:[]
+ fileList: []
},
postOptions: [],
statusList: [],
@@ -378,13 +227,14 @@ export default {
{ required: true, message: "预算天数为必填", trigger: "blur" },
],
fileList: [
- { required: true, message: "预算天数为必填", trigger: "blur" },
+ { required: true, message: "附件为必填", trigger: "blur" },
],
},
filePng,
zipPng,
imagePng,
token: getToken(),
+ delFileArr: []
};
},
@@ -450,6 +300,8 @@ export default {
this.formData.projectId = res.data.projectId;
this.formData.projectCode = res.data.projectCode;
this.$modal.msgSuccess("操作成功");
+ this.fetchProjectData()
+
} else {
const hasLog = await projectApi.projectHasLogData({
projectId: this.formData.projectId,
@@ -463,9 +315,22 @@ export default {
)
.then(async () => {
await projectApi.updateProject(projectDataToSave);
+ if (this.delFileArr.length) {
+ await systemApi.delFileBatch(this.delFileArr.join(','))
+ this.delFileArr = []
+
+ }
+ this.fetchProjectData()
+
});
} else {
await projectApi.updateProject(projectDataToSave);
+ if (this.delFileArr.length) {
+ await systemApi.delFileBatch(this.delFileArr.join(','))
+ this.delFileArr = []
+ }
+ this.fetchProjectData()
+
this.$modal.msgSuccess("操作成功");
}
}
@@ -568,11 +433,11 @@ export default {
openProjectManagerSelect() {
this.projectManagerSelectedUser = this.formData.projectLeader
? [
- {
- userId: this.formData.projectLeader,
- nickName: this.formData.projectLeaderName,
- },
- ]
+ {
+ userId: this.formData.projectLeader,
+ nickName: this.formData.projectLeaderName,
+ },
+ ]
: [];
this.showProjectManagerSelect = true;
},
@@ -623,7 +488,7 @@ export default {
},
async fetchProjectData(id) {
try {
- const response = await projectApi.getProjectDetail(id);
+ const response = await projectApi.getProjectDetail(id||this.formData.projectId);
const projectData = response.data;
let {
projectId,
@@ -693,9 +558,10 @@ export default {
}
},
beforeUpload(file) {
+
this.fileLoading = true;
if (file.size > 1024 * 1024 * 100) {
- this.fileLoading = false;
+ this.fileLoading = false;
this.$message({
type: "warning",
@@ -704,8 +570,8 @@ export default {
return false;
}
},
- successUpload(res,file,fileList) {
- if(!fileList.filter((ele)=>ele.percentage!=100).length){
+ successUpload(res, file, fileList) {
+ if (!fileList.filter((ele) => ele.percentage != 100).length) {
this.fileLoading = false;
}
if (res.code == 200) {
@@ -716,6 +582,7 @@ export default {
fileUrl: res.url,
});
} else {
+ this.fileLoading = false;
this.$message({
type: "error",
message: res.msg,
@@ -729,48 +596,47 @@ export default {
cancelButtonText: "取消",
type: "warning",
}).then(() => {
- systemApi.delFile(row.id).then((res) => {
- this.formData.fileList = this.formData.fileList.filter(
- (ele) => ele.fileNewName != row.fileNewName
- );
- this.$message({
- type:'success',
- message: "删除成功!"
- })
- });
+ this.delFileArr.push(row.id)
+ this.formData.fileList = this.formData.fileList.filter(
+ (ele) => ele.fileNewName != row.fileNewName
+ );
+ this.$message({
+ type: 'success',
+ message: "删除成功!"
+ })
});
} else {
this.formData.fileList = this.formData.fileList.filter(
(ele) => ele.fileNewName != row.fileNewName
);
this.$message({
- type:'success',
- message: "删除成功!"
- })
+ type: 'success',
+ message: "删除成功!"
+ })
}
},
- getFileType(name){
- var data={
- jpg: 'image',
- jpeg: 'image',
- png: 'image',
- gif: 'image',
- bmp: 'image',
- tiff: 'image',
- svg: 'image',
- pdf: 'file',
- doc: 'file',
- docx: 'file',
- xls: 'file',
- xlsx: 'file',
- txt: 'file',
- ppt: 'file',
- zip: 'zip',
- rar: 'zip',
- tar: 'zip',
- targz: 'zip',
- }
- return data[name.split('.')[1]]||'file'
+ getFileType(name) {
+ var data = {
+ jpg: 'image',
+ jpeg: 'image',
+ png: 'image',
+ gif: 'image',
+ bmp: 'image',
+ tiff: 'image',
+ svg: 'image',
+ pdf: 'file',
+ doc: 'file',
+ docx: 'file',
+ xls: 'file',
+ xlsx: 'file',
+ txt: 'file',
+ ppt: 'file',
+ zip: 'zip',
+ rar: 'zip',
+ tar: 'zip',
+ targz: 'zip',
+ }
+ return data[name.split('.')[1]] || 'file'
},
downFile(url) {
window.open(url);
@@ -817,7 +683,8 @@ export default {
}
.custom-form ::v-deep .el-form-item {
- margin-bottom: 25px; /* 增加表单行间距 */
+ margin-bottom: 25px;
+ /* 增加表单行间距 */
}
.custom-form ::v-deep .el-form-item__content {
@@ -826,24 +693,29 @@ export default {
}
.custom-form ::v-deep .el-input {
- height: 42px; /* 调高输入框高度 */
+ height: 42px;
+ /* 调高输入框高度 */
width: 80%;
}
::v-deep .el-form-item__label {
- height: 42px; /* 调高输入框高度 */
+ height: 42px;
+ /* 调高输入框高度 */
line-height: 42px;
}
.custom-form ::v-deep .el-input__wrapper,
.custom-form ::v-deep .el-date-editor.el-input,
.custom-form ::v-deep .el-input-number {
- height: 42px; /* 调高输入框高度 */
+ height: 42px;
+ /* 调高输入框高度 */
width: 80%;
}
+
.custom-form ::v-deep .el-input__inner {
height: 100%;
}
+
.custom-form ::v-deep .el-select {
width: 100%;
}
@@ -855,12 +727,14 @@ export default {
display: flex;
flex-direction: column;
}
+
.userBox {
width: 100%;
display: flex;
flex-direction: column;
flex: 1;
}
+
.table-actions {
width: 100%;
display: flex;
@@ -927,13 +801,15 @@ export default {
height: 64px;
margin-bottom: 16px;
}
+
.fileRow {
height: 38px;
padding: 0 10px;
border: 1px solid #ccc;
border-radius: 5px;
margin-bottom: 10px;
- img{
+
+ img {
height: 18px;
}
@@ -942,12 +818,14 @@ export default {
cursor: pointer;
}
}
-.fileItem{
+
+.fileItem {
gap: 10px;
-cursor: pointer;
+ cursor: pointer;
}
-.fileBox{
- max-height: 200px;
+
+.fileBox {
+ max-height: 136px;
overflow: auto;
padding-right: 10px;
max-width: 90%;
diff --git a/src/views/projectBank/userProject.vue b/src/views/projectBank/userProject.vue
index d027c26..d388899 100644
--- a/src/views/projectBank/userProject.vue
+++ b/src/views/projectBank/userProject.vue
@@ -237,6 +237,8 @@ export default {
.selectBox span {
width: 120px;
}
+.content{
+
::v-deep .el-table {
height: 100% !important;
}
@@ -318,4 +320,6 @@ export default {
::v-deep .el-table__footer td {
border: none !important;
}
+}
+
diff --git a/src/views/workAppraisal/detail.vue b/src/views/workAppraisal/detail.vue
index ced2565..a2321c5 100644
--- a/src/views/workAppraisal/detail.vue
+++ b/src/views/workAppraisal/detail.vue
@@ -6,21 +6,14 @@
{{ examineTask.taskName }}