Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2024-10-28 09:59:02 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d8534fbfaeb51f377eb1b8872e4167a07f98c000
d8534fbf
1 parent
30f0e16d
✨ feat(身份证组件): 加密身份证功能调整
现在只需要在详情页进行身份证的修改操作
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
src/components/IdentityField/index.vue
src/components/IdentityField/index.vue
View file @
d8534fb
<!--
* @Date: 2022-09-14 14:44:30
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-
08-23 14:07:29
* @LastEditTime: 2024-
10-28 09:55:37
* @FilePath: /data-table/src/components/IdentityField/index.vue
* @Description: 身份证输入控件
-->
...
...
@@ -44,7 +44,7 @@
:border="false"
>
<template #button>
<van-button size="small" type="primary" v-if="
data_type === 'encrypt_mode'
" @click="clickEdit()">编辑</van-button>
<van-button size="small" type="primary" v-if="
IdEditShow
" @click="clickEdit()">编辑</van-button>
</template>
</van-field>
<!-- <div v-if="gender" class="gender"><span>性别:</span>{{ gender }}</div> -->
...
...
@@ -81,6 +81,10 @@ const HideShow = computed(() => {
const ReadonlyShow = computed(() => {
return ($route.query.page_type === 'flow' || $route.query.page_type === 'edit') && !props.item.component_props.readonly;
});
// 是否显示编辑按钮
const IdEditShow = computed(() => {
return ($route.query.page_type === 'edit') && data_type === 'encrypt_mode';
});
onMounted(() => {
props.item.value = props.item.component_props.default;
})
...
...
Please
register
or
login
to post a comment