|
@@ -46,28 +46,24 @@
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
|
|
|
- <el-table-column label="说明" align="left" header-align="left">
|
|
|
|
|
- <template v-slot="{row}">
|
|
|
|
|
- <span>{{ row.gridDesc }}</span>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
-
|
|
|
|
|
<el-table-column label="二维码" header-align="center" align="center" width="70">
|
|
<el-table-column label="二维码" header-align="center" align="center" width="70">
|
|
|
<template v-slot="{row}">
|
|
<template v-slot="{row}">
|
|
|
<span class="icon iconfont icon-erweima" @click="showQrcode(row)" />
|
|
<span class="icon iconfont icon-erweima" @click="showQrcode(row)" />
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
|
|
|
- <el-table-column label="清单" align="center" header-align="center" width="70">
|
|
|
|
|
|
|
+ <el-table-column label="小程序" align="center" header-align="center" width="70">
|
|
|
<template v-slot="{row}">
|
|
<template v-slot="{row}">
|
|
|
- <span v-if="row.checklistNum> 0" @click="handleChecklist(row)"> <i class="el-icon-document-checked" /> </span>
|
|
|
|
|
- <span v-else @click="handleChecklist(row)"> 绑定 </span>
|
|
|
|
|
|
|
+ <el-link>
|
|
|
|
|
+ <span v-if="row.appNum> 0" @click="handleApp(row)"> <i class="el-icon-apple" /> </span>
|
|
|
|
|
+ <span v-else @click="handleApp(row)">绑定 </span>
|
|
|
|
|
+ </el-link>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
|
|
|
- <el-table-column label="地图位置" header-align="center" align="center" width="100">
|
|
|
|
|
|
|
+ <el-table-column label="说明" align="left" header-align="left">
|
|
|
<template v-slot="{row}">
|
|
<template v-slot="{row}">
|
|
|
- <span @click="handleMapLayer(row)"><i class="el-icon-location" /> </span>
|
|
|
|
|
|
|
+ <span>{{ row.gridDesc }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
|
|
@@ -87,7 +83,7 @@
|
|
|
<grid ref="EditGrid" title="编辑" @formSuccess="getData" />
|
|
<grid ref="EditGrid" title="编辑" @formSuccess="getData" />
|
|
|
<QrCode ref="qrcode" />
|
|
<QrCode ref="qrcode" />
|
|
|
<div id="qrcode" ref="qrcodeModal" style="position:fixed;top:-9999px;" />
|
|
<div id="qrcode" ref="qrcodeModal" style="position:fixed;top:-9999px;" />
|
|
|
- <ChecklistTargetConfig ref="ChecklistTargetConfig" :target-type="targetType" @formSuccess="getData" />
|
|
|
|
|
|
|
+ <AppTargetConfig ref="AppTargetConfig" :target-type="targetType" @formSuccess="getData" />
|
|
|
<MapLayer ref="MapLayer" />
|
|
<MapLayer ref="MapLayer" />
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -102,7 +98,7 @@ import Grid from './components/Grid'
|
|
|
import { QrCode } from '@/components'
|
|
import { QrCode } from '@/components'
|
|
|
import MapLayer from './components/MapLayer'
|
|
import MapLayer from './components/MapLayer'
|
|
|
import Pagination from '@/components/Pagination'
|
|
import Pagination from '@/components/Pagination'
|
|
|
-import ChecklistTargetConfig from '@/components/ChecklistTargetConfig'
|
|
|
|
|
|
|
+import AppTargetConfig from '@/components/AppTargetConfig'
|
|
|
import { getGridByPage, deleteGridById } from '@/api/system/gridApi'
|
|
import { getGridByPage, deleteGridById } from '@/api/system/gridApi'
|
|
|
import { getSettingById } from '@/api/system/settingApi'
|
|
import { getSettingById } from '@/api/system/settingApi'
|
|
|
import { getUserData } from '@/utils/auth'
|
|
import { getUserData } from '@/utils/auth'
|
|
@@ -112,7 +108,7 @@ export default {
|
|
|
name: 'GridIndex',
|
|
name: 'GridIndex',
|
|
|
components: {
|
|
components: {
|
|
|
Pagination,
|
|
Pagination,
|
|
|
- ChecklistTargetConfig,
|
|
|
|
|
|
|
+ AppTargetConfig,
|
|
|
Grid,
|
|
Grid,
|
|
|
MapLayer,
|
|
MapLayer,
|
|
|
QrCode
|
|
QrCode
|
|
@@ -271,9 +267,9 @@ export default {
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
// 显示清单绑定配置
|
|
// 显示清单绑定配置
|
|
|
- handleChecklist(data) {
|
|
|
|
|
|
|
+ handleApp(data) {
|
|
|
const { gridId } = data
|
|
const { gridId } = data
|
|
|
- this.$refs['ChecklistTargetConfig'].showModel(gridId)
|
|
|
|
|
|
|
+ this.$refs['AppTargetConfig'].showModel(gridId)
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
// 设定地图位置
|
|
// 设定地图位置
|