|
|
@@ -95,7 +95,7 @@ |
|
|
|
</div> |
|
|
|
<div class="part-wrap" ref="distworkpart"> |
|
|
|
<div v-if="!isEnterEdit" class="template-detail-btn" |
|
|
|
@click.stop="isShowTemplateSummary = true">模板概况</div> |
|
|
|
@click.stop="isShowTemplateSummary = true, isEnterEditPropValue = false">模板概况</div> |
|
|
|
<div v-if="isProjManager" class="manager-folder-wrap" |
|
|
|
:class="{'active-folder mb-36': isEditProjManager,'only-manager-see folder-click': !isEnterEdit}"> |
|
|
|
<div class="row-title">项目管理权限</div> |
|
|
@@ -154,7 +154,7 @@ |
|
|
|
:title="nowProject.TempName" :showUserCenter="false" :showBackBtn="true" |
|
|
|
> |
|
|
|
<div slot="right" class="edit-template-btn" |
|
|
|
@click.stop="isEnterEditPropValue = !isEnterEditPropValue"> |
|
|
|
@click.stop="handleEditTemplate"> |
|
|
|
{{`${isEnterEditPropValue ? "完成编辑" : "修改"}`}} |
|
|
|
</div> |
|
|
|
</top-header> |
|
|
@@ -303,7 +303,9 @@ import NestTemp from '../project/nestTemp.vue'; |
|
|
|
isDistworkDone: false,//是否有进行过工作指派 |
|
|
|
isDistworkSuccess: false,//每一次工作指派是否成功 |
|
|
|
|
|
|
|
lastFolderId: '' |
|
|
|
lastFolderId: '',//最后一个进行工作指派的节点的id |
|
|
|
originPropListCopy: [], |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
components: { |
|
|
@@ -392,6 +394,18 @@ import NestTemp from '../project/nestTemp.vue'; |
|
|
|
this.$bus.$off('enterNestTemp', this.enterNestTemp); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 点击了编辑模板概况的按钮 |
|
|
|
handleEditTemplate() { |
|
|
|
this.isEnterEditPropValue = !this.isEnterEditPropValue; |
|
|
|
// 此时完成编辑 -> 提示编辑成功等信息 |
|
|
|
if(!this.isEnterEditPropValue) { |
|
|
|
this.originPropListCopy = this.listProjProp; |
|
|
|
this.$notify({ |
|
|
|
type: ["success"], |
|
|
|
message: '修改模板概况成功' |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
/** |
|
|
|
* 进入嵌套模板 |
|
|
|
*/ |
|
|
@@ -458,6 +472,8 @@ import NestTemp from '../project/nestTemp.vue'; |
|
|
|
this.nowProject = {...this.nowProject}; |
|
|
|
this.listProjProp=projectInfoRes.Data.CustomProps; |
|
|
|
this.listProjProp = [...this.listProjProp]; |
|
|
|
|
|
|
|
this.originPropListCopy = cloneDeep(this.listProjProp); |
|
|
|
this.coverSrc=projectInfoRes.Data.ShowImgUrl; |
|
|
|
}, |
|
|
|
async coverUploadSuccess(file) { |
|
|
@@ -482,7 +498,22 @@ import NestTemp from '../project/nestTemp.vue'; |
|
|
|
|
|
|
|
}, |
|
|
|
returnToDistWorkClick() { |
|
|
|
this.isShowTemplateSummary = false; |
|
|
|
// 未点击完成编辑按钮 -》 概况信息未保存 |
|
|
|
if(this.isEnterEditPropValue) { |
|
|
|
this.$confirm("是否保存当前项目的模板概况信息", "", { |
|
|
|
confirmButtonText: "确定", |
|
|
|
cancelButtonText: "取消", |
|
|
|
type: "warning", |
|
|
|
}).then(async () => { |
|
|
|
this.isShowTemplateSummary = false; |
|
|
|
this.originPropListCopy = this.listProjProp; |
|
|
|
|
|
|
|
}).catch(() => { |
|
|
|
this.listProjProp = this.originPropListCopy; |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.isShowTemplateSummary = false; |
|
|
|
} |
|
|
|
}, |
|
|
|
// 点击返回按钮 显示项目概况页面 |
|
|
|
showProjDetailClick() { |
|
|
@@ -1089,15 +1120,18 @@ import NestTemp from '../project/nestTemp.vue'; |
|
|
|
]); |
|
|
|
// const deptHeadList = deptList[0].children || []; |
|
|
|
let oList = this.plainTreeNodes(deptList, userList); |
|
|
|
if(oList.length == 0) { |
|
|
|
// 如果人员没有设置部门的话 |
|
|
|
|
|
|
|
// 如果人员没有设置部门的话 |
|
|
|
const aloneUserList = this.userList.filter(user => user.deptId == "0"); |
|
|
|
if(aloneUserList.length > 0) { |
|
|
|
const emptyDept = {}; |
|
|
|
emptyDept.id = "0"; |
|
|
|
emptyDept.deptName = sessionStorage.CompanyName || ""; |
|
|
|
emptyDept.listUser = []; |
|
|
|
emptyDept.listUser.push(...userList); |
|
|
|
emptyDept.listUser.push(...aloneUserList); |
|
|
|
oList.push(emptyDept); |
|
|
|
} |
|
|
|
|
|
|
|
oList.forEach(item=>{ |
|
|
|
// console.log(1) |
|
|
|
// console.log(item.listUser) |
|
|
@@ -1437,6 +1471,7 @@ import NestTemp from '../project/nestTemp.vue'; |
|
|
|
padding: 0 24px; |
|
|
|
height: calc(100vh - 126px); |
|
|
|
overflow: scroll; |
|
|
|
background-color: #f8f8f8; |
|
|
|
.cover-container { |
|
|
|
height: 226px; |
|
|
|
margin: 0 0 32px 0; |
|
|
@@ -1571,12 +1606,13 @@ import NestTemp from '../project/nestTemp.vue'; |
|
|
|
} |
|
|
|
|
|
|
|
.template-summary { |
|
|
|
background-color: #f8f8f8; |
|
|
|
.summary-wrap { |
|
|
|
height: calc(100vh - 126px - 16px); |
|
|
|
overflow: scroll; |
|
|
|
padding: 0 24px; |
|
|
|
margin: 16px 0 0 0; |
|
|
|
background-color: #fcfcfc; |
|
|
|
background-color: #f8f8f8; |
|
|
|
|
|
|
|
/* 编辑状态下的模板自定义字段输入框 */ |
|
|
|
.prop-value-input { |
|
|
|