This commit is contained in:
2024-11-21 19:50:24 +08:00
parent 94ac7ee227
commit adb2ab758a
4 changed files with 4 additions and 6 deletions

View File

@@ -386,7 +386,6 @@ const removeListenerField = (index) => {
} }
// 移除监听器 // 移除监听器
const removeListener = (index) => { const removeListener = (index) => {
debugger
ElMessageBox.confirm('确认移除该监听器吗?', '提示', { ElMessageBox.confirm('确认移除该监听器吗?', '提示', {
confirmButtonText: '确 认', confirmButtonText: '确 认',
cancelButtonText: '取 消' cancelButtonText: '取 消'

View File

@@ -2,7 +2,6 @@ import { toRaw } from 'vue'
const bpmnInstances = () => (window as any)?.bpmnInstances const bpmnInstances = () => (window as any)?.bpmnInstances
// 创建监听器实例 // 创建监听器实例
export function createListenerObject(options, isTask, prefix) { export function createListenerObject(options, isTask, prefix) {
debugger
const listenerObj = Object.create(null) const listenerObj = Object.create(null)
listenerObj.event = options.event listenerObj.event = options.event
isTask && (listenerObj.id = options.id) // 任务监听器特有的 id 字段 isTask && (listenerObj.id = options.id) // 任务监听器特有的 id 字段

View File

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

View File

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