瀏覽代碼

修改下拉组件和时间组件setValue出现的问题

ymy 2 年之前
父節點
當前提交
c9884451cc

+ 1 - 1
src/benyun/components/byDatePicker/byDatePicker.vue

@@ -54,7 +54,7 @@ export default class ByDatePicker extends VueViews {
     if(data){
       this.value = (this as any).$lodash.cloneDeep(data);
     }else{
-      this.value = {};
+      this.value = '';
     }
   }
 

+ 1 - 1
src/benyun/components/bySelect/bySelect.vue

@@ -79,7 +79,7 @@ export default class BySelect extends VueViews {
     if(data){
       this.value = (this as any).$lodash.cloneDeep(data);
     }else{
-      this.value = {};
+      this.value = '';
     }
   }
 

+ 1 - 1
src/components/warehouseDialog/warehouseDialog.vue

@@ -98,7 +98,7 @@ export default class WarehouseDialog extends Vue {
         title:'名称',
         field:'name'
       },{
-        title:'坐标',
+        title:'坐标',
         field:'coordinate'
       },{
         title:'地址',