d247a19a by weimo934

feat(jzd,jzx):界址点、线

1 parent c2f1a553
......@@ -55,7 +55,7 @@
center>
<div class="plxg">
<div>
<span class=""> 界标类型:</span>
<span class="batchlx"> 界标类型:</span>
<el-select v-model="batchJzd.jblx">
<el-option
v-for="i in jblx"
......@@ -66,7 +66,7 @@
</el-select>
</div>
<div>
<span>界址点类型:</span>
<span class="batchlx">界址点类型:</span>
<el-select v-model="batchJzd.jzdlx">
<el-option
v-for="i in jzdlx"
......@@ -163,22 +163,28 @@
mounted() {
// 该标识码继承过来
let bsm = '401044005bad0557d5e3787239d8e18e';
queryjzd(bsm).then(res => {
for (let i = 0; i < res.result.length; i++) {
res.result[i]['isCheck'] = false;
res.result[i]['iszb'] = 'readonly';
res.result[i]['jzdisdisabled'] = true;
}
this.jzdlist = res.result;
console.log("=====================================")
console.log(this.jzdlist)
})
this.getData(bsm)
},
methods: {
getData(bsm) {
queryjzd(bsm).then(res => {
for (let i = 0; i < res.result.length; i++) {
res.result[i]['isCheck'] = false;
res.result[i]['iszb'] = 'readonly';
res.result[i]['jzdisdisabled'] = true;
}
this.jzdlist = res.result;
})
},
save() {
console.log("保存....");
jzdsingleModify(this.jzdlist).then(res => {
console.log(res)
if (res.success) {
Message.success("保存成功")
} else {
Message.error(res.message)
}
})
for (let item of this.jzdlist) {
if (item.isCheck) {
......@@ -192,12 +198,10 @@
e.target.value = (e.target.value.match(/^\d*(\.?\d{0,4})/g)[0]) || null
},
changeAll(e) {
console.log(e)
if (!e.target.checked) {
this.isCheckAll = false;
return
}
this.batch.bsms.length = 0;
for (let item of this.jzdlist) {
if (!item.isCheck) {
this.isCheckAll = false;
......@@ -222,13 +226,13 @@
},
batchExit() {
console.log("批量修改")
let flag=false;
for (let item of this.jzdlist){
if (item.isCheck){
flag=true;
let flag = false;
for (let item of this.jzdlist) {
if (item.isCheck) {
flag = true;
}
}
if (flag){
if (flag) {
this.centerDialogVisible = true;
} else {
Message.info("请勾选要修改的数据")
......@@ -293,4 +297,8 @@
table:hover {
cursor: pointer;
}
.batchlx {
text-align: center;
}
</style>
......
......@@ -65,7 +65,7 @@
width="30%"
center>
<div class="plxg">
<div>
<div class="batchlx">
<span class=""> 界址线类型:</span>
<el-select v-model="batchJzx.jzxlx">
<el-option
......@@ -76,7 +76,7 @@
></el-option>
</el-select>
</div>
<div>
<div class="batchlx">
<span>界址线位置:</span>
<el-select v-model="batchJzx.jzxwz">
<el-option
......@@ -87,8 +87,8 @@
></el-option>
</el-select>
</div>
<div>
<span>界线性质:</span>
<div class="batchlx">
<span class="">界线性质:</span>
<el-select v-model="batchJzx.jxxz">
<el-option
v-for="i in jxxz"
......@@ -229,22 +229,28 @@
mounted() {
// 该标识码继承过来
let bsm = '044dc12648a1f41374679281da63e93b';
queryjzx(bsm).then(res => {
for (let i = 0; i < res.result.length; i++) {
res.result[i]['isCheck'] = false;
res.result[i]['jjisdisabled'] = 'readonly';
res.result[i]['jzxisdisabled'] = true;
}
this.jzxlist = res.result;
console.log("================================")
console.log(this.jzxlist)
})
this.getData(bsm)
},
methods: {
getData(bsm) {
queryjzx(bsm).then(res => {
for (let i = 0; i < res.result.length; i++) {
res.result[i]['isCheck'] = false;
res.result[i]['jjisdisabled'] = 'readonly';
res.result[i]['jzxisdisabled'] = true;
}
this.jzxlist = res.result;
})
},
save() {
console.log("保存....");
jzxsingleModify(this.jzxlist).then(res => {
console.log(res)
if (res.success) {
Message.success("保存成功")
} else {
Message.error(res.message)
}
})
for (let item of this.jzxlist) {
if (item.isCheck) {
......@@ -357,4 +363,9 @@
table:hover {
cursor: pointer;
}
.batchlx {
//text-align: justify;
justify-content: space-between;
}
</style>
......