|
|
@@ -18,31 +18,28 @@
|
|
|
<a-row :gutter="48">
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="关键字">
|
|
|
- <a-input v-model="queryParam.keyword" placeholder="名称/设备新号"/>
|
|
|
+ <a-input v-model="queryParam.keyword" placeholder="名称/设备新号" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="设备旧号">
|
|
|
- <a-input v-model="queryParam.zbh" placeholder="设备旧号"/>
|
|
|
+ <a-input v-model="queryParam.zbh" placeholder="设备旧号" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="第一维修人">
|
|
|
- <a-input v-model="queryParam.repairUserName" placeholder="第一维修人"/>
|
|
|
+ <a-input v-model="queryParam.repairUserName" placeholder="第一维修人" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="第二维修人">
|
|
|
- <a-input v-model="queryParam.repairUserSecondName" placeholder="第二维修人"/>
|
|
|
+ <a-input v-model="queryParam.repairUserSecondName" placeholder="第二维修人" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="设备等级">
|
|
|
<a-select v-model="queryParam.level" placeholder="请选择">
|
|
|
- <a-select-option
|
|
|
- v-for="(label,value) in levelMap"
|
|
|
- :key="value"
|
|
|
- :label="label"
|
|
|
+ <a-select-option v-for="(label, value) in levelMap" :key="value" :label="label"
|
|
|
:value="parseInt(value)">{{ label }}
|
|
|
</a-select-option>
|
|
|
</a-select>
|
|
|
@@ -51,10 +48,7 @@
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="自定义类型">
|
|
|
<a-select v-model="queryParam.useType" placeholder="请选择">
|
|
|
- <a-select-option
|
|
|
- v-for="(label,value) in useTypeMap"
|
|
|
- :key="value"
|
|
|
- :label="label"
|
|
|
+ <a-select-option v-for="(label, value) in useTypeMap" :key="value" :label="label"
|
|
|
:value="parseInt(value)">{{ label }}
|
|
|
</a-select-option>
|
|
|
</a-select>
|
|
|
@@ -62,49 +56,37 @@
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="规格型号">
|
|
|
- <a-input v-model="queryParam.model" placeholder="规格型号"/>
|
|
|
+ <a-input v-model="queryParam.model" placeholder="规格型号" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="所属车间">
|
|
|
<a-select v-model="queryParam.positionId" placeholder="请选择">
|
|
|
- <a-select-option
|
|
|
- v-for="({id,name}) in sbPositionData"
|
|
|
- :key="id"
|
|
|
- :label="name"
|
|
|
- :value="id">{{ name }}
|
|
|
+ <a-select-option v-for="({ id, name }) in sbPositionData" :key="id" :label="name" :value="id">{{ name
|
|
|
+ }}
|
|
|
</a-select-option>
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="生产商">
|
|
|
- <a-input v-model="queryParam.producerName" placeholder="生产商名称"/>
|
|
|
+ <a-input v-model="queryParam.producerName" placeholder="生产商名称" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="设备类型">
|
|
|
- <a-tree-select
|
|
|
- style="width: 100%"
|
|
|
- :dropdownStyle="{ maxHeight: '400px', overflow: 'auto' }"
|
|
|
- :treeData="treeData"
|
|
|
- :treeNodeFilterProp="'title'"
|
|
|
- :showSearch="true"
|
|
|
- v-model="queryParam.typeId"
|
|
|
- placeholder="请选择"
|
|
|
- >
|
|
|
+ <a-tree-select style="width: 100%" :dropdownStyle="{ maxHeight: '400px', overflow: 'auto' }"
|
|
|
+ :treeData="treeData" :treeNodeFilterProp="'title'" :showSearch="true" v-model="queryParam.typeId"
|
|
|
+ placeholder="请选择">
|
|
|
</a-tree-select>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="设备状态">
|
|
|
<a-select v-model="queryParam.status" placeholder="请选择">
|
|
|
- <a-select-option
|
|
|
- v-for="(label,value) in statusMap"
|
|
|
- :key="value"
|
|
|
- :defaultValue="DictCache.VALUE.SB_INFO_STATUS.IN_USE"
|
|
|
- :label="label"
|
|
|
- :value="parseInt(value)">{{ label }}
|
|
|
+ <a-select-option v-for="(label, value) in statusMap" :key="value"
|
|
|
+ :defaultValue="DictCache.VALUE.SB_INFO_STATUS.IN_USE" :label="label" :value="parseInt(value)">{{
|
|
|
+ label }}
|
|
|
</a-select-option>
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
|
@@ -130,21 +112,26 @@
|
|
|
|
|
|
<div class="table-operator">
|
|
|
<a-button v-if="$auth('sb-infos-add')" type="primary" icon="plus" @click="handleAdd">新增</a-button>
|
|
|
- <a-button style="margin-left: 8px" v-if="$auth('sb-infos-export')" type="primary" icon="download" @click="doExport">导出</a-button>
|
|
|
- <a-button style="margin-left: 8px" v-if="$auth('sb-infos-export')" type="primary" icon="download" @click="doExportFee()">费用导出</a-button>
|
|
|
+ <a-button style="margin-left: 8px" v-if="$auth('sb-infos-export')" type="primary" icon="download"
|
|
|
+ @click="doExport">导出</a-button>
|
|
|
+ <!-- 隐藏费用导出按钮 -->
|
|
|
+ <!-- <a-button style="margin-left: 8px" v-if="$auth('sb-infos-export')" type="primary" icon="download" @click="doExportFee()">费用导出</a-button> -->
|
|
|
|
|
|
<a-button style="margin-left:8px;" type="primary" @click="doImport">
|
|
|
- <a-icon type="upload"/>
|
|
|
+ <a-icon type="upload" />
|
|
|
新增导入
|
|
|
</a-button>
|
|
|
<a-button style="margin-left:8px;" type="primary" @click="doImportForUpdate">
|
|
|
- <a-icon type="upload"/>
|
|
|
+ <a-icon type="upload" />
|
|
|
修改导入
|
|
|
</a-button>
|
|
|
- <a-button style="margin-left:8px;" type="primary" icon="download" @click="doDownloadImportTemplate">导入模板下载</a-button>
|
|
|
+ <a-button style="margin-left:8px;" type="primary" icon="download"
|
|
|
+ @click="doDownloadImportTemplate">导入模板下载</a-button>
|
|
|
<a-button style="margin-left: 8px" type="primary" icon="printer" @click="handlePrintBatch()">批量打印</a-button>
|
|
|
- <a-button style="margin-left: 8px" v-if="$auth('sb-infos-generate-code-all')" :loading="confirmLoading" type="primary" @click="batchGenerate()">重新生成二维码</a-button>
|
|
|
- <a-button style="margin-left: 8px" type="primary" icon="environment" @click="handleInitPoints">初始化打点</a-button>
|
|
|
+ <a-button style="margin-left: 8px" v-if="$auth('sb-infos-generate-code-all')" :loading="confirmLoading"
|
|
|
+ type="primary" @click="batchGenerate()">重新生成二维码</a-button>
|
|
|
+ <a-button style="margin-left: 8px" type="primary" icon="environment"
|
|
|
+ @click="handleInitPoints">初始化打点</a-button>
|
|
|
<a-dropdown v-action:edit v-if="selectedRowKeys.length > 0 && $auth('sb-infos-del')">
|
|
|
<a-menu slot="overlay">
|
|
|
<a-popconfirm title="是否要删除所选数据?" @confirm="batchDelete()">
|
|
|
@@ -157,18 +144,9 @@
|
|
|
</a-dropdown>
|
|
|
</div>
|
|
|
|
|
|
- <s-table
|
|
|
- ref="table"
|
|
|
- size="default"
|
|
|
- rowKey="id"
|
|
|
- :widthSpace="true"
|
|
|
- :columns="columns"
|
|
|
- :data="loadData"
|
|
|
- :alert="options.alert"
|
|
|
- :rowSelection="options.rowSelection"
|
|
|
- :scroll="{x: 1500, y: BaseTool.Constant.scrollY}"
|
|
|
- showPagination="auto"
|
|
|
- >
|
|
|
+ <s-table ref="table" size="default" rowKey="id" :widthSpace="true" :columns="columns" :data="loadData"
|
|
|
+ :alert="options.alert" :rowSelection="options.rowSelection"
|
|
|
+ :scroll="{ x: 1500, y: BaseTool.Constant.scrollY }" showPagination="auto">
|
|
|
<span slot="action" slot-scope="record">
|
|
|
<template>
|
|
|
<div>
|
|
|
@@ -209,56 +187,52 @@
|
|
|
</template>
|
|
|
</span>
|
|
|
<span slot="status" slot-scope="text">
|
|
|
- <badge
|
|
|
- :status="DictCache.COLOR.SB_INFO_STATUS[text]"
|
|
|
- :text="statusMap[text]" />
|
|
|
+ <badge :status="DictCache.COLOR.SB_INFO_STATUS[text]" :text="statusMap[text]" />
|
|
|
</span>
|
|
|
</s-table>
|
|
|
</div>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
- <base-form ref="baseModal" @ok="handleOk"/>
|
|
|
- <base-form-status-log ref="baseModalStatusLog" @ok="handleOk"/>
|
|
|
- <detail ref="detailModal" @ok="handleOk"/>
|
|
|
- <download-modal ref="downloadModal"/>
|
|
|
- <preview-modal ref="previewModal"/>
|
|
|
- <import-form-add ref="importModal" @ok="handleOk"/>
|
|
|
- <import-form-update ref="importModalUpdate" @ok="handleOk"/>
|
|
|
- <print-sb-code ref="printSbCode"/>
|
|
|
- <print-in-sb-info-batch ref="printInSbInfoBatch" @ok="handleOk"/>
|
|
|
+ <base-form ref="baseModal" @ok="handleOk" />
|
|
|
+ <base-form-status-log ref="baseModalStatusLog" @ok="handleOk" />
|
|
|
+ <detail ref="detailModal" @ok="handleOk" />
|
|
|
+ <download-modal ref="downloadModal" />
|
|
|
+ <preview-modal ref="previewModal" />
|
|
|
+ <import-form-add ref="importModal" @ok="handleOk" />
|
|
|
+ <import-form-update ref="importModalUpdate" @ok="handleOk" />
|
|
|
+ <print-sb-code ref="printSbCode" />
|
|
|
+ <print-in-sb-info-batch ref="printInSbInfoBatch" @ok="handleOk" />
|
|
|
|
|
|
<!-- 初始化打点弹窗 -->
|
|
|
- <a-modal
|
|
|
- title="初始化打点"
|
|
|
- :visible="initPointsVisible"
|
|
|
- :confirmLoading="initPointsLoading"
|
|
|
- @ok="doInitPoints"
|
|
|
- @cancel="initPointsVisible = false"
|
|
|
- width="600px"
|
|
|
- >
|
|
|
+ <a-modal title="初始化打点" :visible="initPointsVisible" :confirmLoading="initPointsLoading" @ok="doInitPoints"
|
|
|
+ @cancel="initPointsVisible = false" width="600px">
|
|
|
<a-form :form="initPointsForm" :label-col="{ span: 8 }" :wrapper-col="{ span: 14 }">
|
|
|
<a-divider orientation="left">矩形坐标(左上、右下)</a-divider>
|
|
|
<a-row :gutter="16">
|
|
|
<a-col :span="12">
|
|
|
<a-form-item label="左上经度">
|
|
|
- <a-input-number v-model="initPointsData.points[0].longitude" :step="0.000001" style="width: 100%" placeholder="经度"/>
|
|
|
+ <a-input-number v-model="initPointsData.points[0].longitude" :step="0.000001" style="width: 100%"
|
|
|
+ placeholder="经度" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
|
<a-form-item label="左上纬度">
|
|
|
- <a-input-number v-model="initPointsData.points[0].latitude" :step="0.000001" style="width: 100%" placeholder="纬度"/>
|
|
|
+ <a-input-number v-model="initPointsData.points[0].latitude" :step="0.000001" style="width: 100%"
|
|
|
+ placeholder="纬度" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
<a-row :gutter="16">
|
|
|
<a-col :span="12">
|
|
|
<a-form-item label="右下经度">
|
|
|
- <a-input-number v-model="initPointsData.points[1].longitude" :step="0.000001" style="width: 100%" placeholder="经度"/>
|
|
|
+ <a-input-number v-model="initPointsData.points[1].longitude" :step="0.000001" style="width: 100%"
|
|
|
+ placeholder="经度" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
|
<a-form-item label="右下纬度">
|
|
|
- <a-input-number v-model="initPointsData.points[1].latitude" :step="0.000001" style="width: 100%" placeholder="纬度"/>
|
|
|
+ <a-input-number v-model="initPointsData.points[1].latitude" :step="0.000001" style="width: 100%"
|
|
|
+ placeholder="纬度" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
@@ -269,44 +243,24 @@
|
|
|
</a-row>
|
|
|
<a-divider orientation="left">选择设备位置</a-divider>
|
|
|
<a-form-item label="设备位置" :label-col="{ span: 4 }" :wrapper-col="{ span: 18 }">
|
|
|
- <a-select
|
|
|
- v-model="initPointsData.positionIds"
|
|
|
- mode="multiple"
|
|
|
- show-search
|
|
|
- :filter-option="filterPositionOption"
|
|
|
- option-filter-prop="children"
|
|
|
- placeholder="请选择设备位置"
|
|
|
- style="width: 100%"
|
|
|
- >
|
|
|
- <a-select-option
|
|
|
- v-for="item in sbPositionData"
|
|
|
- :key="item.id"
|
|
|
- :value="item.id"
|
|
|
- >{{ item.name }}</a-select-option>
|
|
|
+ <a-select v-model="initPointsData.positionIds" mode="multiple" show-search
|
|
|
+ :filter-option="filterPositionOption" option-filter-prop="children" placeholder="请选择设备位置"
|
|
|
+ style="width: 100%">
|
|
|
+ <a-select-option v-for="item in sbPositionData" :key="item.id" :value="item.id">{{ item.name
|
|
|
+ }}</a-select-option>
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
|
<a-divider orientation="left">底图与显示</a-divider>
|
|
|
<a-form-item label="选择底图" :label-col="{ span: 4 }" :wrapper-col="{ span: 18 }">
|
|
|
- <a-select
|
|
|
- v-model="initPointsData.mapName"
|
|
|
- placeholder="请选择底图"
|
|
|
- style="width: 100%"
|
|
|
- >
|
|
|
- <a-select-option
|
|
|
- v-for="item in mapNameList"
|
|
|
- :key="item.targetId"
|
|
|
- :value="item.targetId"
|
|
|
- >{{ item.targetId }}</a-select-option>
|
|
|
+ <a-select v-model="initPointsData.mapName" placeholder="请选择底图" style="width: 100%">
|
|
|
+ <a-select-option v-for="item in mapNameList" :key="item.targetId" :value="item.targetId">{{ item.targetId
|
|
|
+ }}</a-select-option>
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
|
<a-form-item label="是否显示" :label-col="{ span: 4 }" :wrapper-col="{ span: 18 }">
|
|
|
<a-select v-model="initPointsData.isShow" placeholder="请选择">
|
|
|
- <a-select-option
|
|
|
- v-for="(label, value) in isShowMap"
|
|
|
- :key="value"
|
|
|
- :label="label"
|
|
|
- :value="parseInt(value)"
|
|
|
- >{{ label }}</a-select-option>
|
|
|
+ <a-select-option v-for="(label, value) in isShowMap" :key="value" :label="label" :value="parseInt(value)">{{
|
|
|
+ label }}</a-select-option>
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
|
</a-form>
|
|
|
@@ -363,7 +317,7 @@ export default {
|
|
|
default: null
|
|
|
}
|
|
|
},
|
|
|
- data () {
|
|
|
+ data() {
|
|
|
return {
|
|
|
// 查询参数
|
|
|
queryParam: {
|
|
|
@@ -637,7 +591,7 @@ export default {
|
|
|
optionAlertShow: false
|
|
|
}
|
|
|
},
|
|
|
- created () {
|
|
|
+ created() {
|
|
|
this.tableOption()
|
|
|
this.depreciationTypeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SBINFO_DEPRECIATIONTYPE)
|
|
|
this.levelMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SBINFO_LEVEL)
|
|
|
@@ -655,7 +609,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
methods: {
|
|
|
- tableOption () {
|
|
|
+ tableOption() {
|
|
|
this.setTree()
|
|
|
if (!this.optionAlertShow) {
|
|
|
this.options = {
|
|
|
@@ -680,7 +634,7 @@ export default {
|
|
|
this.optionAlertShow = false
|
|
|
}
|
|
|
},
|
|
|
- batchDelete (id) {
|
|
|
+ batchDelete(id) {
|
|
|
let ids = []
|
|
|
if (this.BaseTool.String.isBlank(id)) {
|
|
|
const length = this.selectedRows.length
|
|
|
@@ -698,7 +652,7 @@ export default {
|
|
|
this.$refs.table.clearSelected()
|
|
|
})
|
|
|
},
|
|
|
- batchGenerate () {
|
|
|
+ batchGenerate() {
|
|
|
this.confirmLoading = true
|
|
|
this.$message.info('正在生成请稍后')
|
|
|
generateSbCodeAll().then(res => {
|
|
|
@@ -708,21 +662,21 @@ export default {
|
|
|
this.$refs.table.clearSelected()
|
|
|
})
|
|
|
},
|
|
|
- handleEdit (record) {
|
|
|
+ handleEdit(record) {
|
|
|
fetchSbInfo({ id: record.id }).then(res => {
|
|
|
this.visible = false
|
|
|
const modal = this.$refs.baseModal
|
|
|
modal.base(res.data)
|
|
|
})
|
|
|
},
|
|
|
- handlePrint (record) {
|
|
|
+ handlePrint(record) {
|
|
|
this.visible = false
|
|
|
fetchSbInfo({ id: record.id }).then(res => {
|
|
|
const modal = this.$refs.printInSbInfoBatch
|
|
|
modal.base([res.data])
|
|
|
})
|
|
|
},
|
|
|
- handlePrintBatch () {
|
|
|
+ handlePrintBatch() {
|
|
|
this.visible = false
|
|
|
let ids = []
|
|
|
const length = this.selectedRows.length
|
|
|
@@ -736,7 +690,7 @@ export default {
|
|
|
modal.base(res.data)
|
|
|
})
|
|
|
},
|
|
|
- handleStart (record) {
|
|
|
+ handleStart(record) {
|
|
|
const modal = this.$refs.baseModalStatusLog
|
|
|
modal.base(null, {
|
|
|
sbId: record.id,
|
|
|
@@ -747,7 +701,7 @@ export default {
|
|
|
afterStatus: this.DictCache.VALUE.SB_INFO_STATUS.IN_USE
|
|
|
})
|
|
|
},
|
|
|
- handleStop (record) {
|
|
|
+ handleStop(record) {
|
|
|
const modal = this.$refs.baseModalStatusLog
|
|
|
modal.base(null, {
|
|
|
sbId: record.id,
|
|
|
@@ -758,11 +712,11 @@ export default {
|
|
|
afterStatus: this.DictCache.VALUE.SB_INFO_STATUS.IN_STOP
|
|
|
})
|
|
|
},
|
|
|
- handleAdd () {
|
|
|
+ handleAdd() {
|
|
|
this.visible = false
|
|
|
this.$refs.baseModal.base()
|
|
|
},
|
|
|
- handleView (record) {
|
|
|
+ handleView(record) {
|
|
|
fetchSbInfo({ id: record.id }).then(res => {
|
|
|
this.visible = false
|
|
|
const modal = this.$refs.detailModal
|
|
|
@@ -770,23 +724,23 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- handleCopy (record) {
|
|
|
+ handleCopy(record) {
|
|
|
this.visible = false
|
|
|
fetchSbInfo({ id: record.id }).then(res => {
|
|
|
const modal = this.$refs.baseModal
|
|
|
modal.base(res.data, 1)
|
|
|
})
|
|
|
},
|
|
|
- handleOk () {
|
|
|
+ handleOk() {
|
|
|
this.visible = true
|
|
|
this.setTree()
|
|
|
this.$refs.table.refresh()
|
|
|
},
|
|
|
- onSelectChange (selectedRowKeys, selectedRows) {
|
|
|
+ onSelectChange(selectedRowKeys, selectedRows) {
|
|
|
this.selectedRowKeys = selectedRowKeys
|
|
|
this.selectedRows = selectedRows
|
|
|
},
|
|
|
- resetSearchForm () {
|
|
|
+ resetSearchForm() {
|
|
|
this.queryParam = {
|
|
|
filter: this.filter,
|
|
|
useType: this.useType
|
|
|
@@ -794,7 +748,7 @@ export default {
|
|
|
this.visible = true
|
|
|
this.$refs.table.refresh(true)
|
|
|
},
|
|
|
- doExport () {
|
|
|
+ doExport() {
|
|
|
const parameter = {
|
|
|
...this.queryParam,
|
|
|
dataScope: {
|
|
|
@@ -806,7 +760,7 @@ export default {
|
|
|
this.BaseTool.UPLOAD.downLoadExportExcel(file)
|
|
|
})
|
|
|
},
|
|
|
- doExportFee (id) {
|
|
|
+ doExportFee(id) {
|
|
|
let ids = []
|
|
|
if (this.BaseTool.String.isBlank(id)) {
|
|
|
const length = this.selectedRows.length
|
|
|
@@ -824,7 +778,7 @@ export default {
|
|
|
this.BaseTool.UPLOAD.downLoadExportExcel(file)
|
|
|
})
|
|
|
},
|
|
|
- setTree (record = {}) {
|
|
|
+ setTree(record = {}) {
|
|
|
queryDept({ nature: this.DictCache.VALUE.SYS_DEPT_NATURE.JITUAN }).then(res => {
|
|
|
this.areaList = res.data
|
|
|
})
|
|
|
@@ -837,44 +791,44 @@ export default {
|
|
|
this.queryParam.typeId = selectedKeys.length > 0 ? selectedKeys[0] : ''
|
|
|
this.$refs.table.refresh(true)
|
|
|
},
|
|
|
- onExpand (expandedKeys) {
|
|
|
+ onExpand(expandedKeys) {
|
|
|
this.expandedKeys = expandedKeys
|
|
|
this.autoExpandParent = false
|
|
|
},
|
|
|
- handleRepairFilePreview (record) {
|
|
|
+ handleRepairFilePreview(record) {
|
|
|
console.log(record, 87878)
|
|
|
this.$refs.previewModal.base(record.id, this.DictCache.VALUE.FILE_MODULE.SBINFO_REPAIRFILE)
|
|
|
},
|
|
|
- handleRepairFileDownload (record) {
|
|
|
+ handleRepairFileDownload(record) {
|
|
|
// this.$refs.downloadModal.base(record.id, this.DictCache.VALUE.FILE_MODULE.SBINFO_REPAIRFILE, getDownloadUrl(record.id))
|
|
|
},
|
|
|
- handleUseFilePreview (record) {
|
|
|
+ handleUseFilePreview(record) {
|
|
|
this.$refs.previewModal.base(record.id, this.DictCache.VALUE.FILE_MODULE.SBINFO_USEFILE)
|
|
|
},
|
|
|
- handleUseFileDownload (record) {
|
|
|
+ handleUseFileDownload(record) {
|
|
|
// this.$refs.downloadModal.base(record.id, this.DictCache.VALUE.FILE_MODULE.SBINFO_USEFILE, getDownloadUrl(record.id))
|
|
|
},
|
|
|
- handleCheckFilePreview (record) {
|
|
|
+ handleCheckFilePreview(record) {
|
|
|
this.$refs.previewModal.base(record.id, this.DictCache.VALUE.FILE_MODULE.SBINFO_RECHECKFILE)
|
|
|
},
|
|
|
- handleCheckFileDownload (record) {
|
|
|
+ handleCheckFileDownload(record) {
|
|
|
// this.$refs.downloadModal.base(record.id, this.DictCache.VALUE.FILE_MODULE.SBINFO_RECHECKFILE, getDownloadUrl(record.id))
|
|
|
},
|
|
|
- doImport () {
|
|
|
+ doImport() {
|
|
|
this.$refs.importModal.base(null, null)
|
|
|
},
|
|
|
- doImportForUpdate () {
|
|
|
+ doImportForUpdate() {
|
|
|
this.$refs.importModalUpdate.base(null, null)
|
|
|
},
|
|
|
- doDownloadImportTemplate () {
|
|
|
+ doDownloadImportTemplate() {
|
|
|
downloadSbInfoImportTemplate().then(file => {
|
|
|
this.BaseTool.UPLOAD.downLoadExportExcel(file)
|
|
|
})
|
|
|
},
|
|
|
- filterPositionOption (input, option) {
|
|
|
+ filterPositionOption(input, option) {
|
|
|
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
},
|
|
|
- handleInitPoints () {
|
|
|
+ handleInitPoints() {
|
|
|
this.initPointsData = {
|
|
|
points: [
|
|
|
{ longitude: undefined, latitude: undefined },
|
|
|
@@ -886,7 +840,7 @@ export default {
|
|
|
}
|
|
|
this.initPointsVisible = true
|
|
|
},
|
|
|
- doInitPoints () {
|
|
|
+ doInitPoints() {
|
|
|
// 校验坐标是否填写完整
|
|
|
const validPoints = this.initPointsData.points.every(
|
|
|
p => p.longitude !== undefined && p.longitude !== null && p.latitude !== undefined && p.latitude !== null
|
|
|
@@ -914,11 +868,11 @@ export default {
|
|
|
this.initPointsLoading = false
|
|
|
})
|
|
|
},
|
|
|
- openMapSelector () {
|
|
|
+ openMapSelector() {
|
|
|
// 打开地图选点组件,传入当前选择的底图
|
|
|
this.$refs.initPointMapSelect.base(this.initPointsData.mapName)
|
|
|
},
|
|
|
- handleMapPointSelected (data) {
|
|
|
+ handleMapPointSelected(data) {
|
|
|
// 地图选点回调,data 包含 x1, y1, x2, y2 (小数形式 0-1)
|
|
|
// 转换为实际坐标值(这里假设地图坐标范围是 0-1,直接存储)
|
|
|
// 如果需要转换为实际经纬度,需要根据底图的坐标范围进行转换
|