|
@@ -35,13 +35,13 @@
|
|
|
<span class="button-card new-roman" @click="tabNumClick('1')">{{cbToXjNum}}</span></button>
|
|
|
<%-- <button class="btn btn1" :class="{active: tabActive === 2}" @click="onChangeActive(2)">前期手续办理超期--%>
|
|
|
<%-- <span class="button-card" @click="ct('','','','','2','')">{{preNum}}</span></button>--%>
|
|
|
- <button class="btn btn1" :class="{active: tabActive === 3}" @click="onChangeActive(3,'2')">新建库
|
|
|
+ <button class="btn btn1" :class="{active: tabActive === 2}" @click="onChangeActive(2,'2')">新建库
|
|
|
<%-- <span class="button-card new-roman" @click="ct('','','','','3','')">{{xjToZjNum}}</span></button>--%>
|
|
|
<span class="button-card new-roman" @click="tabNumClick('2')">{{xjToZjNum}}</span></button>
|
|
|
- <button class="btn btn1" :class="{active: tabActive === 4}" @click="onChangeActive(4,'3')">在建库
|
|
|
+ <button class="btn btn1" :class="{active: tabActive === 3}" @click="onChangeActive(3,'3')">在建库
|
|
|
<%-- <span class="button-card new-roman" @click="ct('','','','','4','')">{{zjToTcNum}}</span></button>--%>
|
|
|
<span class="button-card new-roman" @click="tabNumClick('3')">{{zjToTcNum}}</span></button>
|
|
|
- <button class="btn btn1" :class="{active: tabActive === 5}" @click="onChangeActive(5,'9')">投产库
|
|
|
+ <button class="btn btn1" :class="{active: tabActive === 4}" @click="onChangeActive(4,'9')">投产库
|
|
|
<%-- <span class="button-card new-roman" @click="ct('','','','','5','')">{{tcToRgNum}}</span></button>--%>
|
|
|
<span class="button-card new-roman" @click="tabNumClick('9')">{{tcToRgNum}}</span></button>
|
|
|
<button class="btn btn2" :class="{active: tabActive === 6}" @click="onChangeActive(6)">项目月报超期
|
|
@@ -345,7 +345,7 @@
|
|
|
},
|
|
|
mounted: function () {
|
|
|
this.init()
|
|
|
- window.planDetail = this.detailPlan;
|
|
|
+ // window.planDetail = this.detailPlan;
|
|
|
window.showImage = this.showImage;
|
|
|
},
|
|
|
methods: {
|
|
@@ -354,21 +354,24 @@
|
|
|
window.location.href = App.getUrl(url);
|
|
|
},
|
|
|
itemClick(subjectId,indusKind,scale){
|
|
|
- // ct: function (subjectId, sourceId, mainId, hyfl, index,code) {
|
|
|
let index = this.tabActive;
|
|
|
- const tabParam = {
|
|
|
- 1: { status: "1" },
|
|
|
- 2: { status: "2" },
|
|
|
- 3: { status: "3" },
|
|
|
- 4: { status: "9" },
|
|
|
- };
|
|
|
- const param = tabParam[index] || tabParam[1];
|
|
|
- let url = "/problem/info/redLight?status=" + param.status
|
|
|
- + "&subjectId=" + subjectId
|
|
|
- + "&indusKind=" + indusKind
|
|
|
- + "&scale=" + scale
|
|
|
- + "&lastUrl=" + window.location.href;
|
|
|
- window.location.href = App.getUrl(url);
|
|
|
+ if (index === 6){
|
|
|
+ this.ct(subjectId,'','',indusKind,'',scale)
|
|
|
+ }else {
|
|
|
+ const tabParam = {
|
|
|
+ 1: { status: "1" },
|
|
|
+ 2: { status: "2" },
|
|
|
+ 3: { status: "3" },
|
|
|
+ 4: { status: "9" },
|
|
|
+ };
|
|
|
+ const param = tabParam[index] || tabParam[1];
|
|
|
+ let url = "/problem/info/redLight?status=" + param.status
|
|
|
+ + "&subjectId=" + subjectId
|
|
|
+ + "&indusKind=" + indusKind
|
|
|
+ + "&scale=" + scale
|
|
|
+ + "&lastUrl=" + window.location.href;
|
|
|
+ window.location.href = App.getUrl(url);
|
|
|
+ }
|
|
|
},
|
|
|
init: function () {
|
|
|
this.winH = document.body.clientHeight;
|
|
@@ -385,28 +388,28 @@
|
|
|
this.onChangeActive(1,'1');
|
|
|
this.fixedFunc();
|
|
|
},
|
|
|
- loadTable: function (data) {
|
|
|
- layui.table.render({
|
|
|
- elem: '#table1', // 指定原始表格元素选择器(推荐id选择器)
|
|
|
- even: true,
|
|
|
- cols: [[ // 设置表头
|
|
|
- {type: 'numbers', fixed: 'left', align: 'center', title: '序号', width: 50},
|
|
|
- {field: 'subName', title: '项目名称', fixed: 'left'},
|
|
|
- {field: 'preName', title: '手续名称'},
|
|
|
- {field: 'content', title: '批复单位名称'},
|
|
|
- {field: 'content', title: '办理人(批复单位)'},
|
|
|
- {field: 'content', title: '联系电话(批复单位)'},
|
|
|
- {field: 'content', title: '开办日期'},
|
|
|
- {field: 'content', title: '计划办理天数'},
|
|
|
- {
|
|
|
- title: '操作', width: 120, templet: function (row) {
|
|
|
- return '<div class="toolBar"><span onclick="planDetail(\'' + row.id + '\',\'' + row.statusSp + '\')">查看</span></div>'
|
|
|
- }
|
|
|
- }
|
|
|
- ]],
|
|
|
- data: data
|
|
|
- })
|
|
|
- },
|
|
|
+ // loadTable: function (data) {
|
|
|
+ // layui.table.render({
|
|
|
+ // elem: '#table1', // 指定原始表格元素选择器(推荐id选择器)
|
|
|
+ // even: true,
|
|
|
+ // cols: [[ // 设置表头
|
|
|
+ // {type: 'numbers', fixed: 'left', align: 'center', title: '序号', width: 50},
|
|
|
+ // {field: 'subName', title: '项目名称', fixed: 'left'},
|
|
|
+ // {field: 'preName', title: '手续名称'},
|
|
|
+ // {field: 'content', title: '批复单位名称'},
|
|
|
+ // {field: 'content', title: '办理人(批复单位)'},
|
|
|
+ // {field: 'content', title: '联系电话(批复单位)'},
|
|
|
+ // {field: 'content', title: '开办日期'},
|
|
|
+ // {field: 'content', title: '计划办理天数'},
|
|
|
+ // {
|
|
|
+ // title: '操作', width: 120, templet: function (row) {
|
|
|
+ // return '<div class="toolBar"><span onclick="planDetail(\'' + row.id + '\',\'' + row.statusSp + '\')">查看</span></div>'
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // ]],
|
|
|
+ // data: data
|
|
|
+ // })
|
|
|
+ // },
|
|
|
showImage: function (that) {
|
|
|
var imageUrl = $(that).find("img").eq(0).attr("realUrl");
|
|
|
if (imageUrl) {
|
|
@@ -451,85 +454,85 @@
|
|
|
toPre: function (id) {
|
|
|
window.open(App.getUrl("/subPreNew/todo?subId=${sunInfo.id}"));
|
|
|
},
|
|
|
- detailPlan: function (id, status) {
|
|
|
- if (status != '9') {
|
|
|
- layer.msg("该计划未竣工,请竣工后查看", {icon: 5, time: 1000});
|
|
|
- return;
|
|
|
- }
|
|
|
- window.location.href = App.getUrl("subComplete/planDetail?planId=" + id);
|
|
|
- },
|
|
|
- loadShgcTable: function () {
|
|
|
- var self = this;
|
|
|
- layui.table.render({
|
|
|
- elem: '#shgc', // 指定原始表格元素选择器(推荐id选择器)
|
|
|
- even: true,
|
|
|
- cols: [[ // 设置表头
|
|
|
- {type: 'numbers', title: '序号', width: 50},
|
|
|
- {field: 'unitName', title: '审核单位', minWidth: 100},
|
|
|
- {field: 'departName', title: '审核科室', minWidth: 100},
|
|
|
- {field: 'statusSp', title: '审核状态', minWidth: 150, templet: '#statusSp'},
|
|
|
- {field: 'dateSp', title: '审核时间', width: 150},
|
|
|
- ]],
|
|
|
- limit: self.shgc.length,
|
|
|
- data: self.shgc
|
|
|
- });
|
|
|
- },
|
|
|
- loadHzbaTable: function () {
|
|
|
- var self = this;
|
|
|
- layui.table.render({
|
|
|
- elem: '#hzba', // 指定原始表格元素选择器(推荐id选择器)
|
|
|
- even: true,
|
|
|
- cols: [[ // 设置表头
|
|
|
- {type: 'numbers', title: '序号', width: 50},
|
|
|
- {field: 'sysName', title: '工作说明', minWidth: 100},
|
|
|
- {field: 'statusName', title: '办理状况', minWidth: 100},
|
|
|
- {field: 'subUnitName', title: '批复单位', minWidth: 100},
|
|
|
- {field: 'datePlan', title: '开始办理时间', minWidth: 150},
|
|
|
- {field: 'dateConfirm', title: '实际批复时间', width: 150},
|
|
|
- {field: 'apprNo', title: '批复文号', width: 150},
|
|
|
- {field: 'fileAddre', title: '附件图片', width: 150, templet: '#imageDiv'},
|
|
|
- {field: 'fileName', title: '附件文件名称', width: 150},
|
|
|
- ]],
|
|
|
- limit: self.hzba.length,
|
|
|
- data: self.hzba
|
|
|
- });
|
|
|
- },
|
|
|
- loadKgspTable: function () {
|
|
|
- var self = this;
|
|
|
- layui.table.render({
|
|
|
- elem: '#kgsp', // 指定原始表格元素选择器(推荐id选择器)
|
|
|
- even: true,
|
|
|
- cols: [[ // 设置表头
|
|
|
- {type: 'numbers', title: '序号', width: 50},
|
|
|
- {field: 'sysName', title: '工作说明', minWidth: 100},
|
|
|
- {field: 'statusName', title: '办理状况', minWidth: 100},
|
|
|
- {field: 'subUnitName', title: '批复单位', minWidth: 100},
|
|
|
- {field: 'datePlan', title: '开始办理时间', minWidth: 150},
|
|
|
- {field: 'dateConfirm', title: '实际批复时间', width: 150},
|
|
|
- {field: 'apprNo', title: '批复文号', width: 150},
|
|
|
- {field: 'fileAddre', title: '附件图片', width: 150, templet: '#imageDiv'},
|
|
|
- {field: 'fileName', title: '附件文件名称', width: 150},
|
|
|
- ]],
|
|
|
- limit: self.kgsp.length,
|
|
|
- data: self.kgsp
|
|
|
- });
|
|
|
- },
|
|
|
- loadJgdwTable: function () {
|
|
|
- var self = this;
|
|
|
- layui.table.render({
|
|
|
- elem: '#jgdw', // 指定原始表格元素选择器(推荐id选择器)
|
|
|
- even: true,
|
|
|
- cols: [[ // 设置表头
|
|
|
- {type: 'numbers', title: '序号', width: 50},
|
|
|
- {field: 'manageName', title: '监管单位'},
|
|
|
- {field: 'departName', title: '责任科室'},
|
|
|
- {field: 'nameLead', title: '责任领导', minWidth: 200},
|
|
|
- {field: 'tel', title: '联系电话', minWidth: 200}
|
|
|
- ]],
|
|
|
- limit: self.jgdw.length,
|
|
|
- data: self.jgdw
|
|
|
- });
|
|
|
- },
|
|
|
+ // detailPlan: function (id, status) {
|
|
|
+ // if (status != '9') {
|
|
|
+ // layer.msg("该计划未竣工,请竣工后查看", {icon: 5, time: 1000});
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // window.location.href = App.getUrl("subComplete/planDetail?planId=" + id);
|
|
|
+ // },
|
|
|
+ // loadShgcTable: function () {
|
|
|
+ // var self = this;
|
|
|
+ // layui.table.render({
|
|
|
+ // elem: '#shgc', // 指定原始表格元素选择器(推荐id选择器)
|
|
|
+ // even: true,
|
|
|
+ // cols: [[ // 设置表头
|
|
|
+ // {type: 'numbers', title: '序号', width: 50},
|
|
|
+ // {field: 'unitName', title: '审核单位', minWidth: 100},
|
|
|
+ // {field: 'departName', title: '审核科室', minWidth: 100},
|
|
|
+ // {field: 'statusSp', title: '审核状态', minWidth: 150, templet: '#statusSp'},
|
|
|
+ // {field: 'dateSp', title: '审核时间', width: 150},
|
|
|
+ // ]],
|
|
|
+ // limit: self.shgc.length,
|
|
|
+ // data: self.shgc
|
|
|
+ // });
|
|
|
+ // },
|
|
|
+ // loadHzbaTable: function () {
|
|
|
+ // var self = this;
|
|
|
+ // layui.table.render({
|
|
|
+ // elem: '#hzba', // 指定原始表格元素选择器(推荐id选择器)
|
|
|
+ // even: true,
|
|
|
+ // cols: [[ // 设置表头
|
|
|
+ // {type: 'numbers', title: '序号', width: 50},
|
|
|
+ // {field: 'sysName', title: '工作说明', minWidth: 100},
|
|
|
+ // {field: 'statusName', title: '办理状况', minWidth: 100},
|
|
|
+ // {field: 'subUnitName', title: '批复单位', minWidth: 100},
|
|
|
+ // {field: 'datePlan', title: '开始办理时间', minWidth: 150},
|
|
|
+ // {field: 'dateConfirm', title: '实际批复时间', width: 150},
|
|
|
+ // {field: 'apprNo', title: '批复文号', width: 150},
|
|
|
+ // {field: 'fileAddre', title: '附件图片', width: 150, templet: '#imageDiv'},
|
|
|
+ // {field: 'fileName', title: '附件文件名称', width: 150},
|
|
|
+ // ]],
|
|
|
+ // limit: self.hzba.length,
|
|
|
+ // data: self.hzba
|
|
|
+ // });
|
|
|
+ // },
|
|
|
+ // loadKgspTable: function () {
|
|
|
+ // var self = this;
|
|
|
+ // layui.table.render({
|
|
|
+ // elem: '#kgsp', // 指定原始表格元素选择器(推荐id选择器)
|
|
|
+ // even: true,
|
|
|
+ // cols: [[ // 设置表头
|
|
|
+ // {type: 'numbers', title: '序号', width: 50},
|
|
|
+ // {field: 'sysName', title: '工作说明', minWidth: 100},
|
|
|
+ // {field: 'statusName', title: '办理状况', minWidth: 100},
|
|
|
+ // {field: 'subUnitName', title: '批复单位', minWidth: 100},
|
|
|
+ // {field: 'datePlan', title: '开始办理时间', minWidth: 150},
|
|
|
+ // {field: 'dateConfirm', title: '实际批复时间', width: 150},
|
|
|
+ // {field: 'apprNo', title: '批复文号', width: 150},
|
|
|
+ // {field: 'fileAddre', title: '附件图片', width: 150, templet: '#imageDiv'},
|
|
|
+ // {field: 'fileName', title: '附件文件名称', width: 150},
|
|
|
+ // ]],
|
|
|
+ // limit: self.kgsp.length,
|
|
|
+ // data: self.kgsp
|
|
|
+ // });
|
|
|
+ // },
|
|
|
+ // loadJgdwTable: function () {
|
|
|
+ // var self = this;
|
|
|
+ // layui.table.render({
|
|
|
+ // elem: '#jgdw', // 指定原始表格元素选择器(推荐id选择器)
|
|
|
+ // even: true,
|
|
|
+ // cols: [[ // 设置表头
|
|
|
+ // {type: 'numbers', title: '序号', width: 50},
|
|
|
+ // {field: 'manageName', title: '监管单位'},
|
|
|
+ // {field: 'departName', title: '责任科室'},
|
|
|
+ // {field: 'nameLead', title: '责任领导', minWidth: 200},
|
|
|
+ // {field: 'tel', title: '联系电话', minWidth: 200}
|
|
|
+ // ]],
|
|
|
+ // limit: self.jgdw.length,
|
|
|
+ // data: self.jgdw
|
|
|
+ // });
|
|
|
+ // },
|
|
|
changeSide() {
|
|
|
this.collapse = !this.collapse
|
|
|
},
|
|
@@ -595,60 +598,101 @@
|
|
|
|
|
|
// tab上的数字点击跳转
|
|
|
ct: function (subjectId, sourceId, mainId, hyfl, index,code) {
|
|
|
- // window.event? window.event.cancelBubble = true : e.stopPropagation();
|
|
|
- // console.log('ct被点击了');
|
|
|
- var self = this;
|
|
|
- var url = "/problem/info/preWarn";
|
|
|
- console.log(index);
|
|
|
- if (index !== undefined && index != "") {
|
|
|
- if (index == 1) {
|
|
|
- url = "/problem/info/cbToXjWarn?subjectId=&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&code=" + code +"&lastUrl=" + window.location.href;
|
|
|
- } else if (index == 2) {
|
|
|
- url = "/problem/info/preWarn?subjectId=&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&code=" + code +"&lastUrl=" + window.location.href;
|
|
|
- } else if (index == 3) {
|
|
|
- url = "/problem/info/openWarn?subjectId=&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&code=" + code +"&lastUrl=" + window.location.href;
|
|
|
- } else if (index == 4) {
|
|
|
- url = "/problem/info/endWarn?subjectId=&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&code=" + code +"&lastUrl=" + window.location.href;
|
|
|
- } else if (index == 5) {
|
|
|
- url = "/problem/info/pldWarn?subjectId=&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&code=" + code +"&lastUrl=" + window.location.href;
|
|
|
- } else if (index == 6) {
|
|
|
- url = "/problem/info/monthWarn?subjectId=&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&code=" + code +"&lastUrl=" + window.location.href;
|
|
|
+ const self = this;
|
|
|
+ const baseUrls = {
|
|
|
+ 1: "/problem/info/cbToXjWarn",
|
|
|
+ 2: "/problem/info/preWarn",
|
|
|
+ 3: "/problem/info/openWarn",
|
|
|
+ 4: "/problem/info/endWarn",
|
|
|
+ 5: "/problem/info/pldWarn",
|
|
|
+ 6: "/problem/info/monthWarn"
|
|
|
+ };
|
|
|
|
|
|
- }
|
|
|
+ let subjectValue = "";
|
|
|
+ if (mainId != null && mainId !== undefined && mainId !== '') {
|
|
|
+ subjectValue = self.quyuListTab[self.chooseNum]?.number || "";
|
|
|
} else {
|
|
|
- if (mainId != null && mainId != undefined && mainId != '') {
|
|
|
- if (self.tabActive == 1) {
|
|
|
- url = "/problem/info/cbToXjWarn?subjectId="+ self.quyuListTab[self.chooseNum].number +"&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&code=" + code +"&lastUrl=" + window.location.href;
|
|
|
- } else if (self.tabActive == 2) {
|
|
|
- url = "/problem/info/preWarn?subjectId="+ self.quyuListTab[self.chooseNum].number +"&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&code=" + code +"&lastUrl=" + window.location.href;
|
|
|
- } else if (self.tabActive == 3) {
|
|
|
- url = "/problem/info/openWarn?subjectId=" + self.quyuListTab[self.chooseNum].number + "&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&code=" + code +"&lastUrl=" + window.location.href;
|
|
|
- } else if (self.tabActive == 4) {
|
|
|
- url = "/problem/info/endWarn?subjectId=" + self.quyuListTab[self.chooseNum].number + "&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&code=" + code +"&lastUrl=" + window.location.href;
|
|
|
- } else if (self.tabActive == 5) {
|
|
|
- url = "/problem/info/pldWarn?subjectId=" + self.quyuListTab[self.chooseNum].number + "&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&code=" + code +"&lastUrl=" + window.location.href;
|
|
|
- } else if (self.tabActive == 6) {
|
|
|
- //url = "/problem/info/problemWarn?subjectId=" + self.quyuListTab[self.chooseNum].number + "&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&lastUrl=" + window.location.href;
|
|
|
- url = "/problem/info/monthWarn?subjectId=" + self.quyuListTab[self.chooseNum].number + "&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&code=" + code +"&lastUrl=" + window.location.href;
|
|
|
- }
|
|
|
- } else {
|
|
|
- if (self.tabActive == 1) {
|
|
|
- url = "/problem/info/cbToXjWarn?subjectId=" + (subjectId || "") + "&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&code=" + code +"&lastUrl=" + window.location.href;
|
|
|
- } else if (self.tabActive == 2) {
|
|
|
- url = "/problem/info/preWarn?subjectId=" + (subjectId || "") + "&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&code=" + code +"&lastUrl=" + window.location.href;
|
|
|
- } else if (self.tabActive == 3) {
|
|
|
- url = "/problem/info/openWarn?subjectId=" + (subjectId || "") + "&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&code=" + code +"&lastUrl=" + window.location.href;
|
|
|
- } else if (self.tabActive == 4) {
|
|
|
- url = "/problem/info/endWarn?subjectId=" + (subjectId || "") + "&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&code=" + code +"&lastUrl=" + window.location.href;
|
|
|
- } else if (self.tabActive == 5) {
|
|
|
- url = "/problem/info/pldWarn?subjectId=" + (subjectId || "") + "&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&code=" + code +"&lastUrl=" + window.location.href;
|
|
|
- } else if (self.tabActive == 6) {
|
|
|
- //url = "/problem/info/problemWarn?subjectId=" + (subjectId || "") + "&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&lastUrl=" + window.location.href;
|
|
|
- url = "/problem/info/monthWarn?subjectId=" + (subjectId || "") + "&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&code=" + code +"&lastUrl=" + window.location.href;
|
|
|
- }
|
|
|
- }
|
|
|
+ subjectValue = subjectId || "";
|
|
|
}
|
|
|
- window.location.href = App.getUrl(url);
|
|
|
+
|
|
|
+ // Determine the correct URL based on index or tabActive
|
|
|
+ let urlKey = index !== undefined && index !== "" ? index : self.tabActive;
|
|
|
+
|
|
|
+ // Validate the key exists in the mapping
|
|
|
+ if (!baseUrls[urlKey]) {
|
|
|
+ console.error("Invalid index or tabActive value:", urlKey);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ const baseUrl = baseUrls[urlKey];
|
|
|
+ const params = new URLSearchParams({
|
|
|
+ subjectId: subjectValue,
|
|
|
+ sourceId: sourceId,
|
|
|
+ mainId: mainId,
|
|
|
+ hyfl: hyfl,
|
|
|
+ code: code,
|
|
|
+ lastUrl: window.location.href
|
|
|
+ });
|
|
|
+
|
|
|
+ const finalUrl = baseUrl+`?`+params.toString();
|
|
|
+ window.location.href = App.getUrl(finalUrl);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ // window.event? window.event.cancelBubble = true : e.stopPropagation();
|
|
|
+ // console.log('ct被点击了');
|
|
|
+ // var self = this;
|
|
|
+ // var url = "/problem/info/preWarn";
|
|
|
+ // console.log(index);
|
|
|
+ // if (index !== undefined && index != "") {
|
|
|
+ // if (index == 1) {
|
|
|
+ // url = "/problem/info/cbToXjWarn?subjectId=&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&code=" + code +"&lastUrl=" + window.location.href;
|
|
|
+ // } else if (index == 2) {
|
|
|
+ // url = "/problem/info/preWarn?subjectId=&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&code=" + code +"&lastUrl=" + window.location.href;
|
|
|
+ // } else if (index == 3) {
|
|
|
+ // url = "/problem/info/openWarn?subjectId=&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&code=" + code +"&lastUrl=" + window.location.href;
|
|
|
+ // } else if (index == 4) {
|
|
|
+ // url = "/problem/info/endWarn?subjectId=&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&code=" + code +"&lastUrl=" + window.location.href;
|
|
|
+ // } else if (index == 5) {
|
|
|
+ // url = "/problem/info/pldWarn?subjectId=&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&code=" + code +"&lastUrl=" + window.location.href;
|
|
|
+ // } else if (index == 6) {
|
|
|
+ // url = "/problem/info/monthWarn?subjectId=&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&code=" + code +"&lastUrl=" + window.location.href;
|
|
|
+ //
|
|
|
+ // }
|
|
|
+ // } else {
|
|
|
+ // if (mainId != null && mainId != undefined && mainId != '') {
|
|
|
+ // if (self.tabActive == 1) {
|
|
|
+ // url = "/problem/info/cbToXjWarn?subjectId="+ self.quyuListTab[self.chooseNum].number +"&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&code=" + code +"&lastUrl=" + window.location.href;
|
|
|
+ // } else if (self.tabActive == 2) {
|
|
|
+ // url = "/problem/info/preWarn?subjectId="+ self.quyuListTab[self.chooseNum].number +"&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&code=" + code +"&lastUrl=" + window.location.href;
|
|
|
+ // } else if (self.tabActive == 3) {
|
|
|
+ // url = "/problem/info/openWarn?subjectId=" + self.quyuListTab[self.chooseNum].number + "&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&code=" + code +"&lastUrl=" + window.location.href;
|
|
|
+ // } else if (self.tabActive == 4) {
|
|
|
+ // url = "/problem/info/endWarn?subjectId=" + self.quyuListTab[self.chooseNum].number + "&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&code=" + code +"&lastUrl=" + window.location.href;
|
|
|
+ // } else if (self.tabActive == 5) {
|
|
|
+ // url = "/problem/info/pldWarn?subjectId=" + self.quyuListTab[self.chooseNum].number + "&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&code=" + code +"&lastUrl=" + window.location.href;
|
|
|
+ // } else if (self.tabActive == 6) {
|
|
|
+ // //url = "/problem/info/problemWarn?subjectId=" + self.quyuListTab[self.chooseNum].number + "&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&lastUrl=" + window.location.href;
|
|
|
+ // url = "/problem/info/monthWarn?subjectId=" + self.quyuListTab[self.chooseNum].number + "&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&code=" + code +"&lastUrl=" + window.location.href;
|
|
|
+ // }
|
|
|
+ // } else {
|
|
|
+ // if (self.tabActive == 1) {
|
|
|
+ // url = "/problem/info/cbToXjWarn?subjectId=" + (subjectId || "") + "&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&code=" + code +"&lastUrl=" + window.location.href;
|
|
|
+ // } else if (self.tabActive == 2) {
|
|
|
+ // url = "/problem/info/preWarn?subjectId=" + (subjectId || "") + "&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&code=" + code +"&lastUrl=" + window.location.href;
|
|
|
+ // } else if (self.tabActive == 3) {
|
|
|
+ // url = "/problem/info/openWarn?subjectId=" + (subjectId || "") + "&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&code=" + code +"&lastUrl=" + window.location.href;
|
|
|
+ // } else if (self.tabActive == 4) {
|
|
|
+ // url = "/problem/info/endWarn?subjectId=" + (subjectId || "") + "&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&code=" + code +"&lastUrl=" + window.location.href;
|
|
|
+ // } else if (self.tabActive == 5) {
|
|
|
+ // url = "/problem/info/pldWarn?subjectId=" + (subjectId || "") + "&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&code=" + code +"&lastUrl=" + window.location.href;
|
|
|
+ // } else if (self.tabActive == 6) {
|
|
|
+ // //url = "/problem/info/problemWarn?subjectId=" + (subjectId || "") + "&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&lastUrl=" + window.location.href;
|
|
|
+ // url = "/problem/info/monthWarn?subjectId=" + (subjectId || "") + "&sourceId=" + sourceId + "&mainId=" + mainId + "&hyfl=" + hyfl + "&code=" + code +"&lastUrl=" + window.location.href;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // window.location.href = App.getUrl(url);
|
|
|
},
|
|
|
// chooseItem: function (index) {
|
|
|
// this.collsItem = 0;
|
|
@@ -779,16 +823,16 @@
|
|
|
backHis: function () {
|
|
|
window.history.back(-1);
|
|
|
},
|
|
|
- collaspe: function (item) {
|
|
|
- var self = this;
|
|
|
- console.log(item)
|
|
|
- if (self.collsItem === item) {
|
|
|
- self.collsItem = 0
|
|
|
- } else {
|
|
|
- self.collsItem = item;
|
|
|
- self.fixedFunc();
|
|
|
- }
|
|
|
- },
|
|
|
+ // collaspe: function (item) {
|
|
|
+ // var self = this;
|
|
|
+ // console.log(item)
|
|
|
+ // if (self.collsItem === item) {
|
|
|
+ // self.collsItem = 0
|
|
|
+ // } else {
|
|
|
+ // self.collsItem = item;
|
|
|
+ // self.fixedFunc();
|
|
|
+ // }
|
|
|
+ // },
|
|
|
fixedFunc: function () {
|
|
|
if (self.collsItem == 1) {
|
|
|
var proBarItem = document.querySelector('.bar-item-1');
|