-
+
{{$t('descriptions')}}
@@ -184,36 +184,36 @@
-
-
-
-
- {{$t('documents')}}
-
-
-
-
- {{ (formInline.file === 'null' || formInline.file === '' ||
- formInline.file == null) ? $t('Fileupload') : $t('viewUploadedFiles')
- }}
-
-
+
+
+
+
+ {{$t('documents')}}
-
+
+
+
+ {{ (formInline.file === 'null' || formInline.file === '' ||
+ formInline.file == null) ? $t('Fileupload') : $t('viewUploadedFiles')
+ }}
+
+
+
+
@@ -225,7 +225,7 @@
-
+
{
if (valid) {
- this.confirmLoading = true
- let url = ''
- let action = ''
- if (this.formInline.id) {
- url = this.url.edit
- action = putAction
+ this.confirmLoading = true
+ let url = ''
+ let action = ''
+ if (this.formInline.id) {
+ url = this.url.edit
+ action = putAction
+ } else {
+ url = this.url.add
+ action = postAction
+ }
+ let formInline = JSON.parse(JSON.stringify(this.formInline))
+ // Object.keys(formInline).forEach(res => {
+ // if (formInline[res] && formInline[res] instanceof Array) {
+ // formInline[res] = formInline[res].join(',')
+ // }
+ // })
+ let query = {
+ problemManagementEO:formInline
+ }
+ action(url, query).then((res) => {
+ if (res.success) {
+ this.$message.success(this.$t('OperationSuccessful'))
+ this.visible = false
+ this.confirmLoading = false
+ this.$emit('fillAddForm')
} else {
- url = this.url.add
- action = postAction
+ this.confirmLoading = false
+ this.$message.warning(this.$t('operationFailed'))
}
- let formInline = JSON.parse(JSON.stringify(this.formInline))
- // Object.keys(formInline).forEach(res => {
- // if (formInline[res] && formInline[res] instanceof Array) {
- // formInline[res] = formInline[res].join(',')
- // }
- // })
- let query = {
- problemManagementEO:formInline
- }
- action(url, query).then((res) => {
- if (res.success) {
- this.$message.success(this.$t('OperationSuccessful'))
- this.visible = false
- this.confirmLoading = false
- this.$emit('fillAddForm')
- } else {
- this.confirmLoading = false
- this.$message.warning(this.$t('operationFailed'))
- }
- })
+ })
}
})
}
diff --git a/jero-web/src/views/projectManagement/components/nonConformance.vue b/jero-web/src/views/projectManagement/components/nonConformance.vue
index 16dff372d..1add5aba1 100644
--- a/jero-web/src/views/projectManagement/components/nonConformance.vue
+++ b/jero-web/src/views/projectManagement/components/nonConformance.vue
@@ -211,7 +211,8 @@
align: 'left',
dataIndex: 'title',
width: 170,
- sorter:true
+ sorter:true,
+ ellipsis: true
},
{
title: this.$t('Relevantlawsregulations'),
diff --git a/jero-web/src/views/projectManagement/projectNonConformance/index.vue b/jero-web/src/views/projectManagement/projectNonConformance/index.vue
index d9e3294cd..e8e4583b9 100644
--- a/jero-web/src/views/projectManagement/projectNonConformance/index.vue
+++ b/jero-web/src/views/projectManagement/projectNonConformance/index.vue
@@ -8,8 +8,8 @@
{{$t('title')}}
-
+