|
@@ -0,0 +1,80 @@
|
|
|
+<template>
|
|
|
+ <el-dialog :title="title" :visible.sync="dialogVisible" width="40%" @close="handleClose" id="messageDialog">
|
|
|
+ <div>
|
|
|
+ <formItems :type="'Floor'" ref="formItems"></formItems>
|
|
|
+ </div>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button size="small">取消</el-button>
|
|
|
+ <el-button size="small" type="primary" @click="confirm">确认</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
+</template>
|
|
|
+<script>
|
|
|
+import { getDataDictionary } from "@/api/scan/request";
|
|
|
+import formItems from "@/components/ready/buildfloor/formItems";
|
|
|
+import tools from "@/utils/buildfloor/tools";
|
|
|
+export default {
|
|
|
+ props: {
|
|
|
+ title: {
|
|
|
+ default: '提示'
|
|
|
+ },
|
|
|
+ type: {
|
|
|
+ default: 'Floor'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ components:{
|
|
|
+ formItems
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ dialogVisible: false, //弹窗显示与隐藏
|
|
|
+ FloorTypeList: [
|
|
|
+ { "Code": "1", "Name": "普通楼层" },
|
|
|
+ { "Code": "2", "Name": "室外" },
|
|
|
+ { "Code": "3", "Name": "夹层" },
|
|
|
+ { "Code": "4", "Name": "屋顶平台" },
|
|
|
+ { "Code": "99", "Name": "其他" }
|
|
|
+ ],
|
|
|
+ InforsList:[]
|
|
|
+ };
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ showDialog(data) {
|
|
|
+ this.tableData = data || '';
|
|
|
+ this.dialogVisible = true;
|
|
|
+ let params = {
|
|
|
+ data: {
|
|
|
+ PageNumber: 1,
|
|
|
+ PageSize: 50
|
|
|
+ },
|
|
|
+ type: this.type
|
|
|
+ };
|
|
|
+ getDataDictionary(params, res => {
|
|
|
+ this.InforsList = res.Content
|
|
|
+ })
|
|
|
+ },
|
|
|
+ handleClose(done) { },
|
|
|
+ //清除关系
|
|
|
+ confirm() {
|
|
|
+ let form = this.$refs.formItems.form
|
|
|
+ let newform = tools.formatData(form)
|
|
|
+ console.log('-------------')
|
|
|
+ console.log(newform)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ mounted() { },
|
|
|
+ created() { }
|
|
|
+};
|
|
|
+</script>
|
|
|
+<style lang="scss" scoped>
|
|
|
+#messageDialog {
|
|
|
+ .el-form-item {
|
|
|
+ /deep/ label.el-form-item__label {
|
|
|
+ font-size: 12px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /deep/ .FloorTypeSelect .el-form-item__content {
|
|
|
+ width: 178px;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|