Commit 361479b5 by 李乾广

修改bug

1 parent 053e4122
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
:maxTagCount="1" :maxTagCount="1"
style="width: 240px"> style="width: 240px">
<a-select-option <a-select-option
v-for="item in childAdultOptions" v-for="item in childAdultAgeOptions"
:key="item.value" :key="item.value"
:value="item.value" :value="item.value"
>{{item.label}}</a-select-option> >{{item.label}}</a-select-option>
...@@ -601,7 +601,7 @@ export default { ...@@ -601,7 +601,7 @@ export default {
const personTypeStr = function(val){ const personTypeStr = function(val){
return (personTypeList.value.filter(v => v.value == val)[0] || {label:'--'}).label return (personTypeList.value.filter(v => v.value == val)[0] || {label:'--'}).label
} }
const childAdultOptions = ref([ const childAdultAgeOptions = ref([
{ value: 0, label: '婴儿' }, { value: 0, label: '婴儿' },
{ value: 1, label: '儿童' }, { value: 1, label: '儿童' },
{ value: 2, label: '少年' }, { value: 2, label: '少年' },
...@@ -610,6 +610,11 @@ export default { ...@@ -610,6 +610,11 @@ export default {
{ value: 5, label: '老年' }, { value: 5, label: '老年' },
{ value: -1, label: '未知' }, { value: -1, label: '未知' },
]) ])
const childAdultOptions = ref([
{ value: 0, label: '儿童' },
{ value: 1, label: '成人' },
{ value: -1, label: '未知' },
])
const formatChildAdult = function(val) { const formatChildAdult = function(val) {
const targetitem = childAdultOptions.value.find(item => item.value === val) const targetitem = childAdultOptions.value.find(item => item.value === val)
if (targetitem) return targetitem.label if (targetitem) return targetitem.label
...@@ -1169,6 +1174,7 @@ export default { ...@@ -1169,6 +1174,7 @@ export default {
mutipleOperationText, mutipleOperationText,
deleteRealPersonRecord, deleteRealPersonRecord,
addShopkeeper, addShopkeeper,
childAdultAgeOptions,
childAdultOptions, childAdultOptions,
formatChildAdult formatChildAdult
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!