d4a61983 by 杨威
2 parents 649cc648 6fc90ce5
...@@ -48,3 +48,16 @@ export function queryjzd(glBsm) { ...@@ -48,3 +48,16 @@ export function queryjzd(glBsm) {
48 }, 48 },
49 }); 49 });
50 } 50 }
51 /**
52 * 查询界址线
53 */
54 export function queryjzx(glBsm) {
55 return request({
56 url: '/zd/qjJzx/getQjJzxListByGlBsm',
57 method: 'get',
58 params: {
59 glBsm
60 }
61 })
62 }
63
......
...@@ -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,11 +192,10 @@ ...@@ -215,11 +192,10 @@
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) {
222 console.log("11111")
223 this.isCheckAll = false; 199 this.isCheckAll = false;
224 return 200 return
225 } 201 }
...@@ -240,7 +216,6 @@ ...@@ -240,7 +216,6 @@
240 for (let item of this.jzdlist) { 216 for (let item of this.jzdlist) {
241 if (item.isCheck) { 217 if (item.isCheck) {
242 item.iszb = false; 218 item.iszb = false;
243 item.jbisdisabled = false;
244 item.jzdisdisabled = false; 219 item.jzdisdisabled = false;
245 } 220 }
246 } 221 }
...@@ -257,7 +232,7 @@ ...@@ -257,7 +232,7 @@
257 </script> 232 </script>
258 <style scoped lang="less"> 233 <style scoped lang="less">
259 /deep/.el-input.is-disabled .el-input__inner{ 234 /deep/.el-input.is-disabled .el-input__inner{
260 color: #606764; 235 color: #cc1214;
261 } 236 }
262 .main { 237 .main {
263 box-sizing: border-box; 238 box-sizing: border-box;
...@@ -289,7 +264,7 @@ ...@@ -289,7 +264,7 @@
289 cursor: text; 264 cursor: text;
290 } 265 }
291 266
292 .plxg span { 267 table:hover{
293 width: 300px; 268 cursor: pointer;
294 } 269 }
295 </style> 270 </style>
......