|
|
|
layui.use(['table', 'laytpl', 'form'], function () {
|
|
|
|
var table = layui.table
|
|
|
|
, laytpl = layui.laytpl
|
|
|
|
|
|
|
|
, form = layui.form;
|
|
|
|
|
|
|
|
|
|
|
|
var tjData;
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
type: "GET",
|
|
|
|
dataType: "json",
|
|
|
|
async: false,
|
|
|
|
url: "/dsBase/gtzz/syTj",
|
|
|
|
success: function (res) {
|
|
|
|
tjData = res;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
var tjTopFourStepTpl = tjTopFourStepScript.innerHTML,
|
|
|
|
tjTopFourStepView = document.getElementById('tjTopFourStepView');
|
|
|
|
laytpl(tjTopFourStepTpl).render(tjData.tjTopFourStep[0], function (html) {
|
|
|
|
tjTopFourStepView.innerHTML = html;
|
|
|
|
});
|
|
|
|
|
|
|
|
var tjSubjectSummaryCurrentYearTpl = tjSubjectSummaryCurrentYearScript.innerHTML,
|
|
|
|
tjSubjectSummaryCurrentYearView = document.getElementById('tjSubjectSummaryCurrentYearView');
|
|
|
|
laytpl(tjSubjectSummaryCurrentYearTpl).render(tjData.tjSubjectSummaryCurrentYear, function (html) {
|
|
|
|
tjSubjectSummaryCurrentYearView.innerHTML = html;
|
|
|
|
});
|
|
|
|
|
|
|
|
var tjSubjectWaitStepTpl = tjSubjectWaitStepScript.innerHTML,
|
|
|
|
tjSubjectWaitStepView = document.getElementById('tjSubjectWaitStepView');
|
|
|
|
laytpl(tjSubjectWaitStepTpl).render(tjData.tjSubjectWaitStep, function (html) {
|
|
|
|
tjSubjectWaitStepView.innerHTML = html;
|
|
|
|
});
|
|
|
|
|
|
|
|
table.render({
|
|
|
|
elem: '#schoolTableView'
|
|
|
|
, data: tjData.tjFenBu
|
|
|
|
, cols: [[
|
|
|
|
{ field: 'org_name', title: '项目单位' }
|
|
|
|
, { field: 'subject_count', width: "15%", title: '项目总量', align: 'center' }
|
|
|
|
, { field: 'finish_count', width: "15%", title: '完成率', align: 'center' }
|
|
|
|
, { field: 'close_count', width: "15%", title: '项目中止', align: 'center' }
|
|
|
|
, { field: 'yq_count', width: "15%", title: '逾期次数', align: 'center' }
|
|
|
|
, { field: 'money', width: "15%", title: '预算总额(万元)', align: 'center' }
|
|
|
|
]]
|
|
|
|
, limit: 100
|
|
|
|
, height: "360"
|
|
|
|
, autoSort: false //禁用前端自动排序
|
|
|
|
, skin: 'line' //表格风格
|
|
|
|
, even: true
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
// 初审专家分配
|
|
|
|
window.cszjfp = function () {
|
|
|
|
var id = "127";
|
|
|
|
var url = "/dsBase/html/pages/projectManagement/zbzx/xmdb/cszjfp/questList.html?step_code=0203";
|
|
|
|
// parent.layui.admin.closeTab(id);
|
|
|
|
parent.layui.admin.addTab(id, "初审专家分配", url);
|
|
|
|
// window.parent.parent.layui.element.tabAdd('wenav_tab', {
|
|
|
|
// title: '初审专家分配',
|
|
|
|
// content: '<iframe tab-id="' + newid + '" frameborder="0" src="' + url + '" scrolling="yes" class="weIframe"></iframe>',
|
|
|
|
// id: newid
|
|
|
|
// });
|
|
|
|
// window.parent.parent.layui.element.tabChange('wenav_tab', newid);
|
|
|
|
}
|
|
|
|
|
|
|
|
// 技术方案复审
|
|
|
|
window.jsfafs = function () {
|
|
|
|
var id = "142";
|
|
|
|
var url = "/dsBase/html/pages/projectManagement/zbzx/xmdb/jsfafs/projectList.html?step_code=0205_1";
|
|
|
|
// parent.layui.admin.closeTab(id);
|
|
|
|
parent.layui.admin.addTab(id, "技术方案复审", url);
|
|
|
|
// window.parent.parent.layui.element.tabAdd('wenav_tab', {
|
|
|
|
// title: '技术方案复审',
|
|
|
|
// content: '<iframe tab-id="' + newid + '" frameborder="0" src="' + url + '" scrolling="yes" class="weIframe"></iframe>',
|
|
|
|
// id: newid
|
|
|
|
// });
|
|
|
|
// window.parent.parent.layui.element.tabChange('wenav_tab', newid);
|
|
|
|
}
|
|
|
|
|
|
|
|
// 监理公司分配
|
|
|
|
window.jlgsfp = function () {
|
|
|
|
var newid = 5;
|
|
|
|
var url = "/dsBase/html/pages/projectManagement/zbzx/xmdb/jlgsfp/projectList.html?step_code=0206";
|
|
|
|
window.parent.parent.layui.element.tabAdd('wenav_tab', {
|
|
|
|
title: '监理公司分配',
|
|
|
|
content: '<iframe tab-id="' + newid + '" frameborder="0" src="' + url + '" scrolling="yes" class="weIframe"></iframe>',
|
|
|
|
id: newid
|
|
|
|
});
|
|
|
|
window.parent.parent.layui.element.tabChange('wenav_tab', newid);
|
|
|
|
}
|
|
|
|
|
|
|
|
// 验收专家分配
|
|
|
|
window.yszjfp = function () {
|
|
|
|
var id = "141";
|
|
|
|
var url = "/dsBase/html/pages/projectManagement/zbzx/xmdb/cszjfp/questList.html?step_code=0307";
|
|
|
|
// parent.layui.admin.closeTab(id);
|
|
|
|
parent.layui.admin.addTab(id, "验收专家分配", url);
|
|
|
|
// window.parent.parent.layui.element.tabAdd('wenav_tab', {
|
|
|
|
// title: '验收专家分配',
|
|
|
|
// content: '<iframe tab-id="' + newid + '" frameborder="0" src="' + url + '" scrolling="yes" class="weIframe"></iframe>',
|
|
|
|
// id: newid
|
|
|
|
// });
|
|
|
|
// window.parent.parent.layui.element.tabChange('wenav_tab', newid);
|
|
|
|
}
|
|
|
|
|
|
|
|
$("#gundong").scrollForever({ dir: "top", container: ".gdContainer", inner: ".gdInner", continuous: false, num: 2, delayTime: 3000 });
|
|
|
|
});
|