1db8c667 by renchao@pashanhoo.com

style:土地分割

1 parent ce1d1eda
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
83 }, 83 },
84 minHeight: { 84 minHeight: {
85 type: Number, 85 type: Number,
86 default: undefined 86 default: 160
87 }, 87 },
88 heightNumSetting: { 88 heightNumSetting: {
89 type: Boolean, 89 type: Boolean,
......
...@@ -40,17 +40,15 @@ ...@@ -40,17 +40,15 @@
40 </el-form> 40 </el-form>
41 </div> 41 </div>
42 <!-- 表格 --> 42 <!-- 表格 -->
43 <div class="from-clues-content loadingtext">分割合并前权利信息 43 <div class="from-clues-content loadingtext">
44 <lb-table ref="table" @row-dblclick="handleRowClick" :pagination = false :page-size="pageData.pageSize" :calcHeight="300" 44 分割合并前权利信息
45 :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" 45 <lb-table ref="table" @row-click="handleRowClick" heightNumSetting :pagination=false
46 @p-current-change="handleCurrentChange" :column="tableData.columns" 46 :column="tableData.columns" :data="tableData.data">
47 :data="tableData.data">
48 </lb-table> 47 </lb-table>
49 </div> 48 </div>
50 <div class="from-clues-content loadingtext">分割合并后宗地信息 49 <div class="from-clues-content loadingtext">
51 <lb-table ref="table" @row-dblclick="handleRowClick" :pagination = false :page-size="pageData.pageSize" :calcHeight="300" 50 分割合并后宗地信息
52 :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" 51 <lb-table ref="table" :pagination=false :calcHeight="500" :column="tableData.columns1"
53 @p-current-change="handleCurrentChange" :column="tableData.columns1"
54 :data="tableData.datastwo"> 52 :data="tableData.datastwo">
55 </lb-table> 53 </lb-table>
56 </div> 54 </div>
...@@ -63,11 +61,11 @@ ...@@ -63,11 +61,11 @@
63 <script> 61 <script>
64 //首次登记 62 //首次登记
65 import store from '@/store/index.js' 63 import store from '@/store/index.js'
66 import { datas,datastwo, sendThis } from "../javascript/selectJsydsyq.js"; 64 import { datas, datastwo, sendThis } from "../javascript/selectJsydsyq.js";
67 import { defaultParameters } from "../javascript/publicDefaultPar.js"; 65 import { defaultParameters } from "../javascript/publicDefaultPar.js";
68 import table from "@/utils/mixin/table"; 66 import table from "@/utils/mixin/table";
69 import jump from "./mixin/jump"; 67 import jump from "./mixin/jump";
70 import { startBusinessFlow, selectJsydQlxxSplitMergeBefore,selectZdjbxxSplitMergeLast} from "@/api/ywbl.js"; 68 import { startBusinessFlow, selectJsydQlxxSplitMergeBefore, selectZdjbxxSplitMergeLast } from "@/api/ywbl.js";
71 export default { 69 export default {
72 mixins: [table, jump], 70 mixins: [table, jump],
73 props: { 71 props: {
...@@ -77,55 +75,46 @@ ...@@ -77,55 +75,46 @@
77 data () { 75 data () {
78 return { 76 return {
79 queryForm: defaultParameters.defaultParameters(), 77 queryForm: defaultParameters.defaultParameters(),
80 // 表格数据 78 // 表格数据
81 tableData: { 79 tableData: {
82 columns: [{ 80 columns: [{
83 label: '选择', 81 label: '选择',
84 width: '50px', 82 width: '50px',
85 render: (h, scope) => { 83 render: (h, scope) => {
86 return ( 84 return (
87 <div class="orgColumn"> 85 <div class="orgColumn">
88 <el-radio v-model={this.radioVal} label={scope.row.bhqkbsm}> 86 <el-radio v-model={this.radioVal} label={scope.row.bhqkbsm}>
89 &ensp; 87 &ensp;
90 </el-radio> 88 </el-radio>
91 </div> 89 </div>
92 ) 90 )
93 } 91 }
94 },].concat(datas.columns()), 92 },].concat(datas.columns()),
95 data: [], 93 data: [],
96 columns1: datastwo.columns1(), 94 columns1: datastwo.columns1(),
97 datastwo:[] 95 datastwo: []
98 }, 96 },
99 bdcdysz: [], 97 bdcdysz: [],
100 radioVal:"" 98 radioVal: ""
101 } 99 }
102 }, 100 },
103 mounted () { 101 mounted () {
104 sendThis(this); 102 sendThis(this)
105 }, 103 },
106 watch: {
107 radioVal: {
108 deep: true,
109 handler(newVal, oldVal) {
110 this.close()
111 },
112 },
113 },
114 methods: { 104 methods: {
115 // 单选事件 105 // 单选事件
116 close(){ 106 close () {
117 console.log("ddddd",this.radioVal); 107 this.queryForm.bhqkbsm = this.radioVal
118 console.log("...this.queryForm",this.queryForm); 108 selectZdjbxxSplitMergeLast({ ...this.queryForm }).then((res) => {
119 this.queryForm.bhqkbsm=this.radioVal
120 // delete this.queryForm.sqywbm
121 selectZdjbxxSplitMergeLast({ ...this.queryForm,}).then((res) => {
122 this.$endLoading(); 109 this.$endLoading();
123 if (res.code === 200) { 110 if (res.code === 200) {
124 let { total, records } = res.result; 111 this.tableData.datastwo = res.result
125 this.tableData.total = total; 112 this.tableData.datastwo.forEach(item => {
126 this.tableData.datastwo = [...res.result,...res.result]; 113 item.bglx = '2'
114 })
115 this.bdcdysz = [...this.bdcdysz[0], this.tableData.datastwo]
127 } 116 }
128 }); 117 })
129 }, 118 },
130 queryClick () { 119 queryClick () {
131 this.$startLoading(); 120 this.$startLoading();
...@@ -133,17 +122,21 @@ ...@@ -133,17 +122,21 @@
133 selectJsydQlxxSplitMergeBefore({ ...this.queryForm, ...this.pageData }).then((res) => { 122 selectJsydQlxxSplitMergeBefore({ ...this.queryForm, ...this.pageData }).then((res) => {
134 this.$endLoading(); 123 this.$endLoading();
135 if (res.code === 200) { 124 if (res.code === 200) {
136 let { total, records } = res.result; 125 this.tableData.data = res.result
137 this.tableData.total = total;
138 this.tableData.data = [...res.result,...res.result];
139 } 126 }
140 }); 127 });
141 }, 128 },
129 handleRowClick (val) {
130 this.radioVal = val.bhqkbsm
131 let obj = val
132 obj.bsmSsql = val.bsmQlxx;
133 obj.ybdcqzsh = val.bdcqzh;
134 obj.bglx = '1';
135
136 this.bdcdysz[0] = obj
137 this.close()
138 },
142 submitForm () { 139 submitForm () {
143 if (this.bdcdysz.length == 0) {
144 this.$message.error("请至少选择一条数据");
145 return;
146 }
147 startBusinessFlow({ 140 startBusinessFlow({
148 bsmSqyw: this.sqywInfo.parentid, 141 bsmSqyw: this.sqywInfo.parentid,
149 bdcdysz: this.bdcdysz, 142 bdcdysz: this.bdcdysz,
...@@ -162,16 +155,9 @@ ...@@ -162,16 +155,9 @@
162 store.dispatch('user/refreshPage', true); 155 store.dispatch('user/refreshPage', true);
163 } 156 }
164 } else { 157 } else {
165 this.$message.error(res.message); 158 this.$message.error(res.message)
166 } 159 }
167 }); 160 })
168 },
169 handleSelectionChange (val) {
170 val.forEach((item, index) => {
171 item.bsmSsql = item.bsmQlxx;
172 item.ybdcqzsh = item.bdcqzh;
173 });
174 this.bdcdysz = val;
175 }, 161 },
176 openBook (row) { 162 openBook (row) {
177 var param = { 163 var param = {
......
...@@ -61,10 +61,6 @@ module.exports = { ...@@ -61,10 +61,6 @@ module.exports = {
61 // configureWebpack通过操作对象的形式,来修改默认的webpack配置 61 // configureWebpack通过操作对象的形式,来修改默认的webpack配置
62 configureWebpack: { 62 configureWebpack: {
63 name: name, 63 name: name,
64 optimization: {
65 usedExports: true,
66 minimize: true
67 },
68 entry: { 64 entry: {
69 app: './src/main.js' 65 app: './src/main.js'
70 }, 66 },
......