Commit 16cd652e authored by zhengke's avatar zhengke

修改

parent 36bb924d
...@@ -251,7 +251,7 @@ ...@@ -251,7 +251,7 @@
<button class="hollowFixedBtn" type="button" <button class="hollowFixedBtn" type="button"
@click="resetPageIndex(),getList()">{{$t('pub.searchBtn')}}</button> @click="resetPageIndex(),getList()">{{$t('pub.searchBtn')}}</button>
<button class="normalBtn" type="button" <button class="normalBtn" type="button"
@click="outerVisible=true">{{$t('pub.addBtn')}}</button> @click="outerVisible=true,initMsg()">{{$t('pub.addBtn')}}</button>
</li> </li>
</ul> </ul>
...@@ -262,10 +262,10 @@ ...@@ -262,10 +262,10 @@
<th> <th>
编号 编号
</th> </th>
<th> <th width="300">
名称 名称
</th> </th>
<th> <th width="300">
封面 封面
</th> </th>
<th> <th>
...@@ -286,7 +286,7 @@ ...@@ -286,7 +286,7 @@
{{item.Name}} {{item.Name}}
</td> </td>
<td> <td>
{{item.ImgCover}} <img :src="item.ImgCover" style="width:180px;"/>
</td> </td>
<td> <td>
{{item.UpdateName}} {{item.UpdateName}}
...@@ -365,7 +365,7 @@ ...@@ -365,7 +365,7 @@
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<button <button
class="hollowFixedBtn" class="hollowFixedBtn"
@click="outerVisible = false, resetForm('addMsg')" @click="outerVisible = false"
>{{$t('pub.cancelBtn')}}</button> &nbsp; >{{$t('pub.cancelBtn')}}</button> &nbsp;
<button class="normalBtn" @click="submitForm('addMsg')">{{$t('pub.saveBtn')}}</button> <button class="normalBtn" @click="submitForm('addMsg')">{{$t('pub.saveBtn')}}</button>
</div> </div>
...@@ -435,7 +435,7 @@ ...@@ -435,7 +435,7 @@
}, },
response => { response => {
if (response.data.resultCode == 1) { if (response.data.resultCode == 1) {
that.Success(that.$$t('tips.shanchuchenggong')); that.Success(that.$t('tips.shanchuchenggong'));
that.getList(); that.getList();
} else { } else {
that.Error(response.data.message); that.Error(response.data.message);
...@@ -456,6 +456,7 @@ ...@@ -456,6 +456,7 @@
this.msg.total = res.data.data.count; this.msg.total = res.data.data.count;
this.noData = !this.msg.total > 0; this.noData = !this.msg.total > 0;
this.DataList = res.data.data.pageData; this.DataList = res.data.data.pageData;
this.outerVisible=false;
} }
}, },
null null
...@@ -499,7 +500,16 @@ ...@@ -499,7 +500,16 @@
closeChangeMachie(done) { closeChangeMachie(done) {
//弹出框关闭初始化弹框内表单 //弹出框关闭初始化弹框内表单
done(); done();
this.resetForm("addMsg"); this.initMsg()
},
//初始化
initMsg(){
this.addMsg = {
Id:0,
Name:'',
ImgCover:'',
Content:''
};
}, },
submitForm(addMsg) { submitForm(addMsg) {
//提交创建、修改表单 //提交创建、修改表单
...@@ -530,12 +540,11 @@ ...@@ -530,12 +540,11 @@
//修改 //修改
UpdateScenic(id){ UpdateScenic(id){
this.apipost( this.apipost(
"ScenicRecomment_Post_SetScenicRecommentService", "ScenicRecomment_Get_GetScenicRecommentService",{Id:id},
this.addMsg,
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message); this.outerVisible=true;
this.getList(); this.addMsg=res.data.data;
}else{ }else{
this.Error(res.data.message); this.Error(res.data.message);
} }
......
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