调整form表单接口
This commit is contained in:
@@ -30,7 +30,7 @@ import TableStore from '@/utils/tableStore'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import { onMounted, provide, ref, reactive,nextTick } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { deleteWFForm, getFormById } from '@/api/process-boot/workflow/form'
|
||||
import { deleteForm, getById } from '@/api/bpm-boot/form'
|
||||
|
||||
|
||||
const { push } = useRouter()
|
||||
@@ -71,24 +71,24 @@ const tableStore = new TableStore({
|
||||
minWidth: '230',
|
||||
fixed: 'right',
|
||||
buttons: [
|
||||
{
|
||||
name: 'view',
|
||||
title: '预览',
|
||||
type: 'primary',
|
||||
icon: 'el-icon-EditPen',
|
||||
render: 'basicButton',
|
||||
click: row => {
|
||||
//首先根据id查询出详细数据,然后渲染json
|
||||
getFormById(row.id).then(res => {
|
||||
render.visible = true;
|
||||
render.title = '查看表单详情';
|
||||
nextTick(async () => {
|
||||
vfRenderRef.value.setFormJson(res.data.content || {formConfig: {}, widgetList: []});
|
||||
});
|
||||
|
||||
})
|
||||
}
|
||||
},
|
||||
// {
|
||||
// name: 'view',
|
||||
// title: '预览',
|
||||
// type: 'primary',
|
||||
// icon: 'el-icon-EditPen',
|
||||
// render: 'basicButton',
|
||||
// click: row => {
|
||||
// //首先根据id查询出详细数据,然后渲染json
|
||||
// getById(row.id).then(res => {
|
||||
// render.visible = true;
|
||||
// render.title = '查看表单详情';
|
||||
// nextTick(async () => {
|
||||
// vfRenderRef.value.setFormJson(res.data.content || {formConfig: {}, widgetList: []});
|
||||
// });
|
||||
//
|
||||
// })
|
||||
// }
|
||||
// },
|
||||
{
|
||||
name: 'update',
|
||||
title: '设计表单',
|
||||
@@ -113,7 +113,7 @@ const tableStore = new TableStore({
|
||||
title: '确定删除吗?'
|
||||
},
|
||||
click: row => {
|
||||
deleteWFForm(row.id).then(res => {
|
||||
deleteForm(row.id).then(res => {
|
||||
ElMessage.success('删除成功')
|
||||
tableStore.index()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user