diff --git a/src/views/dictionary/checkConfig/index.vue b/src/views/dictionary/checkConfig/index.vue index e12c104e..8b03f800 100644 --- a/src/views/dictionary/checkConfig/index.vue +++ b/src/views/dictionary/checkConfig/index.vue @@ -142,11 +142,16 @@ - + + + + + + @@ -686,6 +691,7 @@ height="100" > + @@ -165,8 +164,7 @@ v-else-if="scope.row.DataSource !== 1 && scope.row.Type==='number' && !scope.row.IsShowInDicom && ((task.IsBaseLine && scope.row.LimitEdit === 1) || (!task.IsBaseLine && scope.row.LimitEdit === 2) || scope.row.LimitEdit === 0)" v-model="questionForm[scope.row.QuestionId]" :disabled="scope.row.DataSource === 1" - @onblur="limitBlur($event, questionForm, scope.row.QuestionId, scope.row.ValueType)" - @input="limitInput($event, questionForm, scope.row.QuestionId, scope.row.ValueType)" + @blur="limitBlur(questionForm, scope.row.QuestionId, scope.row.ValueType)" size="mini" @focus="() => {questionId = scope.row.QuestionId}" > @@ -368,26 +366,14 @@ export default { DicomEvent.$off('getReportInfo') }, methods: { - limitInput(value, a, b, valueType) { + limitBlur(questionForm,id,valueType) { + let value = questionForm[id] if (valueType === 0) { - this.$set(a, b, parseInt(value)) + this.$set(questionForm, id, parseInt(value)) } else if (valueType === 3) { - this.$set(a, b, parseFloat(value)) - } else if (value.split('.')[1].length >= this.digitPlaces) { - this.$set(a, b, parseFloat(value).toFixed(this.digitPlaces)) - } else { - this.$set(a, b, parseFloat(value)) - } - }, - limitBlur(value,a,b,valueType) { - if (valueType === 0) { - this.$set(a, b, parseInt(value)) - } else if (valueType === 3) { - this.$set(a, b, parseFloat(value)) - }else if (value.split('.')[1].length >= this.digitPlaces) { - this.$set(a, b, parseFloat(value).toFixed(this.digitPlaces)) - } else { - this.$set(a, b, parseFloat(value)) + this.$set(questionForm, id, parseFloat(value)) + }else { + this.$set(questionForm, id, parseFloat(value).toFixed(this.digitPlaces)) } }, setImageUrl(qid, index, tqid, url, RowId) { @@ -777,7 +763,7 @@ export default { }, handleResize() { this.$nextTick(() => { - this.$refs.reportList.doLayout() + this.$refs.reportList ? this.$refs.reportList.doLayout() : '' }) }, // 关闭签名框 diff --git a/src/views/trials/trials-panel/trial-summary/audit-record/index.vue b/src/views/trials/trials-panel/trial-summary/audit-record/index.vue index df893644..f1e92f7c 100644 --- a/src/views/trials/trials-panel/trial-summary/audit-record/index.vue +++ b/src/views/trials/trials-panel/trial-summary/audit-record/index.vue @@ -978,6 +978,8 @@ export default { this.tableListData = [] this[auditData] = [] config.forEach(v => { + v.Code = this.$i18n.locale === 'zh' ? v.Code : v.CodeEn ? v.CodeEn : v.Code + var item if (!v.IsEnable) return if (v.IsShowByTrialConfig) { @@ -1084,7 +1086,7 @@ export default { a = getToken() } return v.UrlParameterName + '=' + a + '&' - }).toString().replaceAll(',', '') : v.UrlConfig.RoutePath, + }).toString().replaceAll(',', '') + 'zh='+this.$i18n.locale : v.UrlConfig.RoutePath, newValue: v.UrlConfig.IsHaveParameters ? v.UrlConfig.RoutePath + '?' + v.UrlConfig.ParameterList.map((v) => { let a = obj[v.UrlParameterValueName] ? obj[v.UrlParameterValueName] : parentRow[v.UrlParameterValueName] @@ -1092,7 +1094,7 @@ export default { a = getToken() } return v.UrlParameterName + '=' + a + '&' - }).toString().replaceAll(',', '') : v.UrlConfig.RoutePath + }).toString().replaceAll(',', '') + 'zh='+this.$i18n.locale : v.UrlConfig.RoutePath } console.log(item) item.IsTableFiled = v.IsTableFiled