Commit 2091d5b8 by 杨明

fixed

1 parent c2d1977b
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-14 14:08:14 * @Date: 2023-09-14 14:08:14
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-10-10 10:29:53 * @LastEditTime: 2023-10-10 16:12:17
* @FilePath: \scrm-micro-home\src\components\options.js * @FilePath: \scrm-micro-home\src\components\options.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
...@@ -142,13 +142,13 @@ function getLineOddOptions(obj) { ...@@ -142,13 +142,13 @@ function getLineOddOptions(obj) {
type: 'slider', // 显示滑动条 type: 'slider', // 显示滑动条
xAxisIndex: 0, // 指定水平拖动的 x 轴索引 xAxisIndex: 0, // 指定水平拖动的 x 轴索引
start: 0, // 初始的数据窗口范围的起始位置 start: 0, // 初始的数据窗口范围的起始位置
end: 100, // 初始的数据窗口范围的结束位置 end: 100 // 初始的数据窗口范围的结束位置
dataBackground: { // dataBackground: {
lineStyle: { // lineStyle: {
width: 10, // 滑动柱的宽度 // width: 10, // 滑动柱的宽度
color: '#ff0000' // 滑动柱的颜色 // color: '#ff0000' // 滑动柱的颜色
} // }
} // }
} }
], ],
yAxis: { yAxis: {
......
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
<div class="analysis-item-head"> <div class="analysis-item-head">
<img :src="require(`@/assets/img/home/icon-${index + 1}.png`)" /> <img :src="require(`@/assets/img/home/icon-${index + 1}.png`)" />
<span>{{ item.instName }}</span> <span>{{ item.instName }}</span>
<a @click="handleJump(item, 'journey/index')" v-if="item.instStatus == 1">查看使用情况</a> <a @click="handleJump(item, 'journey/index')" v-if="item.instStatus == 1 && isShow('/journey/index')">查看使用情况</a>
<a @click="handleJump(item, 'journeyConfig/config')" v-else>去使用</a> <a @click="handleJump(item, 'journeyConfig/config')" v-if="item.instStatus == 0 && isShow('/journeyConfig/config')">去使用</a>
<div :class="{ 'analysis-item-status': true, 'is-disable': item.instStatus != 1 }"> <div :class="{ 'analysis-item-status': true, 'is-disable': item.instStatus != 1 }">
<i :class="`${getStatusValue(item, 'icon')}`"></i> <i :class="`${getStatusValue(item, 'icon')}`"></i>
<span>{{ getStatusValue(item, 'label') }}</span> <span>{{ getStatusValue(item, 'label') }}</span>
...@@ -33,6 +33,7 @@ const STATUS = [ ...@@ -33,6 +33,7 @@ const STATUS = [
{ label: '已禁用', value: -1, icon: 'el-icon-remove-outline' } { label: '已禁用', value: -1, icon: 'el-icon-remove-outline' }
] ]
import { mapMutations } from 'vuex' import { mapMutations } from 'vuex'
import util from '@/utils/util'
export default { export default {
data() { data() {
return { return {
...@@ -100,6 +101,9 @@ export default { ...@@ -100,6 +101,9 @@ export default {
}, },
methods: { methods: {
...mapMutations('journey', ['SET_JOURNEY_NUM']), ...mapMutations('journey', ['SET_JOURNEY_NUM']),
isShow(url) {
return util.isShowBtn(url, null)
},
async byGroupIdSop() { async byGroupIdSop() {
const res = await this.$apis.journey.byGroupIdSop({ groupId: this.$globalState.session.merchantId, pageNumber: 1, pageSize: 1000 }) const res = await this.$apis.journey.byGroupIdSop({ groupId: this.$globalState.session.merchantId, pageNumber: 1, pageSize: 1000 })
const journeyList = res.list || [] const journeyList = res.list || []
......
...@@ -97,9 +97,12 @@ ...@@ -97,9 +97,12 @@
<span>个</span> <span>个</span>
</div> </div>
<div class="step-title-h3 text-center">客户旅程数</div> <div class="step-title-h3 text-center">客户旅程数</div>
<div class="step-operation" @click="jumpUrl('/scene/journeyConfig/index')"> <div class="step-operation" @click="jumpUrl('/scene/journeyConfig/index')" v-if="isShow('/journeyConfig/index')">
<label>旅程配置</label> <label>旅程配置</label>
</div> </div>
<div class="step-operation" v-else>
<label>无权限</label>
</div>
</div> </div>
</div> </div>
<div class="home-data-item"> <div class="home-data-item">
...@@ -119,6 +122,7 @@ ...@@ -119,6 +122,7 @@
</template> </template>
<script> <script>
import util from '@/utils/util'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
export default { export default {
name: 'homeStep', name: 'homeStep',
...@@ -146,6 +150,9 @@ export default { ...@@ -146,6 +150,9 @@ export default {
jumpUrl(url) { jumpUrl(url) {
this.$history.push(url) this.$history.push(url)
}, },
isShow(url) {
return util.isShowBtn(url, null)
},
viewData() { viewData() {
this.loading = true this.loading = true
this.$apis.home.viewData({}).then(res => { this.$apis.home.viewData({}).then(res => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!