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

fix-bug2013,2008

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