style:地役权
Showing
2 changed files
with
18 additions
and
34 deletions
1 | import { mapGetters } from 'vuex' | 1 | import { mapGetters } from 'vuex' |
2 | // 引入详情弹框 | ||
3 | import dataDetails from "@/components/dataDetails/edit-dialog"; | ||
2 | let mixin = { | 4 | let mixin = { |
3 | data () { | 5 | data () { |
4 | return { | 6 | return { |
... | @@ -7,6 +9,9 @@ let mixin = { | ... | @@ -7,6 +9,9 @@ let mixin = { |
7 | } | 9 | } |
8 | } | 10 | } |
9 | }, | 11 | }, |
12 | components: { | ||
13 | dataDetails, | ||
14 | }, | ||
10 | computed: { | 15 | computed: { |
11 | ...mapGetters(['dicData']) | 16 | ...mapGetters(['dicData']) |
12 | }, | 17 | }, |
... | @@ -28,6 +33,11 @@ let mixin = { | ... | @@ -28,6 +33,11 @@ let mixin = { |
28 | }, | 33 | }, |
29 | handleSubmit () { | 34 | handleSubmit () { |
30 | this.featchData() | 35 | this.featchData() |
36 | }, | ||
37 | // 详情 | ||
38 | handleEdit (row) { | ||
39 | this.title = row.rectypeName | ||
40 | this.$refs.editLog.isShow(row); | ||
31 | } | 41 | } |
32 | } | 42 | } |
33 | } | 43 | } | ... | ... |
... | @@ -76,10 +76,8 @@ | ... | @@ -76,10 +76,8 @@ |
76 | </lb-table> | 76 | </lb-table> |
77 | <message-tips ref="msg" :message="message" /> | 77 | <message-tips ref="msg" :message="message" /> |
78 | </div> | 78 | </div> |
79 | <!-- XML报文 --> | 79 | <!-- 编辑 --> |
80 | <xml-message ref="dialog" :xml="xml" /> | 80 | <dataDetails ref="editLog" :title="title" /> |
81 | <!-- 数据详情 --> | ||
82 | <edit-dialog ref="editLog" :bsmSjsb="bsmSjsb" :diaData="diaData" /> | ||
83 | </div> | 81 | </div> |
84 | </template> | 82 | </template> |
85 | 83 | ||
... | @@ -90,13 +88,11 @@ import business from '@/api/business' | ... | @@ -90,13 +88,11 @@ import business from '@/api/business' |
90 | import dataReporting from '@/api/dataReporting' | 88 | import dataReporting from '@/api/dataReporting' |
91 | import tableMixin from '@/mixins/tableMixin.js' | 89 | import tableMixin from '@/mixins/tableMixin.js' |
92 | import treeSelect from '@/components/treeSelect/index.vue' | 90 | import treeSelect from '@/components/treeSelect/index.vue' |
93 | import editDialog from '@/components/dataDetails/edit-dialog.vue' | ||
94 | export default { | 91 | export default { |
95 | name: "dyiq", | 92 | name: "dyiq", |
96 | mixins: [tableMixin], | 93 | mixins: [tableMixin], |
97 | components: { | 94 | components: { |
98 | treeSelect, | 95 | treeSelect |
99 | editDialog | ||
100 | }, | 96 | }, |
101 | data () { | 97 | data () { |
102 | return { | 98 | return { |
... | @@ -113,8 +109,6 @@ export default { | ... | @@ -113,8 +109,6 @@ export default { |
113 | xxx1: '', | 109 | xxx1: '', |
114 | currentPage: 1 | 110 | currentPage: 1 |
115 | }, | 111 | }, |
116 | // 需役地不动产单元号 | ||
117 | xxx1Options: [], | ||
118 | tableData: { | 112 | tableData: { |
119 | columns: [{ | 113 | columns: [{ |
120 | label: '序号', | 114 | label: '序号', |
... | @@ -129,21 +123,11 @@ export default { | ... | @@ -129,21 +123,11 @@ export default { |
129 | return ( | 123 | return ( |
130 | <div> | 124 | <div> |
131 | <el-button | 125 | <el-button |
132 | type="text" | 126 | type="primary" |
133 | size="mini" | 127 | size="mini" |
134 | icon="el-icon-folder" | 128 | onClick={() => { this.handleEdit(scope.row) }} |
135 | style="color:#67C23A" | ||
136 | onClick={() => { this.handleXmlres(scope.$index, scope.row) }} | ||
137 | > | 129 | > |
138 | XML报文 | 130 | 详情 |
139 | </el-button> | ||
140 | <el-button | ||
141 | type="text" | ||
142 | size="mini" | ||
143 | icon="el-icon-view" | ||
144 | onClick={() => { this.handlDatadetails(scope.$index, scope.row) }} | ||
145 | > | ||
146 | 数据详情 | ||
147 | </el-button> | 131 | </el-button> |
148 | </div> | 132 | </div> |
149 | ); | 133 | ); |
... | @@ -151,7 +135,7 @@ export default { | ... | @@ -151,7 +135,7 @@ export default { |
151 | }, | 135 | }, |
152 | 136 | ||
153 | ]), | 137 | ]), |
154 | data: [] | 138 | data: [{}] |
155 | }, | 139 | }, |
156 | pageData: { | 140 | pageData: { |
157 | total: 0, | 141 | total: 0, |
... | @@ -168,7 +152,7 @@ export default { | ... | @@ -168,7 +152,7 @@ export default { |
168 | this.form = Object.assign(this.form, this.formData) | 152 | this.form = Object.assign(this.form, this.formData) |
169 | let { result: { list, total, pages: pageSize, pageNum: current } | 153 | let { result: { list, total, pages: pageSize, pageNum: current } |
170 | } = await business.getQlfQlDyiqList(this.form) | 154 | } = await business.getQlfQlDyiqList(this.form) |
171 | this.tableData.data = list | 155 | // this.tableData.data = list |
172 | this.pageData = { | 156 | this.pageData = { |
173 | pageSize, | 157 | pageSize, |
174 | current, | 158 | current, |
... | @@ -178,17 +162,7 @@ export default { | ... | @@ -178,17 +162,7 @@ export default { |
178 | this.message = error | 162 | this.message = error |
179 | this.$refs.msg.messageShow() | 163 | this.$refs.msg.messageShow() |
180 | } | 164 | } |
181 | }, | ||
182 | async handlDatadetails (index, row) { | ||
183 | let { result: res, message } = await dataReporting.getQltFwFdcqYzByCondition(row.BSM_SJSB) | ||
184 | if (res != null) { | ||
185 | this.diaData = res | ||
186 | this.bsmSjsb = row.BSM_SJSB | ||
187 | this.$store.dispatch('business/setEdit'); this.$refs.editLog.isShow() | ||
188 | } else { | ||
189 | this.$message(message) | ||
190 | } | 165 | } |
191 | }, | ||
192 | } | 166 | } |
193 | } | 167 | } |
194 | </script> | 168 | </script> | ... | ... |
-
Please register or sign in to post a comment