8000 bug fix · supercoderhawk/emr-processor@0b92b5c · GitHub
[go: up one dir, main page]

Skip to content

Commit 0b92b5c

Browse files
bug fix
1 parent 96cb42e commit 0b92b5c

File tree

1 file changed

+7
-8
lines changed
  • app/src/renderer/components/Converter

1 file changed

+7
-8
lines changed

app/src/renderer/components/Converter/Panel.vue

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<v-select v-model="input.value" :options="input.options" options-value="val"
66
name="records" @change="recordChange" @selected="recordSelected" justified required close-on-select></v-select>
77
<a @click="getData" class="btn btn-default">获取数据</a>
8-
<a @click="test" class="btn btn-default">测试</a>
8+
<a class="btn btn-default">测试</a>
99
</div>
1010
</div>
1111
<div class="row">
@@ -49,9 +49,9 @@
4949
recordChange (value) {
5050
console.log('change:' + value)
5151
// 根据选中的病历ID设置内容
52-
let plain = this.$store.state.converter.records[value].plainText
53-
let json = this.$store.state.converter.records[value].jsonText
54-
this.$store.dispatch('modifyText', {plainText: plain, jsonText: json})
52+
// let plain = this.$store.state.converter.records[value].plainText
53+
// let json = this.$store.state.converter.records[value].jsonText
54+
// this.$store.dispatch('modifyText', {plainText: plain, jsonText: json})
5555
},
5656
recordSelected (label) {
5757
console.log('selected' + label)
@@ -79,7 +79,9 @@
7979
.then(function (resConcept) {
8080
$this.$store.dispatch('addRecord',
8181
{id: resItem.id, name: resItem.name, plainText: resItem.content, jsonText: resConcept})
82-
$this.recordChange(0)
82+
.then(function () {
83+
$this.recordChange(0)
84+
})
8385
})
8486
.catch(function (err) {
8587
console.log(err)
@@ -88,9 +90,6 @@
8890
.catch(function (error) {
8991
console.log(error)
9092
})
91-
},
92-
test () {
93-
this.$store.dispatch('addRecord', {id: '234', name: '测试', plainText: '内容', jsonText: null})
9493
}
9594
}
9695
}

0 commit comments

Comments
 (0)
0