用户信息-联调

main
ysn 3 days ago
parent 92c3b48c5f
commit ee7e4742d1
  1. 12
      src/layout/components/ESignatureDialog.vue
  2. 7
      src/layout/components/Navbar.vue
  3. 20
      src/layout/components/SystemSettingDialog.vue

@ -49,14 +49,9 @@
<script> <script>
export default { export default {
name: "ESignatureDialog", name: "ESignatureDialog",
props: {
visible: {
type: Boolean,
default: false,
},
},
data() { data() {
return { return {
visible: false,
ctx: null, ctx: null,
isDrawing: false, isDrawing: false,
lastX: 0, lastX: 0,
@ -78,6 +73,9 @@ export default {
}, },
}, },
methods: { methods: {
show() {
this.visible = true;
},
initCanvas() { initCanvas() {
const canvas = this.$refs.signatureCanvas; const canvas = this.$refs.signatureCanvas;
if (!canvas) return; if (!canvas) return;
@ -291,7 +289,7 @@ export default {
}, },
handleClose() { handleClose() {
this.$emit("update:visible", false); this.visible = false;
}, },
}, },
}; };

@ -81,7 +81,7 @@
<span>锁定屏幕</span> <span>锁定屏幕</span>
</el-dropdown-item> --> </el-dropdown-item> -->
<el-dropdown-item <el-dropdown-item
@click.native="showSystemSetting = true" @click.native="handleSystemSettingClick"
icon="el-icon-setting" icon="el-icon-setting"
> >
<span>系统设置</span> <span>系统设置</span>
@ -109,7 +109,7 @@
</el-dropdown> </el-dropdown>
</div> </div>
<!-- 系统设置弹窗 --> <!-- 系统设置弹窗 -->
<SystemSettingDialog :visible="showSystemSetting" /> <SystemSettingDialog ref="systemSettingDialogRef" />
<!-- 关于弹窗 --> <!-- 关于弹窗 -->
<AboutDialog ref="aboutDialogRef" /> <AboutDialog ref="aboutDialogRef" />
</div> </div>
@ -203,6 +203,9 @@ export default {
handleAboutClick() { handleAboutClick() {
this.$refs.aboutDialogRef.show(); this.$refs.aboutDialogRef.show();
}, },
handleSystemSettingClick() {
this.$refs.systemSettingDialogRef.show();
},
logout(title) { logout(title) {
this.$confirm(title, "提示", { this.$confirm(title, "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",

@ -76,7 +76,7 @@
<el-form :model="otherForm" label-width="80px"> <el-form :model="otherForm" label-width="80px">
<el-form-item label="电子签名"> <el-form-item label="电子签名">
<div class="signature-control"> <div class="signature-control">
<el-button type="primary" @click="showSignatureDialog = true"> <el-button type="primary" @click="showSignatureDialog">
编辑 编辑
</el-button> </el-button>
<span <span
@ -104,7 +104,7 @@
</span> </span>
<!-- 电子签名弹窗 --> <!-- 电子签名弹窗 -->
<ESignatureDialog <ESignatureDialog
:visible.sync="showSignatureDialog" ref="signatureDialogRef"
@submit="handleSignatureSubmit" @submit="handleSignatureSubmit"
/> />
</el-dialog> </el-dialog>
@ -117,12 +117,6 @@ export default {
components: { components: {
ESignatureDialog, ESignatureDialog,
}, },
props: {
visible: {
type: Boolean,
default: false,
},
},
watch: { watch: {
visible(newVal) { visible(newVal) {
if (newVal) { if (newVal) {
@ -156,8 +150,8 @@ export default {
}, },
data() { data() {
return { return {
visible: false,
activeTab: "basic", activeTab: "basic",
showSignatureDialog: false,
basicForm: { basicForm: {
notification: true, notification: true,
// autoStart: false, // 使 // autoStart: false, // 使
@ -178,8 +172,14 @@ export default {
}; };
}, },
methods: { methods: {
show() {
this.visible = true;
},
handleClose() { handleClose() {
this.$emit("update:visible", false); this.visible = false;
},
showSignatureDialog(){
this.$refs.signatureDialogRef.show();
}, },
handleSignatureSubmit(signatureData) { handleSignatureSubmit(signatureData) {
this.otherForm.signature = signatureData; this.otherForm.signature = signatureData;

Loading…
Cancel
Save