提交 f85e38c3 authored 作者: huaxinzhu's avatar huaxinzhu

fix-bug2013,2008

上级 a7b6059e
......@@ -66,7 +66,8 @@
@pagination="getList"
/>
<!-- 添加或修改freight对话框 -->
<el-dialog :title="title" :visible.sync="isOpen" v-if="isOpen" width="70%" class="freightTemplate-add">
<el-dialog :title="title" :visible.sync="isOpen" v-if="isOpen" width="70%" class="freightTemplate-add"
:close-on-click-modal="false" center>
<IndexBtn :option="form" @closeIndexbtn="closeDialog"/>
</el-dialog>
</el-card>
......
......@@ -127,9 +127,10 @@
>
</el-form>
<el-dialog title="选择不配送省" :visible.sync="dialogVisible" width="30%" append-to-body>
<el-dialog title="选择不配送省" :visible.sync="dialogVisible" width="30%" append-to-body
:close-on-click-modal="false" center >
<div>
<el-checkbox-group v-model="checkList">
<el-checkbox-group v-model="checkList" class="spe-checkbox-group-con">
<el-checkbox
v-for="(item, index) in arrlist"
:key="index"
......@@ -139,8 +140,8 @@
</el-checkbox-group>
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false">取 消</el-button>
<el-button type="primary" @click="btndisabled()">确 定</el-button>
<el-button @click="dialogVisible = false" size="small">取 消</el-button>
<el-button type="primary" @click="btndisabled()" size="small">确 定</el-button>
</span>
</el-dialog>
</div>
......@@ -219,7 +220,7 @@ export default {
},
methods: {
btndisabled(){
//debugger
debugger
let checkListString = '';
if (this.btnindex == 99) {
checkListString = this.checkList.join();
......@@ -244,9 +245,14 @@ export default {
})
},
/** 选择 配送区域*/
/** 选择 配送区域
* i= 1 ,操作是不配送区域
* */
opendias(type, i, index) {
//debugger
// 处理不配送区域
// 初始化 已经勾选的区域(包含,不配送 和 配送的)
this.disabledate = [];
this.goodsDate.dispatching.forEach((element) => {
if(element.a && element.a != '') {
......@@ -262,15 +268,19 @@ export default {
this.disabledate.push(arr[i]);
}
this.btnindex = index;
// 将全部 省的状态初始化为 未选中
this.arrlist.forEach(item => {
item.value = false;
})
// 已经选择过的 区域 array
this.checkList = type.split(",");
let disabledates = JSON.parse(JSON.stringify(this.disabledate)); //可以将json对象转换成json对符串
let disabarr = this.unique(disabledates, this.checkList) //去掉当前选择的disabled效果
// 所有已经勾选的 区域
let disabledates = JSON.parse(JSON.stringify(this.disabledate));
// 已经勾选的 配送区域
let disabarr = this.unique(disabledates, this.checkList)
this.arrlist.forEach(item => {
if (disabarr.includes(item.lable)) {
item.value = true
......@@ -421,4 +431,13 @@ li {
margin:0 auto;
display: block;
}
.spe-checkbox-group-con {
margin-left: 20px;
}
.spe-checkbox-group-con >>> .el-checkbox {
width: 70px;
margin: 0 6px 5px;
}
</style>
......@@ -238,6 +238,9 @@
},
// 修改 登录密码
editLogin() {
if (this.$refs.loginForm) {
this.$refs['loginForm'].resetFields();
}
this.isLogin = true;
},
// 修改 提现密码
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论