Commit 4dd8343b by zhangmeng

修改bug

parent 4bf44aa8
......@@ -674,9 +674,9 @@ export default {
// set onelevel visible
setOneLevelVisible(type,selectOneItem) {
var that = this;
// 设置选择的 id
that.selectLinkObj.id = selectOneItem.linkId;
if (type) {
// 设置选择的 id
that.selectLinkObj.id = selectOneItem.linkId;
if (selectOneItem.type ==5 ) {
that.h5linkVisible = true; // h5 链接参数输入部分显示
that.thirdlinkVisible = false; // 第三方小程序
......@@ -714,7 +714,9 @@ export default {
this.getAppList();
}
// 清空设置选择的 id
that.selectLinkObj.id = '';
if(that.oneLevelTypeValue !== 7) {
that.selectLinkObj.id = '';
}
// 获取二级列表数据
that.getLinksList(selectOneItem.linkId,2)
......@@ -724,6 +726,12 @@ export default {
// twoLevelValueChange (二级选择,保存选择类型)
twoLevelValueChange(e) {
console.log(e)
var that = this
// 清空已经选择
that.selectLinkObj.name = '';
......@@ -752,7 +760,9 @@ export default {
// 每次选择清空原有选择参数
that.selectLinkObj.params = '';
// 设置选择的 id
that.selectLinkObj.id = e;
if(that.oneLevelTypeValue !== 7) {
that.selectLinkObj.id = e;
}
// 判断是否结束, 1:结束;
if (selectTwoItem.type == 1 || selectTwoItem.type == 4 || selectTwoItem.type == 6 || that.oneLevelTypeValue == 7) {
......@@ -1408,7 +1418,8 @@ export default {
if (v.value === this.twoLevelValue) {
that.selectLinkObj.name = v.label;
that.selectLinkObj.appid = v.value;//
that.selectLinkObj.id = v.id;
// that.selectLinkObj.id = selectOneItem.linkId;
// that.selectLinkObj.id = v.id;
}
})
that.selectLinkObj.params = ''
......
......@@ -644,9 +644,9 @@ export default {
// set onelevel visible
setOneLevelVisible(type,selectOneItem) {
var that = this;
// 设置选择的 id
that.selectLinkObj.id = selectOneItem.linkId;
if (type) {
// 设置选择的 id
that.selectLinkObj.id = selectOneItem.linkId;
if (selectOneItem.type ==5 ) {
that.h5linkVisible = true; // h5 链接参数输入部分显示
that.thirdlinkVisible = false; // 第三方小程序
......@@ -680,7 +680,9 @@ export default {
}
// 清空设置选择的 id
that.selectLinkObj.id = '';
if(that.oneLevelTypeValue !== 7) {
that.selectLinkObj.id = '';
}
// 获取二级列表数据
that.getLinksList(selectOneItem.linkId,2)
......@@ -721,7 +723,9 @@ export default {
// 每次选择清空原有选择参数
that.selectLinkObj.params = '';
// 设置选择的 id
that.selectLinkObj.id = e;
if(that.oneLevelTypeValue !== 7) {
that.selectLinkObj.id = e;
}
// 判断是否结束, 1:结束;
if (selectTwoItem.type == 1 || selectTwoItem.type == 4 || selectTwoItem.type == 6 || that.oneLevelTypeValue == 7 ) {
......@@ -1356,7 +1360,7 @@ export default {
if (v.value === this.twoLevelValue) {
that.selectLinkObj.name = v.label;
that.selectLinkObj.appid = v.value;//
that.selectLinkObj.id = v.id;
// that.selectLinkObj.id = v.id;
}
})
that.selectLinkObj.params = ''
......
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