Commit 9eecbbf6 authored by youjie's avatar youjie

重置密码

parent c9e499ee
......@@ -60,7 +60,7 @@
<span icon="el-icon-close"></span>
</div>
<div class="form-box" >
<el-form :model="PasswordData" ref="form" class="MyEditForm" :rules="rules">
<el-form :model="PasswordData" ref="PasswordData" class="MyEditForm" :rules="rules">
<el-row :gutter="30">
<el-col :span="24">
<div class="MyEditForm-item">
......@@ -73,8 +73,8 @@
</el-form>
</div>
<div slot="footer" class="dialog-footer">
<el-button type="primary" class="add-box-btn" @click="submitForm('form')">确 定</el-button>
<el-button class="add-box-btn add-box-cancel" @click="isPass = false, resetForm('form')">取 消</el-button>
<el-button type="primary" class="add-box-btn" @click="submitForm('PasswordData')">确 定</el-button>
<el-button class="add-box-btn add-box-cancel" @click="isPass = false, resetForm('PasswordData')">取 消</el-button>
</div>
</el-dialog>
</div>
......@@ -139,6 +139,7 @@ export default {
submitPassword(){
this.apipost('/api/Customer/SetCustomerContactPW', this.PasswordData, res=>{
if (res.data.resultCode == 1) {
this.isPass = false
this.$message.success("操作成功");
}
})
......@@ -164,7 +165,7 @@ export default {
},
EditPassword(item){
this.PasswordData = {
ContactId: item.ContactId,
ContactId: item.ID,
ContactName: item.ContactName,
Password:""
},
......
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