3b3f8f0b by weimo934

feat(jzd):界址点

1 parent 40b5c69a
...@@ -45,16 +45,56 @@ ...@@ -45,16 +45,56 @@
45 </tr> 45 </tr>
46 </table> 46 </table>
47 </div> 47 </div>
48 <div>
49 <el-dialog
50 title="批量修改"
51 :visible.sync="centerDialogVisible"
52 width="30%"
53 center>
54 <div class="plxg">
55 <div>
56 <span class=""> 界标类型:</span>
57 <el-select>
58 <el-option
59 v-for="i in jblx"
60 :key="i.key"
61 :label="i.label"
62 :value="i.value"
63 ></el-option>
64 </el-select>
65 </div>
66 <div>
67 <span>界址点类型:</span>
68 <el-select>
69 <el-option
70 v-for="i in jzdlx"
71 :key="i.key"
72 :label="i.label"
73 :value="i.value"
74 ></el-option>
75 </el-select>
76 </div>
77
78 </div>
79 <span slot="footer" class="dialog-footer">
80 <el-button @click="centerDialogVisible = false">取 消</el-button>
81 <el-button type="primary" @click="centerDialogVisible = false">确 定</el-button>
82 </span>
83 </el-dialog>
84 </div>
48 </div> 85 </div>
49 </template> 86 </template>
50 87
51 <script> 88 <script>
89 import {queryjzd} from '../../../api/zd'
90
52 export default { 91 export default {
53 name: "", 92 name: "",
54 components: {}, 93 components: {},
55 props: {}, 94 props: {},
56 data() { 95 data() {
57 return { 96 return {
97 centerDialogVisible: false,
58 jblx: [ 98 jblx: [
59 { 99 {
60 key: '1', 100 key: '1',
...@@ -145,19 +185,30 @@ ...@@ -145,19 +185,30 @@
145 } 185 }
146 }, 186 },
147 created() { 187 created() {
188
148 }, 189 },
149 mounted() { 190 mounted() {
191 // 该标识码继承过来
192 let bsm = '401044005bad0557d5e3787239d8e18e';
193 queryjzd(bsm).then(res => {
194 this.jzdlist = res.result;
195 for (let i = 0; i < this.jzdlist.length; i++) {
196 this.jzdlist[i]['isCheck'] = false;
197 this.jzdlist[i]['iszb'] = 'readonly';
198 this.jzdlist[i]['jbisdisabled'] = true;
199 this.jzdlist[i]['jzdisdisabled'] = true;
200 }
201 })
150 }, 202 },
151 methods: { 203 methods: {
152 allcheck(value) { 204 allcheck(value) {
153 console.log(value.target.checked)
154 console.log("全选");
155 for (let item of this.jzdlist) { 205 for (let item of this.jzdlist) {
156 item.isCheck = value.target.checked; 206 item.isCheck = value.target.checked;
157 } 207 }
158 }, 208 },
159 oneExit() { 209 oneExit() {
160 console.log("单一修改"); 210 console.log("oneExit......")
211 console.log(this.jzdlist)
161 for (let item of this.jzdlist) { 212 for (let item of this.jzdlist) {
162 console.log(item) 213 console.log(item)
163 if (item.isCheck) { 214 if (item.isCheck) {
...@@ -170,6 +221,7 @@ ...@@ -170,6 +221,7 @@
170 }, 221 },
171 batchExit() { 222 batchExit() {
172 console.log("批量修改") 223 console.log("批量修改")
224 this.centerDialogVisible = true;
173 } 225 }
174 }, 226 },
175 computed: {}, 227 computed: {},
...@@ -206,4 +258,8 @@ ...@@ -206,4 +258,8 @@
206 text-align: center; 258 text-align: center;
207 cursor: text; 259 cursor: text;
208 } 260 }
261
262 .plxg span {
263 width: 300px;
264 }
209 </style> 265 </style>
......