|
@@ -3,24 +3,22 @@ import {onMounted, ref} from 'vue'
|
|
|
import {collapseData, generateRandomString} from "../../../components/query-components/page-help.ts";
|
|
import {collapseData, generateRandomString} from "../../../components/query-components/page-help.ts";
|
|
|
import XcQuery from "../../../components/query-components/XcQuery.vue";
|
|
import XcQuery from "../../../components/query-components/XcQuery.vue";
|
|
|
import {componentType, headerType} from "../../../components/query-components/page-help-type";
|
|
import {componentType, headerType} from "../../../components/query-components/page-help-type";
|
|
|
-import PageEditotInfo from "./PageEditotInfo.vue";
|
|
|
|
|
|
|
+import PageEditotInfo from "./PageEditorInfo.vue";
|
|
|
import {clone} from "xe-utils";
|
|
import {clone} from "xe-utils";
|
|
|
-import PageForm from "@/views/utilities/page-editor-help/PageForm.vue";
|
|
|
|
|
-
|
|
|
|
|
|
|
+import PageForm from "../../../views/utilities/page-editor-help/PageForm.vue";
|
|
|
|
|
+import XcTable from "../../../components/query-components/XcPageTable.vue";
|
|
|
|
|
|
|
|
const activeNames = ref(['1', '2', '3'])
|
|
const activeNames = ref(['1', '2', '3'])
|
|
|
const infoRef = ref()
|
|
const infoRef = ref()
|
|
|
const tabs = ref('form')
|
|
const tabs = ref('form')
|
|
|
|
|
|
|
|
const addEl = (val: headerType) => {
|
|
const addEl = (val: headerType) => {
|
|
|
-
|
|
|
|
|
let key = generateRandomString(5)
|
|
let key = generateRandomString(5)
|
|
|
let data = val
|
|
let data = val
|
|
|
if (!val.bind) {
|
|
if (!val.bind) {
|
|
|
data['bind'] = {}
|
|
data['bind'] = {}
|
|
|
}
|
|
}
|
|
|
data.key = key
|
|
data.key = key
|
|
|
-
|
|
|
|
|
pageJson.value.header.push(clone(data, true))
|
|
pageJson.value.header.push(clone(data, true))
|
|
|
pageJson.value.queryParam[key] = val.defaultValue
|
|
pageJson.value.queryParam[key] = val.defaultValue
|
|
|
}
|
|
}
|
|
@@ -32,7 +30,12 @@ const pageJson = ref<componentType>({
|
|
|
formConfig: {
|
|
formConfig: {
|
|
|
inline: true
|
|
inline: true
|
|
|
},
|
|
},
|
|
|
- submitEvent: null
|
|
|
|
|
|
|
+ submitEvent: `function func(queryData,config,axios){
|
|
|
|
|
+
|
|
|
|
|
+}`,
|
|
|
|
|
+ tableConfig: {
|
|
|
|
|
+ border: true,
|
|
|
|
|
+ }
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
const theCurrentComponent = ref(-1)
|
|
const theCurrentComponent = ref(-1)
|
|
@@ -79,6 +82,7 @@ onMounted(() => {
|
|
|
@delClick="infoRef.setShow(false)"
|
|
@delClick="infoRef.setShow(false)"
|
|
|
v-model:current-index="theCurrentComponent"
|
|
v-model:current-index="theCurrentComponent"
|
|
|
@item-click="itemClick"/>
|
|
@item-click="itemClick"/>
|
|
|
|
|
+ <xc-table :test-json="pageJson"/>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="right_box">
|
|
<div class="right_box">
|
|
|
<el-tabs v-model="tabs">
|
|
<el-tabs v-model="tabs">
|
|
@@ -90,6 +94,9 @@ onMounted(() => {
|
|
|
<el-tab-pane label="表单配置" name="form">
|
|
<el-tab-pane label="表单配置" name="form">
|
|
|
<page-form :page-json="pageJson"/>
|
|
<page-form :page-json="pageJson"/>
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
|
|
+ <el-tab-pane label="表单配置" name="table">
|
|
|
|
|
+
|
|
|
|
|
+ </el-tab-pane>
|
|
|
</el-tabs>
|
|
</el-tabs>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|