Commit 4a73f7e0 by liuxin

IStreamTable中的code适配string

parent eb7da4db
......@@ -101,6 +101,7 @@
<script>
import CodeTable from "~/config/CodeTable";
export default {
props: {
......@@ -179,6 +180,9 @@ export default {
selectAll: true,
columnGroup: [],
setColumnFlg: false,
codes:{
...CodeTable
}
};
},
mounted() {
......@@ -325,6 +329,9 @@ export default {
code(item,scope){
let value = scope.row[item.prop]
let code = item.code
if(typeof code == 'string'){
code = this.codes[code]
}
if(!value || !code){
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