Commit 169b07c8 authored by 黄奎's avatar 黄奎

页面修改

parent d6b3b4f6
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<div class="query-box"> <div class="query-box">
<ul> <ul>
<li> <li>
<label>名称</label> <label>稱呼</label>
<el-input v-model="msg.Name" :placeholder="$t('system.ph_in')" @keyup.native.enter="getData" class="w210"> <el-input v-model="msg.Name" :placeholder="$t('system.ph_in')" @keyup.native.enter="getData" class="w210">
</el-input> </el-input>
</li> </li>
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<div> <div>
<el-table :data="dataList" style="width: 100%" v-loading="loading" <el-table :data="dataList" style="width: 100%" v-loading="loading"
:default-sort="{prop: 'date', order: 'descending'}"> :default-sort="{prop: 'date', order: 'descending'}">
<el-table-column prop="Name" label="名称" sortable> <el-table-column prop="Name" label="稱呼" sortable>
</el-table-column> </el-table-column>
<el-table-column prop="Mobile" label="聯絡電話" sortable> <el-table-column prop="Mobile" label="聯絡電話" sortable>
</el-table-column> </el-table-column>
...@@ -58,8 +58,8 @@ ...@@ -58,8 +58,8 @@
<el-form :model="addMsg" ref="addMsg" label-width="120px"> <el-form :model="addMsg" ref="addMsg" label-width="120px">
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="名称"> <el-form-item label="稱呼">
<el-input type="text" v-model="addMsg.Name" maxlength="50" placeholder="名称"> <el-input type="text" v-model="addMsg.Name" maxlength="50" placeholder="稱呼">
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="聯絡電話"> <el-form-item label="聯絡電話">
......
...@@ -227,8 +227,8 @@ ...@@ -227,8 +227,8 @@
<h2 class="layout_temp_title">注意事項</h2> <h2 class="layout_temp_title">注意事項</h2>
<div style="margin:10px 0;font-size:14px;"> <div style="margin:10px 0;font-size:14px;">
<span>預設:</span> <span>預設:</span>
<el-radio v-model="item.plugData.NoticeItemIsOpen" :label="1">展開</el-radio> <el-radio v-model="item.plugData.NoticeItemIsOpen" :label="1">展開</el-radio>
<el-radio v-model="item.plugData.NoticeItemIsOpen" :label="0">收合</el-radio> <el-radio v-model="item.plugData.NoticeItemIsOpen" :label="0">收合</el-radio>
</div> </div>
<img :src="DefaultNoticeImg" style="width:100%;" /> <img :src="DefaultNoticeImg" style="width:100%;" />
<div class="layout_move_div"> <div class="layout_move_div">
...@@ -316,7 +316,6 @@ ...@@ -316,7 +316,6 @@
postMsg: { postMsg: {
Id: 0, Id: 0,
//行程数据 //行程数据
TripDataList: [],
} }
}; };
}, },
...@@ -391,13 +390,16 @@ ...@@ -391,13 +390,16 @@
this.postMsg.Id = tempData.Id; this.postMsg.Id = tempData.Id;
} }
if (tempData.TripDataList && tempData.TripDataList.length > 0) { if (tempData.TripDataList && tempData.TripDataList.length > 0) {
this.TripBgImgItem = {};
this.TripBottonItem = {};
this.OtherList = [];
tempData.TripDataList.forEach(item => { tempData.TripDataList.forEach(item => {
if (item.Id == "TripBgImgItem") { if (item.Id == "TripBgImgItem") {
this.TripBgImgItem = item; this.TripBgImgItem = JSON.parse(JSON.stringify(item));
} else if (item.Id == "TripBottonItem") { } else if (item.Id == "TripBottonItem") {
this.TripBottonItem = item; this.TripBottonItem = JSON.parse(JSON.stringify(item));
} else { } else {
this.OtherList.push(item); this.OtherList.push(JSON.parse(JSON.stringify(item)));
} }
}); });
} }
...@@ -411,13 +413,19 @@ ...@@ -411,13 +413,19 @@
}, },
//保存数据 //保存数据
saveData() { saveData() {
this.postMsg.TripDataList.push(this.TripBgImgItem); var tempArray = [];
this.postMsg.TripDataList.push(this.TripBottonItem); tempArray.push(this.TripBgImgItem);
tempArray.push(this.TripBottonItem);
this.OtherList.forEach(item => { this.OtherList.forEach(item => {
this.postMsg.TripDataList.push(item); tempArray.push(item);
}) })
var msg = {
Id: this.postMsg.Id,
TripDataList: tempArray
}
console.log("this.postMsg", msg);
this.apipost( this.apipost(
"ws_post_SetTripData", this.postMsg, "ws_post_SetTripData", msg,
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.getData(); this.getData();
......
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