Commit 16cd652e authored by zhengke's avatar zhengke

修改

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