diff --git a/src/utils/i18n/en.ts b/src/utils/i18n/en.ts
index f39905f2..2c8ba223 100644
--- a/src/utils/i18n/en.ts
+++ b/src/utils/i18n/en.ts
@@ -18,6 +18,7 @@ const lang = {
'上一步': 'Previous',
'下一步': 'Next',
'查看': 'View',
+ '审批类型': 'Approval Type',
},
'菜单': {
'首页': 'Home',
diff --git a/src/utils/i18n/zh.ts b/src/utils/i18n/zh.ts
index 90ed3211..5fb379f0 100644
--- a/src/utils/i18n/zh.ts
+++ b/src/utils/i18n/zh.ts
@@ -18,6 +18,7 @@ const lang = {
'上一步': '上一步',
'下一步': '下一步',
'查看': '查看',
+ '审批类型': '审批类型',
},
'菜单': {
'首页': '首页',
diff --git a/src/views/index/approvalPreview/components/approvalTypeHeader.vue b/src/views/index/approvalPreview/components/approvalTypeHeader.vue
new file mode 100644
index 00000000..4721d69c
--- /dev/null
+++ b/src/views/index/approvalPreview/components/approvalTypeHeader.vue
@@ -0,0 +1,50 @@
+
+
+
+
+
+
+
diff --git a/src/views/index/approvalPreview/components/deliverableFile.vue b/src/views/index/approvalPreview/components/deliverableFile.vue
index 6360db83..b895d152 100644
--- a/src/views/index/approvalPreview/components/deliverableFile.vue
+++ b/src/views/index/approvalPreview/components/deliverableFile.vue
@@ -1,10 +1,5 @@
-
+
import { computed, ref, watchEffect } from 'vue';
import BaseTable from '@/components/common/table/baseTable.vue';
+import approvalTypeHeader from './approvalTypeHeader.vue';
import i18n from '@/utils/i18n';
import { formatFileSize } from '@/utils/file';
import FilePreview from '@/components/common/filePreview/index.vue';
@@ -44,20 +40,11 @@ const props = withDefaults(defineProps(), {
});
const env = import.meta.env;
const knowledgeList = ref([]);
-const contents = ref('');
-const approveAction = ref();
-const tagTypeMap:any = {
- 1: 'success',
- 2: 'primary',
- 3: 'danger',
-};
const baseTableRef = ref(null);
watchEffect(() => {
if (props.data) {
const approveContents = JSON.parse(props.data?.approveContents || '{}');
knowledgeList.value = approveContents.afterData || approveContents.beforeData || null;
- contents.value = approveContents.contents || '';
- approveAction.value = props.data?.approveAction || '';
if (baseTableRef.value && knowledgeList.value) {
baseTableRef.value?.setDataFun(knowledgeList.value);
}
@@ -99,17 +86,3 @@ const actionList = computed(() => {
});
-
diff --git a/src/views/index/approvalPreview/components/knowledge.vue b/src/views/index/approvalPreview/components/knowledge.vue
index b129dedb..0afc2143 100644
--- a/src/views/index/approvalPreview/components/knowledge.vue
+++ b/src/views/index/approvalPreview/components/knowledge.vue
@@ -1,10 +1,5 @@
-
+
import { computed, ref, watchEffect } from 'vue';
import BaseTable from '@/components/common/table/baseTable.vue';
+import approvalTypeHeader from './approvalTypeHeader.vue';
import i18n from '@/utils/i18n';
import { formatFileSize } from '@/utils/file';
import FilePreview from '@/components/common/filePreview/index.vue';
@@ -45,20 +41,11 @@ const props = withDefaults(defineProps(), {
data: {},
});
const knowledgeList = ref([]);
-const contents = ref('');
-const approveAction = ref();
-const tagTypeMap:any = {
- 1: 'success',
- 2: 'primary',
- 3: 'danger',
-};
const baseTableRef = ref(null);
watchEffect(() => {
if (props.data) {
const approveContents = JSON.parse(props.data?.approveContents || '{}');
knowledgeList.value = approveContents.afterData || approveContents.beforeData || null;
- contents.value = approveContents.contents || '';
- approveAction.value = props.data?.approveAction || '';
if (baseTableRef.value && knowledgeList.value) {
baseTableRef.value?.setDataFun(knowledgeList.value);
}
@@ -97,17 +84,3 @@ const actionList = computed(() => {
});
-