获取待办
Showing
5 changed files
with
71 additions
and
117 deletions
1 | //获取地址栏中的某个查询参数 | 1 | //获取地址栏中的某个查询参数 |
2 | function getQueryString(name) { | 2 | function getQueryString(name) { |
3 | debugger; | ||
3 | var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); | 4 | var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); |
4 | var r = window.location.search.substr(1).match(reg); | 5 | var r = window.location.search.substr(1).match(reg); |
5 | if (r != null) { | 6 | if (r != null) { |
... | @@ -10,6 +11,7 @@ function getQueryString(name) { | ... | @@ -10,6 +11,7 @@ function getQueryString(name) { |
10 | 11 | ||
11 | //解析url中的guid在localStorage中的值 返回参数的js对象形式 | 12 | //解析url中的guid在localStorage中的值 返回参数的js对象形式 |
12 | function getUrlQueryString(){ | 13 | function getUrlQueryString(){ |
14 | debugger; | ||
13 | var jy = getQueryString('jy'); | 15 | var jy = getQueryString('jy'); |
14 | if(jy!=null&&jy!=""&&jy!=undefined){ | 16 | if(jy!=null&&jy!=""&&jy!=undefined){ |
15 | if(jy=="jiyao"){ | 17 | if(jy=="jiyao"){ | ... | ... |
1 | var self = new Vue({ | 1 | var self = new Vue({ |
2 | el:'#app', | 2 | el: '#app', |
3 | data(){ | 3 | data() { |
4 | return { | 4 | return { |
5 | search:'', | 5 | search: '', |
6 | flowid: 't1001_8a8610de737b99270173937337e00133', | ||
7 | userid: 't0101_8a8610de737b99270173941e5c50017e', | ||
8 | pageNum:1, | ||
9 | pageSize:10, | ||
10 | total:0, | ||
6 | // 表格数据 | 11 | // 表格数据 |
7 | tabaledata:[ | 12 | tabaledata: [], |
8 | { | 13 | isActive: 1, |
9 | xh:'1', | ||
10 | ajmc:'关于拍卖出让87.608亩国有建设用地使用权的请示(GX3-18-25)', | ||
11 | anlx:'批后', | ||
12 | zrdw:'高新分局', | ||
13 | ssqy:'高新', | ||
14 | ljr:'向小华', | ||
15 | djsh:'2020-07-05', | ||
16 | jssi:'2020-07-05', | ||
17 | }, | ||
18 | { | ||
19 | xh:'2', | ||
20 | ajmc:'关于拍卖出让87.608亩国有建设用地使用权的请示(GX3-18-25)', | ||
21 | anlx:'批后', | ||
22 | zrdw:'高新分局', | ||
23 | ssqy:'高新', | ||
24 | ljr:'向小华', | ||
25 | djsh:'2020-07-05', | ||
26 | jssi:'2020-07-05', | ||
27 | }, | ||
28 | { | ||
29 | xh:'3', | ||
30 | ajmc:'关于拍卖出让87.608亩国有建设用地使用权的请示(GX3-18-25)', | ||
31 | anlx:'批后', | ||
32 | zrdw:'高新分局', | ||
33 | ssqy:'高新', | ||
34 | ljr:'向小华', | ||
35 | djsh:'2020-07-05', | ||
36 | jssi:'2020-07-05', | ||
37 | }, | ||
38 | { | ||
39 | xh:'4', | ||
40 | ajmc:'关于拍卖出让87.608亩国有建设用地使用权的请示(GX3-18-25)', | ||
41 | anlx:'批后', | ||
42 | zrdw:'高新分局', | ||
43 | ssqy:'高新', | ||
44 | ljr:'向小华', | ||
45 | djsh:'2020-07-05', | ||
46 | jssi:'2020-07-05', | ||
47 | }, | ||
48 | { | ||
49 | xh:'5', | ||
50 | ajmc:'关于拍卖出让87.608亩国有建设用地使用权的请示(GX3-18-25)', | ||
51 | anlx:'批后', | ||
52 | zrdw:'高新分局', | ||
53 | ssqy:'高新', | ||
54 | ljr:'向小华', | ||
55 | djsh:'2020-07-05', | ||
56 | jssi:'2020-07-05', | ||
57 | }, | ||
58 | ], | ||
59 | isActive:1, | ||
60 | } | 14 | } |
61 | }, | 15 | }, |
62 | methods:{ | ||
63 | handleSizeChange(){ | ||
64 | 16 | ||
17 | mounted(){ | ||
18 | this.getData(); | ||
65 | }, | 19 | }, |
66 | handleCurrentChange(){}, | 20 | |
67 | click(val){ | 21 | methods: { |
22 | getData() { | ||
23 | axios.get(CONF_NEWGHSC_SERVERURL + '/ghjg/backlog/'+this.pageNum+'/'+this.pageSize, { | ||
24 | params: { | ||
25 | flowid: this.flowid, | ||
26 | userId: this.userid, | ||
27 | keyword: this.search | ||
28 | } | ||
29 | }).then(res => { | ||
30 | this.total=res.data.data.total; | ||
31 | this.tabaledata = res.data.data.list; | ||
32 | }).catch(); | ||
33 | |||
34 | } | ||
35 | , | ||
36 | handleSizeChange() { | ||
37 | |||
38 | }, | ||
39 | handleCurrentChange() { | ||
40 | }, | ||
41 | click(val) { | ||
68 | this.isActive = val | 42 | this.isActive = val |
69 | }, | 43 | }, |
70 | openHandleJumpUrl (flowId, itemTypeId, _stats = 'create') { | 44 | openHandleJumpUrl(flowId, itemTypeId, _stats = 'create') { |
71 | var unique = uuid(); | 45 | var unique = uuid(); |
72 | let url = CONF_FRONT_SERVERURL + 'view/projecttask/detailproject.jsp?'; | 46 | let url = CONF_FRONT_SERVERURL + 'view/projecttask/detailproject.jsp?'; |
73 | url += 'stats=' + _stats; | 47 | url += 'stats=' + _stats; |
... | @@ -79,45 +53,45 @@ var self = new Vue({ | ... | @@ -79,45 +53,45 @@ var self = new Vue({ |
79 | window.open(this.handleJumpUrl(url)); | 53 | window.open(this.handleJumpUrl(url)); |
80 | this.addFlowUserCount(flowId); | 54 | this.addFlowUserCount(flowId); |
81 | }, | 55 | }, |
82 | addFlowUserCount (flowId) { | 56 | addFlowUserCount(flowId) { |
83 | if (flowId === null || flowId === undefined) { | 57 | if (flowId === null || flowId === undefined) { |
84 | return false; | 58 | return false; |
85 | } | 59 | } |
86 | 60 | ||
87 | ajaxPromise({ | 61 | ajaxPromise({ |
88 | data: JSON.stringify({"flowId": flowId,"userId": userId}), | 62 | data: JSON.stringify({"flowId": flowId, "userId": userId}), |
89 | contentType: "application/json", | 63 | contentType: "application/json", |
90 | url: CONF_BACK_SERVERURL + "/mvc/flow/saveFlowUserCount.do" | 64 | url: CONF_BACK_SERVERURL + "/mvc/flow/saveFlowUserCount.do" |
91 | }).catch((error)=> { | 65 | }).catch((error) => { |
92 | console.error(error); | 66 | console.error(error); |
93 | }); | 67 | }); |
94 | }, | 68 | }, |
95 | handleJumpUrl(url){ | 69 | handleJumpUrl(url) { |
96 | var myid = "guid" + guid(); | 70 | var myid = "guid" + guid(); |
97 | var tempArr = url.split("?"); | 71 | var tempArr = url.split("?"); |
98 | var returnStr = tempArr[0] + "?guid=" + myid; | 72 | var returnStr = tempArr[0] + "?guid=" + myid; |
99 | var urlValue = tempArr[1]; | 73 | var urlValue = tempArr[1]; |
100 | var cacheUrlValue = null; | 74 | var cacheUrlValue = null; |
101 | var data = { | 75 | var data = { |
102 | paramUrl:urlValue, | 76 | paramUrl: urlValue, |
103 | ftoken:$.cookie('ftoken') | 77 | ftoken: $.cookie('ftoken') |
104 | }; | 78 | }; |
105 | if(window.globalLocalCache){ | 79 | if (window.globalLocalCache) { |
106 | cacheUrlValue = window.globalLocalCache.AddCache(myid,"","",data); | 80 | cacheUrlValue = window.globalLocalCache.AddCache(myid, "", "", data); |
107 | } | 81 | } |
108 | return returnStr; | 82 | return returnStr; |
109 | }, | 83 | }, |
110 | S4() { | 84 | S4() { |
111 | return (((1+Math.random())*0x10000)|0).toString(16).substring(1); | 85 | return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1); |
112 | }, | 86 | }, |
113 | guid() { | 87 | guid() { |
114 | return (this.S4()+this.S4()+"-"+this.S4()+"-"+this.S4()+"-"+this.S4()+"-"+this.S4()+this.S4()+this.S4()); | 88 | return (this.S4() + this.S4() + "-" + this.S4() + "-" + this.S4() + "-" + this.S4() + "-" + this.S4() + this.S4() + this.S4()); |
115 | }, | 89 | }, |
116 | clickData(row, column, event){ | 90 | clickData(row, column, event) { |
117 | // console.log(row, column, event) | 91 | // console.log(row, column, event) |
118 | alert(1111) | 92 | alert(1111) |
119 | }, | 93 | }, |
120 | openHandleJumpUrl (flowId, itemTypeId, _stats = 'create') { | 94 | openHandleJumpUrl(flowId, itemTypeId, _stats = 'create') { |
121 | // debugger | 95 | // debugger |
122 | var unique = this.uuid(); | 96 | var unique = this.uuid(); |
123 | let url = CONF_FRONT_SERVERURL + 'view/projecttask/detailproject.jsp?'; | 97 | let url = CONF_FRONT_SERVERURL + 'view/projecttask/detailproject.jsp?'; |
... | @@ -130,41 +104,41 @@ var self = new Vue({ | ... | @@ -130,41 +104,41 @@ var self = new Vue({ |
130 | window.open(this.handleJumpUrl(url)); | 104 | window.open(this.handleJumpUrl(url)); |
131 | this.addFlowUserCount(flowId); | 105 | this.addFlowUserCount(flowId); |
132 | }, | 106 | }, |
133 | addFlowUserCount (flowId) { | 107 | addFlowUserCount(flowId) { |
134 | if (flowId === null || flowId === undefined) { | 108 | if (flowId === null || flowId === undefined) { |
135 | return false; | 109 | return false; |
136 | } | 110 | } |
137 | 111 | ||
138 | this.ajaxPromise({ | 112 | this.ajaxPromise({ |
139 | data: JSON.stringify({"flowId": flowId,"userId": this.userId}), | 113 | data: JSON.stringify({"flowId": flowId, "userId": this.userId}), |
140 | contentType: "application/json", | 114 | contentType: "application/json", |
141 | url: CONF_BACK_SERVERURL + "/mvc/flow/saveFlowUserCount.do" | 115 | url: CONF_BACK_SERVERURL + "/mvc/flow/saveFlowUserCount.do" |
142 | }).catch((error)=> { | 116 | }).catch((error) => { |
143 | console.error(error); | 117 | console.error(error); |
144 | }); | 118 | }); |
145 | }, | 119 | }, |
146 | handleJumpUrl(url){ | 120 | handleJumpUrl(url) { |
147 | var myid = "guid" + this.guid(); | 121 | var myid = "guid" + this.guid(); |
148 | var tempArr = url.split("?"); | 122 | var tempArr = url.split("?"); |
149 | var returnStr = tempArr[0] + "?guid=" + myid; | 123 | var returnStr = tempArr[0] + "?guid=" + myid; |
150 | var urlValue = tempArr[1]; | 124 | var urlValue = tempArr[1]; |
151 | var cacheUrlValue = null; | 125 | var cacheUrlValue = null; |
152 | var data = { | 126 | var data = { |
153 | paramUrl:urlValue, | 127 | paramUrl: urlValue, |
154 | ftoken:$.cookie('ftoken') | 128 | ftoken: $.cookie('ftoken') |
155 | }; | 129 | }; |
156 | if(window.globalLocalCache){ | 130 | if (window.globalLocalCache) { |
157 | cacheUrlValue = window.globalLocalCache.AddCache(myid,"","",data); | 131 | cacheUrlValue = window.globalLocalCache.AddCache(myid, "", "", data); |
158 | } | 132 | } |
159 | return returnStr; | 133 | return returnStr; |
160 | }, | 134 | }, |
161 | S4() { | 135 | S4() { |
162 | return (((1+Math.random())*0x10000)|0).toString(16).substring(1); | 136 | return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1); |
163 | }, | 137 | }, |
164 | guid() { | 138 | guid() { |
165 | return (this.S4()+this.S4()+"-"+this.S4()+"-"+this.S4()+"-"+this.S4()+"-"+this.S4()+this.S4()+this.S4()); | 139 | return (this.S4() + this.S4() + "-" + this.S4() + "-" + this.S4() + "-" + this.S4() + "-" + this.S4() + this.S4() + this.S4()); |
166 | }, | 140 | }, |
167 | uuid(){ | 141 | uuid() { |
168 | var s = []; | 142 | var s = []; |
169 | var hexDigits = "0123456789abcdef"; | 143 | var hexDigits = "0123456789abcdef"; |
170 | for (var i = 0; i < 36; i++) { | 144 | for (var i = 0; i < 36; i++) { |
... | @@ -179,7 +153,7 @@ var self = new Vue({ | ... | @@ -179,7 +153,7 @@ var self = new Vue({ |
179 | }, | 153 | }, |
180 | ajaxPromise(options) { | 154 | ajaxPromise(options) { |
181 | return new Promise(function (resolve, reject) { | 155 | return new Promise(function (resolve, reject) { |
182 | if ( typeof options !== "object" ) { | 156 | if (typeof options !== "object") { |
183 | return reject("参数错误!"); | 157 | return reject("参数错误!"); |
184 | } | 158 | } |
185 | let _type = options.type || "POST"; | 159 | let _type = options.type || "POST"; |
... | @@ -190,8 +164,8 @@ var self = new Vue({ | ... | @@ -190,8 +164,8 @@ var self = new Vue({ |
190 | data: options.data, | 164 | data: options.data, |
191 | dataType: options.dataType, | 165 | dataType: options.dataType, |
192 | contentType: options.contentType, | 166 | contentType: options.contentType, |
193 | headers: {"token":$.cookie('ftoken') }, | 167 | headers: {"token": $.cookie('ftoken')}, |
194 | success: function(result){ | 168 | success: function (result) { |
195 | resolve(result); | 169 | resolve(result); |
196 | }, | 170 | }, |
197 | error: function (error) { | 171 | error: function (error) { | ... | ... |
... | @@ -95,8 +95,8 @@ | ... | @@ -95,8 +95,8 @@ |
95 | width="55"> | 95 | width="55"> |
96 | </el-table-column> | 96 | </el-table-column> |
97 | <el-table-column | 97 | <el-table-column |
98 | prop="xh" | ||
99 | label="序号" | 98 | label="序号" |
99 | type="index" | ||
100 | width="55"> | 100 | width="55"> |
101 | </el-table-column> | 101 | </el-table-column> |
102 | <el-table-column | 102 | <el-table-column |
... | @@ -106,7 +106,7 @@ | ... | @@ -106,7 +106,7 @@ |
106 | align="center" | 106 | align="center" |
107 | ></el-table-column> | 107 | ></el-table-column> |
108 | <el-table-column | 108 | <el-table-column |
109 | prop="anlx" | 109 | prop="ajlx" |
110 | label="案件类型" | 110 | label="案件类型" |
111 | align="center" | 111 | align="center" |
112 | width="100" | 112 | width="100" |
... | @@ -134,14 +134,14 @@ | ... | @@ -134,14 +134,14 @@ |
134 | > | 134 | > |
135 | </el-table-column> | 135 | </el-table-column> |
136 | <el-table-column | 136 | <el-table-column |
137 | prop="djsh" | 137 | prop="djsj" |
138 | label="登记时间" | 138 | label="登记时间" |
139 | align="center" | 139 | align="center" |
140 | width="200" | 140 | width="200" |
141 | > | 141 | > |
142 | </el-table-column> | 142 | </el-table-column> |
143 | <el-table-column | 143 | <el-table-column |
144 | prop="jssi" | 144 | prop="jssj" |
145 | label="接受时间" | 145 | label="接受时间" |
146 | align="center" | 146 | align="center" |
147 | width="200" | 147 | width="200" |
... | @@ -357,11 +357,11 @@ | ... | @@ -357,11 +357,11 @@ |
357 | <el-pagination | 357 | <el-pagination |
358 | @size-change="handleSizeChange" | 358 | @size-change="handleSizeChange" |
359 | @current-change="handleCurrentChange" | 359 | @current-change="handleCurrentChange" |
360 | :current-page="1" | 360 | :current-page="pageNum" |
361 | :page-sizes="[2, 3, 5]" | 361 | :page-sizes="[2, 3, 5]" |
362 | :page-size="4" | 362 | :page-size="pageSize" |
363 | layout="total, sizes, prev, pager, next, jumper" | 363 | layout="total, sizes, prev, pager, next, jumper" |
364 | :total="8"> | 364 | :total="total"> |
365 | </el-pagination> | 365 | </el-pagination> |
366 | </div> | 366 | </div> |
367 | </div> | 367 | </div> | ... | ... |
... | @@ -49,7 +49,7 @@ | ... | @@ -49,7 +49,7 @@ |
49 | </div> | 49 | </div> |
50 | <div class="zbgl_bottom_content"> | 50 | <div class="zbgl_bottom_content"> |
51 | <el-table :header-cell-style="{background:'#f2f2f2'}" border ref="filterTable" :data="tableData.slice((currentPage-1)*pagesize,currentPage*pagesize)" | 51 | <el-table :header-cell-style="{background:'#f2f2f2'}" border ref="filterTable" :data="tableData.slice((currentPage-1)*pagesize,currentPage*pagesize)" |
52 | width="99vw" height="50.2vh" size="small"> | 52 | width="99vw" height="82.2vh" size="small"> |
53 | <el-table-column :cell-style="{'text-align':'center'}" prop="xh" type="index" :index="indexMethod" label="序号" sortable width="80" | 53 | <el-table-column :cell-style="{'text-align':'center'}" prop="xh" type="index" :index="indexMethod" label="序号" sortable width="80" |
54 | column-key="xh"> | 54 | column-key="xh"> |
55 | </el-table-column> | 55 | </el-table-column> | ... | ... |
... | @@ -108,28 +108,6 @@ | ... | @@ -108,28 +108,6 @@ |
108 | </div> | 108 | </div> |
109 | </div> | 109 | </div> |
110 | </div> | 110 | </div> |
111 | <!--<el-col :span="6" style="margin-left:-16px">" | ||
112 | <el-col :span="1"> | ||
113 | <img src="\frontweb\view\projecttask\projectManage\ListView\image\menu-document-icon-search.png"> | ||
114 | </el-col> | ||
115 | <el-input icon="el-icon-search" placeholder="项目名称、项目类型、建设单位、建设地点" v-model="inquire" | ||
116 | type="text" style="width: 100%;"> | ||
117 | <el-button slot="append" @click="searchJd">查询</el-button> | ||
118 | </el-input> | ||
119 | </el-col>--> | ||
120 | <!--<el-col :span="5"> | ||
121 | <input type="text" name="username" lay-verify="required" placeholder="项目名称、项目类型、建设单位、建设地点" | ||
122 | autocomplete="off" class="layui-input yddwInput" id="yddw"> | ||
123 | </el-col> | ||
124 | <el-col :span="1"style="margin-left:-30px"> | ||
125 | <el-button type="primary" @click="searchJd">查询</el-button> | ||
126 | </el-col>--> | ||
127 | <!-- <el-col :span="4" style="transform: translateX(-56px);"> | ||
128 | <el-button type="primary" @click="searchJd"> | ||
129 | <i class="layui-icon layui-icon-website"></i>地图视图 | ||
130 | <span style="display:inline-block;"></span> | ||
131 | </el-button> | ||
132 | </el-col>--> | ||
133 | </el-row> | 111 | </el-row> |
134 | </div> | 112 | </div> |
135 | </div> | 113 | </div> | ... | ... |
-
Please register or sign in to post a comment