hookehuyr

🐞 fix: 修复电子签名和评分组件检验方法错误问题

1 <!-- 1 <!--
2 * @Date: 2022-07-18 10:22:22 2 * @Date: 2022-07-18 10:22:22
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2023-01-04 10:22:13 4 + * @LastEditTime: 2023-01-09 13:47:56
5 * @FilePath: /data-table/src/views/index.vue 5 * @FilePath: /data-table/src/views/index.vue
6 * @Description: 首页 6 * @Description: 首页
7 --> 7 -->
...@@ -329,9 +329,9 @@ const validOther = () => { ...@@ -329,9 +329,9 @@ const validOther = () => {
329 if (sign.value) { 329 if (sign.value) {
330 // 电子签名 330 // 电子签名
331 sign.value.forEach((item, index) => { 331 sign.value.forEach((item, index) => {
332 - if (!sign.value[index].validImageUploader()) { 332 + if (!sign.value[index].validSign()) {
333 valid = { 333 valid = {
334 - status: sign.value[index].validImageUploader(), 334 + status: sign.value[index].validSign(),
335 key: "sign", 335 key: "sign",
336 }; 336 };
337 return false; 337 return false;
...@@ -341,9 +341,9 @@ const validOther = () => { ...@@ -341,9 +341,9 @@ const validOther = () => {
341 if (rate_picker.value) { 341 if (rate_picker.value) {
342 // 评分组件 342 // 评分组件
343 rate_picker.value.forEach((item, index) => { 343 rate_picker.value.forEach((item, index) => {
344 - if (!rate_picker.value[index].validImageUploader()) { 344 + if (!rate_picker.value[index].validRate()) {
345 valid = { 345 valid = {
346 - status: rate_picker.value[index].validImageUploader(), 346 + status: rate_picker.value[index].validRate(),
347 key: "rate_picker", 347 key: "rate_picker",
348 }; 348 };
349 return false; 349 return false;
......