|
@@ -35,7 +35,7 @@
|
|
|
|
|
|
</el-row>
|
|
</el-row>
|
|
<el-row :gutter="10">
|
|
<el-row :gutter="10">
|
|
- <el-col :span="5" ><span class="gray_label">项目级别: </span></el-col><el-col :span="7" ><span >{{levelTxt[project.level]}}</span></el-col>
|
|
|
|
|
|
+ <el-col :span="5" ><span class="gray_label">项目级别: </span></el-col><el-col :span="7" ><span >{{levelTextShow(project.level)}}</span></el-col>
|
|
<el-col :span="5" ><span class="gray_label">创建日期:</span></el-col><el-col :span="7" ><span>{{project.createDate}}</span></el-col>
|
|
<el-col :span="5" ><span class="gray_label">创建日期:</span></el-col><el-col :span="7" ><span>{{project.createDate}}</span></el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row :gutter="10">
|
|
<el-row :gutter="10">
|
|
@@ -711,7 +711,7 @@
|
|
},
|
|
},
|
|
filters: {
|
|
filters: {
|
|
numberToCurrency(value) {
|
|
numberToCurrency(value) {
|
|
- console.log('info numberToCurrency='+value);
|
|
|
|
|
|
+ // console.log('info numberToCurrency='+value);
|
|
if (!value || value=='-') return '0.00'
|
|
if (!value || value=='-') return '0.00'
|
|
value = value.toFixed(2)
|
|
value = value.toFixed(2)
|
|
const intPart = Math.trunc(value)
|
|
const intPart = Math.trunc(value)
|
|
@@ -726,6 +726,13 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ levelTextShow(lev){
|
|
|
|
+ if(this.user.timeType.projectLevelState == 1){
|
|
|
|
+ return this.levelList.filter(item => item.id == lev)[0].projectLevelName
|
|
|
|
+ }else{
|
|
|
|
+ return this.levelTxt[lev]
|
|
|
|
+ }
|
|
|
|
+ },
|
|
// 提交关键节点
|
|
// 提交关键节点
|
|
submitKeyNodeaddForm() {
|
|
submitKeyNodeaddForm() {
|
|
this.http.post('/project-key-nodes/edit',{
|
|
this.http.post('/project-key-nodes/edit',{
|
|
@@ -881,7 +888,7 @@
|
|
res => {
|
|
res => {
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|
|
this.yonghuUser = res.data
|
|
this.yonghuUser = res.data
|
|
- console.log(this.yonghuUser)
|
|
|
|
|
|
+ // console.log(this.yonghuUser)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
error => {
|
|
error => {
|
|
@@ -1359,7 +1366,7 @@
|
|
this.addLoading = true;
|
|
this.addLoading = true;
|
|
let formData = new FormData();
|
|
let formData = new FormData();
|
|
formData.append("id", this.curProjectId);
|
|
formData.append("id", this.curProjectId);
|
|
- console.log(this.addMembForm.userId, '要传过去的数据')
|
|
|
|
|
|
+ // console.log(this.addMembForm.userId, '要传过去的数据')
|
|
if(this.addMembForm.userId.length != 0) {
|
|
if(this.addMembForm.userId.length != 0) {
|
|
for(var j in this.addMembForm.userId) {
|
|
for(var j in this.addMembForm.userId) {
|
|
formData.append("userId", this.addMembForm.userId[j]);
|
|
formData.append("userId", this.addMembForm.userId[j]);
|
|
@@ -1428,7 +1435,7 @@
|
|
//选择参与人
|
|
//选择参与人
|
|
changeParticipator() {
|
|
changeParticipator() {
|
|
//检查是否在参与人中,如果没有需要加入到参与人中
|
|
//检查是否在参与人中,如果没有需要加入到参与人中
|
|
- console.log(this.addForm.userId);
|
|
|
|
|
|
+ // console.log(this.addForm.userId);
|
|
var find = false;
|
|
var find = false;
|
|
this.project.participationList = [];
|
|
this.project.participationList = [];
|
|
this.addForm.userId.forEach(u=>{
|
|
this.addForm.userId.forEach(u=>{
|
|
@@ -1436,7 +1443,7 @@
|
|
// var findUser = this.users.filter(au=>au.id == u);
|
|
// var findUser = this.users.filter(au=>au.id == u);
|
|
this.project.participationList.push(findUser);
|
|
this.project.participationList.push(findUser);
|
|
})
|
|
})
|
|
- console.log(this.project.participationList, '看看')
|
|
|
|
|
|
+ // console.log(this.project.participationList, '看看')
|
|
},
|
|
},
|
|
getUsers() {
|
|
getUsers() {
|
|
// this.http.post(this.port.manage.list, {
|
|
// this.http.post(this.port.manage.list, {
|
|
@@ -1560,7 +1567,7 @@
|
|
}
|
|
}
|
|
listId.toString()
|
|
listId.toString()
|
|
listName.toString()
|
|
listName.toString()
|
|
- console.log(listId, listName)
|
|
|
|
|
|
+ // console.log(listId, listName)
|
|
formData.append("associateDegrees", listId)
|
|
formData.append("associateDegrees", listId)
|
|
formData.append("associateDegreeNames", listName)
|
|
formData.append("associateDegreeNames", listName)
|
|
// 判断公司id是否等于 936
|
|
// 判断公司id是否等于 936
|
|
@@ -1623,7 +1630,7 @@
|
|
this.$set(this.addForm,'outputValue',this.addForm.outputValue ? this.addForm.outputValue : null)
|
|
this.$set(this.addForm,'outputValue',this.addForm.outputValue ? this.addForm.outputValue : null)
|
|
this.addForm.userId = arr
|
|
this.addForm.userId = arr
|
|
this.addFormVisible = true;
|
|
this.addFormVisible = true;
|
|
- console.log(this.addForm, 123)
|
|
|
|
|
|
+ // console.log(this.addForm, 123)
|
|
var arr = []
|
|
var arr = []
|
|
// if(this.addForm.associateDegrees != null) {
|
|
// if(this.addForm.associateDegrees != null) {
|
|
if(this.addForm.associateDegrees.length > 0) {
|
|
if(this.addForm.associateDegrees.length > 0) {
|
|
@@ -1656,8 +1663,8 @@
|
|
array.push(parseInt(arrList[i]));
|
|
array.push(parseInt(arrList[i]));
|
|
}
|
|
}
|
|
this.$set(this.addForm,'deptId', array.reverse())
|
|
this.$set(this.addForm,'deptId', array.reverse())
|
|
- console.log(this.auseList, '看看是个什么值')
|
|
|
|
- console.log(this.addForm, '看看是个什么值')
|
|
|
|
|
|
+ // console.log(this.auseList, '看看是个什么值')
|
|
|
|
+ // console.log(this.addForm, '看看是个什么值')
|
|
},
|
|
},
|
|
showEditPar() {
|
|
showEditPar() {
|
|
this.addForm = JSON.parse(JSON.stringify(this.project));
|
|
this.addForm = JSON.parse(JSON.stringify(this.project));
|
|
@@ -1669,13 +1676,13 @@
|
|
arr.push(list[j].id)
|
|
arr.push(list[j].id)
|
|
}
|
|
}
|
|
this.addForm.userId = arr;
|
|
this.addForm.userId = arr;
|
|
- console.log(this.addForm.userId );
|
|
|
|
|
|
+ // console.log(this.addForm.userId );
|
|
|
|
|
|
this.pVisible = true;
|
|
this.pVisible = true;
|
|
|
|
|
|
},
|
|
},
|
|
showEditParKeyNode() {
|
|
showEditParKeyNode() {
|
|
- console.log('出发了')
|
|
|
|
|
|
+ // console.log('出发了')
|
|
this.keyNodeIsShow = true
|
|
this.keyNodeIsShow = true
|
|
this.projectKeyNodesData = JSON.parse(JSON.stringify(this.keyNodesList))
|
|
this.projectKeyNodesData = JSON.parse(JSON.stringify(this.keyNodesList))
|
|
},
|
|
},
|
|
@@ -1709,14 +1716,14 @@
|
|
this.http.post('/pdf-file/getProjectFile', {fileId: row.id},
|
|
this.http.post('/pdf-file/getProjectFile', {fileId: row.id},
|
|
res => {
|
|
res => {
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|
|
- console.log(res.data+'----'+row.documentName);
|
|
|
|
|
|
+ // console.log(res.data+'----'+row.documentName);
|
|
let routeUrl = this.$router.resolve({
|
|
let routeUrl = this.$router.resolve({
|
|
path: "/viewonline",
|
|
path: "/viewonline",
|
|
params: {serverFname:res.data, fileName:row.documentName}
|
|
params: {serverFname:res.data, fileName:row.documentName}
|
|
});
|
|
});
|
|
sessionStorage.setItem("serverFname",res.data);
|
|
sessionStorage.setItem("serverFname",res.data);
|
|
sessionStorage.setItem("fileName",row.documentName);
|
|
sessionStorage.setItem("fileName",row.documentName);
|
|
- console.log(routeUrl.href);
|
|
|
|
|
|
+ // console.log(routeUrl.href);
|
|
window.open(routeUrl.href, '_blank');
|
|
window.open(routeUrl.href, '_blank');
|
|
} else {
|
|
} else {
|
|
this.$message({
|
|
this.$message({
|
|
@@ -1749,7 +1756,7 @@
|
|
},
|
|
},
|
|
res => {
|
|
res => {
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|
|
- console.log(res.data, '里程碑数据')
|
|
|
|
|
|
+ // console.log(res.data, '里程碑数据')
|
|
for(var i in res.data) {
|
|
for(var i in res.data) {
|
|
// if(res.data[i].taskStatus == 1) {
|
|
// if(res.data[i].taskStatus == 1) {
|
|
// res.data[i].taskTex = '完成于 ' + res.data[i].finishDate
|
|
// res.data[i].taskTex = '完成于 ' + res.data[i].finishDate
|
|
@@ -1853,8 +1860,8 @@
|
|
} else {
|
|
} else {
|
|
this.project = res.data;
|
|
this.project = res.data;
|
|
}
|
|
}
|
|
- console.log('看看值')
|
|
|
|
- console.log('test123',this.project);
|
|
|
|
|
|
+ // console.log('看看值')
|
|
|
|
+ // console.log('test123',this.project);
|
|
this.participator = this.project.participationList;
|
|
this.participator = this.project.participationList;
|
|
} else {
|
|
} else {
|
|
this.$message({
|
|
this.$message({
|
|
@@ -1940,7 +1947,7 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
- console.log('created===');
|
|
|
|
|
|
+ // console.log('created===');
|
|
let height = window.innerHeight;
|
|
let height = window.innerHeight;
|
|
this.tableHeight = height - 160;
|
|
this.tableHeight = height - 160;
|
|
const that = this;
|
|
const that = this;
|
|
@@ -1949,7 +1956,7 @@
|
|
};
|
|
};
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
- console.log('mounted===');
|
|
|
|
|
|
+ // console.log('mounted===');
|
|
this.curProjectId = parseInt(this.$route.params.id);
|
|
this.curProjectId = parseInt(this.$route.params.id);
|
|
this.getDepartment();
|
|
this.getDepartment();
|
|
this.getUsers();
|
|
this.getUsers();
|
|
@@ -1963,9 +1970,9 @@
|
|
this.userssHu()
|
|
this.userssHu()
|
|
this.yanjiuzx()
|
|
this.yanjiuzx()
|
|
this.getProjectLevel()
|
|
this.getProjectLevel()
|
|
- if(this.user.timeType.projectWithDept) {
|
|
|
|
- this.getProjectLevel()
|
|
|
|
- }
|
|
|
|
|
|
+ // if(this.user.timeType.projectWithDept) {
|
|
|
|
+ // this.getProjectLevel()
|
|
|
|
+ // }
|
|
if(this.user.companyId == '936') {
|
|
if(this.user.companyId == '936') {
|
|
this.getKeyNodes()
|
|
this.getKeyNodes()
|
|
}
|
|
}
|