Эх сурвалжийг харах

fix: 提示语多次弹窗,radio不能选中问题、认领任务成功提示

luoyali 1 жил өмнө
parent
commit
ee099efc56

+ 1 - 6
src/views/approve/components/addSignDialog.vue

@@ -70,7 +70,7 @@ const btnDisabled = ref(false)
 const form = reactive({
 	content: '',
 	userId: '',
-	type: 9
+	type: ''
 })
 const formRef = ref(null)
 const uploadLoading = ref(false)
@@ -110,7 +110,6 @@ const submitForm = () => {
 						formData.username = item.label
 					}
 				})
-				console.log(formData, '===')
 				await processAppendNodeApi(formData)
 				$myEmit('successCb')
 				closeDialog()
@@ -119,10 +118,6 @@ const submitForm = () => {
 		})
 		.catch(err => {
 			btnDisabled.value = false
-			ElMessage({
-				message: '操作失败',
-				type: 'error'
-			})
 		})
 }
 

+ 1 - 5
src/views/approve/components/approvedContent.vue

@@ -393,11 +393,7 @@ const claimTaskEv = async () => {
 		buttonSize: 'default'
 	})
 		.then(async () => {
-			const { data } = await processClaimTaskApi(currentTaskRow.value.taskId)
-			ElMessage({
-				message: data ? '执行成功' : '执行失败',
-				type: data ? 'success' : 'error'
-			})
+			const data = await processClaimTaskApi(currentTaskRow.value.taskId)
 			if (!data) return
 			closeDetailEv()
 		})

+ 0 - 4
src/views/approve/components/consentOrRefuseDialog.vue

@@ -88,10 +88,6 @@ const submitForm = () => {
 		})
 		.catch(err => {
 			btnDisabled.value = false
-			ElMessage({
-				message: '操作失败',
-				type: 'error'
-			})
 		})
 }
 

+ 1 - 5
src/views/approve/components/deliverToReviewDialog.vue

@@ -70,7 +70,7 @@ const btnDisabled = ref(false)
 const form = reactive({
 	content: '',
 	userId: '',
-	type: 0
+	type: ''
 })
 const formRef = ref(null)
 const uploadLoading = ref(false)
@@ -118,10 +118,6 @@ const submitForm = () => {
 		.catch(err => {
 			console.error('挂起订单表单拦截', err)
 			btnDisabled.value = false
-			ElMessage({
-				message: '操作失败',
-				type: 'error'
-			})
 		})
 }
 

+ 0 - 4
src/views/approve/components/loseSignDialog.vue

@@ -95,10 +95,6 @@ const submitForm = () => {
 		.catch(err => {
 			console.error('挂起订单表单拦截', err)
 			btnDisabled.value = false
-			ElMessage({
-				message: '操作失败',
-				type: 'error'
-			})
 		})
 }
 

+ 0 - 4
src/views/approve/components/reviewDialog.vue

@@ -83,10 +83,6 @@ const submitForm = () => {
 		})
 		.catch(err => {
 			btnDisabled.value = false
-			ElMessage({
-				message: '操作失败',
-				type: 'error'
-			})
 		})
 }
 

+ 0 - 4
src/views/approve/components/rollbackDialog.vue

@@ -81,10 +81,6 @@ const submitForm = () => {
 		})
 		.catch(err => {
 			btnDisabled.value = false
-			ElMessage({
-				message: '操作失败',
-				type: 'error'
-			})
 		})
 }