d722d892 by 田浩浩
2 parents 633d798c abf73539
...@@ -141,4 +141,23 @@ export function deleteCollectBiz (bsmSqyw) { ...@@ -141,4 +141,23 @@ export function deleteCollectBiz (bsmSqyw) {
141 url: '/ywbl/BusinessApply/deleteCollectBiz?bsmSqyw=' + bsmSqyw, 141 url: '/ywbl/BusinessApply/deleteCollectBiz?bsmSqyw=' + bsmSqyw,
142 method: 'post' 142 method: 'post'
143 }) 143 })
144 }
145 // 国有建设用地使用权/房屋使用权 -选择不动产单元
146 export function choiceBdcdy (data) {
147 return request({
148 url: 'business/workFlow/choiceBdcdy',
149 method: 'post',
150 data,
151 showLoading: true
152 })
153 }
154
155 // 申请列表删除
156 export function deleteBdcdy (data) {
157 return request({
158 url: 'business/workFlow/deleteBdcdy',
159 method: 'post',
160 data,
161 showLoading: true
162 })
144 } 163 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -26,7 +26,7 @@ export default { ...@@ -26,7 +26,7 @@ export default {
26 name: 'index', 26 name: 'index',
27 data () { 27 data () {
28 return { 28 return {
29 btnShow: true, 29 btnShow: false,
30 title: '提示', 30 title: '提示',
31 cancelText: '取消', 31 cancelText: '取消',
32 confirmText: '确认', 32 confirmText: '确认',
...@@ -56,20 +56,19 @@ export default { ...@@ -56,20 +56,19 @@ export default {
56 mounted () { 56 mounted () {
57 // 计算滚动条高度 57 // 计算滚动条高度
58 setTimeout(() => { 58 setTimeout(() => {
59 if(this.btnShow){ //判断按钮的显影来决定是否需要计算高度 59 if (this.btnShow) { //判断按钮的显影来决定是否需要计算高度
60 if(this.height == 'auto'){ 60 if (this.height == 'auto') {
61 this.contentHeight = (this.$refs.contentRef.offsetHeight - 100) + 'px' 61 this.contentHeight = (this.$refs.contentRef.offsetHeight - 100) + 'px'
62 }else{ 62 }else{
63 this.contentHeight =(parseInt(this.height)-parseInt('100px'))+'px'; 63 this.contentHeight = this.height
64 }
65 } else {
66 if(this.height=='auto'){
67 this.contentHeight = this.$refs.contentRef.offsetHeight
68 }else{
69 this.contentHeight = this.height
70 }
64 } 71 }
65 }else{
66 if(this.height == 'auto'){
67 this.contentHeight = this.$refs.contentRef.offsetHeight + 'px'
68 }else{
69 this.contentHeight =this.height
70 }
71 }
72
73 }, 500) 72 }, 500)
74 }, 73 },
75 methods: { 74 methods: {
...@@ -132,7 +131,7 @@ export default { ...@@ -132,7 +131,7 @@ export default {
132 .ls-title { 131 .ls-title {
133 padding: 16px; 132 padding: 16px;
134 color: #ffffff; 133 color: #ffffff;
135 background: linear-gradient(3deg,#409EFF, transparent) 134 background: linear-gradient(-2deg, #409EFF, transparent; background: linear-gradient(3deg, #409EFF, transparent));
136 } 135 }
137 136
138 .ls-title .svg-icon { 137 .ls-title .svg-icon {
...@@ -146,13 +145,13 @@ export default { ...@@ -146,13 +145,13 @@ export default {
146 } 145 }
147 146
148 .ls-mask-footer { 147 .ls-mask-footer {
149 height: 50px; 148 height: 50px;
150 display: flex; 149 display: flex;
151 justify-content: center; 150 justify-content: center;
152 width: 100%; 151 width: 100%;
153 box-shadow: 0px 0px 2px 0px; 152 box-shadow: 0px 0px 2px 0px;
154 border-radius: 0 0 10px 10px; 153 border-radius: 0 0 10px 10px;
155 position: absolute; 154 position: absolute;
156 bottom: 0; 155 bottom: 0;
157 background: #ffffff; 156 background: #ffffff;
158 } 157 }
...@@ -160,9 +159,9 @@ export default { ...@@ -160,9 +159,9 @@ export default {
160 159
161 /deep/.closeStyle { 160 /deep/.closeStyle {
162 position: absolute; 161 position: absolute;
163 top: 17px; 162 top: 13px;
164 right: 12px; 163 right: 26px;
165 font-size: 20px; 164 font-size: 24px;
166 cursor: pointer; 165 cursor: pointer;
167 color: #409EFF; 166 color: #409EFF;
168 } 167 }
......
...@@ -202,7 +202,7 @@ export default { ...@@ -202,7 +202,7 @@ export default {
202 height: 48px; 202 height: 48px;
203 line-height: 48px; 203 line-height: 48px;
204 width: 100%; 204 width: 100%;
205 background: #fff; 205 background: #EDF1F7;
206 border-bottom: 1px solid #E4EBF4; 206 border-bottom: 1px solid #E4EBF4;
207 box-shadow: 0 1px 3px 0 rgba(147, 173, 209, 0.12); 207 box-shadow: 0 1px 3px 0 rgba(147, 173, 209, 0.12);
208 208
...@@ -216,6 +216,8 @@ export default { ...@@ -216,6 +216,8 @@ export default {
216 top: 8px; 216 top: 8px;
217 height: 33px; 217 height: 33px;
218 z-index: 1; 218 z-index: 1;
219 background: #EDF1F7!important;
220
219 } 221 }
220 222
221 .pane-mask-left { 223 .pane-mask-left {
...@@ -237,14 +239,12 @@ export default { ...@@ -237,14 +239,12 @@ export default {
237 cursor: pointer; 239 cursor: pointer;
238 height: 31px; 240 height: 31px;
239 line-height: 29px; 241 line-height: 29px;
240 border: 1px solid #e4ebf4;
241 color: #686666; 242 color: #686666;
242 background: #fff; 243 background: #D8DFE6;
243 padding: 0 10px 0 10px; 244 padding: 0 20px 0 20px;
244 font-size: 16px; 245 font-size: 16px;
245 margin-top: 5px; 246 margin-top: 5px;
246 border-radius: 4px; 247 border-radius: 8px 8px 0 0;
247
248 &:first-of-type { 248 &:first-of-type {
249 margin-left: 15px; 249 margin-left: 15px;
250 } 250 }
...@@ -254,8 +254,8 @@ export default { ...@@ -254,8 +254,8 @@ export default {
254 } 254 }
255 255
256 &.active { 256 &.active {
257 border-color: #0f93f6; 257 color: #0f93f6;
258 color: #4a4a4a; 258 background: #ffffff;
259 // &::before { 259 // &::before {
260 // content: ''; 260 // content: '';
261 // background: #0F93F6; 261 // background: #0F93F6;
...@@ -267,6 +267,7 @@ export default { ...@@ -267,6 +267,7 @@ export default {
267 // margin-right: 2px; 267 // margin-right: 2px;
268 // } 268 // }
269 } 269 }
270
270 } 271 }
271 } 272 }
272 273
......
...@@ -16,6 +16,7 @@ const service = axios.create({ ...@@ -16,6 +16,7 @@ const service = axios.create({
16 //admin:bearer AT-16-oqkOHiUSsDdFA-eAZ49k2rJQDTzQpClO 16 //admin:bearer AT-16-oqkOHiUSsDdFA-eAZ49k2rJQDTzQpClO
17 //renc:bearer AT-30-KHB4LXc8-CZXwBEyaFJa9lRmMTc5sHVI 17 //renc:bearer AT-30-KHB4LXc8-CZXwBEyaFJa9lRmMTc5sHVI
18 //tianh:bearer AT-33-3zFTGkhQ4eUv4nXvzAmbgN5RPZppzEY6 18 //tianh:bearer AT-33-3zFTGkhQ4eUv4nXvzAmbgN5RPZppzEY6
19 //zhangh:bearer AT-7-Tx8dlZH0LNRc33UjD1CX1xwa-1D7kQmQ
19 }, 20 },
20 timeout: 15000 21 timeout: 15000
21 }) 22 })
......
1 <!--
2 功能:申请单元列表批量删除
3 作者:calliope
4 -->
5 <template>
6 <div class='batchDel'>
7 <lb-table :column="columns" :data="formData.dataList" :heightNum="500" :pagination="false" @selection-change="handleSelectionChange">
8 </lb-table>
9 </div>
10 </template>
11 <script>
12 import { deleteBdcdy } from "@/api/ywbl.js"
13 export default {
14 components: {},
15 props: {
16 formData: {
17 type: Object,
18 default: {}
19 }
20 },
21 data () {
22 return {
23 columns: [
24 {
25 type: 'selection',
26 label: '全选'
27 },
28 {
29 label: '序号',
30 type: 'index',
31 width: '50',
32 },
33 {
34 prop: "bdcdyh",
35 label: "不动产单元号",
36 },
37 {
38 prop: "zl",
39 label: "坐落",
40 },
41 ],
42 dataList: [],
43 selectBdcdy: [],
44 }
45 },
46 methods:{
47 childFn(){
48 deleteBdcdy({
49 bsmSlsq: this.formData.bsmSlsq,
50 bsmSldyList: this.selectBdcdy
51 }).then(res => {
52 if(res.code == 200){
53 this.$message.success("删除成功");
54 }else{
55 this.$message.error(res.message)
56 }
57 })
58 },
59 handleSelectionChange (e) {
60 this.selectBdcdy = [];
61 e.forEach((item, index) => {
62 this.selectBdcdy.push(item.bsmSldy)
63 })
64 }
65 }
66 }
67 </script>
68 <style scoped lang='scss'>
69
70 </style>
...\ No newline at end of file ...\ No newline at end of file
...@@ -6,9 +6,15 @@ ...@@ -6,9 +6,15 @@
6 border: 1px solid #ebeef5; 6 border: 1px solid #ebeef5;
7 z-index: 100; 7 z-index: 100;
8 @include flex; 8 @include flex;
9
9 /deep/.el-tabs__header { 10 /deep/.el-tabs__header {
10 margin-bottom: 0 !important; 11 margin-bottom: 0 !important;
11 } 12 }
13
14 /deep/.el-menu-item {
15 display: flex;
16 align-items: center;
17 }
12 } 18 }
13 19
14 .leftmenu { 20 .leftmenu {
...@@ -24,6 +30,12 @@ ...@@ -24,6 +30,12 @@
24 text-align: center; 30 text-align: center;
25 } 31 }
26 32
33 .batchDel {
34 float: right;
35 position: relative;
36 top: 3px;
37 }
38
27 .title-detail { 39 .title-detail {
28 display: flex; 40 display: flex;
29 flex-wrap: wrap; 41 flex-wrap: wrap;
...@@ -48,6 +60,8 @@ ...@@ -48,6 +60,8 @@
48 font-size: 14px; 60 font-size: 14px;
49 line-height: 20px; 61 line-height: 20px;
50 cursor: pointer; 62 cursor: pointer;
63 display: flex;
64 flex-direction: column;
51 } 65 }
52 66
53 li:hover { 67 li:hover {
...@@ -115,8 +129,8 @@ ...@@ -115,8 +129,8 @@
115 } 129 }
116 130
117 .map-drawer { 131 .map-drawer {
118 width: 20px; 132 width: 16px;
119 height: 79px; 133 height: 70px;
120 position: absolute; 134 position: absolute;
121 top: 30%; 135 top: 30%;
122 z-index: 99; 136 z-index: 99;
......
...@@ -22,11 +22,16 @@ ...@@ -22,11 +22,16 @@
22 <!-- 左侧菜单栏 --> 22 <!-- 左侧菜单栏 -->
23 <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }"> 23 <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }">
24 <div v-if="this.isShowdrawer"> 24 <div v-if="this.isShowdrawer">
25 <div class="title">申请单元列表({{ unitData.length }})</div> 25 <div class="title">申请单元列表({{ unitData.length }})
26 <el-button type="text" class="batchDel" @click="handleBatchDel" v-if="unitData.length>1">批量删除</el-button>
27 </div>
26 <el-menu :default-active="activeIndex" @select="unitClick"> 28 <el-menu :default-active="activeIndex" @select="unitClick">
27 <el-menu-item v-for="(item, index) in unitData" :index="index.toString()" :key="index"> 29 <el-menu-item v-for="(item, index) in unitData" :index="index.toString()" :key="index">
28 <p>{{ item.bdcdyh }}</p> 30 <div>
29 <p class="title-detail">{{ item.zl }}</p> 31 <p>{{ item.bdcdyh }}</p>
32 <p class="title-detail">{{ item.zl }}</p>
33 </div>
34 <i class="el-icon-delete" v-if="unitData.length>1" @click.stop="handleDel(item)"></i>
30 </el-menu-item> 35 </el-menu-item>
31 </el-menu> 36 </el-menu>
32 </div> 37 </div>
...@@ -56,7 +61,7 @@ ...@@ -56,7 +61,7 @@
56 </div> 61 </div>
57 </div> 62 </div>
58 </div> 63 </div>
59 <fqsqDialog v-model="isDialog" :djywbm="$route.query.sqywbm" :isJump="true" /> 64 <fqsqDialog v-model="isDialog" :djywbm="$route.query.sqywbm" :isJump="true" @updateDialog="updateDialog" />
60 </div> 65 </div>
61 </template> 66 </template>
62 67
...@@ -72,6 +77,7 @@ import { ...@@ -72,6 +77,7 @@ import {
72 getNextLinkInfo, 77 getNextLinkInfo,
73 completeTask, 78 completeTask,
74 } from "@/api/fqsq.js" 79 } from "@/api/fqsq.js"
80 import { deleteBdcdy } from "@/api/ywbl.js"
75 import { getWorkFlowImage } from "@/api/jsydsyqFlow.js" 81 import { getWorkFlowImage } from "@/api/jsydsyqFlow.js"
76 import { getForm } from "./flowform.js" 82 import { getForm } from "./flowform.js"
77 import fqsqDialog from "@/views/ywbl/ywsq/slectBdc.vue" 83 import fqsqDialog from "@/views/ywbl/ywsq/slectBdc.vue"
...@@ -124,6 +130,52 @@ export default { ...@@ -124,6 +130,52 @@ export default {
124 this.flowInitParam(); 130 this.flowInitParam();
125 }, 131 },
126 methods: { 132 methods: {
133 // 更新列表
134 updateDialog () {
135 this.loadBdcdylist();
136 },
137 // 删除左侧列表
138 handleDel (item) {
139 this.$confirm('确定要删除吗, 是否继续?', '提示', {
140 confirmButtonText: '确定',
141 cancelButtonText: '取消',
142 type: 'warning'
143 }).then(() => {
144 deleteBdcdy({
145 bsmSlsq: this.bsmSlsq,
146 bsmSldyList: item.bsmSldy.split(',')
147 }).then(res => {
148 if(res.code == 200){
149 this.$message.success("删除成功");
150 this.updateDialog();
151 }else{
152 this.$message.error(res.message)
153 }
154 })
155 }).catch(() => {
156 this.$message({
157 type: 'info',
158 message: '已取消删除'
159 })
160 })
161 },
162 handleBatchDel () {
163 let that = this;
164 this.$popup({
165 title: '批量删除',
166 width: '50%',
167 btnShow: true,
168 editItem: 'workflow/components/batchDel',
169 formData: {
170 bsmSlsq: this.bsmSlsq,
171 dataList: this.unitData
172 },
173 cancel: function () { }, //取消事件的回调
174 confirm: function () {
175 that.updateDialog();
176 }, //确认事件的回调
177 })
178 },
127 //加载流程初始参数 179 //加载流程初始参数
128 flowInitParam () { 180 flowInitParam () {
129 var formdata = new FormData(); 181 var formdata = new FormData();
...@@ -164,6 +216,7 @@ export default { ...@@ -164,6 +216,7 @@ export default {
164 this.imgSrc = URL.createObjectURL(res) 216 this.imgSrc = URL.createObjectURL(res)
165 this.$popup({ 217 this.$popup({
166 title: '流程图', 218 title: '流程图',
219 btnShow: true,
167 editItem: 'workflow/components/flowChart', 220 editItem: 'workflow/components/flowChart',
168 formData: this.imgSrc 221 formData: this.imgSrc
169 }) 222 })
......
...@@ -171,7 +171,7 @@ export default { ...@@ -171,7 +171,7 @@ export default {
171 }) 171 })
172 }, 172 },
173 ywhClick (item) { 173 ywhClick (item) {
174 const { href } = this.$router.resolve('/workFrame?bsmSlsq=' + item.bsmSlsq + '&bestepid=' + item.bestepid + '&bsmBusiness=' + '&viewtype=1'); 174 const { href } = this.$router.resolve('/workFrame?bsmSlsq=' + item.bsmSlsq + '&bestepid=' + item.bestepid + '&bsmBusiness=' + '&viewtype=1' + '&sqywbm=' + item.djywbm);
175 window.open(href, '_blank'); 175 window.open(href, '_blank');
176 } 176 }
177 } 177 }
......
...@@ -45,7 +45,7 @@ import Cookies from 'js-cookie' ...@@ -45,7 +45,7 @@ import Cookies from 'js-cookie'
45 import { datas, sendThis } from "../javascript/fwsyq.js"; 45 import { datas, sendThis } from "../javascript/fwsyq.js";
46 import table from "@/utils/mixin/table"; 46 import table from "@/utils/mixin/table";
47 import jump from "@/views/ywbl/ywsq/components/mixin/jump"; 47 import jump from "@/views/ywbl/ywsq/components/mixin/jump";
48 import { selectFwsyq, startBusinessFlow } from "@/api/ywbl.js"; 48 import { selectFwsyq, startBusinessFlow, choiceBdcdy } from "@/api/ywbl.js";
49 export default { 49 export default {
50 mixins: [table, jump], 50 mixins: [table, jump],
51 props: { 51 props: {
...@@ -96,27 +96,41 @@ export default { ...@@ -96,27 +96,41 @@ export default {
96 this.$message.error("请至少选择一条数据"); 96 this.$message.error("请至少选择一条数据");
97 return; 97 return;
98 } 98 }
99 startBusinessFlow({ 99 if (!this.isJump) {
100 bsmSqyw: Cookies.get("bsmSqyw"), 100 startBusinessFlow({
101 bdcdysz: this.bdcdysz, 101 bsmSqyw: Cookies.get("bsmSqyw"),
102 djqxbm: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxbm : '', 102 bdcdysz: this.bdcdysz,
103 djqxmc: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxmc : '', 103 djqxbm: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxbm : '',
104 }).then((res) => { 104 djqxmc: Cookies.get("djqxObj") ? JSON.parse(Cookies.get("djqxObj"))?.djqxmc : '',
105 if (res.code == 200) { 105 }).then((res) => {
106 this.$message({ 106 if (res.code == 200) {
107 showClose: true, 107 this.$message({
108 message: '发起申请成功', 108 showClose: true,
109 type: 'success' 109 message: '发起申请成功',
110 }) 110 type: 'success'
111 if (!this.isJump) { 111 })
112 this.jump(res.result, this.djywbm) 112 this.jump(res.result, this.djywbm)
113 } else { 113 } else {
114 this.$message.error(res.message);
115 }
116 })
117 } else {
118 choiceBdcdy({
119 bsmSlsq: this.$route.query.bsmSlsq,
120 bdcdysz: this.bdcdysz
121 }).then(res => {
122 if (res.code == 200) {
123 this.$message({
124 showClose: true,
125 message: '发起申请成功',
126 type: 'success'
127 })
114 this.$emit('updateDialog', true) 128 this.$emit('updateDialog', true)
129 } else {
130 this.$message.error(res.message);
115 } 131 }
116 } else { 132 })
117 this.$message.error(res.message); 133 }
118 }
119 })
120 }, 134 },
121 handleSelectionChange (val) { 135 handleSelectionChange (val) {
122 this.bdcdysz = val 136 this.bdcdysz = val
......
...@@ -42,7 +42,7 @@ export default { ...@@ -42,7 +42,7 @@ export default {
42 }, 42 },
43 updateDialog () { 43 updateDialog () {
44 this.$emit("input", false) 44 this.$emit("input", false)
45 this.key++ 45 this.$emit("updateDialog", true)
46 } 46 }
47 } 47 }
48 } 48 }
......