|
@@ -2,20 +2,20 @@
|
|
|
<div class="scene-layout">
|
|
|
<div class="d-header">
|
|
|
<ul class="tab-list" v-if="!deviceLogin">
|
|
|
- <li @click="tabActive = item.id" :class="{active:tabActive === item.id}" v-for="(item,i) in langScenes.tabList" :key="i">
|
|
|
+ <li @click="tabActive = item.id" :class="{active:tabActive === item.id}" v-for="(item,i) in tabList" :key="i">
|
|
|
{{item.name}}({{i===0?allTotal:xiezuoNum}})
|
|
|
</li>
|
|
|
</ul>
|
|
|
|
|
|
<ul class="tab-list" v-else>
|
|
|
- <li class="active" v-for="(item,i) in [langScenes.tabList[0]]" :key="i">
|
|
|
+ <li class="active" v-for="(item,i) in [tabList[0]]" :key="i">
|
|
|
{{item.name}}({{allTotal}})
|
|
|
</li>
|
|
|
</ul>
|
|
|
<div class="rig-con">
|
|
|
<div class="btns" v-if="tabActive===1&&!isImgType">
|
|
|
- <span class="button" @click="multCop">{{langScenes.fenpei}}</span>
|
|
|
- <span class="button default" @click="multDel">{{langScenes.delete}}</span>
|
|
|
+ <span class="button" @click="multCop">{{ $t('manage.sceneAdmin.collaborative') }}</span>
|
|
|
+ <span class="button default" @click="multDel">{{ $t('common.delete') }}</span>
|
|
|
</div>
|
|
|
<div class="tab-search">
|
|
|
<input
|
|
@@ -97,7 +97,7 @@
|
|
|
<div slot-scope="{data,canclick,type,item}" slot="item" style="width:100%">
|
|
|
<template v-if="canclick">
|
|
|
<span class="edit" v-if="item.status === 1||item.status===-2" @click="gotoEdit(item)">{{langScenes.edit}}</span>
|
|
|
- <span class="edit" @click="handleCooperation(item)" v-if="(item.status === 1||item.status===-2)&&!deviceLogin&&tabActive===1" >{{langScenes.fenpei}}</span>
|
|
|
+ <span class="edit" @click="handleCooperation(item)" v-if="(item.status === 1||item.status===-2)&&!deviceLogin&&tabActive===1" >{{ $t('manage.sceneAdmin.collaborative') }}</span>
|
|
|
</template>
|
|
|
<div style="position:relative;" v-else-if="type === 'image'" >
|
|
|
<div :title="item.name" @click="((item.status === 1||item.status===-2)&&item.payStatus !== -2) && goto(item.webSite)" style="height:40px;" class="card-img" :style="{backgroundImage: `url(${getSceneImg(item)})`}"></div>
|
|
@@ -214,7 +214,16 @@ export default {
|
|
|
url: 'https://www.4dkankan.com/showProPC.html?m=KcMeJlOr8',
|
|
|
item: '',
|
|
|
ulActive: '',
|
|
|
- tabActive: 1
|
|
|
+ tabActive: 1,
|
|
|
+ tabList: [
|
|
|
+ {
|
|
|
+ name: this.$t('manage.sceneAdmin.myScene'),
|
|
|
+ id: 1
|
|
|
+ }, {
|
|
|
+ name: this.$t('manage.sceneAdmin.collaborativeScene'),
|
|
|
+ id: 2
|
|
|
+ }
|
|
|
+ ]
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
@@ -478,6 +487,7 @@ export default {
|
|
|
}
|
|
|
if (this.tabActive === 2) {
|
|
|
await this.$store.dispatch('getCooperationScene', params)
|
|
|
+
|
|
|
} else {
|
|
|
cameraId
|
|
|
? await this.$store.dispatch('getScanScene', params)
|
|
@@ -488,6 +498,8 @@ export default {
|
|
|
if (this.tabActive === 1) {
|
|
|
this.lock = true
|
|
|
this.allTotal = this.total
|
|
|
+ } else {
|
|
|
+ this.xiezuoNum = this.total
|
|
|
}
|
|
|
},
|
|
|
copyTextToClipboard (text) {
|