1ba396d8 by 任超

style: 我的业务

1 parent a6352921
Pipeline #21 for 1ba396d8 failed in 0 seconds
...@@ -156,6 +156,16 @@ ...@@ -156,6 +156,16 @@
156 margin-top: 26px; 156 margin-top: 26px;
157 cursor: pointer; 157 cursor: pointer;
158 } 158 }
159 .delete {
160 color: red;
161 float: right;
162 cursor: pointer;
163 margin-left: 20px;
164 margin-top: 26px;
165 }
166 .delete:hover {
167 color: red;
168 }
159 .handle:hover { 169 .handle:hover {
160 color: #0091FF; 170 color: #0091FF;
161 } 171 }
......
...@@ -13,28 +13,62 @@ $(function () { ...@@ -13,28 +13,62 @@ $(function () {
13 $('.business_titleList li a').removeClass('itemTitleActive') 13 $('.business_titleList li a').removeClass('itemTitleActive')
14 $(this).addClass('itemTitleActive') 14 $(this).addClass('itemTitleActive')
15 let dataId = ($(this).attr('data-id')) 15 let dataId = ($(this).attr('data-id'))
16 if(dataId=='1') { 16 if (dataId == '1') {
17 _applyBusinessRecord() 17 _applyBusinessRecord()
18 dataRendering(dataList.list) 18 dataRendering(dataList.list)
19 }else if (dataId=='2') { 19 } else if (dataId == '2') {
20 _applyBusinessWiat() 20 _applyBusinessWiat()
21 dataRendering(dataList.list) 21 dataRendering(dataList.list)
22 }else if (dataId=='3') { 22 } else if (dataId == '3') {
23 _applyBusinessIn() 23 _applyBusinessIn()
24 dataRendering(dataList.list) 24 dataRendering(dataList.list)
25 }else if (dataId=='6') { 25 } else if (dataId == '6') {
26 _applyBusinessEnd() 26 _applyBusinessEnd()
27 dataRendering(dataList.list) 27 dataRendering(dataList.list)
28 } 28 }
29 }) 29 })
30 30
31 $(document).on("click", ".appintmentList li", function (e) { 31 $(document).on("click", ".appintmentList li .handle", function () {
32 let businessNo = $(this).attr('data-businessNo'); 32 let businessNo = $(this).attr('data-businessNo');
33 let slsqBsm = $(this).attr('data-slsqBsm'); 33 let slsqBsm = $(this).attr('data-slsqBsm');
34 getWorkBoxFLow(slsqBsm, businessNo) 34 getWorkBoxFLow(slsqBsm, businessNo)
35 }) 35 })
36 // 业务列表操作
37
38 $(document).on("click", ".delete", function () {
39 let slsqBsm = $(this).attr('slsqBsm')
40 layui.use('layer', function () {
41 var layer = layui.layer;
42 layer.confirm('此操作将删除业务是否继续?', {
43 scrollbar: false,
44 btn: ['是', '否'] //按钮
45 }, function () {
46 _listDel(slsqBsm)
47 }, function () {
48 layer.closeAll();
49 });
50 });
51 })
36 }) 52 })
37 53
54 // 列表操作
55
56 function _listDel(slsqBsm) {
57 $.ajax({
58 type: "delete", //提交方式
59 url: portal.api_url + "/portal/FillInformation/deleteSlsqBybsmSlsq?bsmSlsq="+slsqBsm,//路径
60 dataType: "json",
61 //数据,这里使用的是Json格式进行传输
62 success: function (result) {//返回数据根据结果进行相应的处理
63 if (result.code == 200) {
64 layer.msg('操作成功!');
65 _applyBusinessRecord()
66 dataRendering(dataList.list)
67 }
68 }
69 });
70 }
71
38 72
39 //网上申请业务待提交 73 //网上申请业务待提交
40 function _applyBusinessWiat(currentPage = 1) { 74 function _applyBusinessWiat(currentPage = 1) {
...@@ -50,7 +84,7 @@ function _applyBusinessWiat(currentPage = 1) { ...@@ -50,7 +84,7 @@ function _applyBusinessWiat(currentPage = 1) {
50 }, 84 },
51 //数据,这里使用的是Json格式进行传输 85 //数据,这里使用的是Json格式进行传输
52 success: function (result) {//返回数据根据结果进行相应的处理 86 success: function (result) {//返回数据根据结果进行相应的处理
53 $('.appintmentList').empty(); 87 $('.appintmentList').empty();
54 if (result.code == 200 && result.data != null) { 88 if (result.code == 200 && result.data != null) {
55 dataList.list = result.data.records 89 dataList.list = result.data.records
56 dataRendering() 90 dataRendering()
...@@ -73,7 +107,7 @@ function _applyBusinessIn(currentPage = 1) { ...@@ -73,7 +107,7 @@ function _applyBusinessIn(currentPage = 1) {
73 }, 107 },
74 //数据,这里使用的是Json格式进行传输 108 //数据,这里使用的是Json格式进行传输
75 success: function (result) {//返回数据根据结果进行相应的处理 109 success: function (result) {//返回数据根据结果进行相应的处理
76 $('.appintmentList').empty(); 110 $('.appintmentList').empty();
77 if (result.code == 200 && result.data != null) { 111 if (result.code == 200 && result.data != null) {
78 dataList.list = result.data.records 112 dataList.list = result.data.records
79 dataRendering() 113 dataRendering()
...@@ -97,7 +131,7 @@ function _applyBusinessEnd(currentPage = 1) { ...@@ -97,7 +131,7 @@ function _applyBusinessEnd(currentPage = 1) {
97 }, 131 },
98 //数据,这里使用的是Json格式进行传输 132 //数据,这里使用的是Json格式进行传输
99 success: function (result) {//返回数据根据结果进行相应的处理 133 success: function (result) {//返回数据根据结果进行相应的处理
100 $('.appintmentList').empty(); 134 $('.appintmentList').empty();
101 if (result.code == 200 && result.data != null) { 135 if (result.code == 200 && result.data != null) {
102 dataList.list = result.data.records 136 dataList.list = result.data.records
103 dataRendering() 137 dataRendering()
...@@ -121,12 +155,12 @@ function _applyBusinessRecord(currentPage = 1) { ...@@ -121,12 +155,12 @@ function _applyBusinessRecord(currentPage = 1) {
121 }, 155 },
122 //数据,这里使用的是Json格式进行传输 156 //数据,这里使用的是Json格式进行传输
123 success: function (result) {//返回数据根据结果进行相应的处理 157 success: function (result) {//返回数据根据结果进行相应的处理
124 $('.appintmentList').empty(); 158 $('.appintmentList').empty();
125 if (result.code == 200 && result.data != null) { 159 if (result.code == 200 && result.data != null) {
126 dataList.list = result.data.records 160 dataList.list = result.data.records
127 dataRendering() 161 dataRendering()
128 } 162 }
129 paged(result.data.total, result.data.current ); 163 paged(result.data.total, result.data.current);
130 } 164 }
131 }); 165 });
132 } 166 }
...@@ -135,7 +169,7 @@ function _applyBusinessRecord(currentPage = 1) { ...@@ -135,7 +169,7 @@ function _applyBusinessRecord(currentPage = 1) {
135 function _applyBusinessAJZTCount() { 169 function _applyBusinessAJZTCount() {
136 $.ajax({ 170 $.ajax({
137 type: "get", //提交方式 171 type: "get", //提交方式
138 url: portal.api_url + "/portal/WorkBoxService/applyBusinessAJZTCount?userId="+dataList.userid,//路径 172 url: portal.api_url + "/portal/WorkBoxService/applyBusinessAJZTCount?userId=" + dataList.userid,//路径
139 dataType: "json", 173 dataType: "json",
140 //数据,这里使用的是Json格式进行传输 174 //数据,这里使用的是Json格式进行传输
141 success: function (result) {//返回数据根据结果进行相应的处理 175 success: function (result) {//返回数据根据结果进行相应的处理
...@@ -173,7 +207,7 @@ function paged(pageCount, curr) { ...@@ -173,7 +207,7 @@ function paged(pageCount, curr) {
173 207
174 // 列表数据渲染 208 // 列表数据渲染
175 209
176 function dataRendering () { 210 function dataRendering() {
177 for (var i = 0; i < dataList.list.length; i++) { 211 for (var i = 0; i < dataList.list.length; i++) {
178 li = '<li data-slsqBsm="' + dataList.list[i].slsqBsm + '" data-businessNo="' + dataList.list[i].businessNo + '">'; 212 li = '<li data-slsqBsm="' + dataList.list[i].slsqBsm + '" data-businessNo="' + dataList.list[i].businessNo + '">';
179 if (dataList.list[i].ajzt == '1') { 213 if (dataList.list[i].ajzt == '1') {
...@@ -209,16 +243,17 @@ function dataRendering () { ...@@ -209,16 +243,17 @@ function dataRendering () {
209 li += '<p>办理时间</p>' 243 li += '<p>办理时间</p>'
210 li += '<p>' + dataList.list[i].sqrq + '</p>' 244 li += '<p>' + dataList.list[i].sqrq + '</p>'
211 li += '</div>' 245 li += '</div>'
246 li += '<a slsqBsm="'+dataList.list[i].slsqBsm+'" class="delete">删除</a>'
212 if (dataList.list[i].ajzt == '1') { 247 if (dataList.list[i].ajzt == '1') {
213 li += '<a class="handle">继续办理</a>' 248 li += '<a class="handle">继续办理</a>'
214 } else if (dataList.list[i].ajzt == '3') { 249 } else if (dataList.list[i].ajzt == '3') {
215 li += '<a class="handle">缴费</a>' 250 li += '<a slsqBsm="'+dataList.list[i].slsqBsm+'" class="handle">缴费</a>'
216 } 251 }
217 $('.appintmentList').append(li) 252 $('.appintmentList').append(li)
218 } 253 }
219 } 254 }
220 255
221 var dataList = { 256 var dataList = {
222 "list": [], 257 "list": [],
223 "userid":'0026609ddc6d2afabaa3c9b0ea3b0ec3' 258 "userid": '0026609ddc6d2afabaa3c9b0ea3b0ec3'
224 }; 259 };
...\ No newline at end of file ...\ No newline at end of file
......