|
@@ -7,19 +7,19 @@
|
|
|
</span>
|
|
|
</div>
|
|
|
<div class="content" v-if="zhcontent == '234557'">
|
|
|
- <div class="content-icon" @click="entrust?inPage('wt'):'JZ'">
|
|
|
+ <div class="content-icon" @click="entrust ? inPage('wt') : 'JZ'">
|
|
|
<i class="tradingIcon icon-purchase" style="color:#75CD28"></i>
|
|
|
<span>委托</span>
|
|
|
</div>
|
|
|
- <div class="content-icon" @click="dispatch?inPage('dd'):'JZ'">
|
|
|
+ <div class="content-icon" @click="dispatch ? inPage('dd') : 'JZ'">
|
|
|
<i class="tradingIcon icon-receipt" style="color:#409EFF"></i>
|
|
|
<span>调度</span>
|
|
|
</div>
|
|
|
- <div class="content-icon" @click="sendACar?inPage('pc'):'JZ'">
|
|
|
+ <div class="content-icon" @click="sendACar ? inPage('pc') : 'JZ'">
|
|
|
<i class="tradingIcon icon-ship" style="color:#921939"></i>
|
|
|
<span>派车</span>
|
|
|
</div>
|
|
|
- <div class="content-icon" @click="track?inPage('gz'):'JZ'">
|
|
|
+ <div class="content-icon" @click="track ? inPage('gz') : 'JZ'">
|
|
|
<i class="tradingIcon icon-ship" style="color:#7db4ff"></i>
|
|
|
<span>跟踪</span>
|
|
|
</div>
|
|
@@ -27,116 +27,126 @@
|
|
|
<i class="tradingIcon icon-ship" style="color:#efc860"></i>
|
|
|
<span>散货</span>
|
|
|
</div>
|
|
|
- <div class="content-icon" @click="sBook?inPage('lytz'):'JZ'">
|
|
|
+ <div class="content-icon" @click="sBook ? inPage('lytz') : 'JZ'">
|
|
|
<i class="tradingIcon icon-sales" style="color:#143056"></i>
|
|
|
<span>台账</span>
|
|
|
</div>
|
|
|
- <div class="content-icon" @click="reminder?inPage('dqtx'):'JZ'">
|
|
|
- <div style="width: 36px;height: 36px;background-color: #3a8ee6;border-radius: 5px;line-height: 36px;text-align: center;padding-top: 4px">
|
|
|
+ <div class="content-icon" @click="reminder ? inPage('dqtx') : 'JZ'">
|
|
|
+ <div
|
|
|
+ style="width: 36px;height: 32px;background-color: #3a8ee6;border-radius: 5px;line-height: 36px;text-align: center;padding-top: 4px">
|
|
|
<i class="el-icon-bell" style="color:#fff;font-size: 28px;"></i>
|
|
|
</div>
|
|
|
<span>到期提醒</span>
|
|
|
</div>
|
|
|
+ <div class="content-icon" @click="inPage('smart')" v-if="sysType == 7">
|
|
|
+ <div
|
|
|
+ style="width: 36px;height: 32px;background-color: #3a8ee6;border-radius: 5px;line-height: 36px;text-align: center;padding-top: 4px">
|
|
|
+ <i class="el-icon-basketball" style="color:#fff;font-size: 28px;"></i>
|
|
|
+ </div>
|
|
|
+ <span>智慧大屏</span>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
|
|
|
- <div class="content" v-if="zhcontent == '119111'">
|
|
|
- <div class="content-icon" @click="entrust?dajian('wt'):'JZ'">
|
|
|
- <i class="tradingIcon icon-purchase" style="color:#75CD28"></i>
|
|
|
- <span>特种委托</span>
|
|
|
- </div>
|
|
|
- <div class="content-icon" @click="dispatch?dajian('dd'):'JZ'">
|
|
|
- <i class="tradingIcon icon-receipt" style="color:#409EFF"></i>
|
|
|
- <span>特种调度</span>
|
|
|
- </div>
|
|
|
- <div class="content-icon" @click="sendACar?dajian('pc'):'JZ'">
|
|
|
- <i class="tradingIcon icon-ship" style="color:#921939"></i>
|
|
|
- <span>特种派车</span>
|
|
|
- </div>
|
|
|
- <div class="content-icon" @click="track?dajian('gz'):'JZ'">
|
|
|
- <i class="tradingIcon icon-ship" style="color:#7db4ff"></i>
|
|
|
- <span>特种跟踪</span>
|
|
|
- </div>
|
|
|
- <div class="content-icon" @click="sBook?dajian('lytz'):'JZ'">
|
|
|
- <i class="tradingIcon icon-sales" style="color:#143056"></i>
|
|
|
- <span>特种台账</span>
|
|
|
- </div>
|
|
|
+ <div class="content" v-if="zhcontent == '119111'">
|
|
|
+ <div class="content-icon" @click="entrust ? dajian('wt') : 'JZ'">
|
|
|
+ <i class="tradingIcon icon-purchase" style="color:#75CD28"></i>
|
|
|
+ <span>特种委托</span>
|
|
|
+ </div>
|
|
|
+ <div class="content-icon" @click="dispatch ? dajian('dd') : 'JZ'">
|
|
|
+ <i class="tradingIcon icon-receipt" style="color:#409EFF"></i>
|
|
|
+ <span>特种调度</span>
|
|
|
+ </div>
|
|
|
+ <div class="content-icon" @click="sendACar ? dajian('pc') : 'JZ'">
|
|
|
+ <i class="tradingIcon icon-ship" style="color:#921939"></i>
|
|
|
+ <span>特种派车</span>
|
|
|
+ </div>
|
|
|
+ <div class="content-icon" @click="track ? dajian('gz') : 'JZ'">
|
|
|
+ <i class="tradingIcon icon-ship" style="color:#7db4ff"></i>
|
|
|
+ <span>特种跟踪</span>
|
|
|
+ </div>
|
|
|
+ <div class="content-icon" @click="sBook ? dajian('lytz') : 'JZ'">
|
|
|
+ <i class="tradingIcon icon-sales" style="color:#143056"></i>
|
|
|
+ <span>特种台账</span>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
</el-card>
|
|
|
- <el-dialog
|
|
|
- title="消息提醒"
|
|
|
- :visible.sync="enclosure"
|
|
|
- append-to-body
|
|
|
- width="70%">
|
|
|
+ <el-dialog title="消息提醒" :visible.sync="enclosure" append-to-body width="70%">
|
|
|
<avue-crud :data="data" @on-load="onLoad" :option="option" :page.sync="page"></avue-crud>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="enclosure = false" size="small">取 消</el-button>
|
|
|
- </span>
|
|
|
+ <el-button @click="enclosure = false" size="small">取 消</el-button>
|
|
|
+ </span>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import {driverRemind} from "@/api/landTransportation/driver";
|
|
|
-
|
|
|
+import { driverRemind } from "@/api/landTransportation/driver";
|
|
|
+import { getToken } from "@/util/auth";
|
|
|
export default {
|
|
|
name: "basicContainer",
|
|
|
data() {
|
|
|
return {
|
|
|
- enclosure:false,
|
|
|
- data:[],
|
|
|
+ enclosure: false,
|
|
|
+ data: [],
|
|
|
roleName: localStorage.getItem("roleName").split(','),
|
|
|
- option:{
|
|
|
- align:'center',
|
|
|
- dialogWidth:'85%',
|
|
|
+ option: {
|
|
|
+ align: 'center',
|
|
|
+ dialogWidth: '85%',
|
|
|
index: true,
|
|
|
searchIcon: true,
|
|
|
- addBtn:false,
|
|
|
+ addBtn: false,
|
|
|
searchIndex: 2,
|
|
|
- menu:false,
|
|
|
- refreshBtn:false,
|
|
|
- searchLabelWidth:100,
|
|
|
- searchSpan:8,
|
|
|
- column:[{
|
|
|
+ menu: false,
|
|
|
+ refreshBtn: false,
|
|
|
+ searchLabelWidth: 100,
|
|
|
+ searchSpan: 8,
|
|
|
+ column: [{
|
|
|
label: '车队',
|
|
|
prop: 'fleetName',
|
|
|
- },{
|
|
|
+ }, {
|
|
|
label: '车号',
|
|
|
prop: 'plateNo',
|
|
|
- },{
|
|
|
+ }, {
|
|
|
label: '司机',
|
|
|
prop: 'driverName',
|
|
|
- },{
|
|
|
+ }, {
|
|
|
label: '电话',
|
|
|
prop: 'tel',
|
|
|
- },{
|
|
|
+ }, {
|
|
|
label: '年审日期',
|
|
|
prop: 'inspectExpired',
|
|
|
- },{
|
|
|
+ }, {
|
|
|
label: '保险日期',
|
|
|
prop: 'insuranceExpired',
|
|
|
}]
|
|
|
},
|
|
|
- entrust:false,
|
|
|
- dispatch:false,
|
|
|
- sBook:false,
|
|
|
- reminder:false,
|
|
|
- sendACar:false,
|
|
|
- track:false,
|
|
|
- // 租户号
|
|
|
- zhcontent:null
|
|
|
+ entrust: false,
|
|
|
+ dispatch: false,
|
|
|
+ sBook: false,
|
|
|
+ reminder: false,
|
|
|
+ sendACar: false,
|
|
|
+ track: false,
|
|
|
+ // 租户号
|
|
|
+ zhcontent: null,
|
|
|
+ largeScreenToken:'',
|
|
|
};
|
|
|
},
|
|
|
props: {
|
|
|
sysType: Number
|
|
|
},
|
|
|
- created() {
|
|
|
- this.$nextTick(()=>{
|
|
|
- this.zhcontent = JSON.parse(localStorage.getItem('saber-tenantId')).content
|
|
|
- console.log(JSON.parse(localStorage.getItem('saber-tenantId')).content)
|
|
|
+ created() {
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.zhcontent = JSON.parse(localStorage.getItem('saber-tenantId')).content
|
|
|
+ console.log(JSON.parse(localStorage.getItem('saber-tenantId')).content)
|
|
|
+ })
|
|
|
+ if (this.sysType == 7) {
|
|
|
+ this.getWorkDicts('large_screen').then(res => {
|
|
|
+ this.largeScreenToken = res.data.data[0].dictKey;
|
|
|
})
|
|
|
- },
|
|
|
+ }
|
|
|
+ },
|
|
|
|
|
|
- mounted() {
|
|
|
+ mounted() {
|
|
|
// entrust
|
|
|
// 委托
|
|
|
// dispatch
|
|
@@ -149,27 +159,27 @@ export default {
|
|
|
// 台账
|
|
|
// reminder
|
|
|
// 到期提醒
|
|
|
- if (this.roleName.indexOf('admin') !== -1 || this.roleName.indexOf('演示账号') !== -1){
|
|
|
+ if (this.roleName.indexOf('admin') !== -1 || this.roleName.indexOf('演示账号') !== -1) {
|
|
|
this.entrust = true
|
|
|
this.dispatch = true
|
|
|
this.sBook = true
|
|
|
this.reminder = true
|
|
|
this.sendACar = true
|
|
|
this.track = true
|
|
|
- }else if (this.roleName.indexOf('平台') !== -1){
|
|
|
- if (this.roleName.indexOf('总调度') !== -1 || this.roleName.indexOf('分管调度') !== -1){
|
|
|
+ } else if (this.roleName.indexOf('平台') !== -1) {
|
|
|
+ if (this.roleName.indexOf('总调度') !== -1 || this.roleName.indexOf('分管调度') !== -1) {
|
|
|
// 调度、台账、到期提醒
|
|
|
this.entrust = true //委托
|
|
|
this.dispatch = true //调度
|
|
|
this.sBook = true //台账
|
|
|
this.reminder = true //到期提醒
|
|
|
}
|
|
|
- }else if (this.roleName.indexOf('客户') !== -1){
|
|
|
- if (this.roleName.indexOf('总经理') !== -1 || this.roleName.indexOf('部门经理') !== -1 || this.roleName.indexOf('业务员') !== -1){
|
|
|
+ } else if (this.roleName.indexOf('客户') !== -1) {
|
|
|
+ if (this.roleName.indexOf('总经理') !== -1 || this.roleName.indexOf('部门经理') !== -1 || this.roleName.indexOf('业务员') !== -1) {
|
|
|
// 委托、台账
|
|
|
this.entrust = true //委托
|
|
|
this.sBook = true //台账
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
this.entrust = true
|
|
|
this.sBook = true
|
|
|
this.dispatch = false
|
|
@@ -177,7 +187,7 @@ export default {
|
|
|
this.sendACar = false
|
|
|
this.track = false
|
|
|
}
|
|
|
- }else if (this.roleName.indexOf('车队') !== -1){
|
|
|
+ } else if (this.roleName.indexOf('车队') !== -1) {
|
|
|
this.sendACar = true
|
|
|
this.track = true
|
|
|
this.sBook = true
|
|
@@ -208,32 +218,39 @@ export default {
|
|
|
case "dqtx":
|
|
|
this.enclosure = true
|
|
|
break;
|
|
|
+ case "smart":
|
|
|
+ if ((localStorage.getItem("roleName").split(',')).indexOf('admin') !== -1) {
|
|
|
+ window.open('http://114.115.238.226:9527/view/' + this.largeScreenToken + '?token=' + getToken())
|
|
|
+ } else {
|
|
|
+ this.$message.error('此帐号无权限');
|
|
|
+ }
|
|
|
+ break;
|
|
|
}
|
|
|
},
|
|
|
|
|
|
- dajian(type) {
|
|
|
- switch (type) {
|
|
|
- case "wt":
|
|
|
- this.$router.push("/SpecialTrade/placeAnOrder/index");
|
|
|
- break;
|
|
|
- case "dd":
|
|
|
- this.$router.push("/SpecialTrade/dispatchingCars/index");
|
|
|
- break;
|
|
|
- case "pc":
|
|
|
- this.$router.push("/SpecialTrade/motorcadeDriver/index");
|
|
|
- break;
|
|
|
- case "gz":
|
|
|
- this.$router.push("/SpecialTrade/driver/index");
|
|
|
- break;
|
|
|
- case "lytz":
|
|
|
- this.$router.push("/SpecialTrade/reportAnalysis/index");
|
|
|
- break;
|
|
|
- }
|
|
|
- },
|
|
|
+ dajian(type) {
|
|
|
+ switch (type) {
|
|
|
+ case "wt":
|
|
|
+ this.$router.push("/SpecialTrade/placeAnOrder/index");
|
|
|
+ break;
|
|
|
+ case "dd":
|
|
|
+ this.$router.push("/SpecialTrade/dispatchingCars/index");
|
|
|
+ break;
|
|
|
+ case "pc":
|
|
|
+ this.$router.push("/SpecialTrade/motorcadeDriver/index");
|
|
|
+ break;
|
|
|
+ case "gz":
|
|
|
+ this.$router.push("/SpecialTrade/driver/index");
|
|
|
+ break;
|
|
|
+ case "lytz":
|
|
|
+ this.$router.push("/SpecialTrade/reportAnalysis/index");
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ },
|
|
|
|
|
|
//查询
|
|
|
onLoad() {
|
|
|
- driverRemind().then(res=>{
|
|
|
+ driverRemind().then(res => {
|
|
|
this.data = res.data.data
|
|
|
})
|
|
|
}
|
|
@@ -246,32 +263,38 @@ export default {
|
|
|
padding: 5px;
|
|
|
box-sizing: border-box;
|
|
|
height: 100%;
|
|
|
+
|
|
|
::v-deep .el-card__body {
|
|
|
padding: 10px 15px;
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
+
|
|
|
&__card {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
}
|
|
|
+
|
|
|
.title {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.tradingIcon {
|
|
|
font-size: 36px;
|
|
|
}
|
|
|
+
|
|
|
.content {
|
|
|
display: flex;
|
|
|
+
|
|
|
&-icon {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
align-items: center;
|
|
|
margin: 1.5vh 1vw 0vh 1vw;
|
|
|
+
|
|
|
span {
|
|
|
margin-top: 1vh;
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
-</style>
|
|
|
+}</style>
|