|
@@ -161,10 +161,10 @@ |
|
|
<div class="fl firstPeople">
|
|
|
<div class="fl firstPeople">
|
|
|
<!-- 默认添加 -->
|
|
|
<!-- 默认添加 -->
|
|
|
<div >
|
|
|
<div >
|
|
|
<div class="avtarface" :title="currUser.userName">
|
|
|
|
|
|
<img src="" v-lazy="headSrc+currUser.HeadImgUrl"/>
|
|
|
|
|
|
|
|
|
<div class="avtarface" :title="currUser.cnName">
|
|
|
|
|
|
<img :src="currUser.headImgUrl | resolveAvator"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<span class="Text_tiny tinyText_wirte">{{currUser.userName}}</span>
|
|
|
|
|
|
|
|
|
<span class="Text_tiny tinyText_wirte">{{currUser.cnName}}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 竖线 -->
|
|
|
<!-- 竖线 -->
|
|
@@ -179,7 +179,7 @@ |
|
|
<li v-for="(user,index) in newProjData.projectData.listProjManager" :key="index">
|
|
|
<li v-for="(user,index) in newProjData.projectData.listProjManager" :key="index">
|
|
|
<div v-if="index < 14 || showAll ">
|
|
|
<div v-if="index < 14 || showAll ">
|
|
|
<div class="avtarface" :title="user.userName">
|
|
|
<div class="avtarface" :title="user.userName">
|
|
|
<img src="" v-lazy="headSrc+user.headImgUrl" />
|
|
|
|
|
|
|
|
|
<img :src="user.headImgUrl | resolveAvator" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<span class="Text_tiny tinyText_wirte">{{user.cnName}}</span>
|
|
|
<span class="Text_tiny tinyText_wirte">{{user.cnName}}</span>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -222,7 +222,7 @@ |
|
|
<li v-for="(user,index) in folder.manageUser" :key="index">
|
|
|
<li v-for="(user,index) in folder.manageUser" :key="index">
|
|
|
<div>
|
|
|
<div>
|
|
|
<div class="avtarface" title="编辑">
|
|
|
<div class="avtarface" title="编辑">
|
|
|
<img src="" v-lazy="headSrc+user.headImgUrl" />
|
|
|
|
|
|
|
|
|
<img :src="user.headImgUrl | resolveAvator" />
|
|
|
<div class="eiditIconimgBox" @click="addUserPal(folderIndex)">
|
|
|
<div class="eiditIconimgBox" @click="addUserPal(folderIndex)">
|
|
|
<i class="icon font_family icon-icon_bianji1 eiditIconimg"></i>
|
|
|
<i class="icon font_family icon-icon_bianji1 eiditIconimg"></i>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -242,7 +242,7 @@ |
|
|
<li v-for="(user,index) in listUserComputed(folder.listUser)" :key="index">
|
|
|
<li v-for="(user,index) in listUserComputed(folder.listUser)" :key="index">
|
|
|
<div v-if="index < 14 || showAll ">
|
|
|
<div v-if="index < 14 || showAll ">
|
|
|
<div class="avtarface" :title="user.cnName">
|
|
|
<div class="avtarface" :title="user.cnName">
|
|
|
<img src="" v-lazy="headSrc+user.headImgUrl" />
|
|
|
|
|
|
|
|
|
<img :src="user.headImgUrl | resolveAvator" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<span class="Text_tiny tinyText_wirte">{{user.cnName}}</span>
|
|
|
<span class="Text_tiny tinyText_wirte">{{user.cnName}}</span>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -283,7 +283,7 @@ |
|
|
<div class="touxiang_hezuorenBox fl">
|
|
|
<div class="touxiang_hezuorenBox fl">
|
|
|
<div class="yonghutouxiangBox" v-for="(user,checkIndex) in folder.listUser" :key="checkIndex">
|
|
|
<div class="yonghutouxiangBox" v-for="(user,checkIndex) in folder.listUser" :key="checkIndex">
|
|
|
<div class="touxiang_hezuorenBox-item">
|
|
|
<div class="touxiang_hezuorenBox-item">
|
|
|
<img v-lazy="headSrc+user.headImgUrl" class="imgHead">
|
|
|
|
|
|
|
|
|
<img :src="user.headImgUrl | resolveAvator" class="imgHead">
|
|
|
<i class="icon_delete el-icon-delete" title="删除" @click="deleteNewProjUser(index,checkIndex)"></i>
|
|
|
<i class="icon_delete el-icon-delete" title="删除" @click="deleteNewProjUser(index,checkIndex)"></i>
|
|
|
</div>
|
|
|
</div>
|
|
|
<span>{{user.cnName}}</span>
|
|
|
<span>{{user.cnName}}</span>
|
|
@@ -334,7 +334,7 @@ |
|
|
<el-checkbox class="checkBoxCol" v-model="user.selected" @change="handleCheckedOnlyOne(group_index,user,$event)"
|
|
|
<el-checkbox class="checkBoxCol" v-model="user.selected" @change="handleCheckedOnlyOne(group_index,user,$event)"
|
|
|
:disabled="disabled">
|
|
|
:disabled="disabled">
|
|
|
<div class="checkboxlabelitem">
|
|
|
<div class="checkboxlabelitem">
|
|
|
<img v-lazy="headSrc+user.headImgUrl" alt="" class="user_info_faceImg">
|
|
|
|
|
|
|
|
|
<img :src="user.headImgUrl | resolveAvator" alt="" class="user_info_faceImg">
|
|
|
<span class="user_info_name">{{user.cnName}}</span>
|
|
|
<span class="user_info_name">{{user.cnName}}</span>
|
|
|
<el-popover placement="bottom-start" width="180" trigger="hover">
|
|
|
<el-popover placement="bottom-start" width="180" trigger="hover">
|
|
|
<ul class="popover_ul popover_ul">
|
|
|
<ul class="popover_ul popover_ul">
|
|
@@ -376,7 +376,7 @@ |
|
|
<div class="user_info_item mainpeople_H" v-for="(user,index) in (selectedUser)"
|
|
|
<div class="user_info_item mainpeople_H" v-for="(user,index) in (selectedUser)"
|
|
|
:key="index">
|
|
|
:key="index">
|
|
|
<i class="icon font_family icon-icon_huangguan-jihuo middlehuangguan fl" title="负责人"></i>
|
|
|
<i class="icon font_family icon-icon_huangguan-jihuo middlehuangguan fl" title="负责人"></i>
|
|
|
<img v-lazy="headSrc+user.headImgUrl" alt="" class="user_info_faceImg">
|
|
|
|
|
|
|
|
|
<img :src="user.headImgUrl | resolveAvator" alt="" class="user_info_faceImg">
|
|
|
<span class="user_info_name">{{user.cnName}}</span>
|
|
|
<span class="user_info_name">{{user.cnName}}</span>
|
|
|
<el-popover placement="bottom-start" width="180" trigger="hover">
|
|
|
<el-popover placement="bottom-start" width="180" trigger="hover">
|
|
|
<ul class="popover_ul popover_ul">
|
|
|
<ul class="popover_ul popover_ul">
|
|
@@ -405,7 +405,7 @@ |
|
|
</div>
|
|
|
</div>
|
|
|
<div class="renyuanbox" v-for="(user,index) in listUserComputed(selectedUser)" :key="index">
|
|
|
<div class="renyuanbox" v-for="(user,index) in listUserComputed(selectedUser)" :key="index">
|
|
|
<div class="user_info_item" v-if="user.deptID ==dept.deptID">
|
|
|
<div class="user_info_item" v-if="user.deptID ==dept.deptID">
|
|
|
<img v-lazy="headSrc+user.headImgUrl" alt="" class="user_info_faceImg">
|
|
|
|
|
|
|
|
|
<img :src="user.headImgUrl | resolveAvator" alt="" class="user_info_faceImg">
|
|
|
<span class="user_info_name">{{user.cnName}}</span>
|
|
|
<span class="user_info_name">{{user.cnName}}</span>
|
|
|
<el-popover placement="bottom-start" width="180" trigger="hover">
|
|
|
<el-popover placement="bottom-start" width="180" trigger="hover">
|
|
|
<ul class="popover_ul popover_ul">
|
|
|
<ul class="popover_ul popover_ul">
|
|
@@ -468,7 +468,7 @@ |
|
|
<el-checkbox class="checkBoxCol" v-model="user.disabled" @change="handleCheckedOne(group_index,user,$event)"
|
|
|
<el-checkbox class="checkBoxCol" v-model="user.disabled" @change="handleCheckedOne(group_index,user,$event)"
|
|
|
:disabled="disabled">
|
|
|
:disabled="disabled">
|
|
|
<div class="checkboxlabelitem">
|
|
|
<div class="checkboxlabelitem">
|
|
|
<img v-lazy="headSrc+user.headImgUrl" alt="" class="user_info_faceImg">
|
|
|
|
|
|
|
|
|
<img :src="user.headImgUrl | resolveAvator" alt="" class="user_info_faceImg">
|
|
|
<span class="user_info_name">{{user.userName}}</span>
|
|
|
<span class="user_info_name">{{user.userName}}</span>
|
|
|
<el-popover placement="bottom-start" width="180" trigger="hover">
|
|
|
<el-popover placement="bottom-start" width="180" trigger="hover">
|
|
|
<ul class="popover_ul popover_ul">
|
|
|
<ul class="popover_ul popover_ul">
|
|
@@ -509,7 +509,7 @@ |
|
|
<div class="user_info_item mainpeople_H" v-for="(user,index) in (selectedUser)"
|
|
|
<div class="user_info_item mainpeople_H" v-for="(user,index) in (selectedUser)"
|
|
|
:key="index">
|
|
|
:key="index">
|
|
|
<i class="icon font_family icon-icon_huangguan-jihuo middlehuangguan fl" title="负责人"></i>
|
|
|
<i class="icon font_family icon-icon_huangguan-jihuo middlehuangguan fl" title="负责人"></i>
|
|
|
<img v-lazy="headSrc+user.headImgUrl" alt="" class="user_info_faceImg">
|
|
|
|
|
|
|
|
|
<img :src="user.headImgUrl | resolveAvator" alt="" class="user_info_faceImg">
|
|
|
<span class="user_info_name">{{user.cnName}}</span>
|
|
|
<span class="user_info_name">{{user.cnName}}</span>
|
|
|
<el-popover placement="bottom-start" width="180" trigger="hover">
|
|
|
<el-popover placement="bottom-start" width="180" trigger="hover">
|
|
|
<ul class="popover_ul popover_ul">
|
|
|
<ul class="popover_ul popover_ul">
|
|
@@ -537,7 +537,7 @@ |
|
|
<div class="renyuanbox" v-for="(user,index) in selectedUser" :key="index">
|
|
|
<div class="renyuanbox" v-for="(user,index) in selectedUser" :key="index">
|
|
|
<div class="user_info_item" v-if="user.deptId == dept.id">
|
|
|
<div class="user_info_item" v-if="user.deptId == dept.id">
|
|
|
<!-- <i class="huangguan" @click="setManageUser(user)" title="设置负责人"></i> -->
|
|
|
<!-- <i class="huangguan" @click="setManageUser(user)" title="设置负责人"></i> -->
|
|
|
<img v-lazy="headSrc+user.headImgUrl" alt="" class="user_info_faceImg">
|
|
|
|
|
|
|
|
|
<img :src="user.headImgUrl | resolveAvator" alt="" class="user_info_faceImg">
|
|
|
<span class="user_info_name">{{user.userName}}</span>
|
|
|
<span class="user_info_name">{{user.userName}}</span>
|
|
|
<el-popover placement="bottom-start" width="180" trigger="hover">
|
|
|
<el-popover placement="bottom-start" width="180" trigger="hover">
|
|
|
<ul class="popover_ul popover_ul">
|
|
|
<ul class="popover_ul popover_ul">
|
|
@@ -599,6 +599,7 @@ |
|
|
|
|
|
|
|
|
},
|
|
|
},
|
|
|
data() {
|
|
|
data() {
|
|
|
|
|
|
const currentUser = this.$store.state.userInfo;
|
|
|
return {
|
|
|
return {
|
|
|
imgSrc: process.env.API_HOST + 'archives/cover?path=',
|
|
|
imgSrc: process.env.API_HOST + 'archives/cover?path=',
|
|
|
headSrc: process.env.API_HOST + 'archives/head?path=',
|
|
|
headSrc: process.env.API_HOST + 'archives/head?path=',
|
|
@@ -675,7 +676,7 @@ |
|
|
ischeckAll: false, //是否是全部选中
|
|
|
ischeckAll: false, //是否是全部选中
|
|
|
newProjFolderIndex: 1,
|
|
|
newProjFolderIndex: 1,
|
|
|
// projectCreaterName: sessionStorage.cnName,
|
|
|
// projectCreaterName: sessionStorage.cnName,
|
|
|
projectCreaterName: JSON.parse(sessionStorage.user).userName,
|
|
|
|
|
|
|
|
|
projectCreaterName: currentUser.cnName,
|
|
|
createDate: new Date().toLocaleDateString(),
|
|
|
createDate: new Date().toLocaleDateString(),
|
|
|
listNewFolder: [],
|
|
|
listNewFolder: [],
|
|
|
listMyPermFolders: [], //获取项目文件夹
|
|
|
listMyPermFolders: [], //获取项目文件夹
|
|
@@ -693,7 +694,7 @@ |
|
|
nowFolderIndex: '', //当前分配工作文件夹index
|
|
|
nowFolderIndex: '', //当前分配工作文件夹index
|
|
|
tempIndex: 0,
|
|
|
tempIndex: 0,
|
|
|
currSelectData: [],
|
|
|
currSelectData: [],
|
|
|
currUser:JSON.parse(sessionStorage.user),
|
|
|
|
|
|
|
|
|
currUser:currentUser,
|
|
|
isShowManager:true,
|
|
|
isShowManager:true,
|
|
|
|
|
|
|
|
|
/* */
|
|
|
/* */
|
|
@@ -1269,7 +1270,6 @@ |
|
|
*/
|
|
|
*/
|
|
|
checkDeptUserName: function(checked, item) {
|
|
|
checkDeptUserName: function(checked, item) {
|
|
|
item['selected'] = checked;
|
|
|
item['selected'] = checked;
|
|
|
debugger;
|
|
|
|
|
|
if (checked) {
|
|
|
if (checked) {
|
|
|
item.folderPerm = 1; // 默认角色为:查看和编辑
|
|
|
item.folderPerm = 1; // 默认角色为:查看和编辑
|
|
|
var valueUser = JSON.parse(JSON.stringify(item));
|
|
|
var valueUser = JSON.parse(JSON.stringify(item));
|
|
@@ -1301,39 +1301,29 @@ |
|
|
/**
|
|
|
/**
|
|
|
* 获取模板列表子节点数据
|
|
|
* 获取模板列表子节点数据
|
|
|
*/
|
|
|
*/
|
|
|
getSelectTemplateList: function(templateID) {
|
|
|
|
|
|
var thisApp = this;
|
|
|
|
|
|
this.$axios({
|
|
|
|
|
|
method: 'get',
|
|
|
|
|
|
url: encodeURI(process.env.API_HOST + "templates/nodes/" + templateID + "/" + templateID),
|
|
|
|
|
|
})
|
|
|
|
|
|
.then(response => {
|
|
|
|
|
|
thisApp.SelectTemplateNodeList = response.data;
|
|
|
|
|
|
thisApp.newProjData.listFolder = [];
|
|
|
|
|
|
for (var i = 0; i < thisApp.SelectTemplateNodeList.length; i++) {
|
|
|
|
|
|
var folder = {
|
|
|
|
|
|
"folderID": "",
|
|
|
|
|
|
"projID": "",
|
|
|
|
|
|
"superID": "",
|
|
|
|
|
|
"levelID": "",
|
|
|
|
|
|
"firstFolderID": "",
|
|
|
|
|
|
"tempNodeID": thisApp.SelectTemplateNodeList[i].nodeID,
|
|
|
|
|
|
"folderName": thisApp.SelectTemplateNodeList[i].nodeName,
|
|
|
|
|
|
"fileCount": 0,
|
|
|
|
|
|
"childCount": 0,
|
|
|
|
|
|
"modifyUserID": "",
|
|
|
|
|
|
"deleted": 0,
|
|
|
|
|
|
"default": true,
|
|
|
|
|
|
"listUser": [],
|
|
|
|
|
|
"manageUser": []
|
|
|
|
|
|
};
|
|
|
|
|
|
thisApp.newProjData.listFolder.push(folder);
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
.catch(error => {
|
|
|
|
|
|
console.log(error);
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async getSelectTemplateList(templateID) {
|
|
|
|
|
|
const { Data } = await templateService.queryTemplateNodeByTemplateId(templateID);
|
|
|
|
|
|
const headNodes = (Data.children || []);
|
|
|
|
|
|
this.newProjData.listFolder = [];
|
|
|
|
|
|
headNodes.forEach(node => {
|
|
|
|
|
|
const folder = {
|
|
|
|
|
|
folderID: "",
|
|
|
|
|
|
projID: "",
|
|
|
|
|
|
superID: "",
|
|
|
|
|
|
levelID: "",
|
|
|
|
|
|
firstFolderID: "",
|
|
|
|
|
|
tempNodeID: node.id,
|
|
|
|
|
|
folderName: node.topic,
|
|
|
|
|
|
fileCount: 0,
|
|
|
|
|
|
childCount: 0,
|
|
|
|
|
|
modifyUserID: "",
|
|
|
|
|
|
deleted: 0,
|
|
|
|
|
|
default: true,
|
|
|
|
|
|
listUser: [],
|
|
|
|
|
|
manageUser: []
|
|
|
|
|
|
};
|
|
|
|
|
|
this.newProjData.listFolder.push(folder);
|
|
|
|
|
|
});
|
|
|
},
|
|
|
},
|
|
|
/**
|
|
|
/**
|
|
|
* 设置系统封面
|
|
|
* 设置系统封面
|
|
|