|
|
|
@ -59,38 +59,39 @@ |
|
|
|
|
:label-col="labelCol" |
|
|
|
|
:wrapper-col="wrapperCol" |
|
|
|
|
> |
|
|
|
|
<a-form-model-item label="性别" prop="region"> |
|
|
|
|
<a-select v-model="form.region" placeholder="请选择性别"> |
|
|
|
|
<a-select-option value="shanghai"> |
|
|
|
|
<a-form-model-item label="性别" prop="sex"> |
|
|
|
|
<!-- <a-select v-model="form.sex" placeholder="请选择性别" > |
|
|
|
|
<a-select-option value="2"> |
|
|
|
|
女士 |
|
|
|
|
</a-select-option> |
|
|
|
|
<a-select-option value="beijing"> |
|
|
|
|
<a-select-option value="1"> |
|
|
|
|
先生 |
|
|
|
|
</a-select-option> |
|
|
|
|
</a-select> |
|
|
|
|
</a-select>--> |
|
|
|
|
<j-dict-select-tag type="list" v-model="form.sex" dictCode="sex" placeholder="请选择性别" /> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
<a-form-model-item label="姓名" prop="desc"> |
|
|
|
|
<a-input placeholder="请输入姓名" v-model="form.desc" /> |
|
|
|
|
<a-form-model-item label="姓名" prop="realname"> |
|
|
|
|
<a-input placeholder="请输入姓名" v-model="form.realname" /> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
<a-form-model-item label="地区" prop="desc"> |
|
|
|
|
<!-- <a-form-model-item label="地区" prop="desc"> |
|
|
|
|
<a-input placeholder="请选择地区" v-model="form.desc" /> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
</a-form-model-item>--> |
|
|
|
|
|
|
|
|
|
<a-form-model-item label="电话" prop="desc"> |
|
|
|
|
<a-input placeholder="请输入电话" v-model="form.desc" /> |
|
|
|
|
<a-form-model-item label="电话" prop="phone"> |
|
|
|
|
<a-input placeholder="请输入电话" v-model="form.phone" /> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
|
|
|
|
|
<a-form-model-item label="出生日期" required prop="date1"> |
|
|
|
|
<a-form-model-item label="出生日期" required prop="birthday"> |
|
|
|
|
<a-date-picker |
|
|
|
|
v-model="form.date1" |
|
|
|
|
v-model="form.birthday" |
|
|
|
|
show-time |
|
|
|
|
type="date" |
|
|
|
|
placeholder="请选择出生日期" |
|
|
|
|
style="width: 100%;" |
|
|
|
|
/> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
<a-form-model-item label="电子邮箱" prop="desc"> |
|
|
|
|
<a-input placeholder="请输入电子邮箱" v-model="form.desc" /> |
|
|
|
|
<a-form-model-item label="电子邮箱" prop="email"> |
|
|
|
|
<a-input placeholder="请输入电子邮箱" v-model="form.email" /> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
<a-form-model-item label="1" prop="type"> |
|
|
|
|
<a-checkbox value="1" name="type"> |
|
|
|
@ -102,10 +103,10 @@ |
|
|
|
|
</a-form-model-item> |
|
|
|
|
</a-form-model> |
|
|
|
|
<div class="d-flex btnDiv"> |
|
|
|
|
<div type="primary" style="width: 100%;margin-bottom: 10px" class="dialogButton primary f_12">修改信息</div> |
|
|
|
|
<div type="primary" style="width: 100%;margin-bottom: 10px" class="dialogButton primary f_12" @click="handuser()">修改信息</div> |
|
|
|
|
</div> |
|
|
|
|
<a @click="show" class="xgmm"> 更改密码?</a> |
|
|
|
|
<a-modal v-model="visible1" title="更改密码" @ok="handleOk" @cancel="handleCancel"> |
|
|
|
|
<a @click="handleChangePassword(form.username)" class="xgmm"> 更改密码?</a> |
|
|
|
|
<!-- <a-modal v-model="visible1" title="更改密码" @ok="handleOk" @cancel="handleCancel"> |
|
|
|
|
<a-form-model |
|
|
|
|
ref="ruleForm1" |
|
|
|
|
:model="form1" |
|
|
|
@ -118,7 +119,7 @@ |
|
|
|
|
<a-input placeholder="请输入新密码" v-model="form.desc" /> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
</a-form-model> |
|
|
|
|
</a-modal> |
|
|
|
|
</a-modal>--> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="orderList" > |
|
|
|
@ -155,8 +156,10 @@ |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<password-modal ref="passwordmodal" @ok="passwordModalOk"></password-modal> |
|
|
|
|
<Footer></Footer> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
</template> |
|
|
|
|
<script> |
|
|
|
|
import Header from "../components/Header/HeaderView"; |
|
|
|
@ -164,9 +167,10 @@ |
|
|
|
|
import {mapGetters} from 'vuex' |
|
|
|
|
import { getFileAccessHttpUrl} from "@/api/manage" |
|
|
|
|
import { httpAction, getAction } from '@/api/manage' |
|
|
|
|
import PasswordModal from '../../system/modules/PasswordModal' |
|
|
|
|
export default { |
|
|
|
|
name: "gerenzhongxin", |
|
|
|
|
components: { Header,Footer }, |
|
|
|
|
components: { Header,Footer,PasswordModal }, |
|
|
|
|
data() {0 |
|
|
|
|
return { |
|
|
|
|
model:{ |
|
|
|
@ -226,20 +230,25 @@ |
|
|
|
|
url: { |
|
|
|
|
list: "/starehouse/starehouse/list", |
|
|
|
|
getusername: "/sys/user/getusername", |
|
|
|
|
findgoods: "/sys/user/findgoods" |
|
|
|
|
findgoods: "/sys/user/findgoods", |
|
|
|
|
getneeduser: "/getuserpersion/getneeduser", |
|
|
|
|
updateneeduser: "/getuserpersion/updateneeduser", |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
labelCol: { span: 3 }, |
|
|
|
|
wrapperCol: { span: 21 }, |
|
|
|
|
other: '', |
|
|
|
|
form: { |
|
|
|
|
name: '', |
|
|
|
|
region: undefined, |
|
|
|
|
date1: undefined, |
|
|
|
|
delivery: false, |
|
|
|
|
/*form: { |
|
|
|
|
realname: '', |
|
|
|
|
sex: '', |
|
|
|
|
birthday: '', |
|
|
|
|
email: '', |
|
|
|
|
phone: '', |
|
|
|
|
type: [], |
|
|
|
|
resource: '', |
|
|
|
|
desc: '', |
|
|
|
|
},*/ |
|
|
|
|
form: { |
|
|
|
|
}, |
|
|
|
|
form1: { |
|
|
|
|
name: '', |
|
|
|
@ -251,24 +260,24 @@ |
|
|
|
|
desc: '', |
|
|
|
|
}, |
|
|
|
|
rules: { |
|
|
|
|
name: [ |
|
|
|
|
/*name: [ |
|
|
|
|
{ required: true, message: 'Please input Activity name', trigger: 'blur' }, |
|
|
|
|
{ min: 3, max: 5, message: 'Length should be 3 to 5', trigger: 'blur' }, |
|
|
|
|
], |
|
|
|
|
region: [{ required: true, message: 'Please select Activity zone', trigger: 'change' }], |
|
|
|
|
date1: [{ required: true, message: 'Please pick a date', trigger: 'change' }], |
|
|
|
|
date1: [{ required: true, message: 'Please pick a date', trigger: 'change' }],*/ |
|
|
|
|
type: [ |
|
|
|
|
{ |
|
|
|
|
type: 'array', |
|
|
|
|
required: true, |
|
|
|
|
message: 'Please select at least one activity type', |
|
|
|
|
message: '请选择', |
|
|
|
|
trigger: 'change', |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
resource: [ |
|
|
|
|
/*resource: [ |
|
|
|
|
{ required: true, message: 'Please select activity resource', trigger: 'change' }, |
|
|
|
|
], |
|
|
|
|
desc: [{ required: true, message: 'Please input activity form', trigger: 'blur' }], |
|
|
|
|
desc: [{ required: true, message: 'Please input activity form', trigger: 'blur' }],*/ |
|
|
|
|
}, |
|
|
|
|
visible1: false, |
|
|
|
|
|
|
|
|
@ -278,6 +287,7 @@ |
|
|
|
|
created() { |
|
|
|
|
this.getusername(); |
|
|
|
|
this.getallgoods(); |
|
|
|
|
this.getneeduser(); |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
@ -287,11 +297,14 @@ |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
passwordModalOk() { |
|
|
|
|
//TODO 密码修改完成 不需要刷新页面,可以把datasource中的数据更新一下 |
|
|
|
|
}, |
|
|
|
|
handleCancel(e) { |
|
|
|
|
this.visible1 = false; |
|
|
|
|
}, |
|
|
|
|
show() { |
|
|
|
|
this.visible1 = true; |
|
|
|
|
handleChangePassword(username) { |
|
|
|
|
this.$refs.passwordmodal.show(username); |
|
|
|
|
}, |
|
|
|
|
handleOk(e) { |
|
|
|
|
console.log(e); |
|
|
|
@ -323,12 +336,31 @@ |
|
|
|
|
getAction(this.url.getusername).then((res) => { |
|
|
|
|
if(res.success) { |
|
|
|
|
this.model.username1 = res.result; |
|
|
|
|
console.log(res.message) |
|
|
|
|
this.visible = true; |
|
|
|
|
} else { |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
getneeduser(){ |
|
|
|
|
getAction(this.url.getneeduser).then((res) => { |
|
|
|
|
if(res.success) { |
|
|
|
|
this.form = res.result; |
|
|
|
|
this.visible = true; |
|
|
|
|
} else { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
handuser(){ |
|
|
|
|
getAction(this.url.updateneeduser,{form: JSON.stringify(this.form)}).then((res) => { |
|
|
|
|
if(res.success) { |
|
|
|
|
console.log("-----------------------") |
|
|
|
|
this.loadData(1); |
|
|
|
|
} else { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
...mapGetters(["nickname", "avatar", "userInfo", "addRouters", "username", "permissionList"]), |
|
|
|
|
//获取用户头像 |
|
|
|
|
getAvatar(){ |
|
|
|
|