|
@@ -1,5 +1,10 @@
|
|
|
<template>
|
|
|
<div class="all boxMinHeight">
|
|
|
+ <div class="flex-box ts flex-center-center" v-if="isSubject">
|
|
|
+ <img mode="scaleToFill" src="@/assets/image/tz.png" />
|
|
|
+ <div class="flex-1">你正在使用个人体验版,如需正式使用,请联系管理员</div>
|
|
|
+ <div class="btn" type="primary" @click="openGly">联系管理员</div>
|
|
|
+ </div>
|
|
|
<div>
|
|
|
<div class="left-main" v-if="$getRole(1)">
|
|
|
<div class="flex-box-ce" v-if="entranceList.length > 0">
|
|
@@ -189,26 +194,6 @@
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
</div>
|
|
|
- <!-- 常见问题 -->
|
|
|
-<!-- <div class="wt">
|
|
|
- <div class="flex-box-ce"><div class="wt-title flex-1">常见问题</div></div>
|
|
|
- <div class="wts" v-for="(item, index) in issueList" :key="index">
|
|
|
- <div class="flex-box-ce wt-item">
|
|
|
- <span class="fontColorF flex-box-ce">
|
|
|
- <span class="zmBox">Q</span>
|
|
|
- 问题:
|
|
|
- </span>
|
|
|
- <span class="flex-1">{{ item.title }}</span>
|
|
|
- </div>
|
|
|
- <div class="flex-box wt-item">
|
|
|
- <span class="fontColorF flex-box">
|
|
|
- <span class="zmBox" style="background-color: #8E9296;">A</span>
|
|
|
- 回答:
|
|
|
- </span>
|
|
|
- <span class="flex-1">{{ item.content }}</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div> -->
|
|
|
</div>
|
|
|
<!-- 跟踪管理 -->
|
|
|
<TrackManagement
|
|
@@ -227,11 +212,14 @@
|
|
|
import ECharts from 'echarts';
|
|
|
import TrackManagement from '@/components/public/TrackManagement';
|
|
|
import JxSearch from '@/components/public/JxSearch';
|
|
|
+import { contactAdminToUseApp } from 'dingtalk-design-libs';
|
|
|
export default {
|
|
|
name: 'home',
|
|
|
components: { JxSearch, TrackManagement },
|
|
|
data() {
|
|
|
return {
|
|
|
+ isSubject: false, //判断是否是个人版进入
|
|
|
+ mainCorpId: '', //如果是个人版,这个企业ID是登录者所在的企业ID,不是钉钉那边提供的隐藏企业ID
|
|
|
day: this.$moment().format('YYYY-MM-DD'),
|
|
|
editableTabs: [
|
|
|
{ title: '全部待办', name: '0', num: 0 },
|
|
@@ -291,15 +279,6 @@ export default {
|
|
|
this.getAgency();
|
|
|
this.getMessage();
|
|
|
this.glIndex == '1' ? this.getManagement() : this.getScorerRecord();
|
|
|
- // var url = window.location.href;
|
|
|
- // var rUrl = this.GetRequest(url).url || '';
|
|
|
- // this.$nextTick(function() {
|
|
|
- // if (rUrl) {
|
|
|
- // setTimeout(() => {
|
|
|
- // this.$router.push({ path: '/' + decodeURIComponent(rUrl) });
|
|
|
- // }, 200);
|
|
|
- // }
|
|
|
- // });
|
|
|
},
|
|
|
created() {
|
|
|
this.setMenu();
|
|
@@ -309,15 +288,11 @@ export default {
|
|
|
this.getAgency();
|
|
|
this.getMessage();
|
|
|
this.assessTree();
|
|
|
- // var url = window.location.href;
|
|
|
- // var rUrl = this.GetRequest(url).url || '';
|
|
|
- // this.$nextTick(function() {
|
|
|
- // if (rUrl) {
|
|
|
- // setTimeout(() => {
|
|
|
- // this.$router.push({ path: '/' + decodeURIComponent(rUrl) });
|
|
|
- // }, 200);
|
|
|
- // }
|
|
|
- // });
|
|
|
+ // 个人版处理
|
|
|
+ if (this.$getUserData().is_personal == 1) {
|
|
|
+ this.isSubject = true;
|
|
|
+ this.mainCorpId = this.$getUserData().main_corp_id;
|
|
|
+ }
|
|
|
},
|
|
|
watch: {
|
|
|
activeName() {
|
|
@@ -336,6 +311,12 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ openGly() {
|
|
|
+ contactAdminToUseApp({ id: '109758', corpId: this.mainCorpId }).catch(err => {
|
|
|
+ // 入参不正确,或者遇到技术异常时才会进入这个链路
|
|
|
+ console.error(err);
|
|
|
+ });
|
|
|
+ },
|
|
|
GetRequest(urlStr) {
|
|
|
if (typeof urlStr == 'undefined') {
|
|
|
var url = decodeURI(location.search); //获取url中"?"符后的字符串
|
|
@@ -679,6 +660,34 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style scoped="scoped">
|
|
|
+ .ts {
|
|
|
+ height: 64px;
|
|
|
+ padding: 8px 16px;
|
|
|
+ font-size: 14px;
|
|
|
+ color: #089fff;
|
|
|
+ background: #e6f3ff;
|
|
|
+ font-weight: 500;
|
|
|
+ box-sizing: border-box;
|
|
|
+ margin-bottom: 10px;
|
|
|
+ }
|
|
|
+ .ts img {
|
|
|
+ width: 24px;
|
|
|
+ height: 24px;
|
|
|
+ }
|
|
|
+ .ts .flex-1 {
|
|
|
+ padding: 0 8px;
|
|
|
+ }
|
|
|
+ .ts .btn {
|
|
|
+ width: 94px;
|
|
|
+ height: 28px;
|
|
|
+ background-color: #089fff;
|
|
|
+ line-height: 28px;
|
|
|
+ font-size: 14px;
|
|
|
+ color: #fff;
|
|
|
+ border-radius: 3px;
|
|
|
+ cursor: pointer;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
.actionText {
|
|
|
}
|
|
|
.zmBox {
|