8812f2e6 by weimo934

修改点击进入详情页

1 parent 57d903bc
......@@ -14,17 +14,6 @@ function setLayuiData(_data, type, version) {
]];
if (orign == 'ghsc') {
// 规划审查 已办项目 表头设置
// "<th width=\"5%\"><div class=\"tableCell\">状态</div></th> " +
// "<th width=\"8%\"><div class=\"tableCell\">项目编号</div></th>" +
// "<th width=\"8%\"><div class=\"tableCell\">规划类型</div></th>" + // --
// "<th width=\"30%\"><div class=\"tableCell\">项目名称</div></th>" +
// "<th width=\"10%\"><div class=\"tableCell\">行政辖区</div></th>" + //"<th width=\"12%\"><div class=\"tableCell\">业务类型</div></th>" +
// "<th width=\"10%\"><div class=\"tableCell\">项目版本</div></th>" + //"<th width=\"8%\"><div class=\"tableCell\">发起部门</div></th>" +
// "<th width=\"10%\"><div class=\"tableCell\">当前环节</div></th>" + // --
// "<th width=\"8%\"><div class=\"tableCell\">发起部门</div></th>" + // --
// "<th width=\"8%\"><div class=\"tableCell\">报送日期</div></th>" +
// isType; // 1 数据申请 2 成果审查
if(isType == 1) {
// -- 数据申请
......@@ -42,20 +31,7 @@ function setLayuiData(_data, type, version) {
, { field: 'ACTIVITYNAME', title: '当前环节', width: "10%", event: "eventProjectstatus" }
, { field: 'BINDINGASSIGNEE', title: '申请部门', width: "8%", event: "eventInterconnect" }
, { field: 'REGISTERTIME', title: '申请时间', width: "10%", event: "eventRegistertime", templet: function (d) { return d.REGISTERTIME ? d.REGISTERTIME.substring(0, 16) : ''} }
// , { field: 'FLOWNAME', title: '业务类型', width: "12%", event: "eventflowname" }
]];
// "<th width=\"1%\" class=\"checkboxCls\">" + '<input class="parent_check" type="checkbox" name="" lay-skin="primary" title="" >' + "</th>" +
// "<th width=\"3%\" class=\"statusIcon\"></th>" +
// "<th width=\"5%\"><div class=\"tableCell\">状态</div></th> " +
// "<th width=\"8%\"><div class=\"tableCell\">项目编号</div></th>" +
//
// "<th width=\"8%\"><div class=\"tableCell\">数据类型</div></th>" + // --
// "<th width=\"20%\"><div class=\"tableCell\">数据用途</div></th>" +
// "<th width=\"10%\"><div class=\"tableCell\">密级</div></th>" + //"<th width=\"12%\"><div class=\"tableCell\">业务类型</div></th>" +
// // "<th width=\"10%\"><div class=\"tableCell\">项目版本</div></th>" + //"<th width=\"8%\"><div class=\"tableCell\">发起部门</div></th>" +
// "<th width=\"10%\"><div class=\"tableCell\">当前环节</div></th>" + // --
// "<th width=\"8%\"><div class=\"tableCell\">申请部门</div></th>" + // --
// "<th width=\"11%\"><div class=\"tableCell\">申请日期</div></th>" +
}else {
layuiTableCol = [[ //标题栏
{ field: 'CHECKBOX', type: 'checkbox', title: '复选框', unresize: false, event: "eventCheckbox", width: "31" }
......
......@@ -2138,6 +2138,7 @@ function workingSeeDetail(td) {
}
// end
//不再验证会议状态
console.log(data)
openApproveDetail(data);
/*if(data.MEETINGPROJECTSTATE!=null && data.MEETINGPROJECTSTATE!="" && parent.listName!="项目查询" && parent.listName!="已办项目"){
parent.layer?parent.layer.msg("项目正在"+data.MEETINGPROJECTSTATE, {icon : 7}):opener.parent.layer.msg("项目正在"+data.MEETINGPROJECTSTATE, {icon : 7});
......
......@@ -89,7 +89,41 @@ var self = new Vue({
},
clickData(row, column, event) {
// console.log(row, column, event)
alert(1111)
this.jumpdetailPage(row);
},// 详情
jumpdetailPage(data) {
var taskid = data.TASKID;
var detailType = data.detailType;
var projectid = data.PROJECTID;
var flowInstanceId =data.INSTANCEID;
var titleEncode = encodeURI(encodeURI(data.PROJECTNAME));
var stats = data.stats ? data.stats : '';
var projecttype = data.FLOWNAME;
var PROJECTSTATUS = encodeURI(encodeURI(data.PROJECTSTATUS));
var FLOWREVISIONID = data.FLOWREVISIONID;
var projectcode = data.PROJECTCODE;
var flowItemTypeKvStr = data.FLOWITEMTYPE?"&flowItemTypeId=" + data.FLOWITEMTYPE:"";
var version = data.FLOWVERSION;
var layerid="";
var coverage="";
var url = CONF_FRONT_SERVERURL
+ 'view/projecttask/detailproject.jsp?projectid=' + 20190 + "&referer=''&stats="
+ stats +"&projectcode="+projectcode+"&taskId=" + taskid + "&flowInstanceId=" + flowInstanceId+'&titleEncode='
+ titleEncode + "&projectStatus=" + PROJECTSTATUS+"&flowRevisionId="+FLOWREVISIONID+flowItemTypeKvStr+"&FLOWVERSION="+version+"&detailType="+detailType;
detailPage = window.open(this.handleJumpUrl(url));
parent.saveOpenNew?parent.saveOpenNew(detailPage):sreachparent(opener,"saveOpenNew",detailPage);
},
openApproveDetail(data) {
var type = this.params.rwListIndex;
if(type == "项目管理") data.stats = "Manage";
else if(type == "项目查询") data.stats = "search" ;
else if(type == "待办项目") data.stats = "projecting";
else if(type == "已办项目") data.stats = "dealedproject";
// create by zys start
else if(type == 0) data.stats = "projecting"; // 待办
else if(type == 1) data.stats = "dealedproject"; // 已办
this.jumpdetailPage(data);
},
openHandleJumpUrl(flowId, itemTypeId, _stats = 'create') {
// debugger
......
......@@ -74,7 +74,7 @@
<div style="line-height: 37px;margin-left: -100px">
<el-button v-show="isActive == 3" type ="primary" size="mini" @click="openHandleJumpUrl('t1001_8a8610de737b99270173937337e00133','1')">添加</el-button>
<el-button v-show="isActive == 3" type ="primary" size="mini">删除</el-button>
<el-button v-show="isActive == 5" type ="primary" size="mini" @click="openHandleJumpUrl('t1001_8a8610de737b99270173937337e00133','1')">添加</el-button>
<el-button v-show="isActive == 5" type ="primary" size="mini" @click="openHandleJumpUrl('t1001_8a8610d86125b9a801612600a4c60003','1')">添加</el-button>
<el-button v-show="isActive == 5" type ="primary" size="mini">删除</el-button>
</div>
<div style="float: right">
......
......@@ -78,9 +78,9 @@
<span class="optspan" :class="isActive==5? 'select':''" @click="click(5)">转办</span>
</div>
<div style="line-height: 37px;margin-left: -100px">
<el-button v-show="isActive == 3" type ="primary" size="mini" @click="openHandleJumpUrl('t1001_8a8610de737b99270173937337e00133','1')">添加</el-button>
<!--<el-button v-show="isActive == 3" type ="primary" size="mini" @click="openHandleJumpUrl('t1001_8a8610de737b99270173937337e00133','1')">添加</el-button>-->
<el-button v-show="isActive == 3" type ="primary" size="mini">删除</el-button>
<el-button v-show="isActive == 5" type ="primary" size="mini" @click="openHandleJumpUrl('t1001_8a8610de737b99270173937337e00133','1')">添加</el-button>
<!-- <el-button v-show="isActive == 5" type ="primary" size="mini" @click="openHandleJumpUrl('t1001_8a8610de737b99270173937337e00133','1')">添加</el-button>-->
<el-button v-show="isActive == 5" type ="primary" size="mini">删除</el-button>
</div>
<div style="float: right">
......
......@@ -94,7 +94,7 @@
<el-row :gutter="20">
<el-col :span="4">
<!-- <button class="btns">查询</button>-->
<button class="btns" @click="openHandleJumpUrl('t1001_8a8610de737b99270173937337e00133','1')">添加</button>
<!-- <button class="btns" @click="openHandleJumpUrl('t1001_8a8610de737b99270173937337e00133','1')">添加</button>-->
<button class="btns">删除</button>
</el-col>
<el-col :span="6">
......