diff --git a/src/views/trials/trials-panel/setting/reading-unit/components/ReadingRules.vue b/src/views/trials/trials-panel/setting/reading-unit/components/ReadingRules.vue
index bb5be704..39388075 100644
--- a/src/views/trials/trials-panel/setting/reading-unit/components/ReadingRules.vue
+++ b/src/views/trials/trials-panel/setting/reading-unit/components/ReadingRules.vue
@@ -34,30 +34,22 @@
+ !hasPermi(['trials:trials-panel:setting:reading-unit:edit'])" @change="handleReadingToolListChange">
{{ $t(`${tool.i18nKey}`) }}
-
- handleNumberInput(val, 'CircleRadius')"
- clearable
+
+ handleNumberInput(val, 'CircleRadius')" clearable
:disabled="isConfirm ||
- !hasPermi(['trials:trials-panel:setting:reading-unit:edit'])
- "
- >
- mm
+ !hasPermi(['trials:trials-panel:setting:reading-unit:edit'])
+ ">
+ mm
-
+
@@ -432,6 +424,7 @@
{{
$t('common:button:new') }}
+
@@ -447,11 +440,11 @@
-
+
@@ -766,19 +759,19 @@ export default {
if (!name) return false
let index = row.$index
this.form.DefaultSegmentName.SegmentNameList.splice(index, 1, name)
- this.form.SegmentNameListStr = this.form.DefaultSegmentName.SegmentNameList.join(",")
+ this.form.SegmentNameListStr = this.form.DefaultSegmentName.SegmentNameList.join("|")
},
delSegment(row) {
console.log(row)
let index = row.$index
this.form.DefaultSegmentName.SegmentNameList.splice(index, 1)
- this.form.SegmentNameListStr = this.form.DefaultSegmentName.SegmentNameList.join(",")
+ this.form.SegmentNameListStr = this.form.DefaultSegmentName.SegmentNameList.join("|")
},
async addSegment() {
let name = await this.customPrompt()
if (!name) return false
this.form.DefaultSegmentName.SegmentNameList.push(name)
- this.form.SegmentNameListStr = this.form.DefaultSegmentName.SegmentNameList.join(",")
+ this.form.SegmentNameListStr = this.form.DefaultSegmentName.SegmentNameList.join("|")
},
async customPrompt(name = null) {
try {
@@ -796,6 +789,8 @@ export default {
inputValidator: (value) => {
if (!value) {
return that.$t("trials:reading:Segmentations:message:notName")
+ } else if (value === name) {
+ return true
} else if (that.form.DefaultSegmentName.SegmentNameList.includes(value)) {
return that.$t("trials:reading:Segmentations:message:nameIsHas")
} else {
@@ -1067,7 +1062,7 @@ export default {
})
},
handleReadingToolListChange(v) {
- if(!v.includes('FixedRadiusCircleROI')) {
+ if (!v.includes('FixedRadiusCircleROI')) {
this.form.CircleRadius = null
}
},
@@ -1076,9 +1071,9 @@ export default {
this.form[field] = ''
return
}
-
+
let val = value.toString()
-
+
// 1. 清除“数字”和“.”以外的字符
val = val.replace(/[^\d.]/g, '')
// 2. 保证第一个字符不能是“.”