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-06-17 11:20:00 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2d1b3dce31497b4ad24e169923793a3a61f3c2ab
2d1b3dce
1 parent
6bd58b3d
只读模式下,提交按钮隐藏
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
src/views/index.vue
src/views/index.vue
View file @
2d1b3dc
<!--
* @Date: 2022-07-18 10:22:22
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-06-1
4 16:01:58
* @LastEditTime: 2024-06-1
7 11:19:43
* @FilePath: /data-table/src/views/index.vue
* @Description: 首页
-->
...
...
@@ -446,6 +446,7 @@ onMounted(async () => {
// 设置读写权限 read_only read_write
if (form_type === 'readonly') {
item.component_props.readonly = true;
PCommit.value.visible = false; // 只读模式下,提交按钮隐藏
}
}
}
...
...
@@ -824,7 +825,7 @@ const onSubmit = async (values) => {
if (model === 'edit') {
console.warn(postData.value);
}
if (model === 'edit' || model === 'preview') return false;
if (model === 'edit' || model === 'preview'
|| form_type === 'readonly'
) return false;
// 提交按钮禁用
submitStatus.value = true;
// iframe传值openid
...
...
Please
register
or
login
to post a comment