wangting
2023-08-07 db860f9c08a23fe916121a2c76001e05d2acee3e
Source/UBCS-WEB/src/components/template/FlowPath.vue
@@ -171,9 +171,8 @@
        // 新增
        async handleSave(row, done, loading) {
            console.log(row)
            const response = await flowpathSave({ ...row, ...{ templateId: this.code } })
            await flowpathSave({ ...row, ...{ templateId: this.code } }).then(response=>{
            if (response.status === 200) {
                loading()
                console.log(response)
                this.$message({
                    type: 'success',
@@ -182,6 +181,9 @@
                done()
                this.getDataList()
            }
            }).catch(res=>{
              loading()
            })
        },
        // 编辑
@@ -189,9 +191,8 @@
            console.log(row)
            const { modelName, modelKey, buttonTypeKey, id ,description} = row
            let param = { modelName, modelKey, buttonTypeKey, id,description }
            const response = await flowpathSave({ ...param, ...{ templateId: this.code } })
            await flowpathSave({ ...param, ...{ templateId: this.code } }).then(response=>{
            if (response.status === 200) {
                loading()
                this.$message({
                    type: 'success',
                    message: '修改数据成功!'
@@ -199,6 +200,10 @@
                done()
                this.getDataList()
            }
            }).catch(()=>{
              //loading控制禁用 默认是开启
              loading()
            })
        },
        // 删除单条