|
@@ -21,6 +21,19 @@
|
|
>
|
|
>
|
|
<InputNumber v-model="config.labelWidth" />
|
|
<InputNumber v-model="config.labelWidth" />
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
|
+ <!-- 拖拽表格 -->
|
|
|
|
+ <a-form-item
|
|
|
|
+ label="关联的自定义表格"
|
|
|
|
+ >
|
|
|
|
+ <el-select v-model="config.tdId" placeholder="请选择">
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in tableList"
|
|
|
|
+ :key="item.tId"
|
|
|
|
+ :label="item.dtName"
|
|
|
|
+ :value="item.tId">
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </a-form-item>
|
|
<a-form-item label="labelCol" v-show="config.labelLayout !== 'flex'">
|
|
<a-form-item label="labelCol" v-show="config.labelLayout !== 'flex'">
|
|
<div class="change-col-box">
|
|
<div class="change-col-box">
|
|
<Slider
|
|
<Slider
|
|
@@ -108,21 +121,29 @@
|
|
*/
|
|
*/
|
|
import kCheckbox from "../../KCheckbox/index.vue";
|
|
import kCheckbox from "../../KCheckbox/index.vue";
|
|
import { pluginManager } from "../../../utils/index";
|
|
import { pluginManager } from "../../../utils/index";
|
|
|
|
+import {dragTableList} from '@/api/dragform/tableList.js'
|
|
const InputNumber = pluginManager.getComponent("number").component;
|
|
const InputNumber = pluginManager.getComponent("number").component;
|
|
const Radio = pluginManager.getComponent("radio").component;
|
|
const Radio = pluginManager.getComponent("radio").component;
|
|
const RadioButton = pluginManager.getComponent("radioButton").component;
|
|
const RadioButton = pluginManager.getComponent("radioButton").component;
|
|
const Textarea = pluginManager.getComponent("textarea").component;
|
|
const Textarea = pluginManager.getComponent("textarea").component;
|
|
const Slider = pluginManager.getComponent("aSlider").component;
|
|
const Slider = pluginManager.getComponent("aSlider").component;
|
|
|
|
+const Select=pluginManager.getComponent("select").component
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "formProperties",
|
|
name: "formProperties",
|
|
|
|
+ data() {
|
|
|
|
+ return {
|
|
|
|
+ tableList:[],
|
|
|
|
+ }
|
|
|
|
+ },
|
|
components: {
|
|
components: {
|
|
kCheckbox,
|
|
kCheckbox,
|
|
InputNumber,
|
|
InputNumber,
|
|
Radio,
|
|
Radio,
|
|
RadioButton,
|
|
RadioButton,
|
|
Textarea,
|
|
Textarea,
|
|
- Slider
|
|
|
|
|
|
+ Slider,
|
|
|
|
+ Select
|
|
},
|
|
},
|
|
props: {
|
|
props: {
|
|
config: {
|
|
config: {
|
|
@@ -141,6 +162,15 @@ export default {
|
|
this.config.wrapperCol.xs = this.config.wrapperCol.sm = this.config.wrapperCol.md = this.config.wrapperCol.lg = this.config.wrapperCol.xl = this.config.wrapperCol.xxl =
|
|
this.config.wrapperCol.xs = this.config.wrapperCol.sm = this.config.wrapperCol.md = this.config.wrapperCol.lg = this.config.wrapperCol.xl = this.config.wrapperCol.xxl =
|
|
24 - e;
|
|
24 - e;
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ async created () {
|
|
|
|
+ let res = await dragTableList()
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
+ this.tableList=res.data
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error("请选择数据表");
|
|
|
|
+ this.$message.error(res.msg)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|