3b3f8f0b by weimo934

feat(jzd):界址点

1 parent 40b5c69a
......@@ -45,16 +45,56 @@
</tr>
</table>
</div>
<div>
<el-dialog
title="批量修改"
:visible.sync="centerDialogVisible"
width="30%"
center>
<div class="plxg">
<div>
<span class=""> 界标类型:</span>
<el-select>
<el-option
v-for="i in jblx"
:key="i.key"
:label="i.label"
:value="i.value"
></el-option>
</el-select>
</div>
<div>
<span>界址点类型:</span>
<el-select>
<el-option
v-for="i in jzdlx"
:key="i.key"
:label="i.label"
:value="i.value"
></el-option>
</el-select>
</div>
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="centerDialogVisible = false">取 消</el-button>
<el-button type="primary" @click="centerDialogVisible = false">确 定</el-button>
</span>
</el-dialog>
</div>
</div>
</template>
<script>
import {queryjzd} from '../../../api/zd'
export default {
name: "",
components: {},
props: {},
data() {
return {
centerDialogVisible: false,
jblx: [
{
key: '1',
......@@ -145,19 +185,30 @@
}
},
created() {
},
mounted() {
// 该标识码继承过来
let bsm = '401044005bad0557d5e3787239d8e18e';
queryjzd(bsm).then(res => {
this.jzdlist = res.result;
for (let i = 0; i < this.jzdlist.length; i++) {
this.jzdlist[i]['isCheck'] = false;
this.jzdlist[i]['iszb'] = 'readonly';
this.jzdlist[i]['jbisdisabled'] = true;
this.jzdlist[i]['jzdisdisabled'] = true;
}
})
},
methods: {
allcheck(value) {
console.log(value.target.checked)
console.log("全选");
for (let item of this.jzdlist) {
item.isCheck = value.target.checked;
}
},
oneExit() {
console.log("单一修改");
console.log("oneExit......")
console.log(this.jzdlist)
for (let item of this.jzdlist) {
console.log(item)
if (item.isCheck) {
......@@ -170,6 +221,7 @@
},
batchExit() {
console.log("批量修改")
this.centerDialogVisible = true;
}
},
computed: {},
......@@ -206,4 +258,8 @@
text-align: center;
cursor: text;
}
.plxg span {
width: 300px;
}
</style>
......