提交 a866aebb 编写于 作者: tony001's avatar tony001

Merge branch 'dev'

...@@ -10,6 +10,14 @@ import { Subject, Subscription } from "rxjs"; ...@@ -10,6 +10,14 @@ import { Subject, Subscription } from "rxjs";
}) })
export default class AppFormPart extends Vue { export default class AppFormPart extends Vue {
/**
* 系统名称
*
* @type {string}
* @memberof AppFormPart
*/
@Prop() public systemCodeName!: string;
/** /**
* 应用名称 * 应用名称
* *
...@@ -98,7 +106,7 @@ export default class AppFormPart extends Vue { ...@@ -98,7 +106,7 @@ export default class AppFormPart extends Vue {
* @type {(Subscription | undefined)} * @type {(Subscription | undefined)}
* @memberof AppFormPart * @memberof AppFormPart
*/ */
public remoteUrl:string =`/getFormModel/${this.appCodeName}/${this.deCodeName}/${this.formCodeName}/${this.formDetailCodeName}`; public remoteUrl:string =`/${this.systemCodeName.toLowerCase()}-${this.appCodeName.toLowerCase()}/components/${this.formDetailCodeName.toLowerCase()}`;
/** /**
* 动态表单配置对象 * 动态表单配置对象
......
...@@ -63,8 +63,7 @@ export default class AvueCustomForm extends Vue { ...@@ -63,8 +63,7 @@ export default class AvueCustomForm extends Vue {
* @type {any} * @type {any}
* @memberof AvueCustomForm * @memberof AvueCustomForm
*/ */
@Prop() @Prop() public formData: any;
public formData: any;
/** /**
* 表单状态 * 表单状态
...@@ -193,7 +192,7 @@ export default class AvueCustomForm extends Vue { ...@@ -193,7 +192,7 @@ export default class AvueCustomForm extends Vue {
const get: Promise<any> = this.$http.get(this.url); const get: Promise<any> = this.$http.get(this.url);
get.then((response: any) => { get.then((response: any) => {
if (response && response.data) { if (response && response.data) {
that.formOption = JSON.parse(response.data); that.formOption = response.data;
if (this.isFormData) that.getFormData(); if (this.isFormData) that.getFormData();
} }
}); });
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册