Commit 38a6c0a5 authored by 黄奎's avatar 黄奎

页面修改

parent 32e68306
......@@ -94,7 +94,7 @@
<li>
<input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')"
@click="resetPageIndex(),getList()" />
<input type="button" @click="outerVisible = true,dialogTitle='新增账号信息'" class="normalBtn"
<input type="button" @click="outerVisible = true,dialogTitle='新增账号信息',clearData()" class="normalBtn"
:value="$t('pub.addBtn')" />
</li>
</ul>
......@@ -122,7 +122,7 @@
icon="el-icon-edit" circle></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="重置密码" placement="top-start">
<el-button type="primary" icon="iconfont icon-zhongzhi1" circle></el-button>
<el-button type="primary" icon="iconfont icon-zhongzhi1" circle @click="resetPwd(item.Id)"></el-button>
</el-tooltip>
</td>
</tr>
......@@ -154,8 +154,8 @@
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" @click="outerVisible =false">取消</button> &nbsp;
<button class="normalBtn" type="button" @click="saveSCMAccount()">保存</button>
<button class="hollowFixedBtn" @click="outerVisible =false,clearData()">取消</button> &nbsp;
<button class="normalBtn" @click="saveSCMAccount()">保存</button>
</div>
</el-dialog>
</div>
......@@ -194,11 +194,12 @@
methods: {
//保存信息
saveSCMAccount() {
this.apipost('scm_post_SetSCMHotelService', this.addMsg, res => {
this.apipost('scm_post_SetSCMAccountService', this.addMsg, res => {
if (res.data.resultCode == 1) {
this.outerVisible=false;
this.outerVisible=false;
this.$message.success(res.data.message);
this.getList()
this.getList();
this.clearData();
}
else
{
......@@ -234,6 +235,28 @@
this.addMsg = res.data.data;
}
}, err => {})
},
//重置密码
resetPwd(id) {
var that = this;
this.Confirm("是否要重置密码?", function () {
var msg = {
Id: id
};
that.apipost(
"scm_post_ResetPwdService",
msg,
res => {
if (res.data.resultCode == 1) {
that.Success('重置成功!');
that.getList();
} else {
that.Error(res.data.data);
}
},
null
);
});
},
handleCurrentChange(val) {
this.msg.pageIndex = val;
......
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