diff --git a/src/views/modules/eam/com_eam_knowledge_base_upload_file.vue b/src/views/modules/eam/com_eam_knowledge_base_upload_file.vue
index 5e4d575..af7a212 100644
--- a/src/views/modules/eam/com_eam_knowledge_base_upload_file.vue
+++ b/src/views/modules/eam/com_eam_knowledge_base_upload_file.vue
@@ -15,7 +15,7 @@
-
+
@@ -69,7 +69,7 @@ export default {
objectId: '',
objectName: '',
defectId: '',
- defectReason: '',
+ defectDesc: '',
fileRemark: '',
},
dataListLoading: false,
diff --git a/src/views/modules/eam/eam_knowledge_base.vue b/src/views/modules/eam/eam_knowledge_base.vue
index c2529f1..2a95ab7 100644
--- a/src/views/modules/eam/eam_knowledge_base.vue
+++ b/src/views/modules/eam/eam_knowledge_base.vue
@@ -14,7 +14,7 @@
-
+
@@ -127,18 +127,22 @@
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+ 故障编码
+
-
-
+
+
@@ -149,12 +153,12 @@
-
+
-
-
+
+
@@ -263,7 +267,7 @@
site: this.$store.state.user.site,
objectId: '',
defectId: '',
- defectReason: '',
+ defectDesc: '',
defectDescribe: '',
fileType: '',
startDate: '',
@@ -337,7 +341,7 @@
objectName: '',
fileType: '',
defectId: '',
- defectReason: '',
+ defectDesc: '',
defectDescribe: '',
disposalMeasures: '',
fileId: '',
@@ -402,7 +406,7 @@
fixed: '',
},
{
- columnProp: 'defectReason',
+ columnProp: 'defectDesc',
align: 'center',
columnLabel: '故障原因',
columnHidden: false,
@@ -514,7 +518,7 @@
trigger: 'change'
}
],
- defectReasonType:[
+ defectDescType:[
{
required: true,
message: ' ',
@@ -527,21 +531,7 @@
message: ' ',
trigger: 'change'
}
- ],
- defectDescribeType:[
- {
- required: true,
- message: ' ',
- trigger: 'change'
- }
- ],
- disposalMeasuresType:[
- {
- required: true,
- message: ' ',
- trigger: 'change'
- }
- ],
+ ]
}
}
},
@@ -572,7 +562,7 @@
defectIdChange(){
for (let i = 0; i < this.defectList.length; i++) {
if (this.defectList[i].defectId = this.modalData.defectId){
- this.modalData.defectReason = this.defectList[i].defectReason
+ this.modalData.defectDesc = this.defectList[i].defectDesc
}
}
},
@@ -585,6 +575,10 @@
strVal = this.modalData.objectId
this.$refs.baseList.init(val, strVal)
}
+ if (val === 1054) {
+ strVal = this.modalData.defectId
+ this.$refs.baseList.init(val, strVal)
+ }
})
},
/* 列表方法的回调 */
@@ -592,10 +586,14 @@
if (this.tagNo === 200) {
this.modalData.objectId = val.ObjectID
this.modalData.objectName = val.ObjectDesc
- this.defectList = []
- this.modalData.defectId = ''
- this.modalData.defectReason = ''
- this.getDefectList()
+ // this.defectList = []
+ // this.modalData.defectId = ''
+ // this.modalData.defectDesc = ''
+ // this.getDefectList()
+ }
+ if (this.tagNo === 1054) {
+ this.modalData.defectId = val.DefectID
+ this.modalData.defectDesc = val.DefectDesc
}
},
// 获取故障列表
@@ -652,7 +650,7 @@
objectName: '',
fileType: '',
defectId: '',
- defectReason: '',
+ defectDesc: '',
defectDescribe: '',
disposalMeasures: '',
fileId: '',
@@ -673,7 +671,7 @@
objectName: row.objectName,
fileType: row.fileType,
defectId: row.defectId,
- defectReason: row.defectReason,
+ defectDesc: row.defectDesc,
defectDescribe: row.defectDescribe,
disposalMeasures: row.disposalMeasures,
fileId: row.fileId,
@@ -709,18 +707,6 @@
})
return false
}
- if (this.modalData.defectDescribe === '' || this.modalData.defectDescribe == null) {
- this.$alert('请填写故障描述!', '错误', {
- confirmButtonText: '确定'
- })
- return false
- }
- if (this.modalData.disposalMeasures === '' || this.modalData.disposalMeasures == null) {
- this.$alert('请填写处置措施!', '错误', {
- confirmButtonText: '确定'
- })
- return false
- }
if(this.modalData.flag === '1'){
saveKnowledgeBase(this.modalData).then(({data}) => {
if (data && data.code === 0) {
@@ -881,7 +867,7 @@
objectId: this.currentRow.objectId,
objectName: this.currentRow.objectName,
defectId: this.currentRow.defectId,
- defectReason: this.currentRow.defectReason,
+ defectDesc: this.currentRow.defectDesc,
}
//打开组件 去做新增业务
this.$nextTick(() => {