|
@@ -62,11 +62,16 @@
|
|
|
</div>
|
|
|
</form>
|
|
|
</div>
|
|
|
-
|
|
|
</div>
|
|
|
<div class="fyy-footer">
|
|
|
<div class="bindfyy-btn"><button @click="submit" type="submit" class="mui-btn mui-btn-pink ">保 存</button></div>
|
|
|
</div>
|
|
|
+
|
|
|
+ <loading :visible="isLoading"></loading>
|
|
|
+
|
|
|
+ <!--图片裁剪-->
|
|
|
+ <cropper :cwidth="cropperWidth" :cheight="cropperHeight" :visible="cropperVisible" :field="cropperField" :cropper="cropper"
|
|
|
+ @cropperFinish="cropperFinish" @cropperCancel="cropperCancel"></cropper>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -81,6 +86,7 @@
|
|
|
mapGetters,
|
|
|
mapMutations
|
|
|
} from 'vuex'
|
|
|
+ import Cropper from '$project/components/Cropper.vue'
|
|
|
import * as types from '$project/store/mutation-types'
|
|
|
import * as WxJsApi from '$project/utils/wxJsApi'
|
|
|
export default {
|
|
@@ -89,7 +95,8 @@
|
|
|
Common,
|
|
|
Loading,
|
|
|
TopHeader,
|
|
|
- NavMenu
|
|
|
+ NavMenu,
|
|
|
+ Cropper
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -153,8 +160,14 @@
|
|
|
this.subForm = Object.assign(this.subForm, this.old_relation_form_data);
|
|
|
}
|
|
|
|
|
|
+ if (this.person_data) {
|
|
|
+ this.subForm.personId = this.person_data.id;
|
|
|
+ this.subForm.idCard = this.person_data.idCard;
|
|
|
+ this.subForm.faceImageUrl = this.person_data.faceImageUrl;
|
|
|
+ }
|
|
|
+
|
|
|
this.subForm.openId = this.openId;
|
|
|
- this.subForm.personId = this.person_data.id;
|
|
|
+
|
|
|
this.subForm.relationName = this.relationArr[0];
|
|
|
},
|
|
|
methods: {
|