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
2022-12-05 10:57:25 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
25bb0d18a6efc25900e9f268203d6a723a2016b3
25bb0d18
1 parent
cee1b777
图片上传,电子签名,评分控件多个情况下判断
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
src/views/index.vue
src/views/index.vue
View file @
25bb0d1
...
...
@@ -195,24 +195,39 @@ const validOther = () => {
};
if (image_uploader.value) {
// 图片上传
image_uploader.value.forEach((item, index) => {
if (!image_uploader.value[index].validImageUploader()) {
valid = {
status: image_uploader.value[0
].validImageUploader(),
status: image_uploader.value[index
].validImageUploader(),
key: "image_uploader",
};
return false;
}
});
}
if (sign.value) {
// 电子签名
sign.value.forEach((item, index) => {
if (!sign.value[index].validImageUploader()) {
valid = {
status: sign.value[0].validSign
(),
status: sign.value[index].validImageUploader
(),
key: "sign",
};
return false;
}
});
}
if (rate_picker.value) {
// 评分组件
rate_picker.value.forEach((item, index) => {
if (!rate_picker.value[index].validImageUploader()) {
valid = {
status: rate_picker.value[0].validRate
(),
status: rate_picker.value[index].validImageUploader
(),
key: "rate_picker",
};
return false;
}
});
}
return valid;
};
...
...
Please
register
or
login
to post a comment