480eb32b by weimo934

feat(jzx):界址线

1 parent ecf4e521
...@@ -25,3 +25,16 @@ export function queryjzd(glBsm) { ...@@ -25,3 +25,16 @@ export function queryjzd(glBsm) {
25 } 25 }
26 }) 26 })
27 } 27 }
28 /**
29 * 查询界址线
30 */
31 export function queryjzx(glBsm) {
32 return request({
33 url: '/zd/qjJzx/getQjJzxListByGlBsm',
34 method: 'get',
35 params: {
36 glBsm
37 }
38 })
39 }
40
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
25 <td><input tepe="text" class="formInput" v-model="item.yzbz" :readonly="item.iszb" 25 <td><input tepe="text" class="formInput" v-model="item.yzbz" :readonly="item.iszb"
26 @keydown="oninput"/></td> 26 @keydown="oninput"/></td>
27 <td> 27 <td>
28 <el-select v-model="item.jblx" :disabled="item.jbisdisabled"> 28 <el-select v-model="item.jblx" :disabled="item.jzdisdisabled">
29 <el-option 29 <el-option
30 v-for="i in jblx" 30 v-for="i in jblx"
31 :key="i.key" 31 :key="i.key"
...@@ -88,10 +88,10 @@ ...@@ -88,10 +88,10 @@
88 </template> 88 </template>
89 89
90 <script> 90 <script>
91 import {queryjzd} from '../../../api/zd' 91 import {queryjzx} from '../../../api/zd'
92 92
93 export default { 93 export default {
94 name: "", 94 name: "界址点",
95 components: {}, 95 components: {},
96 props: {}, 96 props: {},
97 data() { 97 data() {
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
149 } 149 }
150 ], 150 ],
151 jzdlist: [ 151 jzdlist: [
152 { 152 /* {
153 isCheck: false, 153 isCheck: false,
154 jzdh: 'JZDH001', 154 jzdh: 'JZDH001',
155 sxh: '1', 155 sxh: '1',
...@@ -160,29 +160,7 @@ ...@@ -160,29 +160,7 @@
160 iszb: 'readonly', 160 iszb: 'readonly',
161 jbisdisabled: true, 161 jbisdisabled: true,
162 jzdisdisabled: true 162 jzdisdisabled: true
163 }, { 163 }*/
164 isCheck: false,
165 jzdh: 'JZDH002',
166 sxh: '2',
167 xzbz: '10.0',
168 yzbz: '11.0',
169 jblx: '2',
170 jzdlx: '2',
171 iszb: 'readonly',
172 jbisdisabled: true,
173 jzdisdisabled: true
174 }, {
175 isCheck: false,
176 jzdh: 'JZDH003',
177 sxh: '3',
178 xzbz: '10.0',
179 yzbz: '11.0',
180 jblx: '3',
181 jzdlx: '3',
182 iszb: 'readonly',
183 jbisdisabled: true,
184 jzdisdisabled: true
185 },
186 164
187 ] 165 ]
188 } 166 }
...@@ -192,12 +170,11 @@ ...@@ -192,12 +170,11 @@
192 }, 170 },
193 mounted() { 171 mounted() {
194 // 该标识码继承过来 172 // 该标识码继承过来
195 let bsm = '401044005bad0557d5e3787239d8e18e'; 173 let bsm = '044dc12648a1f41374679281da63e93b';
196 queryjzd(bsm).then(res => { 174 queryjzx(bsm).then(res => {
197 for (let i = 0; i < res.result.length; i++) { 175 for (let i = 0; i < res.result.length; i++) {
198 res.result[i]['isCheck'] = false; 176 res.result[i]['isCheck'] = false;
199 res.result[i]['iszb'] = 'readonly'; 177 res.result[i]['iszb'] = 'readonly';
200 res.result[i]['jbisdisabled'] = true;
201 res.result[i]['jzdisdisabled'] = true; 178 res.result[i]['jzdisdisabled'] = true;
202 } 179 }
203 this.jzdlist = res.result; 180 this.jzdlist = res.result;
...@@ -215,7 +192,7 @@ ...@@ -215,7 +192,7 @@
215 } 192 }
216 }, 193 },
217 oninput(e) { 194 oninput(e) {
218 e.target.value = (e.target.value.match(/^\d*(\.?\d{0,0})/g)[0]) || null 195 e.target.value = (e.target.value.match(/^\d*(\.?\d{0,4})/g)[0]) || null
219 }, 196 },
220 changeAll(e) { 197 changeAll(e) {
221 if (!e.target.checked) { 198 if (!e.target.checked) {
...@@ -240,7 +217,6 @@ ...@@ -240,7 +217,6 @@
240 for (let item of this.jzdlist) { 217 for (let item of this.jzdlist) {
241 if (item.isCheck) { 218 if (item.isCheck) {
242 item.iszb = false; 219 item.iszb = false;
243 item.jbisdisabled = false;
244 item.jzdisdisabled = false; 220 item.jzdisdisabled = false;
245 } 221 }
246 } 222 }
......