Commit 1830e006 by 胡悦

Merge branch 'SAAS+V5.5.0' of http://192.168.3.233:8090/glsx/gl_tape into SAAS+V5.5.0

2 parents 28a9d665 856f65cb
......@@ -49,6 +49,7 @@ export default {
computed: {
selectValue () {
let { selectList, selectIndex, labelKey } = this
if (selectIndex == -1) selectIndex = 0
return selectList[selectIndex][labelKey]
}
},
......@@ -57,8 +58,10 @@ export default {
immediate: true,
deep: true,
handler (n) {
let { selectList , valueKey} = this
this.selectIndex = selectList.findIndex(e => e[valueKey] == n)
let { selectList, valueKey } = this,
selectIndex = selectList.findIndex(e => e[valueKey] == n)
if (selectIndex == -1) selectIndex = 0
this.selectIndex = selectIndex
}
}
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!