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

页面修改

parent 32e68306
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
<li> <li>
<input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')" <input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')"
@click="resetPageIndex(),getList()" /> @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')" /> :value="$t('pub.addBtn')" />
</li> </li>
</ul> </ul>
...@@ -122,7 +122,7 @@ ...@@ -122,7 +122,7 @@
icon="el-icon-edit" circle></el-button> icon="el-icon-edit" circle></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" content="重置密码" placement="top-start"> <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> </el-tooltip>
</td> </td>
</tr> </tr>
...@@ -154,8 +154,8 @@ ...@@ -154,8 +154,8 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" @click="outerVisible =false">取消</button> &nbsp; <button class="hollowFixedBtn" @click="outerVisible =false,clearData()">取消</button> &nbsp;
<button class="normalBtn" type="button" @click="saveSCMAccount()">保存</button> <button class="normalBtn" @click="saveSCMAccount()">保存</button>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
...@@ -194,11 +194,12 @@ ...@@ -194,11 +194,12 @@
methods: { methods: {
//保存信息 //保存信息
saveSCMAccount() { saveSCMAccount() {
this.apipost('scm_post_SetSCMHotelService', this.addMsg, res => { this.apipost('scm_post_SetSCMAccountService', this.addMsg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.outerVisible=false; this.outerVisible=false;
this.$message.success(res.data.message); this.$message.success(res.data.message);
this.getList() this.getList();
this.clearData();
} }
else else
{ {
...@@ -234,6 +235,28 @@ ...@@ -234,6 +235,28 @@
this.addMsg = res.data.data; this.addMsg = res.data.data;
} }
}, err => {}) }, 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) { handleCurrentChange(val) {
this.msg.pageIndex = 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