|
@@ -89,11 +89,12 @@
|
|
},
|
|
},
|
|
mounted(){
|
|
mounted(){
|
|
const {options} = this.$props;
|
|
const {options} = this.$props;
|
|
- const arr = options.map((it)=>{
|
|
|
|
- return {name:it.name,defaultSelect:it.defaultSelect=='1'?true:false,isBan:it.code==1?true:'',isNone:it.code==2?true:''};
|
|
|
|
- });
|
|
|
|
- this.rows = arr;
|
|
|
|
- console.log(this.$props.options)
|
|
|
|
|
|
+ if(options){
|
|
|
|
+ const arr = options.map((it)=>{
|
|
|
|
+ return {name:it.name,defaultSelect:it.defaultSelect=='1'?true:false,isBan:it.code==1?true:'',isNone:it.code==2?true:''};
|
|
|
|
+ });
|
|
|
|
+ this.rows = arr;
|
|
|
|
+ }
|
|
},
|
|
},
|
|
computed:{
|
|
computed:{
|
|
showTag:function(){
|
|
showTag:function(){
|