wgl 4 anni fa
parent
commit
2772244981

+ 7 - 2
src/projects/business/views/Master/Family/Add.vue

@@ -46,6 +46,10 @@
 		</div>
 
 		<loading :visible="isLoading"></loading>
+		
+		<!--图片裁剪-->
+		<cropper :cwidth="cropperWidth" :cheight="cropperHeight" :visible="cropperVisible" :field="cropperField" :cropper="cropper"
+		 @cropperFinish="cropperFinish" @cropperCancel="cropperCancel"></cropper>
 	</div>
 </template>
 
@@ -55,7 +59,6 @@
 	import Loading from '$project/components/Loading.vue'
 	import isReachBottom from '$project/utils/isReachBottom'
 	import TopHeader from '$project/components/TopHeader.vue'
-	import NullList from '$project/components/NullList.vue'
 	import {
 		checkPhone,
 		checkIdCard
@@ -72,7 +75,7 @@
 			Common,
 			Loading,
 			TopHeader,
-			NullList
+			Cropper
 		},
 		data() {
 			return {
@@ -260,6 +263,8 @@
 			if (this.subForm.id) {
 				//获取详情
 				this.getDetail();
+			} else {
+				this.rightLink.show = false;
 			}
 		},
 		destroyed() {

+ 7 - 2
src/projects/business/views/Master/Tenant/Add.vue

@@ -46,6 +46,10 @@
 		</div>
 
 		<loading :visible="isLoading"></loading>
+
+		<!--图片裁剪-->
+		<cropper :cwidth="cropperWidth" :cheight="cropperHeight" :visible="cropperVisible" :field="cropperField" :cropper="cropper"
+		 @cropperFinish="cropperFinish" @cropperCancel="cropperCancel"></cropper>
 	</div>
 </template>
 
@@ -55,7 +59,6 @@
 	import Loading from '$project/components/Loading.vue'
 	import isReachBottom from '$project/utils/isReachBottom'
 	import TopHeader from '$project/components/TopHeader.vue'
-	import NullList from '$project/components/NullList.vue'
 	import {
 		checkPhone,
 		checkIdCard
@@ -72,7 +75,7 @@
 			Common,
 			Loading,
 			TopHeader,
-			NullList
+			Cropper
 		},
 		data() {
 			return {
@@ -260,6 +263,8 @@
 			if (this.subForm.id) {
 				//获取详情
 				this.getDetail();
+			} else {
+				this.rightLink.show = false;
 			}
 		},
 		destroyed() {