diff --git a/src/views/system/bpm/form/editor/index.vue b/src/views/system/bpm/form/editor/index.vue index a472f4a1..49a5e077 100644 --- a/src/views/system/bpm/form/editor/index.vue +++ b/src/views/system/bpm/form/editor/index.vue @@ -51,7 +51,6 @@ import { onMounted, ref, reactive } from 'vue' import { useRouter, useRoute } from 'vue-router' import FcDesigner from '@form-create/designer' -import { useI18n } from '@/hooks/web/useI18n' import { encodeConf, encodeFields, setConfAndFields } from '@/utils/formCreate' import { useTagsViewStore } from '@/stores/modules/tagsView' import { useFormCreateDesigner } from '@/components/FormCreate' diff --git a/src/views/system/bpm/form/index.vue b/src/views/system/bpm/form/index.vue index 67203068..7c7a4f8b 100644 --- a/src/views/system/bpm/form/index.vue +++ b/src/views/system/bpm/form/index.vue @@ -17,8 +17,8 @@
- - + + @@ -31,6 +31,7 @@ import { ElMessage } from 'element-plus' import { onMounted, provide, ref, reactive,nextTick } from 'vue' import { useRouter } from 'vue-router' import { deleteForm, getById } from '@/api/bpm-boot/form' +import { setConfAndFields2 } from '@/utils/formCreate' const { push } = useRouter() @@ -46,6 +47,12 @@ const render = reactive({ title: '' }) +const detailVisible = ref(false) +const detailData = ref({ + rule: [], + option: {} +}) + const tableStore = new TableStore({ url: '/bpm-boot/bpm/form/list', method: 'POST', @@ -72,24 +79,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 - // getById(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 => { + nextTick(async () => { + setConfAndFields2(detailData, res.data.conf, res.data.fields) + // 弹窗打开 + detailVisible.value = true + }); + + }) + } + }, { name: 'update', title: '设计表单', diff --git a/src/views/system/bpm/processInstance/detail/ProcessInstanceTaskList.vue b/src/views/system/bpm/processInstance/detail/ProcessInstanceTaskList.vue index 233ebaf7..a3ec23f5 100644 --- a/src/views/system/bpm/processInstance/detail/ProcessInstanceTaskList.vue +++ b/src/views/system/bpm/processInstance/detail/ProcessInstanceTaskList.vue @@ -1,98 +1,97 @@ diff --git a/src/views/system/bpm/task/myInstance/index.vue b/src/views/system/bpm/task/myInstance/index.vue index 60c892c4..3d6d9bf4 100644 --- a/src/views/system/bpm/task/myInstance/index.vue +++ b/src/views/system/bpm/task/myInstance/index.vue @@ -111,9 +111,6 @@ const tableStore = new TableStore({ type: 'primary', icon: 'el-icon-EditPen', render: 'basicButton', - disabled: row => { - return !row.processInstanceId - }, click: row => { flag.value = true handleAudit(row.id, row.historyInstanceId)