This commit is contained in:
GGJ
2024-11-22 08:45:50 +08:00
4 changed files with 4 additions and 6 deletions

View File

@@ -361,10 +361,10 @@ onMounted(() => {
* 计算暂降治理
*/
function calcSag() {
formRef.value.validate(async (valid: any, errorMsg: any) => {
formRef.value.validate((valid: any, errorMsg: any) => {
if (valid) {
//将所有参数传递到后端进行数据计算
await calc(form).then(res => {
calc(form).then(res => {
//先通知父组件打开历史页面
emitter.emit('schemeRadio', '评估计算结果')
emitter.emit('calcResult', false)

View File

@@ -483,12 +483,12 @@ onMounted(() => {
* 计算暂降治理
*/
function calcSag() {
formRef.value.validate(async (valid: any, errorMsg: any) => {
formRef.value.validate((valid: any, errorMsg: any) => {
if (valid) {
//将所有参数传递到后端进行数据计算
form.startTime = datePickerRef.value.timeValue[0]
form.endTime = datePickerRef.value.timeValue[1]
await calc(form).then(res => {
calc(form).then(res => {
//先通知父组件打开历史页面
emitter.emit('schemeRadio', '评估计算结果')
emitter.emit('calcResult', false)