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,13 +601,18 @@ export default { ...@@ -601,13 +601,18 @@ 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 childAdultAgeOptions = ref([
{ value: 0, label: '婴儿' },
{ value: 1, label: '儿童' },
{ value: 2, label: '少年' },
{ value: 3, label: '青年' },
{ value: 4, label: '中午' },
{ value: 5, label: '老年' },
{ value: -1, label: '未知' },
])
const childAdultOptions = ref([ const childAdultOptions = ref([
{ value: 0, label: '婴儿' }, { value: 0, label: '儿童' },
{ value: 1, label: '儿童' }, { value: 1, label: '成人' },
{ value: 2, label: '少年' },
{ value: 3, label: '青年' },
{ value: 4, label: '中午' },
{ value: 5, label: '老年' },
{ value: -1, label: '未知' }, { value: -1, label: '未知' },
]) ])
const formatChildAdult = function(val) { const formatChildAdult = function(val) {
...@@ -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!