|
@@ -134,7 +134,7 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
-import {
|
|
|
|
|
|
+ import {
|
|
BeatchQueryParam,
|
|
BeatchQueryParam,
|
|
deleteEquip,
|
|
deleteEquip,
|
|
getDataDictionary,
|
|
getDataDictionary,
|
|
@@ -143,62 +143,62 @@ import {
|
|
queryEquip,
|
|
queryEquip,
|
|
queryUpdate,
|
|
queryUpdate,
|
|
updateEquip,
|
|
updateEquip,
|
|
-} from '@/api/scan/request'
|
|
|
|
|
|
+ } from '@/api/scan/request'
|
|
|
|
|
|
-import tools from '@/utils/scan/tools'
|
|
|
|
-import handsonUtils from '@/utils/hasontableUtils'
|
|
|
|
-import showTools from '@/utils/handsontable/notShow'
|
|
|
|
-import text from '@/utils/handsontable/mainText'
|
|
|
|
-import myCascader from '@/components/ledger/lib/cascader'
|
|
|
|
-import buildFloor from '@/utils/handsontable/buildFloorData'
|
|
|
|
|
|
+ import tools from '@/utils/scan/tools'
|
|
|
|
+ import handsonUtils from '@/utils/hasontableUtils'
|
|
|
|
+ import showTools from '@/utils/handsontable/notShow'
|
|
|
|
+ import text from '@/utils/handsontable/mainText'
|
|
|
|
+ import myCascader from '@/components/ledger/lib/cascader'
|
|
|
|
+ import buildFloor from '@/utils/handsontable/buildFloorData'
|
|
|
|
|
|
-import qrcode from '@/components/ledger/lib/qrcode'
|
|
|
|
-import bimDialog from '@/components/ledger/lib/bimDialog'
|
|
|
|
-import firm from '@/components/dialogs/list/firm'
|
|
|
|
-import supplyDialog from '@/components/dialogs/list/supplyDialog'
|
|
|
|
-import supplierDialog from '@/components/dialogs/list/supplierDialog'
|
|
|
|
-import maintainerDialog from '@/components/dialogs/list/maintainerDialog'
|
|
|
|
-import insurerDialog from '@/components/dialogs/list/insurerDialog'
|
|
|
|
-import guaranteeDialog from '@/components/dialogs/list/guaranteeDialog'
|
|
|
|
-import uploadFilesDialog from '@/components/dialogs/list/filesDialog'
|
|
|
|
-import uploadImgDialog from '@/components/dialogs/list/uploadImgDialog'
|
|
|
|
-import picDialog from '@/components/dialogs/list/picDialog'
|
|
|
|
-import batchDialog from '../../dialogs/list/batchDialog'
|
|
|
|
-import systemType from '@/components/dialogs/list/systemType'
|
|
|
|
-import myPagination from '@/components/ledger/lib/myPagination'
|
|
|
|
-import detailsDialog from '@/components/ledger/lib/detailsDia'
|
|
|
|
-import changeRea from '@/components/dialogs/changeRea'
|
|
|
|
-import { mapGetters } from 'vuex'
|
|
|
|
-//图片查看
|
|
|
|
-import lookPic from '@/components/ledger/lib/lookImages'
|
|
|
|
-import Handsontable from 'handsontable-pro'
|
|
|
|
-import 'handsontable-pro/dist/handsontable.full.css'
|
|
|
|
-import lStorage from '@/utils/localStorage'
|
|
|
|
-//下拉插件
|
|
|
|
-// import "@/assets/js/chosen.jquery.min";
|
|
|
|
-// import "@/assets/js/handsontable-chosen-editor";
|
|
|
|
|
|
+ import qrcode from '@/components/ledger/lib/qrcode'
|
|
|
|
+ import bimDialog from '@/components/ledger/lib/bimDialog'
|
|
|
|
+ import firm from '@/components/dialogs/list/firm'
|
|
|
|
+ import supplyDialog from '@/components/dialogs/list/supplyDialog'
|
|
|
|
+ import supplierDialog from '@/components/dialogs/list/supplierDialog'
|
|
|
|
+ import maintainerDialog from '@/components/dialogs/list/maintainerDialog'
|
|
|
|
+ import insurerDialog from '@/components/dialogs/list/insurerDialog'
|
|
|
|
+ import guaranteeDialog from '@/components/dialogs/list/guaranteeDialog'
|
|
|
|
+ import uploadFilesDialog from '@/components/dialogs/list/filesDialog'
|
|
|
|
+ import uploadImgDialog from '@/components/dialogs/list/uploadImgDialog'
|
|
|
|
+ import picDialog from '@/components/dialogs/list/picDialog'
|
|
|
|
+ import batchDialog from '../../dialogs/list/batchDialog'
|
|
|
|
+ import systemType from '@/components/dialogs/list/systemType'
|
|
|
|
+ import myPagination from '@/components/ledger/lib/myPagination'
|
|
|
|
+ import detailsDialog from '@/components/ledger/lib/detailsDia'
|
|
|
|
+ import changeRea from '@/components/dialogs/changeRea'
|
|
|
|
+ import {mapGetters} from 'vuex'
|
|
|
|
+ //图片查看
|
|
|
|
+ import lookPic from '@/components/ledger/lib/lookImages'
|
|
|
|
+ import Handsontable from 'handsontable-pro'
|
|
|
|
+ import 'handsontable-pro/dist/handsontable.full.css'
|
|
|
|
+ import lStorage from '@/utils/localStorage'
|
|
|
|
+ //下拉插件
|
|
|
|
+ // import "@/assets/js/chosen.jquery.min";
|
|
|
|
+ // import "@/assets/js/handsontable-chosen-editor";
|
|
|
|
|
|
-export default {
|
|
|
|
|
|
+ export default {
|
|
props: ['myParam'],
|
|
props: ['myParam'],
|
|
components: {
|
|
components: {
|
|
- qrcode, //二维码页面
|
|
|
|
- firm, //
|
|
|
|
- supplyDialog,
|
|
|
|
- supplierDialog,
|
|
|
|
- guaranteeDialog,
|
|
|
|
- uploadFilesDialog,
|
|
|
|
- maintainerDialog,
|
|
|
|
- insurerDialog,
|
|
|
|
- uploadImgDialog,
|
|
|
|
- picDialog,
|
|
|
|
- myPagination,
|
|
|
|
- systemType,
|
|
|
|
- detailsDialog,
|
|
|
|
- changeRea,
|
|
|
|
- lookPic,
|
|
|
|
- myCascader,
|
|
|
|
- batchDialog,
|
|
|
|
- bimDialog,
|
|
|
|
|
|
+ qrcode, //二维码页面
|
|
|
|
+ firm, //
|
|
|
|
+ supplyDialog,
|
|
|
|
+ supplierDialog,
|
|
|
|
+ guaranteeDialog,
|
|
|
|
+ uploadFilesDialog,
|
|
|
|
+ maintainerDialog,
|
|
|
|
+ insurerDialog,
|
|
|
|
+ uploadImgDialog,
|
|
|
|
+ picDialog,
|
|
|
|
+ myPagination,
|
|
|
|
+ systemType,
|
|
|
|
+ detailsDialog,
|
|
|
|
+ changeRea,
|
|
|
|
+ lookPic,
|
|
|
|
+ myCascader,
|
|
|
|
+ batchDialog,
|
|
|
|
+ bimDialog,
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
buildFloor.getData(this.buildFloorData)
|
|
buildFloor.getData(this.buildFloorData)
|
|
@@ -387,69 +387,68 @@ export default {
|
|
type: this.mess.deviceId,
|
|
type: this.mess.deviceId,
|
|
}
|
|
}
|
|
getDataDictionary(params, (res) => {
|
|
getDataDictionary(params, (res) => {
|
|
- this.tableHeader = res.Content
|
|
|
|
- console.log(this.tableHeader)
|
|
|
|
- this.tableHeader.forEach((item) => {
|
|
|
|
- if (item.Path) {
|
|
|
|
- this.inputMap[item.Path] = item
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- this.getTableData()
|
|
|
|
- this.getAllData()
|
|
|
|
- // 信息维护
|
|
|
|
- this.newEnclosure = res.Content.filter((i) => i.InputMode == 'F2')
|
|
|
|
|
|
+ this.tableHeader = res.Content
|
|
|
|
+ console.log(this.tableHeader)
|
|
|
|
+ this.tableHeader.forEach((item) => {
|
|
|
|
+ if (item.Path) {
|
|
|
|
+ this.inputMap[item.Path] = item
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ this.getTableData()
|
|
|
|
+ this.getAllData()
|
|
|
|
+ // 信息维护
|
|
|
|
+ this.newEnclosure = res.Content.filter((i) => i.InputMode == 'F2')
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- //关闭弹窗
|
|
|
|
- closeBIM() {
|
|
|
|
- // let vm = this
|
|
|
|
- this.myDialog.bimcode = false
|
|
|
|
- // setTimeout(() => {
|
|
|
|
- // vm.getTableData()
|
|
|
|
- // vm.getAllData()
|
|
|
|
- // }, 10)
|
|
|
|
- },
|
|
|
|
- //获取主体数据
|
|
|
|
- getTableData() {
|
|
|
|
- this.loading = true
|
|
|
|
- //type存在发送请求
|
|
|
|
- if (!!this.mess.deviceId) {
|
|
|
|
- let param = {
|
|
|
|
- PageSize: this.page.size,
|
|
|
|
- Orders: 'createTime desc,EquipID desc,EquipLocalID desc,EquipLocalName desc',
|
|
|
|
- PageNumber: this.page.currentPage,
|
|
|
|
- Filters: `category='${this.mess.deviceId}'`,
|
|
|
|
- }
|
|
|
|
|
|
+ //关闭弹窗
|
|
|
|
+ closeBIM(val) {
|
|
|
|
+ this.myDialog.bimcode = false
|
|
|
|
+ if (val) {
|
|
|
|
+ this.getTableData()
|
|
|
|
+ this.getAllData()
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ //获取主体数据
|
|
|
|
+ getTableData() {
|
|
|
|
+ this.loading = true
|
|
|
|
+ //type存在发送请求
|
|
|
|
+ if (!!this.mess.deviceId) {
|
|
|
|
+ let param = {
|
|
|
|
+ PageSize: this.page.size,
|
|
|
|
+ Orders: 'createTime desc,EquipID desc,EquipLocalID desc,EquipLocalName desc',
|
|
|
|
+ PageNumber: this.page.currentPage,
|
|
|
|
+ Filters: `category='${this.mess.deviceId}'`,
|
|
|
|
+ }
|
|
|
|
|
|
- if (this.mess.buildId == 'noKnow') {
|
|
|
|
- param.Filters += `;buildingId isNull`
|
|
|
|
- } else if (this.mess.buildId && this.mess.buildId != 'all') {
|
|
|
|
- param.Filters += `;buildingId='${this.mess.buildId}'`
|
|
|
|
- }
|
|
|
|
|
|
+ if (this.mess.buildId == 'noKnow') {
|
|
|
|
+ param.Filters += `;buildingId isNull`
|
|
|
|
+ } else if (this.mess.buildId && this.mess.buildId != 'all') {
|
|
|
|
+ param.Filters += `;buildingId='${this.mess.buildId}'`
|
|
|
|
+ }
|
|
|
|
|
|
- if (this.mess.floorId == 'noKnow') {
|
|
|
|
- param.Filters += `;floorId isNull`
|
|
|
|
- } else if (this.mess.floorId && this.mess.floorId != 'all') {
|
|
|
|
- param.Filters += `;floorId='${this.mess.floorId}'`
|
|
|
|
- }
|
|
|
|
- getEquipTableCon(param, (res) => {
|
|
|
|
- this.loading = false
|
|
|
|
- this.showParts = res.Message == '1' ? true : false // 判断是否显示包含的部件列
|
|
|
|
- this.tableData = res.Content.map((item) => {
|
|
|
|
- if (item.hasOwnProperty('BuildingId') && item.hasOwnProperty('FloorId')) {
|
|
|
|
- item.flowBuild = item.BuildingId + '-' + item.FloorId
|
|
|
|
- } else if (item.hasOwnProperty('BuildingId') && !item.hasOwnProperty('FloorId')) {
|
|
|
|
- item.flowBuild = item.BuildingId
|
|
|
|
- }
|
|
|
|
- return item
|
|
|
|
- })
|
|
|
|
- this.copyMain = tools.deepCopy(this.tableData)
|
|
|
|
- this.page.total = res.Total
|
|
|
|
- if (this.tableData && this.tableData.length) {
|
|
|
|
- if (this.onlyRead) {
|
|
|
|
- this.getBatch(this.tableData)
|
|
|
|
- }
|
|
|
|
|
|
+ if (this.mess.floorId == 'noKnow') {
|
|
|
|
+ param.Filters += `;floorId isNull`
|
|
|
|
+ } else if (this.mess.floorId && this.mess.floorId != 'all') {
|
|
|
|
+ param.Filters += `;floorId='${this.mess.floorId}'`
|
|
|
|
+ }
|
|
|
|
+ getEquipTableCon(param, (res) => {
|
|
|
|
+ this.loading = false
|
|
|
|
+ this.showParts = res.Message == '1' ? true : false // 判断是否显示包含的部件列
|
|
|
|
+ this.tableData = res.Content.map((item) => {
|
|
|
|
+ if (item.hasOwnProperty('BuildingId') && item.hasOwnProperty('FloorId')) {
|
|
|
|
+ item.flowBuild = item.BuildingId + '-' + item.FloorId
|
|
|
|
+ } else if (item.hasOwnProperty('BuildingId') && !item.hasOwnProperty('FloorId')) {
|
|
|
|
+ item.flowBuild = item.BuildingId
|
|
|
|
+ }
|
|
|
|
+ return item
|
|
|
|
+ })
|
|
|
|
+ this.copyMain = tools.deepCopy(this.tableData)
|
|
|
|
+ this.page.total = res.Total
|
|
|
|
+ if (this.tableData && this.tableData.length) {
|
|
|
|
+ if (this.onlyRead) {
|
|
|
|
+ this.getBatch(this.tableData)
|
|
|
|
+ }
|
|
this.initTable()
|
|
this.initTable()
|
|
}
|
|
}
|
|
})
|
|
})
|