diff --git a/src/components/doctorCheck/PacsTemplate.vue b/src/components/doctorCheck/PacsTemplate.vue
index 760307f..4c96c29 100644
--- a/src/components/doctorCheck/PacsTemplate.vue
+++ b/src/components/doctorCheck/PacsTemplate.vue
@@ -37,8 +37,7 @@
-
+
@@ -74,11 +73,18 @@
{{ col.resultTemplate }}
-
-
- {{ opt }}
-
-
+
+
+ ×
+
+
+
@@ -171,6 +177,9 @@ export default {
}
}
});
+ //
+ if (this.result.includes('[?]×[?]')) this.resultOpts.push({ resultTemplate: '[?]×[?]', opts: [], chooseOpt: ['',''] })
+
let resultOptRow = { id: 1 }
if (this.resultOpts.length > 0) {
this.resultOpts.forEach(e => {
@@ -180,12 +189,18 @@ export default {
this.resultOptRows.push(resultOptRow)
},
- //
- radioGroupInput(v){
- // console.log('radioGroupInput',this.resultOptRows,this.refParams.index)
+ // 可选参数选择触发
+ optInput(v) {
+ // console.log('optInput',this.resultOptRows,this.refParams.index)
let result = this.result
- this.resultOpts.forEach(e => {
- if(this.resultOptRows[0][e.resultTemplate]) result = result.replace(e.resultTemplate,this.resultOptRows[0][e.resultTemplate])
+ this.resultOpts.forEach(e => {
+ if (this.resultOptRows[0][e.resultTemplate]){
+ if(e.resultTemplate == '[?]×[?]'){
+ result = result.replace(e.resultTemplate, this.resultOptRows[0][e.resultTemplate].join('×'))
+ }else{
+ result = result.replace(e.resultTemplate, this.resultOptRows[0][e.resultTemplate])
+ }
+ }
});
this.doctorCheck.checkItemList[this.refParams.index].result = result
},
@@ -296,19 +311,19 @@ export default {
-
// 清除结果
btnClear(seq) {
this.doctorCheck.checkItemList[seq].result = "";
+ this.result = "";
},
// 默认结果
btnDefResult(seq) {
- this.doctorCheck.checkItemList[seq].result =
- this.doctorCheck.checkItemList[seq].defaultResult;
+ let result = this.doctorCheck.checkItemList[seq].defaultResult
+ this.doctorCheck.checkItemList[seq].result = result;
+ this.result = result
},
-
// 确定
btnOk() {
this.refFuncOther(this.refParams.row, this.refParams.index, {