7c69e97e by xiaomiao

不动产列表单一流向状态判断多选单选逻辑处理

1 parent f2988725
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
34 <!-- 表格 --> 34 <!-- 表格 -->
35 <div class="from-clues-content loadingtext"> 35 <div class="from-clues-content loadingtext">
36 <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" 36 <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300"
37 :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" 37 :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" @select="select"
38 @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" 38 @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns"
39 :data="tableData.data"> 39 :data="tableData.data">
40 </lb-table> 40 </lb-table>
...@@ -79,6 +79,7 @@ ...@@ -79,6 +79,7 @@
79 }, 79 },
80 methods: { 80 methods: {
81 queryClick () { 81 queryClick () {
82 console.log("申请业务单一流向状态",this.sqywInfo.sqywdylx);
82 this.$startLoading(); 83 this.$startLoading();
83 this.queryForm.sqywbm = this.sqywInfo.djywbm; 84 this.queryForm.sqywbm = this.sqywInfo.djywbm;
84 selectCfdj({ ...this.queryForm, ...this.pageData }) 85 selectCfdj({ ...this.queryForm, ...this.pageData })
...@@ -139,7 +140,43 @@ ...@@ -139,7 +140,43 @@
139 item.ybdcqzsh = item.bdcqzh 140 item.ybdcqzsh = item.bdcqzh
140 }) 141 })
141 this.bdcdysz = val 142 this.bdcdysz = val
142 } 143 },
144 select(selection, row){
145 if(this.sqywInfo.sqywdylx=="1"){
146 // 清除 所有勾选项
147 this.$refs.table.clearSelection()
148 // 当表格数据都没有被勾选的时候 就返回
149 // 主要用于将当前勾选的表格状态清除
150 if(selection.length == 0) return
151 this.$refs.table.toggleRowSelection(row, true);
152 }
153 },
154 handleRowClick(row){
155 // 如果状态是1,那就是单选
156 if(this.sqywInfo.sqywdylx=="1"){
157 const bdcdysz = this.bdcdysz
158 this.$refs.table.clearSelection()
159 if( bdcdysz.length == 1 ) {
160 bdcdysz.forEach(item => {
161 // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中
162 if (item == row) {
163 this.$refs.table.toggleRowSelection(row, false);
164 }
165 // 不然就让当前的一行勾选
166 else {
167 this.$refs.table.toggleRowSelection(row, true);
168 }
169 })
170 }
171 else {
172 this.$refs.table.toggleRowSelection(row, true);
173 }
174 }else{
175 this.$refs.table.toggleRowSelection(row);
176 }
177 },
178
179
143 }, 180 },
144 }; 181 };
145 </script> 182 </script>
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
43 <!-- 表格 --> 43 <!-- 表格 -->
44 <div class="from-clues-content loadingtext"> 44 <div class="from-clues-content loadingtext">
45 <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" 45 <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300"
46 :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" 46 :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" @select="select"
47 @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" 47 @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns"
48 :data="tableData.data"> 48 :data="tableData.data">
49 </lb-table> 49 </lb-table>
...@@ -83,7 +83,9 @@ ...@@ -83,7 +83,9 @@
83 sendThis(this); 83 sendThis(this);
84 }, 84 },
85 methods: { 85 methods: {
86
86 queryClick () { 87 queryClick () {
88 console.log("申请业务单一流向状态",this.sqywInfo.sqywdylx);
87 this.$startLoading(); 89 this.$startLoading();
88 this.queryForm.sqywbm = this.sqywInfo.djywbm; 90 this.queryForm.sqywbm = this.sqywInfo.djywbm;
89 selectDiyaq({ ...this.queryForm, ...this.pageData }).then((res) => { 91 selectDiyaq({ ...this.queryForm, ...this.pageData }).then((res) => {
...@@ -130,6 +132,40 @@ ...@@ -130,6 +132,40 @@
130 }); 132 });
131 this.bdcdysz = val; 133 this.bdcdysz = val;
132 }, 134 },
135 select(selection, row){
136 if(this.sqywInfo.sqywdylx=="1"){
137 // 清除 所有勾选项
138 this.$refs.table.clearSelection()
139 // 当表格数据都没有被勾选的时候 就返回
140 // 主要用于将当前勾选的表格状态清除
141 if(selection.length == 0) return
142 this.$refs.table.toggleRowSelection(row, true);
143 }
144 },
145 handleRowClick(row){
146 // 如果状态是1,那就是单选
147 if(this.sqywInfo.sqywdylx=="1"){
148 const bdcdysz = this.bdcdysz
149 this.$refs.table.clearSelection()
150 if( bdcdysz.length == 1 ) {
151 bdcdysz.forEach(item => {
152 // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中
153 if (item == row) {
154 this.$refs.table.toggleRowSelection(row, false);
155 }
156 // 不然就让当前的一行勾选
157 else {
158 this.$refs.table.toggleRowSelection(row, true);
159 }
160 })
161 }
162 else {
163 this.$refs.table.toggleRowSelection(row, true);
164 }
165 }else{
166 this.$refs.table.toggleRowSelection(row);
167 }
168 },
133 }, 169 },
134 }; 170 };
135 </script> 171 </script>
......
...@@ -171,6 +171,7 @@ ...@@ -171,6 +171,7 @@
171 }, 171 },
172 methods: { 172 methods: {
173 queryClick () { 173 queryClick () {
174 console.log("申请业务单一流向状态",this.sqywInfo.sqywdylx);
174 this.$startLoading(); 175 this.$startLoading();
175 if (!this.isJump) { 176 if (!this.isJump) {
176 //从业务办理进入 177 //从业务办理进入
...@@ -289,6 +290,7 @@ ...@@ -289,6 +290,7 @@
289 290
290 }, 291 },
291 handleRowClick(row){ 292 handleRowClick(row){
293 // 如果状态是1,那就是单选
292 if(this.sqywInfo.sqywdylx=="1"){ 294 if(this.sqywInfo.sqywdylx=="1"){
293 const bdcdysz = this.bdcdysz 295 const bdcdysz = this.bdcdysz
294 this.$refs.table.clearSelection() 296 this.$refs.table.clearSelection()
...@@ -308,23 +310,7 @@ ...@@ -308,23 +310,7 @@
308 this.$refs.table.toggleRowSelection(row, true); 310 this.$refs.table.toggleRowSelection(row, true);
309 } 311 }
310 }else{ 312 }else{
311 const bdcdysz = this.bdcdysz 313 this.$refs.table.toggleRowSelection(row);
312 this.$refs.table.clearSelection()
313 if( bdcdysz.length >=1 ) {
314 bdcdysz.forEach(item => {
315 // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中
316 if (item == row) {
317 this.$refs.table.toggleRowSelection(row, false);
318 }
319 // 不然就让当前的一行勾选
320 else {
321 this.$refs.table.toggleRowSelection(row, true);
322 }
323 })
324 }
325 else {
326 this.$refs.table.toggleRowSelection(row, true);
327 }
328 } 314 }
329 }, 315 },
330 } 316 }
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
28 <!-- 表格 --> 28 <!-- 表格 -->
29 <div class="from-clues-content loadingtext"> 29 <div class="from-clues-content loadingtext">
30 <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" 30 <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300"
31 :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" 31 :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" @select="select"
32 @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" 32 @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns"
33 :data="tableData.data"> 33 :data="tableData.data">
34 </lb-table> 34 </lb-table>
...@@ -73,6 +73,7 @@ ...@@ -73,6 +73,7 @@
73 }, 73 },
74 methods: { 74 methods: {
75 queryClick () { 75 queryClick () {
76 console.log("申请业务单一流向状态",this.sqywInfo.sqywdylx);
76 this.$startLoading(); 77 this.$startLoading();
77 this.queryForm.sqywbm = this.sqywInfo.djywbm; 78 this.queryForm.sqywbm = this.sqywInfo.djywbm;
78 selectZdjbxx({ ...this.queryForm, ...this.pageData }).then((res) => { 79 selectZdjbxx({ ...this.queryForm, ...this.pageData }).then((res) => {
...@@ -114,7 +115,41 @@ ...@@ -114,7 +115,41 @@
114 }, 115 },
115 handleSelectionChange (val) { 116 handleSelectionChange (val) {
116 this.bdcdysz = val; 117 this.bdcdysz = val;
117 } 118 },
119 select(selection, row){
120 if(this.sqywInfo.sqywdylx=="1"){
121 // 清除 所有勾选项
122 this.$refs.table.clearSelection()
123 // 当表格数据都没有被勾选的时候 就返回
124 // 主要用于将当前勾选的表格状态清除
125 if(selection.length == 0) return
126 this.$refs.table.toggleRowSelection(row, true);
127 }
128 },
129 handleRowClick(row){
130 // 如果状态是1,那就是单选
131 if(this.sqywInfo.sqywdylx=="1"){
132 const bdcdysz = this.bdcdysz
133 this.$refs.table.clearSelection()
134 if( bdcdysz.length == 1 ) {
135 bdcdysz.forEach(item => {
136 // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中
137 if (item == row) {
138 this.$refs.table.toggleRowSelection(row, false);
139 }
140 // 不然就让当前的一行勾选
141 else {
142 this.$refs.table.toggleRowSelection(row, true);
143 }
144 })
145 }
146 else {
147 this.$refs.table.toggleRowSelection(row, true);
148 }
149 }else{
150 this.$refs.table.toggleRowSelection(row);
151 }
152 },
118 } 153 }
119 } 154 }
120 </script> 155 </script>
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
28 <!-- 表格 --> 28 <!-- 表格 -->
29 <div class="from-clues-content loadingtext"> 29 <div class="from-clues-content loadingtext">
30 <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" 30 <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300"
31 :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" 31 :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" @select="select"
32 @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" 32 @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns"
33 :data="tableData.data"> 33 :data="tableData.data">
34 </lb-table> 34 </lb-table>
...@@ -70,6 +70,7 @@ ...@@ -70,6 +70,7 @@
70 }, 70 },
71 methods: { 71 methods: {
72 queryClick () { 72 queryClick () {
73 console.log("申请业务单一流向状态",this.sqywInfo.sqywdylx);
73 this.$startLoading(); 74 this.$startLoading();
74 this.queryForm.sqywbm = this.sqywInfo.djywbm; 75 this.queryForm.sqywbm = this.sqywInfo.djywbm;
75 selectNydsyqQlxx({ ...this.queryForm, ...this.pageData }).then((res) => { 76 selectNydsyqQlxx({ ...this.queryForm, ...this.pageData }).then((res) => {
...@@ -121,7 +122,41 @@ ...@@ -121,7 +122,41 @@
121 this.$popup('登记簿详情', 'registerBook/djbFrame', { 122 this.$popup('登记簿详情', 'registerBook/djbFrame', {
122 formData: param 123 formData: param
123 }) 124 })
124 } 125 },
126 select(selection, row){
127 if(this.sqywInfo.sqywdylx=="1"){
128 // 清除 所有勾选项
129 this.$refs.table.clearSelection()
130 // 当表格数据都没有被勾选的时候 就返回
131 // 主要用于将当前勾选的表格状态清除
132 if(selection.length == 0) return
133 this.$refs.table.toggleRowSelection(row, true);
134 }
135 },
136 handleRowClick(row){
137 // 如果状态是1,那就是单选
138 if(this.sqywInfo.sqywdylx=="1"){
139 const bdcdysz = this.bdcdysz
140 this.$refs.table.clearSelection()
141 if( bdcdysz.length == 1 ) {
142 bdcdysz.forEach(item => {
143 // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中
144 if (item == row) {
145 this.$refs.table.toggleRowSelection(row, false);
146 }
147 // 不然就让当前的一行勾选
148 else {
149 this.$refs.table.toggleRowSelection(row, true);
150 }
151 })
152 }
153 else {
154 this.$refs.table.toggleRowSelection(row, true);
155 }
156 }else{
157 this.$refs.table.toggleRowSelection(row);
158 }
159 },
125 } 160 }
126 } 161 }
127 </script> 162 </script>
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
43 <!-- 表格 --> 43 <!-- 表格 -->
44 <div class="from-clues-content loadingtext"> 44 <div class="from-clues-content loadingtext">
45 <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" 45 <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300"
46 :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" 46 :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" @select="select"
47 @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" 47 @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns"
48 :data="tableData.data"> 48 :data="tableData.data">
49 </lb-table> 49 </lb-table>
...@@ -98,6 +98,7 @@ ...@@ -98,6 +98,7 @@
98 methods: { 98 methods: {
99 //默认加载表格信息 99 //默认加载表格信息
100 queryClick () { 100 queryClick () {
101 console.log("申请业务单一流向状态",this.sqywInfo.sqywdylx);
101 this.$startLoading(); 102 this.$startLoading();
102 this.queryForm.bsmSqyw = this.bsmSqyw; 103 this.queryForm.bsmSqyw = this.bsmSqyw;
103 selectQlxx({ ...this.queryForm, ...this.pageData }).then((res) => { 104 selectQlxx({ ...this.queryForm, ...this.pageData }).then((res) => {
...@@ -144,6 +145,40 @@ ...@@ -144,6 +145,40 @@
144 }); 145 });
145 this.bdcdysz = val; 146 this.bdcdysz = val;
146 }, 147 },
148 select(selection, row){
149 if(this.sqywInfo.sqywdylx=="1"){
150 // 清除 所有勾选项
151 this.$refs.table.clearSelection()
152 // 当表格数据都没有被勾选的时候 就返回
153 // 主要用于将当前勾选的表格状态清除
154 if(selection.length == 0) return
155 this.$refs.table.toggleRowSelection(row, true);
156 }
157 },
158 handleRowClick(row){
159 // 如果状态是1,那就是单选
160 if(this.sqywInfo.sqywdylx=="1"){
161 const bdcdysz = this.bdcdysz
162 this.$refs.table.clearSelection()
163 if( bdcdysz.length == 1 ) {
164 bdcdysz.forEach(item => {
165 // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中
166 if (item == row) {
167 this.$refs.table.toggleRowSelection(row, false);
168 }
169 // 不然就让当前的一行勾选
170 else {
171 this.$refs.table.toggleRowSelection(row, true);
172 }
173 })
174 }
175 else {
176 this.$refs.table.toggleRowSelection(row, true);
177 }
178 }else{
179 this.$refs.table.toggleRowSelection(row);
180 }
181 },
147 }, 182 },
148 }; 183 };
149 </script> 184 </script>
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
35 <!-- 表格 --> 35 <!-- 表格 -->
36 <div class="from-clues-content loadingtext"> 36 <div class="from-clues-content loadingtext">
37 <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" 37 <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300"
38 :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" 38 :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" @select="select"
39 @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" 39 @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns"
40 :data="tableData.data"> 40 :data="tableData.data">
41 </lb-table> 41 </lb-table>
...@@ -76,6 +76,7 @@ ...@@ -76,6 +76,7 @@
76 }, 76 },
77 methods: { 77 methods: {
78 queryClick () { 78 queryClick () {
79 console.log("申请业务单一流向状态",this.sqywInfo.sqywdylx);
79 this.$startLoading(); 80 this.$startLoading();
80 selectAllHInfo({ "zrzbsm": this.sqywInfo.zrzbsm, ...this.queryForm, ...this.pageData }).then((res) => { 81 selectAllHInfo({ "zrzbsm": this.sqywInfo.zrzbsm, ...this.queryForm, ...this.pageData }).then((res) => {
81 this.$endLoading(); 82 this.$endLoading();
...@@ -121,6 +122,40 @@ ...@@ -121,6 +122,40 @@
121 }); 122 });
122 this.bdcdysz = val; 123 this.bdcdysz = val;
123 }, 124 },
125 select(selection, row){
126 if(this.sqywInfo.sqywdylx=="1"){
127 // 清除 所有勾选项
128 this.$refs.table.clearSelection()
129 // 当表格数据都没有被勾选的时候 就返回
130 // 主要用于将当前勾选的表格状态清除
131 if(selection.length == 0) return
132 this.$refs.table.toggleRowSelection(row, true);
133 }
134 },
135 handleRowClick(row){
136 // 如果状态是1,那就是单选
137 if(this.sqywInfo.sqywdylx=="1"){
138 const bdcdysz = this.bdcdysz
139 this.$refs.table.clearSelection()
140 if( bdcdysz.length == 1 ) {
141 bdcdysz.forEach(item => {
142 // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中
143 if (item == row) {
144 this.$refs.table.toggleRowSelection(row, false);
145 }
146 // 不然就让当前的一行勾选
147 else {
148 this.$refs.table.toggleRowSelection(row, true);
149 }
150 })
151 }
152 else {
153 this.$refs.table.toggleRowSelection(row, true);
154 }
155 }else{
156 this.$refs.table.toggleRowSelection(row);
157 }
158 },
124 }, 159 },
125 }; 160 };
126 </script> 161 </script>
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
35 <!-- 表格 --> 35 <!-- 表格 -->
36 <div class="from-clues-content loadingtext"> 36 <div class="from-clues-content loadingtext">
37 <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" 37 <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300"
38 :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" 38 :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" @select="select"
39 @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" 39 @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns"
40 :data="tableData.data"> 40 :data="tableData.data">
41 </lb-table> 41 </lb-table>
...@@ -75,6 +75,7 @@ ...@@ -75,6 +75,7 @@
75 }, 75 },
76 methods: { 76 methods: {
77 queryClick () { 77 queryClick () {
78 console.log("申请业务单一流向状态",this.sqywInfo.sqywdylx);
78 this.$startLoading(); 79 this.$startLoading();
79 this.queryForm.sqywbm = this.sqywInfo.djywbm; 80 this.queryForm.sqywbm = this.sqywInfo.djywbm;
80 selectFwsyq({ ...this.queryForm, ...this.pageData }).then((res) => { 81 selectFwsyq({ ...this.queryForm, ...this.pageData }).then((res) => {
...@@ -121,6 +122,40 @@ ...@@ -121,6 +122,40 @@
121 }); 122 });
122 this.bdcdysz = val; 123 this.bdcdysz = val;
123 }, 124 },
125 select(selection, row){
126 if(this.sqywInfo.sqywdylx=="1"){
127 // 清除 所有勾选项
128 this.$refs.table.clearSelection()
129 // 当表格数据都没有被勾选的时候 就返回
130 // 主要用于将当前勾选的表格状态清除
131 if(selection.length == 0) return
132 this.$refs.table.toggleRowSelection(row, true);
133 }
134 },
135 handleRowClick(row){
136 // 如果状态是1,那就是单选
137 if(this.sqywInfo.sqywdylx=="1"){
138 const bdcdysz = this.bdcdysz
139 this.$refs.table.clearSelection()
140 if( bdcdysz.length == 1 ) {
141 bdcdysz.forEach(item => {
142 // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中
143 if (item == row) {
144 this.$refs.table.toggleRowSelection(row, false);
145 }
146 // 不然就让当前的一行勾选
147 else {
148 this.$refs.table.toggleRowSelection(row, true);
149 }
150 })
151 }
152 else {
153 this.$refs.table.toggleRowSelection(row, true);
154 }
155 }else{
156 this.$refs.table.toggleRowSelection(row);
157 }
158 },
124 }, 159 },
125 }; 160 };
126 </script> 161 </script>
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
42 <!-- 表格 --> 42 <!-- 表格 -->
43 <div class="from-clues-content loadingtext"> 43 <div class="from-clues-content loadingtext">
44 <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" 44 <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300"
45 :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" 45 :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" @select="select"
46 @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" 46 @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns"
47 :data="tableData.data"> 47 :data="tableData.data">
48 </lb-table> 48 </lb-table>
...@@ -83,6 +83,7 @@ ...@@ -83,6 +83,7 @@
83 }, 83 },
84 methods: { 84 methods: {
85 queryClick () { 85 queryClick () {
86 console.log("申请业务单一流向状态",this.sqywInfo.sqywdylx);
86 this.$startLoading(); 87 this.$startLoading();
87 this.queryForm.sqywbm = this.sqywInfo.djywbm; 88 this.queryForm.sqywbm = this.sqywInfo.djywbm;
88 selectJsydQlxx({ ...this.queryForm, ...this.pageData }).then((res) => { 89 selectJsydQlxx({ ...this.queryForm, ...this.pageData }).then((res) => {
...@@ -139,7 +140,41 @@ ...@@ -139,7 +140,41 @@
139 this.$popup("登记簿详情", "registerBook/djbFrame", { 140 this.$popup("登记簿详情", "registerBook/djbFrame", {
140 formData: param 141 formData: param
141 }) 142 })
142 } 143 },
144 select(selection, row){
145 if(this.sqywInfo.sqywdylx=="1"){
146 // 清除 所有勾选项
147 this.$refs.table.clearSelection()
148 // 当表格数据都没有被勾选的时候 就返回
149 // 主要用于将当前勾选的表格状态清除
150 if(selection.length == 0) return
151 this.$refs.table.toggleRowSelection(row, true);
152 }
153 },
154 handleRowClick(row){
155 // 如果状态是1,那就是单选
156 if(this.sqywInfo.sqywdylx=="1"){
157 const bdcdysz = this.bdcdysz
158 this.$refs.table.clearSelection()
159 if( bdcdysz.length == 1 ) {
160 bdcdysz.forEach(item => {
161 // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中
162 if (item == row) {
163 this.$refs.table.toggleRowSelection(row, false);
164 }
165 // 不然就让当前的一行勾选
166 else {
167 this.$refs.table.toggleRowSelection(row, true);
168 }
169 })
170 }
171 else {
172 this.$refs.table.toggleRowSelection(row, true);
173 }
174 }else{
175 this.$refs.table.toggleRowSelection(row);
176 }
177 },
143 } 178 }
144 } 179 }
145 </script> 180 </script>
......
...@@ -117,6 +117,7 @@ ...@@ -117,6 +117,7 @@
117 }) 117 })
118 }, 118 },
119 queryClick () { 119 queryClick () {
120 console.log("申请业务单一流向状态土地分割合并",this.sqywInfo.sqywdylx);
120 this.$startLoading(); 121 this.$startLoading();
121 this.queryForm.sqywbm = this.sqywInfo.djywbm; 122 this.queryForm.sqywbm = this.sqywInfo.djywbm;
122 selectJsydQlxxSplitMergeBefore({ ...this.queryForm, ...this.pageData }).then((res) => { 123 selectJsydQlxxSplitMergeBefore({ ...this.queryForm, ...this.pageData }).then((res) => {
...@@ -170,7 +171,41 @@ ...@@ -170,7 +171,41 @@
170 this.$popup("登记簿详情", "registerBook/djbFrame", { 171 this.$popup("登记簿详情", "registerBook/djbFrame", {
171 formData: param 172 formData: param
172 }) 173 })
173 } 174 },
175 select(selection, row){
176 if(this.sqywInfo.sqywdylx=="1"){
177 // 清除 所有勾选项
178 this.$refs.table.clearSelection()
179 // 当表格数据都没有被勾选的时候 就返回
180 // 主要用于将当前勾选的表格状态清除
181 if(selection.length == 0) return
182 this.$refs.table.toggleRowSelection(row, true);
183 }
184 },
185 handleRowClick(row){
186 // 如果状态是1,那就是单选
187 if(this.sqywInfo.sqywdylx=="1"){
188 const bdcdysz = this.bdcdysz
189 this.$refs.table.clearSelection()
190 if( bdcdysz.length == 1 ) {
191 bdcdysz.forEach(item => {
192 // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中
193 if (item == row) {
194 this.$refs.table.toggleRowSelection(row, false);
195 }
196 // 不然就让当前的一行勾选
197 else {
198 this.$refs.table.toggleRowSelection(row, true);
199 }
200 })
201 }
202 else {
203 this.$refs.table.toggleRowSelection(row, true);
204 }
205 }else{
206 this.$refs.table.toggleRowSelection(row);
207 }
208 },
174 } 209 }
175 } 210 }
176 </script> 211 </script>
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
73 }, 73 },
74 methods: { 74 methods: {
75 queryClick () { 75 queryClick () {
76 console.log("国有建设用地使用权首次登记",this.sqywInfo.sqywdylx); 76 console.log("申请业务单一流向状态",this.sqywInfo.sqywdylx);
77 this.$startLoading(); 77 this.$startLoading();
78 this.queryForm.sqywbm = this.sqywInfo.djywbm; 78 this.queryForm.sqywbm = this.sqywInfo.djywbm;
79 selectZdjbxx({ ...this.queryForm, ...this.pageData }).then((res) => { 79 selectZdjbxx({ ...this.queryForm, ...this.pageData }).then((res) => {
...@@ -127,25 +127,28 @@ ...@@ -127,25 +127,28 @@
127 this.$refs.table.toggleRowSelection(row, true); 127 this.$refs.table.toggleRowSelection(row, true);
128 } 128 }
129 }, 129 },
130 handleRowClick(row, column){ 130 handleRowClick(row){
131 // 如果状态是1,那就是单选
131 if(this.sqywInfo.sqywdylx=="1"){ 132 if(this.sqywInfo.sqywdylx=="1"){
132 const bdcdysz = this.bdcdysz 133 const bdcdysz = this.bdcdysz
133 this.$refs.table.clearSelection() 134 this.$refs.table.clearSelection()
134 if( bdcdysz.length == 1 ) { 135 if( bdcdysz.length == 1 ) {
135 bdcdysz.forEach(item => { 136 bdcdysz.forEach(item => {
136 // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中 137 // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中
137 if (item == row) { 138 if (item == row) {
138 this.$refs.table.toggleRowSelection(row, false); 139 this.$refs.table.toggleRowSelection(row, false);
139 } 140 }
140 // 不然就让当前的一行勾选 141 // 不然就让当前的一行勾选
141 else { 142 else {
142 this.$refs.table.toggleRowSelection(row, true); 143 this.$refs.table.toggleRowSelection(row, true);
143 } 144 }
144 }) 145 })
145 } 146 }
146 else { 147 else {
147 this.$refs.table.toggleRowSelection(row, true); 148 this.$refs.table.toggleRowSelection(row, true);
148 } 149 }
150 }else{
151 this.$refs.table.toggleRowSelection(row);
149 } 152 }
150 }, 153 },
151 154
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
35 <!-- 表格 --> 35 <!-- 表格 -->
36 <div class="from-clues-content loadingtext"> 36 <div class="from-clues-content loadingtext">
37 <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" 37 <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300"
38 :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" 38 :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" @select="select"
39 @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" 39 @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns"
40 :data="tableData.data"> 40 :data="tableData.data">
41 </lb-table> 41 </lb-table>
...@@ -75,6 +75,7 @@ ...@@ -75,6 +75,7 @@
75 }, 75 },
76 methods: { 76 methods: {
77 queryClick () { 77 queryClick () {
78 console.log("申请业务单一流向状态",this.sqywInfo.sqywdylx);
78 this.$startLoading(); 79 this.$startLoading();
79 this.queryForm.sqywbm = this.sqywInfo.djywbm; 80 this.queryForm.sqywbm = this.sqywInfo.djywbm;
80 selectYgdj100({ ...this.queryForm, ...this.pageData }).then((res) => { 81 selectYgdj100({ ...this.queryForm, ...this.pageData }).then((res) => {
...@@ -121,6 +122,40 @@ ...@@ -121,6 +122,40 @@
121 }); 122 });
122 this.bdcdysz = val; 123 this.bdcdysz = val;
123 }, 124 },
125 select(selection, row){
126 if(this.sqywInfo.sqywdylx=="1"){
127 // 清除 所有勾选项
128 this.$refs.table.clearSelection()
129 // 当表格数据都没有被勾选的时候 就返回
130 // 主要用于将当前勾选的表格状态清除
131 if(selection.length == 0) return
132 this.$refs.table.toggleRowSelection(row, true);
133 }
134 },
135 handleRowClick(row){
136 // 如果状态是1,那就是单选
137 if(this.sqywInfo.sqywdylx=="1"){
138 const bdcdysz = this.bdcdysz
139 this.$refs.table.clearSelection()
140 if( bdcdysz.length == 1 ) {
141 bdcdysz.forEach(item => {
142 // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中
143 if (item == row) {
144 this.$refs.table.toggleRowSelection(row, false);
145 }
146 // 不然就让当前的一行勾选
147 else {
148 this.$refs.table.toggleRowSelection(row, true);
149 }
150 })
151 }
152 else {
153 this.$refs.table.toggleRowSelection(row, true);
154 }
155 }else{
156 this.$refs.table.toggleRowSelection(row);
157 }
158 },
124 }, 159 },
125 }; 160 };
126 </script> 161 </script>
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
35 <!-- 表格 --> 35 <!-- 表格 -->
36 <div class="from-clues-content loadingtext"> 36 <div class="from-clues-content loadingtext">
37 <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" 37 <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300"
38 :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" 38 :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" @select="select"
39 @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" 39 @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns"
40 :data="tableData.data"> 40 :data="tableData.data">
41 </lb-table> 41 </lb-table>
...@@ -75,6 +75,7 @@ ...@@ -75,6 +75,7 @@
75 }, 75 },
76 methods: { 76 methods: {
77 queryClick () { 77 queryClick () {
78 console.log("申请业务单一流向状态",this.sqywInfo.sqywdylx);
78 this.$startLoading(); 79 this.$startLoading();
79 this.queryForm.sqywbm = this.sqywInfo.djywbm; 80 this.queryForm.sqywbm = this.sqywInfo.djywbm;
80 selectYgdj200({ ...this.queryForm, ...this.pageData }).then((res) => { 81 selectYgdj200({ ...this.queryForm, ...this.pageData }).then((res) => {
...@@ -121,6 +122,40 @@ ...@@ -121,6 +122,40 @@
121 }); 122 });
122 this.bdcdysz = val; 123 this.bdcdysz = val;
123 }, 124 },
125 select(selection, row){
126 if(this.sqywInfo.sqywdylx=="1"){
127 // 清除 所有勾选项
128 this.$refs.table.clearSelection()
129 // 当表格数据都没有被勾选的时候 就返回
130 // 主要用于将当前勾选的表格状态清除
131 if(selection.length == 0) return
132 this.$refs.table.toggleRowSelection(row, true);
133 }
134 },
135 handleRowClick(row){
136 // 如果状态是1,那就是单选
137 if(this.sqywInfo.sqywdylx=="1"){
138 const bdcdysz = this.bdcdysz
139 this.$refs.table.clearSelection()
140 if( bdcdysz.length == 1 ) {
141 bdcdysz.forEach(item => {
142 // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中
143 if (item == row) {
144 this.$refs.table.toggleRowSelection(row, false);
145 }
146 // 不然就让当前的一行勾选
147 else {
148 this.$refs.table.toggleRowSelection(row, true);
149 }
150 })
151 }
152 else {
153 this.$refs.table.toggleRowSelection(row, true);
154 }
155 }else{
156 this.$refs.table.toggleRowSelection(row);
157 }
158 },
124 }, 159 },
125 }; 160 };
126 </script> 161 </script>
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
35 <!-- 表格 --> 35 <!-- 表格 -->
36 <div class="from-clues-content loadingtext"> 36 <div class="from-clues-content loadingtext">
37 <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" 37 <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300"
38 :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" 38 :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" @select="select"
39 @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" 39 @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns"
40 :data="tableData.data"> 40 :data="tableData.data">
41 </lb-table> 41 </lb-table>
...@@ -75,6 +75,7 @@ ...@@ -75,6 +75,7 @@
75 }, 75 },
76 methods: { 76 methods: {
77 queryClick () { 77 queryClick () {
78 console.log("申请业务单一流向状态",this.sqywInfo.sqywdylx);
78 this.$startLoading(); 79 this.$startLoading();
79 this.queryForm.sqywbm = this.sqywInfo.djywbm; 80 this.queryForm.sqywbm = this.sqywInfo.djywbm;
80 selectYgdy({ ...this.queryForm, ...this.pageData }).then((res) => { 81 selectYgdy({ ...this.queryForm, ...this.pageData }).then((res) => {
...@@ -121,6 +122,40 @@ ...@@ -121,6 +122,40 @@
121 }); 122 });
122 this.bdcdysz = val; 123 this.bdcdysz = val;
123 }, 124 },
125 select(selection, row){
126 if(this.sqywInfo.sqywdylx=="1"){
127 // 清除 所有勾选项
128 this.$refs.table.clearSelection()
129 // 当表格数据都没有被勾选的时候 就返回
130 // 主要用于将当前勾选的表格状态清除
131 if(selection.length == 0) return
132 this.$refs.table.toggleRowSelection(row, true);
133 }
134 },
135 handleRowClick(row){
136 // 如果状态是1,那就是单选
137 if(this.sqywInfo.sqywdylx=="1"){
138 const bdcdysz = this.bdcdysz
139 this.$refs.table.clearSelection()
140 if( bdcdysz.length == 1 ) {
141 bdcdysz.forEach(item => {
142 // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中
143 if (item == row) {
144 this.$refs.table.toggleRowSelection(row, false);
145 }
146 // 不然就让当前的一行勾选
147 else {
148 this.$refs.table.toggleRowSelection(row, true);
149 }
150 })
151 }
152 else {
153 this.$refs.table.toggleRowSelection(row, true);
154 }
155 }else{
156 this.$refs.table.toggleRowSelection(row);
157 }
158 },
124 }, 159 },
125 }; 160 };
126 </script> 161 </script>
......