feat: 新增设备切卡模式
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 3m57s

This commit is contained in:
sexygoat
2026-04-18 16:40:41 +08:00
parent fd583e81e0
commit c5ee690ccd
16 changed files with 557 additions and 55 deletions

View File

@@ -103,30 +103,6 @@
</div>
</ElForm>
</div>
<div class="info box-style" style="margin-top: 20px">
<h1 class="title">更改密码</h1>
<ElForm :model="pwdForm" class="form" label-width="86px" label-position="top">
<ElFormItem label="当前密码" prop="password">
<ElInput v-model="pwdForm.password" type="password" :disabled="!isEditPwd" />
</ElFormItem>
<ElFormItem label="新密码" prop="newPassword">
<ElInput v-model="pwdForm.newPassword" type="password" :disabled="!isEditPwd" />
</ElFormItem>
<ElFormItem label="确认新密码" prop="confirmPassword">
<ElInput v-model="pwdForm.confirmPassword" type="password" :disabled="!isEditPwd" />
</ElFormItem>
<div class="el-form-item-right">
<ElButton type="primary" style="width: 90px" v-ripple @click="editPwd">
{{ isEditPwd ? '保存' : '编辑' }}
</ElButton>
</div>
</ElForm>
</div>
</div>
</div>
</div>
@@ -142,7 +118,6 @@
const userInfo = computed(() => userStore.getUserInfo)
const isEdit = ref(false)
const isEditPwd = ref(false)
const date = ref('')
const form = reactive({
realName: 'John Snow',
@@ -154,12 +129,6 @@
des: 'Art Design Pro 是一款漂亮的后台管理系统模版.'
})
const pwdForm = reactive({
password: '123456',
newPassword: '123456',
confirmPassword: '123456'
})
const ruleFormRef = ref<FormInstance>()
const rules = reactive<FormRules>({
@@ -220,9 +189,9 @@
isEdit.value = !isEdit.value
}
const editPwd = () => {
isEditPwd.value = !isEditPwd.value
}
onMounted(() => {
getDate()
})
</script>
<style lang="scss">