Browse Source

feat: 左侧树同意逻辑还原

luoyali 1 year ago
parent
commit
ea75b064ac
1 changed files with 17 additions and 12 deletions
  1. 17 12
      src/views/approve/components/approvedContent.vue

+ 17 - 12
src/views/approve/components/approvedContent.vue

@@ -194,18 +194,7 @@ const closeDetailEv = () => {
  * @param type 评论 拒绝 同意等
  */
 const openComment = (type, item) => {
-	// 验证表单 todo...
-	const api = validateForm.value.api
-	api.validate((valid, fail) => {
-		if (valid) {
-			const values = api.formData()
-			console.warn(values, 'values')
-			//todo 表单验证通过
-		} else {
-			//todo 表单验证未通过
-		}
-	})
-	// return
+
 
 	switch (type) {
 		case 'reviewVisible':
@@ -215,6 +204,22 @@ const openComment = (type, item) => {
 			addSignVisible.value = !addSignVisible.value
 			break
 		case 'consentOrRefuseVisible':
+			// 点击同意
+			if (item === 'agree') {
+				debugger
+				// 验证表单 todo...
+				const api = validateForm.value.api
+				api.validate((valid, fail) => {
+					if (valid) {
+						const values = api.formData()
+						console.warn(values, 'values')
+						//todo 表单验证通过
+					} else {
+						//todo 表单验证未通过
+					}
+				})
+				// return
+			}
 			currentDialog.value = item
 			consentOrRefuseVisible.value = !consentOrRefuseVisible.value
 			break