diff --git a/src/views/bpm/processInstance/index.vue b/src/views/bpm/processInstance/index.vue index 1a8ef8900..6f493a3d4 100644 --- a/src/views/bpm/processInstance/index.vue +++ b/src/views/bpm/processInstance/index.vue @@ -122,8 +122,23 @@ @@ -248,6 +263,12 @@ const queryParams = reactive({ const queryFormRef = ref() // 搜索的表单 const categoryList = ref([]) // 流程分类列表 const showPopover = ref(false) // 高级筛选是否展示 +// 判断是否为 Base64 图片的方法 +const isBase64Image = (str) => { + if (typeof str !== 'string') return false; + // 支持常见的图片格式:png, jpg, jpeg, gif, webp, svg + return /^data:image\/(png|jpe?g|gif|webp|svg\+xml);base64,/.test(str); +} /** 查询列表 */ const getList = async () => { @@ -336,3 +357,43 @@ onMounted(async () => { processDefinitionList.value = await DefinitionApi.getSimpleProcessDefinitionList() }) + + diff --git a/src/views/bpm/task/copy/index.vue b/src/views/bpm/task/copy/index.vue index 91cfaafef..508a01852 100644 --- a/src/views/bpm/task/copy/index.vue +++ b/src/views/bpm/task/copy/index.vue @@ -49,8 +49,23 @@ @@ -114,6 +129,12 @@ const queryParams = reactive({ createTime: [] }) const queryFormRef = ref() // 搜索的表单 +// 判断是否为 Base64 图片的方法 +const isBase64Image = (str) => { + if (typeof str !== 'string') return false; + // 支持常见的图片格式:png, jpg, jpeg, gif, webp, svg + return /^data:image\/(png|jpe?g|gif|webp|svg\+xml);base64,/.test(str); +} /** 查询任务列表 */ const getList = async () => { @@ -159,3 +180,43 @@ onMounted(() => { getList() }) + + diff --git a/src/views/bpm/task/done/index.vue b/src/views/bpm/task/done/index.vue index 202cd0e7d..dcb1cb65e 100644 --- a/src/views/bpm/task/done/index.vue +++ b/src/views/bpm/task/done/index.vue @@ -132,8 +132,23 @@ class="flex flex-col" v-if="scope.row.processInstance.summary && scope.row.processInstance.summary.length > 0" > -
- {{ item.key }} : {{ item.value }} +
+ + + {{ item.key }}: + + + +
@@ -229,6 +244,13 @@ const queryFormRef = ref() // 搜索的表单 const categoryList = ref([]) // 流程分类列表 const showPopover = ref(false) // 高级筛选是否展示 +// 判断是否为 Base64 图片的方法 +const isBase64Image = (str) => { + if (typeof str !== 'string') return false; + // 支持常见的图片格式:png, jpg, jpeg, gif, webp, svg + return /^data:image\/(png|jpe?g|gif|webp|svg\+xml);base64,/.test(str); +} + /** 查询任务列表 */ const getList = async () => { loading.value = true @@ -280,3 +302,43 @@ onMounted(async () => { processDefinitionList.value = await DefinitionApi.getSimpleProcessDefinitionList() }) + + diff --git a/src/views/bpm/task/todo/index.vue b/src/views/bpm/task/todo/index.vue index 2c72e8222..07748cb4c 100644 --- a/src/views/bpm/task/todo/index.vue +++ b/src/views/bpm/task/todo/index.vue @@ -115,8 +115,23 @@ class="flex flex-col" v-if="scope.row.processInstance.summary && scope.row.processInstance.summary.length > 0" > -
- {{ item.key }} : {{ item.value }} +
+ + + {{ item.key }}: + + + +
@@ -190,6 +205,12 @@ const queryParams = reactive({ const queryFormRef = ref() // 搜索的表单 const categoryList = ref([]) // 流程分类列表 const showPopover = ref(false) // 高级筛选是否展示 +// 判断是否为 Base64 图片的方法 +const isBase64Image = (str) => { + if (typeof str !== 'string') return false; + // 支持常见的图片格式:png, jpg, jpeg, gif, webp, svg + return /^data:image\/(png|jpe?g|gif|webp|svg\+xml);base64,/.test(str); +} /** 查询任务列表 */ const getList = async () => { @@ -234,3 +255,43 @@ onMounted(async () => { processDefinitionList.value = await DefinitionApi.getSimpleProcessDefinitionList() }) + +