diff --git a/src/views/workCenter/enterpriseStandardInspectionProcess/modules/InspectionProcessContentModal.vue b/src/views/workCenter/enterpriseStandardInspectionProcess/modules/InspectionProcessContentModal.vue
index 7f237a6f..fb87d2a2 100644
--- a/src/views/workCenter/enterpriseStandardInspectionProcess/modules/InspectionProcessContentModal.vue
+++ b/src/views/workCenter/enterpriseStandardInspectionProcess/modules/InspectionProcessContentModal.vue
@@ -43,7 +43,8 @@
{{ $t('cancel') }}
-
+
+
{{ $t('submitAddAdd') }}
@@ -100,12 +101,14 @@ export default {
validateTrigger: 'blur'
}
},
+ type: '', // 新增还是编辑
index: -1, // 编辑的表格的下标
iframeSrc: '' // 左侧预览的路径
}
},
methods: {
add (data) {
+ this.type = 'add'
this.data = Object.assign({}, data)
// 后端获取预览文件
getFileByInspectId({ inspectId: data.inspectId }).then(res => {
@@ -119,6 +122,7 @@ export default {
this.form.resetFields()
},
edit (data, record, index) {
+ this.type = 'edit'
// 后端获取预览文件
getFileByInspectId({ inspectId: data.inspectId }).then(res => {
if (res.success) {