Commit 4a73f7e0 by liuxin

IStreamTable中的code适配string

parent eb7da4db
...@@ -101,6 +101,7 @@ ...@@ -101,6 +101,7 @@
<script> <script>
import CodeTable from "~/config/CodeTable";
export default { export default {
props: { props: {
...@@ -179,6 +180,9 @@ export default { ...@@ -179,6 +180,9 @@ export default {
selectAll: true, selectAll: true,
columnGroup: [], columnGroup: [],
setColumnFlg: false, setColumnFlg: false,
codes:{
...CodeTable
}
}; };
}, },
mounted() { mounted() {
...@@ -325,6 +329,9 @@ export default { ...@@ -325,6 +329,9 @@ export default {
code(item,scope){ code(item,scope){
let value = scope.row[item.prop] let value = scope.row[item.prop]
let code = item.code let code = item.code
if(typeof code == 'string'){
code = this.codes[code]
}
if(!value || !code){ if(!value || !code){
return "" return ""
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment