<v-card-title>
<v-btn
depressed
color="primary"
class="mr-2"
@click="editPersonInfo('ChangePassword')"
>
<v-icon>mdi-lock-reset</v-icon>重置密码
</v-btn>
<v-btn
depressed
color="primary"
@click="editPersonInfo('ChangePersonInfo')"
>
<v-icon>mdi-square-edit-outline</v-icon>编辑
</v-btn>
</v-card-title>
<Component
:is="sheet_editor"
:show="drawer_status"
is_modify="edit"
device="pc"
type="edit"
:personInfo="personInfo"
/>
import ChangePassword from "../drawer/ChangePassword";
import ChangePersonInfo from "../drawer/ChangePersonInfo";
const EDITORS = {
ChangePassword,
ChangePersonInfo
};
export default{
data(){
return {
drawer_status: [false, false],
sheet_editor: null,
}
},
methods:{
editPersonInfo(type) {
this.sheet_editor = EDITORS[type];
setTimeout(() => {
this.$set(this.drawer_status, 0, true);
}, 1);
}
}
}
editPersonInfo(type) {
this.sheet_editor = EDITORS[type];
setTimeout(() => {
this.$set(this.drawer_status, 0, true);
}, 1);
},