Commit 4dd8343b by zhangmeng

修改bug

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