feat(jzd):界址点
Showing
1 changed file
with
19 additions
and
4 deletions
... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ |
2 | <div class="main"> | 2 | <div class="main"> |
3 | <div class="button"> | 3 | <div class="button"> |
4 | <el-button type="primary" @click="oneExit">编辑</el-button> | 4 | <el-button type="primary" @click="oneExit">编辑</el-button> |
5 | <el-button type="primary">保存</el-button> | 5 | <el-button type="primary" @click="save">保存</el-button> |
6 | <el-button type="primary" @click="batchExit">批量修改</el-button> | 6 | <el-button type="primary" @click="batchExit">批量修改</el-button> |
7 | </div> | 7 | </div> |
8 | <div class="table"> | 8 | <div class="table"> |
... | @@ -20,8 +20,10 @@ | ... | @@ -20,8 +20,10 @@ |
20 | <td><input type="checkbox" v-model="item.isCheck" @change="changeAll"/></td> | 20 | <td><input type="checkbox" v-model="item.isCheck" @change="changeAll"/></td> |
21 | <td><input type="text" class="formInput" v-model="item.jzdh" readonly="readonly"/></td> | 21 | <td><input type="text" class="formInput" v-model="item.jzdh" readonly="readonly"/></td> |
22 | <td><input type="text" class="formInput" v-model="item.sxh" readonly="readonly"/></td> | 22 | <td><input type="text" class="formInput" v-model="item.sxh" readonly="readonly"/></td> |
23 | <td><input type="text" class="formInput" v-model="item.xzbz" :readonly="item.iszb"/></td> | 23 | <td><input type="text" class="formInput" v-model="item.xzbz" :readonly="item.iszb" |
24 | <td><input tepe="text" class="formInput" v-model="item.yzbz" :readonly="item.iszb"/></td> | 24 | @keydown="oninput"/></td> |
25 | <td><input tepe="text" class="formInput" v-model="item.yzbz" :readonly="item.iszb" | ||
26 | @keydown="oninput"/></td> | ||
25 | <td> | 27 | <td> |
26 | <el-select v-model="item.jblx" :disabled="item.jbisdisabled"> | 28 | <el-select v-model="item.jblx" :disabled="item.jbisdisabled"> |
27 | <el-option | 29 | <el-option |
... | @@ -202,8 +204,21 @@ | ... | @@ -202,8 +204,21 @@ |
202 | }) | 204 | }) |
203 | }, | 205 | }, |
204 | methods: { | 206 | methods: { |
207 | save() { | ||
208 | console.log("保存...."); | ||
209 | for (let item of this.jzdlist) { | ||
210 | if (item.isCheck) { | ||
211 | item.iszb = 'readonly'; | ||
212 | item.jbisdisabled = true; | ||
213 | item.jzdisdisabled = true; | ||
214 | } | ||
215 | } | ||
216 | }, | ||
217 | oninput(e) { | ||
218 | e.target.value = (e.target.value.match(/^\d*(\.?\d{0,0})/g)[0]) || null | ||
219 | }, | ||
205 | changeAll(e) { | 220 | changeAll(e) { |
206 | if (!e.target.checked){ | 221 | if (!e.target.checked) { |
207 | console.log("11111") | 222 | console.log("11111") |
208 | this.isCheckAll = false; | 223 | this.isCheckAll = false; |
209 | return | 224 | return | ... | ... |
-
Please register or sign in to post a comment