Commit 40a2f3ee by member

链接小工具修复错误提示

parent a79f4a9c
...@@ -412,6 +412,7 @@ import GoodsTree from './goods-tree'; ...@@ -412,6 +412,7 @@ import GoodsTree from './goods-tree';
// import axios from 'axios' // import axios from 'axios'
import qs from 'qs'; import qs from 'qs';
import { setTimeout } from 'timers';
export default { export default {
name: 'links-tool', name: 'links-tool',
...@@ -1505,7 +1506,9 @@ export default { ...@@ -1505,7 +1506,9 @@ export default {
// 确认操作 // 确认操作
confirmLinkSelect() { confirmLinkSelect() {
var that = this setTimeout(_ => {
var that = this;
// 如果选择 h5 判断选择的链接 // 如果选择 h5 判断选择的链接
if (that.oneLevelTypeValue == 5) { if (that.oneLevelTypeValue == 5) {
...@@ -1653,6 +1656,7 @@ export default { ...@@ -1653,6 +1656,7 @@ export default {
tagid: this.cardUrl, tagid: this.cardUrl,
title: this.tagName title: this.tagName
}; };
console.log(this.cardUrl);
if (this.cardUrl) { if (this.cardUrl) {
this.transData(); this.transData();
} else { } else {
...@@ -1719,7 +1723,7 @@ export default { ...@@ -1719,7 +1723,7 @@ export default {
message: "请选择链接" message: "请选择链接"
}) })
} }
});
}, },
getMallId(item) { getMallId(item) {
...@@ -1799,10 +1803,9 @@ export default { ...@@ -1799,10 +1803,9 @@ export default {
// 触发父组件方法,传递参数 // 触发父组件方法,传递参数
transData() { transData() {
console.log(this.selectLinkObj);
this.$emit('linkSelect', this.selectLinkObj); this.$emit('linkSelect', this.selectLinkObj);
this.$emit('update:linkVisible', false); this.$emit('update:linkVisible', false);
// this.resetAll(); this.resetAll();
}, },
// 获取一级列表 // 获取一级列表
......
<template> <template>
<!-- 链接小工具 --> <!-- 链接小工具 -->
<div class="link-tools-contain"> <div class="link-tools-contain">
...@@ -383,6 +382,7 @@ import GoodsTree from './goods-tree'; ...@@ -383,6 +382,7 @@ import GoodsTree from './goods-tree';
// import axios from 'axios' // import axios from 'axios'
import qs from 'qs'; import qs from 'qs';
import { setTimeout } from 'timers';
export default { export default {
name: 'links-tool', name: 'links-tool',
...@@ -1476,7 +1476,9 @@ export default { ...@@ -1476,7 +1476,9 @@ export default {
// 确认操作 // 确认操作
confirmLinkSelect() { confirmLinkSelect() {
var that = this setTimeout(_ => {
var that = this;
// 如果选择 h5 判断选择的链接 // 如果选择 h5 判断选择的链接
if (that.oneLevelTypeValue == 5) { if (that.oneLevelTypeValue == 5) {
...@@ -1624,6 +1626,7 @@ export default { ...@@ -1624,6 +1626,7 @@ export default {
tagid: this.cardUrl, tagid: this.cardUrl,
title: this.tagName title: this.tagName
}; };
console.log(this.cardUrl);
if (this.cardUrl) { if (this.cardUrl) {
this.transData(); this.transData();
} else { } else {
...@@ -1690,7 +1693,7 @@ export default { ...@@ -1690,7 +1693,7 @@ export default {
message: "请选择链接" message: "请选择链接"
}) })
} }
});
}, },
getMallId(item) { getMallId(item) {
...@@ -1770,10 +1773,9 @@ export default { ...@@ -1770,10 +1773,9 @@ export default {
// 触发父组件方法,传递参数 // 触发父组件方法,传递参数
transData() { transData() {
console.log(this.selectLinkObj);
this.$emit('linkSelect', this.selectLinkObj); this.$emit('linkSelect', this.selectLinkObj);
this.$emit('update:linkVisible', false); this.$emit('update:linkVisible', false);
// this.resetAll(); this.resetAll();
}, },
// 获取一级列表 // 获取一级列表
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment