diff --git a/src/api/modular/main/DjyUserConfig.js b/src/api/modular/main/DjyUserConfig.js new file mode 100644 index 0000000..09488af --- /dev/null +++ b/src/api/modular/main/DjyUserConfig.js @@ -0,0 +1,40 @@ +import { axios } from '@/utils/request' + +/** + * 自定义表单 - 获取已保存数据 + * @params type + */ +export function DjyUserConfigGet(parameter) { + return axios({ + url: '/DjyUserConfig/get', + method: 'get', + params: parameter + }) +} + +/** + * 自定义表单 - 分页 + * @params type + * @params PageNo + * @params PageSize + */ +export function DjyUserConfigPage(parameter) { + return axios({ + url: '/DjyUserConfig/page', + method: 'get', + params: parameter + }) +} + +/** + * 自定义表单 - 添加 + * @params type + * @params configJson + */ +export function DjyUserConfigAdd(parameter) { + return axios({ + url: '/DjyUserConfig/add', + method: 'post', + data: parameter + }) +} \ No newline at end of file diff --git a/src/components/index.js b/src/components/index.js index da46052..c2df7b9 100644 --- a/src/components/index.js +++ b/src/components/index.js @@ -33,7 +33,7 @@ import Dialog from '@/components/Dialog' // xn components import XCard from '@/components/xnComponents/XCard' -import setFromModel from '@/components/setFromModel' +import setFormModel from '@/components/setFormModel' // import vfd from '@/components/flow/FlowDesigner' export { @@ -69,6 +69,6 @@ export { AntdEditor, Dialog, XCard, - setFromModel + setFormModel // vfd } diff --git a/src/components/setFromModel/index.vue b/src/components/setFormModel/index.vue similarity index 96% rename from src/components/setFromModel/index.vue rename to src/components/setFormModel/index.vue index 4173659..67c9db4 100644 --- a/src/components/setFromModel/index.vue +++ b/src/components/setFormModel/index.vue @@ -56,13 +56,13 @@ import draggable from 'vuedraggable' export default { props: { - fromData: { + formData: { type: Array, default: () => { return [] } }, - fromAllData: { + formAllData: { type: Array, default: () => { return [] @@ -83,8 +83,8 @@ export default { }, watch: {}, mounted() { - this.fromLabel = JSON.parse(JSON.stringify(this.fromData)) - this.fromAllLabel = JSON.parse(JSON.stringify(this.fromAllData)) + this.fromLabel = JSON.parse(JSON.stringify(this.formData)) + this.fromAllLabel = JSON.parse(JSON.stringify(this.formAllData)) }, methods: { open() { diff --git a/src/views/main/BookingLedger/list/index.vue b/src/views/main/BookingLedger/list/index.vue index 0f4ac90..32f87b9 100644 --- a/src/views/main/BookingLedger/list/index.vue +++ b/src/views/main/BookingLedger/list/index.vue @@ -13,99 +13,16 @@
- + -