|
@@ -8,7 +8,58 @@
|
|
|
v-if="all||item.Visible"
|
|
|
:class="{FloorTypeSelect:item.InputMode == 'D1'||item.Unit}"
|
|
|
>
|
|
|
- <span v-if="item.InputMode == 'B1'">
|
|
|
+ <!--BIM模型中坐标-->
|
|
|
+ <el-input
|
|
|
+ v-model="form[item.Path]"
|
|
|
+ v-if="item.InfoPointCode == 'BIMLocation'"
|
|
|
+ disabled
|
|
|
+ />
|
|
|
+ <!--二维码相关-->
|
|
|
+ <span v-else-if="item.InfoPointCode == 'DefaultQRCode' ">
|
|
|
+ <el-input
|
|
|
+ v-model="form[item.Path]"
|
|
|
+ v-if="!form[item.Path]"
|
|
|
+ disabled
|
|
|
+ />
|
|
|
+ <el-popover
|
|
|
+ v-else
|
|
|
+ placement="right"
|
|
|
+ width="210"
|
|
|
+ trigger="click">
|
|
|
+ <div style="overflow:hidden;">
|
|
|
+ <img
|
|
|
+ style="width:200px;height:200px;"
|
|
|
+ :src="'/image-service/common/file_get/'+ form[item.Path] +'?systemId=dataPlatform'"
|
|
|
+ alt="二维码"
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ <el-button slot="reference" type="text">点击查看</el-button>
|
|
|
+ </el-popover>
|
|
|
+ </span>
|
|
|
+ <span v-else-if="item.InfoPointCode == 'QRCodePic' ">
|
|
|
+ <el-input
|
|
|
+ v-model="form[item.Path]"
|
|
|
+ v-if="!form[item.Path]"
|
|
|
+ disabled
|
|
|
+ />
|
|
|
+ <el-popover
|
|
|
+ v-else
|
|
|
+ placement="right"
|
|
|
+ width="210"
|
|
|
+ trigger="click">
|
|
|
+ <div style="overflow:hidden;">
|
|
|
+ <img
|
|
|
+ style="width:200px;height:200px;"
|
|
|
+ :src="'/image-service/common/file_get/'+ form[item.Path] +'?systemId=dataPlatform'"
|
|
|
+ alt="二维码"
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ <el-button slot="reference" type="text">点击查看</el-button>
|
|
|
+ </el-popover>
|
|
|
+ </span>
|
|
|
+
|
|
|
+ <!--/二维码相关-->
|
|
|
+ <span v-else-if="item.InputMode == 'B1'">
|
|
|
<el-input
|
|
|
v-model="form[item.Path]"
|
|
|
:placeholder="(item.InputMode === 'B1' && item.Path==='FloorLocalID') ? '填写示例:F1、B1?':'' "/>
|
|
@@ -28,7 +79,7 @@
|
|
|
<template slot="append" v-if="item.Unit">{{item.Unit}}</template>
|
|
|
</el-input>
|
|
|
<el-input v-model="form[item.Path]" v-else disabled title="暂不支持"></el-input>
|
|
|
-
|
|
|
+ <!-- <div>{{item.InfoPointCode}}</div>-->
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
</el-form>
|
|
@@ -37,7 +88,6 @@
|
|
|
<script>
|
|
|
import {getDataDictionary} from "@/api/scan/request";
|
|
|
|
|
|
- // v-for="item in InforsList" :key="item.InfoPointCode"
|
|
|
export default {
|
|
|
props: {
|
|
|
type: {
|
|
@@ -79,6 +129,7 @@
|
|
|
}
|
|
|
,
|
|
|
methods: {
|
|
|
+
|
|
|
getInforsPoint() {
|
|
|
let params = {
|
|
|
data: {
|
|
@@ -89,15 +140,24 @@
|
|
|
type: this.type
|
|
|
};
|
|
|
getDataDictionary(params, res => {
|
|
|
- this.InforsList = res.Content.map(item => {
|
|
|
+ let arr = res.Content.map(item => {
|
|
|
if (item.InputMode === 'D1') {
|
|
|
item.options = JSON.parse(item.DataSource)
|
|
|
}
|
|
|
- return item
|
|
|
+ switch (item.InfoPointCode) { //过滤掉待删除的
|
|
|
+ case 'FloorIdentity':
|
|
|
+ case 'RelatedSchedule':
|
|
|
+ case 'OutPeopleFlow':
|
|
|
+ case 'InPeopleFlow':
|
|
|
+ case 'ExsitPeopleNum':
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ return item
|
|
|
+ }
|
|
|
})
|
|
|
+ this.InforsList = arr.filter(t => t)
|
|
|
})
|
|
|
- }
|
|
|
- ,
|
|
|
+ },
|
|
|
submitForm(call) {
|
|
|
this.$refs.ruleForm.validate((valid) => {
|
|
|
if (valid) {
|
|
@@ -106,8 +166,8 @@
|
|
|
return false;
|
|
|
}
|
|
|
});
|
|
|
- }
|
|
|
- ,
|
|
|
+ },
|
|
|
+
|
|
|
}
|
|
|
};
|
|
|
</script>
|