切换至备用屏
This commit is contained in:
@@ -32,7 +32,7 @@ export default {
|
|||||||
getTableData() {
|
getTableData() {
|
||||||
const {$http, $waitFor} = window
|
const {$http, $waitFor} = window
|
||||||
$waitFor($http).then(() => $http.post("/data-boot/la/screen/marketBoard/marketKeyGoods", {
|
$waitFor($http).then(() => $http.post("/data-boot/la/screen/marketBoard/marketKeyGoods", {
|
||||||
// ...this.search, limit: 999
|
...this.search, limit: 999
|
||||||
})).then(res => {
|
})).then(res => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
this.tableData = res.data?.records || []
|
this.tableData = res.data?.records || []
|
||||||
@@ -52,7 +52,7 @@ export default {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<section class="AppKeyGoods">
|
<section class="AppKeyGoods">
|
||||||
<dv-scroll-board :config="tableConfig" @click=""/>
|
<dv-scroll-board :config="tableConfig"/>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -1,25 +1,22 @@
|
|||||||
<script>
|
<script>
|
||||||
const screens = {
|
const screens = [
|
||||||
"c1d1b838-e946-4b6b-b95d-e92798db6908": "市场看板",
|
{id: '5b1849ac-4fc3-451a-844c-3362b47341ef', label: '市场看板', bg: 'http://10.0.97.209/img/kengee/kengee16.png'},
|
||||||
"3557e83f-18ca-4532-8d18-d76b11d3f880": "多店监控",
|
{id: '7d26854c-769d-418b-9bae-5c1105e716a9', label: '多店监控', bg: 'http://10.0.97.209/img/kengee/kengee17.png'},
|
||||||
'9f299712-5549-413b-a93b-7c3e3b5bfadb': "单店监控",
|
{id: 'a90522ef-869b-40ea-8542-d1fc9674a1e8', label: '单店监控', bg: 'http://10.0.97.209/img/kengee/kengee18.png'},
|
||||||
}
|
]
|
||||||
export default {
|
export default {
|
||||||
name: "AppNavbar",
|
name: "AppNavbar",
|
||||||
label: "标题栏",
|
label: "标题栏",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
screens,
|
screens,
|
||||||
groupId: "c1d1b838-e946-4b6b-b95d-e92798db6908"
|
groupId: "5b1849ac-4fc3-451a-844c-3362b47341ef"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
backgroundImage() {
|
backgroundImage() {
|
||||||
return `url(${{
|
const item = this.screens.find(e => e.id === this.groupId)
|
||||||
"c1d1b838-e946-4b6b-b95d-e92798db6908": "http://10.0.97.209/img/kengee/kengee16.png",
|
return `url(${item.bg})`
|
||||||
"3557e83f-18ca-4532-8d18-d76b11d3f880": "http://10.0.97.209/img/kengee/kengee17.png",
|
|
||||||
'9f299712-5549-413b-a93b-7c3e3b5bfadb': "http://10.0.97.209/img/kengee/kengee18.png",
|
|
||||||
}[this.groupId]})`
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@@ -27,7 +24,6 @@ export default {
|
|||||||
immediate: true,
|
immediate: true,
|
||||||
handler(val) {
|
handler(val) {
|
||||||
if (val) {
|
if (val) {
|
||||||
$glob.group = 'c1d1b838-e946-4b6b-b95d-e92798db6908'
|
|
||||||
$glob.group = this.groupId
|
$glob.group = this.groupId
|
||||||
} else {
|
} else {
|
||||||
this.groupId = $glob.group
|
this.groupId = $glob.group
|
||||||
@@ -40,7 +36,7 @@ export default {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<section class="AppNavbar" :style="{backgroundImage}">
|
<section class="AppNavbar" :style="{backgroundImage}">
|
||||||
<div v-for="(label,id) in screens" :key="id" @click="groupId=id" class="pointer"/>
|
<div v-for="e in screens" :key="e.id" @click="groupId=e.id" class="pointer"/>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -151,11 +151,8 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
gotoDetail(store) {
|
gotoDetail(store) {
|
||||||
$glob.query = {storeCode: store.storeCode}
|
$glob.group = "a90522ef-869b-40ea-8542-d1fc9674a1e8"
|
||||||
const sid = "9f299712-5549-413b-a93b-7c3e3b5bfadb"
|
this.$storeBoard.query.storeCode = store.storeCode
|
||||||
$glob.group = sid
|
|
||||||
this.$storeBoard.query.storeCode = sid
|
|
||||||
this.$router.push("/apps/AppStoreBoard")
|
|
||||||
},
|
},
|
||||||
getTableData(item = {}, tag) {
|
getTableData(item = {}, tag) {
|
||||||
const v = this
|
const v = this
|
||||||
|
|||||||
Reference in New Issue
Block a user