|
@@ -6,7 +6,7 @@
|
|
|
保存
|
|
|
</a-button>
|
|
|
</template>
|
|
|
- <a-input @keydown.enter="save" style="width:100%" v-model="record[key]"></a-input>
|
|
|
+ <a-input @keydown.enter="save" style="width:100%" v-model="record[key]" :addonAfter=" this.record.unit"></a-input>
|
|
|
</a-modal>
|
|
|
</template>
|
|
|
|
|
@@ -39,11 +39,11 @@ export default {
|
|
|
},
|
|
|
created () {},
|
|
|
methods: {
|
|
|
- base (record, key) {
|
|
|
+ base (record, key = 'value') {
|
|
|
this.visible = true
|
|
|
this.key = key
|
|
|
console.log(record)
|
|
|
- this.title = record.date + this.titleMap[key]
|
|
|
+ this.title = record.date + '(' + record.lineOne + record.name + ')'
|
|
|
this.record = {
|
|
|
...record
|
|
|
}
|