a361b134 by 杨威
2 parents e3c300ae 5bc65da5
......@@ -57,8 +57,10 @@
width="30%"
>
<div class="plxg">
<div>
<span class="batchlx"> 界标类型:</span>
<table>
<tr>
<th> 界标类型:</th>
<td>
<el-select v-model="batchJzd.jblx">
<el-option
v-for="i in jblx"
......@@ -67,9 +69,11 @@
:value="i.value"
></el-option>
</el-select>
</div>
<div>
<span class="batchlx">界址点类型:</span>
</td>
</tr>
<tr>
<th>界址点类型:</th>
<td>
<el-select v-model="batchJzd.jzdlx">
<el-option
v-for="i in jzdlx"
......@@ -78,23 +82,16 @@
:value="i.value"
></el-option>
</el-select>
</td>
</tr>
</table>
</div>
</div>
<span slot="footer" class="dialog-footer">
<div class="dialog-footer">
<el-button @click="centerDialogVisible = false">取 消</el-button>
<el-button type="primary" @click="jzdbatchsave">确 定</el-button>
</span>
</div>
</el-dialog>
</div>
<!--
<div class="header-button" :style="{width:mainBoxWidth+'px'}">
<el-button type="primary" @click="oneExit">编辑</el-button>
<el-button type="primary" @click="save">保存</el-button>
<el-button type="primary" @click="batchExit">批量修改</el-button>
<el-button type="primary" class="saveBtn" @click="save">保存</el-button>
</div> -->
</div>
</template>
......@@ -164,8 +161,8 @@
jzdlist: [],
batchJzd: {
bsms: [],
jblx: '1',
jzdlx: '1'
jblx: '',
jzdlx: ''
}
}
},
......@@ -174,12 +171,16 @@
},
mounted() {
let bsm = this.$store.state.zdbsm
this.bsm=bsm;
this.bsm = bsm;
this.getData(bsm)
},
methods: {
result() {
this.batchJzd.jblx = '';
this.batchJzd.jzdlx = '';
},
getData(bsm) {
queryjzd({glBsm:bsm}).then(res => {
queryjzd({glBsm: bsm}).then(res => {
for (let i = 0; i < res.result.length; i++) {
res.result[i]['isCheck'] = false;
res.result[i]['iszb'] = 'readonly';
......@@ -269,8 +270,11 @@
computed: {},
watch: {
"$store.state.zdbsm": function (bsm) {
this.bsm=bsm
this.bsm = bsm
this.getData(bsm)
},
centerDialogVisible() {
this.result();
}
},
}
......@@ -289,7 +293,6 @@
height: 50px;
position: fixed;
bottom: 0;
right: ;
text-align: center;
background-color: #ffffff;
.saveBtn {
......@@ -328,7 +331,11 @@
table:hover {
cursor: pointer;
}
.plxg {
.el-select{
float: left;
}
}
.batchlx {
text-align: center;
}
......@@ -366,4 +373,8 @@
width: 180px
}
.dialog-footer {
text-align: center;
margin-top: 20px;
}
</style>
......
......@@ -69,8 +69,10 @@
width="30%"
>
<div class="plxg">
<div class="batchlx">
<span class=""> 界址线类型:</span>
<table>
<tr>
<th>界址线类型:</th>
<td>
<el-select v-model="batchJzx.jzxlx">
<el-option
v-for="i in jzxlx"
......@@ -79,9 +81,11 @@
:value="i.value"
></el-option>
</el-select>
</div>
<div class="batchlx">
<span>界址线位置:</span>
</td>
</tr>
<tr>
<th>界址线位置:</th>
<td>
<el-select v-model="batchJzx.jzxwz">
<el-option
v-for="i in jzxwz"
......@@ -90,9 +94,11 @@
:value="i.value"
></el-option>
</el-select>
</div>
<div class="batchlx">
<span class="">界线性质:</span>
</td>
</tr>
<tr>
<th>界线性质:</th>
<td>
<el-select v-model="batchJzx.jxxz">
<el-option
v-for="i in jxxz"
......@@ -101,13 +107,14 @@
:value="i.value"
></el-option>
</el-select>
</td>
</tr>
</table>
</div>
</div>
<span slot="footer" class="dialog-footer">
<div class="dialog-footer">
<el-button @click="centerDialogVisible = false">取 消</el-button>
<el-button type="primary" @click="jzxbatchsave">确 定</el-button>
</span>
</div>
</el-dialog>
</div>
</div>
......@@ -222,9 +229,9 @@
jzxlist: [],
batchJzx: {
bsms: [],
jzxlx: '250200',
jzxwz: '1',
jxxz: '600001'
jzxlx: '',
jzxwz: '',
jxxz: ''
}
}
},
......@@ -233,10 +240,15 @@
},
mounted() {
let bsm = this.$store.state.zdbsm
this.bsm=bsm;
this.bsm = bsm;
this.getData(bsm)
},
methods: {
result() {
this.batchJzx.jzxlx = '';
this.batchJzx.jzxwz = '';
this.batchJzx.jxxz = '';
},
getData(bsm) {
queryjzx(bsm).then(res => {
for (let i = 0; i < res.result.length; i++) {
......@@ -295,7 +307,6 @@
},
batchExit() {
console.log("批量修改")
let flag = false;
for (let item of this.jzxlist) {
if (item.isCheck) {
......@@ -328,8 +339,11 @@
computed: {},
watch: {
"$store.state.zdbsm": function (bsm) {
this.bsm=bsm;
this.bsm = bsm;
this.getData(bsm)
},
centerDialogVisible() {
this.result();
}
},
}
......@@ -378,29 +392,46 @@
height: 100px;
}
}
.cz {
width: 50px;
}
.qsd {
width: 150px;
}
.zzd {
width: 150px;
}
.jzdj {
width: 150px;
}
.jzxlx {
width: 180px;
}
.jzxwz {
width: 150px;
}
.jxxz {
width: 150px;
}
.sm {
width: 150px;
}
.dialog-footer {
text-align: center;
margin-top: 20px;
}
.plxg{
.el-select{
float: left;
}
}
</style>
......