ed4c1a94 by weimo934

获取待办

1 parent 9ac66546
//获取地址栏中的某个查询参数
function getQueryString(name) {
debugger;
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
if (r != null) {
......@@ -10,6 +11,7 @@ function getQueryString(name) {
//解析url中的guid在localStorage中的值 返回参数的js对象形式
function getUrlQueryString(){
debugger;
var jy = getQueryString('jy');
if(jy!=null&&jy!=""&&jy!=undefined){
if(jy=="jiyao"){
......
var self = new Vue({
el:'#app',
data(){
el: '#app',
data() {
return {
search:'',
search: '',
flowid: 't1001_8a8610de737b99270173937337e00133',
userid: 't0101_8a8610de737b99270173941e5c50017e',
pageNum:1,
pageSize:10,
total:0,
// 表格数据
tabaledata:[
{
xh:'1',
ajmc:'关于拍卖出让87.608亩国有建设用地使用权的请示(GX3-18-25)',
anlx:'批后',
zrdw:'高新分局',
ssqy:'高新',
ljr:'向小华',
djsh:'2020-07-05',
jssi:'2020-07-05',
},
{
xh:'2',
ajmc:'关于拍卖出让87.608亩国有建设用地使用权的请示(GX3-18-25)',
anlx:'批后',
zrdw:'高新分局',
ssqy:'高新',
ljr:'向小华',
djsh:'2020-07-05',
jssi:'2020-07-05',
},
{
xh:'3',
ajmc:'关于拍卖出让87.608亩国有建设用地使用权的请示(GX3-18-25)',
anlx:'批后',
zrdw:'高新分局',
ssqy:'高新',
ljr:'向小华',
djsh:'2020-07-05',
jssi:'2020-07-05',
},
{
xh:'4',
ajmc:'关于拍卖出让87.608亩国有建设用地使用权的请示(GX3-18-25)',
anlx:'批后',
zrdw:'高新分局',
ssqy:'高新',
ljr:'向小华',
djsh:'2020-07-05',
jssi:'2020-07-05',
},
{
xh:'5',
ajmc:'关于拍卖出让87.608亩国有建设用地使用权的请示(GX3-18-25)',
anlx:'批后',
zrdw:'高新分局',
ssqy:'高新',
ljr:'向小华',
djsh:'2020-07-05',
jssi:'2020-07-05',
},
],
isActive:1,
tabaledata: [],
isActive: 1,
}
},
methods:{
handleSizeChange(){
mounted(){
this.getData();
},
handleCurrentChange(){},
click(val){
methods: {
getData() {
axios.get(CONF_NEWGHSC_SERVERURL + '/ghjg/backlog/'+this.pageNum+'/'+this.pageSize, {
params: {
flowid: this.flowid,
userId: this.userid,
keyword: this.search
}
}).then(res => {
this.total=res.data.data.total;
this.tabaledata = res.data.data.list;
}).catch();
}
,
handleSizeChange() {
},
handleCurrentChange() {
},
click(val) {
this.isActive = val
},
openHandleJumpUrl (flowId, itemTypeId, _stats = 'create') {
openHandleJumpUrl(flowId, itemTypeId, _stats = 'create') {
var unique = uuid();
let url = CONF_FRONT_SERVERURL + 'view/projecttask/detailproject.jsp?';
url += 'stats=' + _stats;
......@@ -79,45 +53,45 @@ var self = new Vue({
window.open(this.handleJumpUrl(url));
this.addFlowUserCount(flowId);
},
addFlowUserCount (flowId) {
addFlowUserCount(flowId) {
if (flowId === null || flowId === undefined) {
return false;
}
ajaxPromise({
data: JSON.stringify({"flowId": flowId,"userId": userId}),
data: JSON.stringify({"flowId": flowId, "userId": userId}),
contentType: "application/json",
url: CONF_BACK_SERVERURL + "/mvc/flow/saveFlowUserCount.do"
}).catch((error)=> {
}).catch((error) => {
console.error(error);
});
},
handleJumpUrl(url){
handleJumpUrl(url) {
var myid = "guid" + guid();
var tempArr = url.split("?");
var returnStr = tempArr[0] + "?guid=" + myid;
var urlValue = tempArr[1];
var cacheUrlValue = null;
var data = {
paramUrl:urlValue,
ftoken:$.cookie('ftoken')
paramUrl: urlValue,
ftoken: $.cookie('ftoken')
};
if(window.globalLocalCache){
cacheUrlValue = window.globalLocalCache.AddCache(myid,"","",data);
if (window.globalLocalCache) {
cacheUrlValue = window.globalLocalCache.AddCache(myid, "", "", data);
}
return returnStr;
},
S4() {
return (((1+Math.random())*0x10000)|0).toString(16).substring(1);
return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
},
guid() {
return (this.S4()+this.S4()+"-"+this.S4()+"-"+this.S4()+"-"+this.S4()+"-"+this.S4()+this.S4()+this.S4());
return (this.S4() + this.S4() + "-" + this.S4() + "-" + this.S4() + "-" + this.S4() + "-" + this.S4() + this.S4() + this.S4());
},
clickData(row, column, event){
clickData(row, column, event) {
// console.log(row, column, event)
alert(1111)
},
openHandleJumpUrl (flowId, itemTypeId, _stats = 'create') {
openHandleJumpUrl(flowId, itemTypeId, _stats = 'create') {
// debugger
var unique = this.uuid();
let url = CONF_FRONT_SERVERURL + 'view/projecttask/detailproject.jsp?';
......@@ -130,41 +104,41 @@ var self = new Vue({
window.open(this.handleJumpUrl(url));
this.addFlowUserCount(flowId);
},
addFlowUserCount (flowId) {
addFlowUserCount(flowId) {
if (flowId === null || flowId === undefined) {
return false;
}
this.ajaxPromise({
data: JSON.stringify({"flowId": flowId,"userId": this.userId}),
data: JSON.stringify({"flowId": flowId, "userId": this.userId}),
contentType: "application/json",
url: CONF_BACK_SERVERURL + "/mvc/flow/saveFlowUserCount.do"
}).catch((error)=> {
}).catch((error) => {
console.error(error);
});
},
handleJumpUrl(url){
handleJumpUrl(url) {
var myid = "guid" + this.guid();
var tempArr = url.split("?");
var returnStr = tempArr[0] + "?guid=" + myid;
var urlValue = tempArr[1];
var cacheUrlValue = null;
var data = {
paramUrl:urlValue,
ftoken:$.cookie('ftoken')
paramUrl: urlValue,
ftoken: $.cookie('ftoken')
};
if(window.globalLocalCache){
cacheUrlValue = window.globalLocalCache.AddCache(myid,"","",data);
if (window.globalLocalCache) {
cacheUrlValue = window.globalLocalCache.AddCache(myid, "", "", data);
}
return returnStr;
},
S4() {
return (((1+Math.random())*0x10000)|0).toString(16).substring(1);
return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
},
guid() {
return (this.S4()+this.S4()+"-"+this.S4()+"-"+this.S4()+"-"+this.S4()+"-"+this.S4()+this.S4()+this.S4());
return (this.S4() + this.S4() + "-" + this.S4() + "-" + this.S4() + "-" + this.S4() + "-" + this.S4() + this.S4() + this.S4());
},
uuid(){
uuid() {
var s = [];
var hexDigits = "0123456789abcdef";
for (var i = 0; i < 36; i++) {
......@@ -179,7 +153,7 @@ var self = new Vue({
},
ajaxPromise(options) {
return new Promise(function (resolve, reject) {
if ( typeof options !== "object" ) {
if (typeof options !== "object") {
return reject("参数错误!");
}
let _type = options.type || "POST";
......@@ -190,8 +164,8 @@ var self = new Vue({
data: options.data,
dataType: options.dataType,
contentType: options.contentType,
headers: {"token":$.cookie('ftoken') },
success: function(result){
headers: {"token": $.cookie('ftoken')},
success: function (result) {
resolve(result);
},
error: function (error) {
......
......@@ -95,8 +95,8 @@
width="55">
</el-table-column>
<el-table-column
prop="xh"
label="序号"
type="index"
width="55">
</el-table-column>
<el-table-column
......@@ -106,7 +106,7 @@
align="center"
></el-table-column>
<el-table-column
prop="anlx"
prop="ajlx"
label="案件类型"
align="center"
width="100"
......@@ -134,14 +134,14 @@
>
</el-table-column>
<el-table-column
prop="djsh"
prop="djsj"
label="登记时间"
align="center"
width="200"
>
</el-table-column>
<el-table-column
prop="jssi"
prop="jssj"
label="接受时间"
align="center"
width="200"
......@@ -357,11 +357,11 @@
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="1"
:current-page="pageNum"
:page-sizes="[2, 3, 5]"
:page-size="4"
:page-size="pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="8">
:total="total">
</el-pagination>
</div>
</div>
......
......@@ -49,7 +49,7 @@
</div>
<div class="zbgl_bottom_content">
<el-table :header-cell-style="{background:'#f2f2f2'}" border ref="filterTable" :data="tableData.slice((currentPage-1)*pagesize,currentPage*pagesize)"
width="99vw" height="50.2vh" size="small">
width="99vw" height="82.2vh" size="small">
<el-table-column :cell-style="{'text-align':'center'}" prop="xh" type="index" :index="indexMethod" label="序号" sortable width="80"
column-key="xh">
</el-table-column>
......
......@@ -108,28 +108,6 @@
</div>
</div>
</div>
<!--<el-col :span="6" style="margin-left:-16px">"
<el-col :span="1">
<img src="\frontweb\view\projecttask\projectManage\ListView\image\menu-document-icon-search.png">
</el-col>
<el-input icon="el-icon-search" placeholder="项目名称、项目类型、建设单位、建设地点" v-model="inquire"
type="text" style="width: 100%;">
<el-button slot="append" @click="searchJd">查询</el-button>
</el-input>
</el-col>-->
<!--<el-col :span="5">
<input type="text" name="username" lay-verify="required" placeholder="项目名称、项目类型、建设单位、建设地点"
autocomplete="off" class="layui-input yddwInput" id="yddw">
</el-col>
<el-col :span="1"style="margin-left:-30px">
<el-button type="primary" @click="searchJd">查询</el-button>
</el-col>-->
<!-- <el-col :span="4" style="transform: translateX(-56px);">
<el-button type="primary" @click="searchJd">
<i class="layui-icon layui-icon-website"></i>地图视图
<span style="display:inline-block;"></span>
</el-button>
</el-col>-->
</el-row>
</div>
</div>
......