Commit e399cf2e by fengzhaoyu

fix:会议室全名

parent 54f4b3f5
...@@ -11,7 +11,7 @@ export default function http(data) { ...@@ -11,7 +11,7 @@ export default function http(data) {
method: data.method, method: data.method,
dataType: "json", dataType: "json",
data: data.data, data: data.data,
success: function(res) { success: function (res) {
if (res.data.code == 0) { if (res.data.code == 0) {
resolve(res); resolve(res);
} else { } else {
...@@ -21,7 +21,7 @@ export default function http(data) { ...@@ -21,7 +21,7 @@ export default function http(data) {
}); });
} }
}, },
fail: function(res) { fail: function (res) {
dd.alert({ dd.alert({
content: "网络异常", content: "网络异常",
buttonText: "确定" buttonText: "确定"
...@@ -54,10 +54,10 @@ export default function http(data) { ...@@ -54,10 +54,10 @@ export default function http(data) {
method: data.method, method: data.method,
data: data.data, data: data.data,
dataType: "json", dataType: "json",
success: function(res) { success: function (res) {
resolve(res); resolve(res);
}, },
fail: function(res) { fail: function (res) {
rejects(res); rejects(res);
} }
}); });
......
...@@ -120,7 +120,7 @@ create.Page({ ...@@ -120,7 +120,7 @@ create.Page({
getReserveRoomList(data).then(res => { getReserveRoomList(data).then(res => {
if (res.data.data) { if (res.data.data) {
for (let value of res.data.data) { for (let value of res.data.data) {
value.name = `${this.getParentStr("1250241601903665153")}${value.name}` value.name = `${this.getParentStr(value.locationId)}${value.name}`
this.parentStr = '' this.parentStr = ''
} }
let reserveRoomList = res.data.data.map(item => { let reserveRoomList = res.data.data.map(item => {
......
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