提交 fae7cee3 作者: wk

初始模式项目ID

父级 e3867c0d
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
return return
} }
uni.navigateTo({ uni.navigateTo({
url: `/pages/gallery/app/createCheck/createCheck?check_item_id=${this.checkItemId}&title=${this.title}&check_tpl_id=${this.check_tpl_id}`, url: `/pages/gallery/app/createCheck/createCheck?check_item_id=${this.checkItemId}&title=${this.title}&check_tpl_id=${this.check_tpl_id}&project_id=${this.projectId}`,
}) })
}, },
search(val) { search(val) {
......
...@@ -127,7 +127,8 @@ ...@@ -127,7 +127,8 @@
windowHeight: "400px", windowHeight: "400px",
popupData: [], popupData: [],
curIndex: -1, //当前操作的控件索引 curIndex: -1, //当前操作的控件索引
check_tpl_id: "" check_tpl_id: "",
project_id: ""
} }
}, },
methods: { methods: {
...@@ -396,7 +397,7 @@ ...@@ -396,7 +397,7 @@
this.$http.get({ this.$http.get({
url: "/api/v1/common_check/check_object/obj_list", url: "/api/v1/common_check/check_object/obj_list",
data: { data: {
"project_id": uni.getStorageSync("project_id"), "project_id": this.project_id,
"is_page": 0 "is_page": 0
// "check_item_id": this.checkItemId // "check_item_id": this.checkItemId
}, },
...@@ -525,6 +526,7 @@ ...@@ -525,6 +526,7 @@
this.title = option.title this.title = option.title
this.check_tpl_id = option.check_tpl_id this.check_tpl_id = option.check_tpl_id
this.checkItemId = option.check_item_id this.checkItemId = option.check_item_id
this.project_id = option.project_id
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: option.title title: option.title
}) })
......
...@@ -80,6 +80,7 @@ ...@@ -80,6 +80,7 @@
} else { } else {
this.projectSelect = this.projectList[0] this.projectSelect = this.projectList[0]
} }
console.log("项目:", this.projectSelect);
} else { } else {
if (result.code === -1) { if (result.code === -1) {
uni.showToast({ uni.showToast({
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
Please register or to comment