mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-22 02:45:55 +08:00
feat: ✨ 新增多标签Tab页内嵌模式
This commit is contained in:
@@ -207,11 +207,10 @@
|
||||
// 跳转结算详情
|
||||
detail(v) {
|
||||
let id = v.id;
|
||||
this.$router.push({
|
||||
this.$options.filters.customRouterPush({
|
||||
name: "bill-detail",
|
||||
query: { id: id },
|
||||
});
|
||||
|
||||
})
|
||||
},
|
||||
},
|
||||
mounted () {
|
||||
|
||||
@@ -221,12 +221,12 @@ export default {
|
||||
methods: {
|
||||
//获取状态
|
||||
getfaceSheetFlag(e) {
|
||||
console.log(e);
|
||||
|
||||
if (e === true) {
|
||||
console.log("打开");
|
||||
|
||||
this.onpenText = true;
|
||||
} else {
|
||||
console.log("关闭");
|
||||
|
||||
this.onpenText = false;
|
||||
}
|
||||
},
|
||||
|
||||
@@ -261,7 +261,7 @@ export default {
|
||||
this.form = item;
|
||||
|
||||
let top = document.documentElement.scrollTop || document.body.scrollTop;
|
||||
// 实现滚动效果
|
||||
// 实现滚动效果
|
||||
const timeTop = setInterval(() => {
|
||||
document.body.scrollTop = document.documentElement.scrollTop = top -= 50;
|
||||
if (top <= 0) {
|
||||
@@ -305,7 +305,6 @@ export default {
|
||||
* 选择地址回调
|
||||
*/
|
||||
handleSelect(v) {
|
||||
console.log(v);
|
||||
let area = "";
|
||||
let areaId = "";
|
||||
if (v != "") {
|
||||
|
||||
@@ -451,9 +451,9 @@ export default {
|
||||
},
|
||||
checkClerks() {
|
||||
this.open = this.form.mobile.length;
|
||||
console.log(this.open)
|
||||
|
||||
if(this.open == 11 ){
|
||||
this.checkClerk();
|
||||
this.checkClerk();
|
||||
}
|
||||
if(this.open < 11){
|
||||
this.checkAgainClerk()
|
||||
@@ -576,7 +576,7 @@ export default {
|
||||
ids += e.id + ",";
|
||||
});
|
||||
ids = ids.substring(0, ids.length - 1);
|
||||
console.warn(ids)
|
||||
|
||||
resetPassword(ids).then(res => {
|
||||
this.$Modal.remove();
|
||||
if (res.success) {
|
||||
@@ -590,7 +590,7 @@ export default {
|
||||
},
|
||||
updateSubmit(){
|
||||
this.submitLoading = true;
|
||||
console.warn(this.editForm)
|
||||
|
||||
editOtherUser(this.editForm.id,this.editForm).then(res => {
|
||||
this.submitLoading = false;
|
||||
if (res.success) {
|
||||
@@ -606,7 +606,6 @@ export default {
|
||||
if (valid) {
|
||||
// 添加用户 避免编辑后传入id
|
||||
const params = JSON.parse(JSON.stringify(this.form))
|
||||
console.warn(params)
|
||||
delete params.id;
|
||||
delete params.status;
|
||||
if (this.newMember) {
|
||||
@@ -655,9 +654,9 @@ export default {
|
||||
},
|
||||
// 编辑用户
|
||||
edit(v) {
|
||||
console.warn(v)
|
||||
|
||||
getClerk(v.id).then(res => {
|
||||
console.warn(res)
|
||||
|
||||
this.mobile = res.result.mobile
|
||||
this.clerkName = res.result.clerkName
|
||||
this.editForm.isSuper = 0
|
||||
|
||||
@@ -201,7 +201,7 @@ export default {
|
||||
loadDepartment(item.id).then((res) => {
|
||||
this.loadingEdit = false;
|
||||
if (res.success) {
|
||||
console.log(res.result);
|
||||
|
||||
callback(res.result);
|
||||
}
|
||||
});
|
||||
@@ -303,7 +303,7 @@ export default {
|
||||
editDepartment(this.form.id, this.form),
|
||||
updateDepartmentRole(this.form.id, roleWay)
|
||||
]).then((res) => {
|
||||
console.warn(res)
|
||||
|
||||
this.submitLoading = false;
|
||||
if (res[0].success) {
|
||||
this.$Message.success("编辑成功");
|
||||
@@ -359,7 +359,7 @@ export default {
|
||||
},
|
||||
// 选中回调
|
||||
changeSelect(v) {
|
||||
console.log(v);
|
||||
|
||||
this.selectCount = v.length;
|
||||
this.selectList = v;
|
||||
},
|
||||
|
||||
@@ -586,7 +586,7 @@ export default {
|
||||
let selectedNodes = this.$refs.tree.getCheckedAndIndeterminateNodes();
|
||||
let way = [];
|
||||
selectedNodes.forEach((e) => {
|
||||
console.log(e)
|
||||
|
||||
let perm = {
|
||||
title: e.title,
|
||||
isSuper: e.isSuper ? e.isSuper = 1 : e.isSuper = 0 || 0,
|
||||
@@ -597,7 +597,7 @@ export default {
|
||||
this.$set(this,'saveRoleWay',way)
|
||||
|
||||
});
|
||||
console.log(this.saveRoleWay)
|
||||
|
||||
},
|
||||
|
||||
/**保存权限 */
|
||||
|
||||
@@ -136,7 +136,7 @@ export default {
|
||||
this.$nextTick(() => {
|
||||
this.decorateData = "";
|
||||
|
||||
console.log(this.contentData.list.length);
|
||||
|
||||
// 如果当前楼层不为一
|
||||
if (this.contentData.list.length > 1) {
|
||||
// 如果当前最底层 给下一层赋值
|
||||
@@ -156,13 +156,13 @@ export default {
|
||||
|
||||
// 点击楼层装修
|
||||
handleComponent(val, index) {
|
||||
console.warn(val)
|
||||
|
||||
this.selected = index;
|
||||
this.$set(this, "decorateData", val);
|
||||
},
|
||||
// 右侧栏回调
|
||||
handleDrawer(val) {
|
||||
|
||||
|
||||
let newIndex = this.selected;
|
||||
|
||||
this.decorateData = "";
|
||||
|
||||
@@ -145,7 +145,6 @@ export default {
|
||||
this.saveDialog = false;
|
||||
this.$Message.error("修改失败,请稍后重试");
|
||||
}
|
||||
console.log(res);
|
||||
})
|
||||
.catch((error) => {});
|
||||
},
|
||||
@@ -176,7 +175,6 @@ export default {
|
||||
this.saveDialog = false;
|
||||
this.$Message.error("保存失败,请稍后重试");
|
||||
}
|
||||
console.log(res);
|
||||
})
|
||||
.catch((error) => {});
|
||||
},
|
||||
|
||||
@@ -118,7 +118,6 @@ export default {
|
||||
}
|
||||
});
|
||||
this.list = res.result.records;
|
||||
console.log(this.list);
|
||||
this.total = res.result.total;
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user