You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
106 lines
4.4 KiB
106 lines
4.4 KiB
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: "/FengHuang/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 newid = 2;
|
|
var url = "/FengHuang/html/pages/projectManagement/zbzx/xmdb/cszjfp/projectList.html?step_code=0201";
|
|
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 newid = 3;
|
|
var url = "/FengHuang/html/pages/projectManagement/zbzx/xmdb/jsfafs/projectList.html?step_code=0205_1";
|
|
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 = "/FengHuang/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 newid = 4;
|
|
var url = "/FengHuang/html/pages/projectManagement/zbzx/xmdb/yszjfp/projectList.html?step_code=0306";
|
|
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 });
|
|
}); |