AlanWong 2 年 前
コミット
517ec9c0fc

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

@@ -138,7 +138,7 @@ export default class ByForm extends VueViews {
     if(this.value){
     if(this.value){
       for(const key in this.value){
       for(const key in this.value){
         const code = key +'Comp';
         const code = key +'Comp';
-        if((this as any).$refs[code] && (this as any).$refs[code][0] && (this as any).$refs[code][0].setValue()){
+        if((this as any).$refs[code] && (this as any).$refs[code][0] && (this as any).$refs[code][0].setValue){
         (this as any).$refs[code][0].setValue(this.value[key])
         (this as any).$refs[code][0].setValue(this.value[key])
       }
       }
       }
       }

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

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

+ 1 - 1
src/views/audit/productClassification/index.vue

@@ -184,7 +184,7 @@
 		// 单元格点击
 		// 单元格点击
 		doClick(e : any) {
 		doClick(e : any) {
 			console.log(e);
 			console.log(e);
-			// (this as any).$refs.addFormId.setValue(e)
+			(this as any).$refs.addFormId.setValue(e)
 		}
 		}
 		handleNodeClick(e : any) {
 		handleNodeClick(e : any) {
 			console.log(e.id);
 			console.log(e.id);