首页修改

This commit is contained in:
曹前明 2022-09-06 15:51:06 +08:00
parent 1a1d809fe3
commit f9868d0494
15 changed files with 86 additions and 48 deletions

View File

@ -7,8 +7,9 @@ VUE_APP_TITLE = '曲阳金隅安全智能管控平台'
# 接口地址
#VUE_APP_API_BASEURL = http://1.203.161.103:2800/api
#VUE_APP_WS_API = 'ws://localhost:8000'
VUE_APP_API_BASEURL = http://10.99.5.79:20309/api
#VUE_APP_BASEURL = http://127.0.0.1:8000
#VUE_APP_API_BASEURL = http://10.99.5.79:20309/api
VUE_APP_API_BASEURL = http://127.0.0.1:8000/api
VUE_APP_BASEURL = http://127.0.0.1:8000
# 本地端口
VUE_APP_PORT = 2800

BIN
public/img/driver.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@ -4,7 +4,7 @@ import http from "@/utils/request"
export default {
employee: {
list: {
name: "获取企业员工",
name: "获取正式员工",
req: async function(data){
return await http.get(
`${config.API_URL}/hrm/employee/`,
@ -19,7 +19,7 @@ export default {
}
},
item: {
name: "获取企业员工",
name: "获取正式员工",
req: async function(id){
return await http.get(
`${config.API_URL}/hrm/employee/${id}/`,

View File

@ -229,7 +229,7 @@ export default {
// choseTypeOptions: [
// {
// value: 'employee',
// label: ''
// label: ''
// },
// {
// value: 'remployee',
@ -237,7 +237,7 @@ export default {
// }
// ]
userTypeOptions :{
'employee': '企业员工',
'employee': '正式员工',
'remployee': '相关方',
'visitor': '访客'
}

View File

@ -233,7 +233,7 @@ export default {
choseTypeOptions: [
{
value: 'employee',
label: '企业员工'
label: '正式员工'
},
{
value: 'remployee',
@ -249,7 +249,7 @@ export default {
}
],
userTypeOptions :{
'employee': '企业员工',
'employee': '正式员工',
'remployee': '相关方',
'visitor': '访客'
}

View File

@ -70,8 +70,8 @@
</el-scrollbar>
</el-main>
<el-footer>
<el-button type="primary">消息中心</el-button>
<el-button @click="markRead">全部设为已读</el-button>
<el-button type="primary" @click="goEvent">事件中心</el-button>
<!-- <el-button @click="markRead">全部设为已读</el-button> -->
</el-footer>
</el-container>
</el-drawer>
@ -136,6 +136,9 @@ export default {
this.msgList = res;
});
},
goEvent() {
this.$router.push({name:"event"})
},
createhandele(id) {
this.$router.push({
name: "eventhandlefrom",

View File

@ -54,7 +54,7 @@
:class="{'active':dropIndex==='1'}">全部
</div>
<div @click="changeDropIndex('2')" class="drop-content-item"
:class="{'active':dropIndex==='2'}">内部员工
:class="{'active':dropIndex==='2'}">正式员工
<div></div>
</div>
<div @click="changeDropIndex('3')" class="drop-content-item"
@ -105,7 +105,7 @@
<div class="count-list-item">
<div class="item-img item-img2"></div>
<div class="item-info">
<div title="员工" class="normal">内部员工</div>
<div title="员工" class="normal">正式员工</div>
<div class="bottom">
<span class="large">{{ userCount.count_employee }}</span>&nbsp;<span
class="normal"></span>
@ -383,7 +383,7 @@
</div>
<div class="info-item">
<span class="info-item-name">类型</span>
<span class="info-item-info" v-if="screenUserItem.type === 'employee'">内部员工</span>
<span class="info-item-info" v-if="screenUserItem.type === 'employee'">正式员工</span>
<span class="info-item-info" v-else>访客</span>
</div>
<div class="info-item">
@ -800,7 +800,7 @@ export default {
//
userCount: {
total: 0,
count_employee: 0,//
count_employee: 0,//
count_remployee: 0,//访
count_visitor: 0//
},
@ -1094,8 +1094,8 @@ export default {
obj.label = '全部';
} else if (i === 1) {
obj.id = '';
obj.name = '内部员工';
obj.label = '内部员工';
obj.name = '正式员工';
obj.label = '正式员工';
obj.children = children;
} else if (i === 2) {
obj.id = '';

View File

@ -1,18 +1,15 @@
<template>
<el-container>
<!-- <el-header>
<el-header>
<div class="left-panel">
<el-button type="primary" icon="el-icon-plus" @click="add"></el-button>
<el-button type="danger" plain icon="el-icon-delete" :disabled="selection.length==0" @click="batch_del"></el-button>
<el-button type="primary" plain :disabled="selection.length!=1" @click="permission">权限设置</el-button>
<el-select v-model="query.cates" placeholder="事件种类" @change="handleQuery">
<el-option v-for="item in cateOptions" :key="item.id">{{item.name}}</el-option>
</el-select>
</div>
<div class="right-panel">
<div class="right-panel-search">
<el-input v-model="query.search" placeholder="姓名/手机号" clearable @click="handleQuery"></el-input>
<el-button type="primary" icon="el-icon-search" @click="handleQuery"></el-button>
</div>
</div>
</el-header> -->
</el-header>
<el-main class="nopadding">
<scTable
ref="table"
@ -47,7 +44,7 @@
scope.row.employee_.type != '' &&
scope.row.employee_.type == 'employee'
"
>企业员工</span
>正式员工</span
>
<span
v-if="

View File

@ -167,7 +167,7 @@ export default {
show: "事件信息查看",
},
type_options: [
{ id: "employee", name: "企业员工" },
{ id: "employee", name: "正式员工" },
{ id: "remployee", name: "相关方" },
{ id: "visitor", name: "访客" },
],

View File

@ -167,12 +167,12 @@ export default {
show: "事件信息查看",
},
type_options: [
{ id: "employee", name: "企业员工" },
{ id: "employee", name: "正式员工" },
{ id: "remployee", name: "相关方" },
{ id: "visitor", name: "访客" },
],
type_options2: {
employee: "企业员工",
employee: "正式员工",
remployee: "相关方",
visitor: "访客",
},

View File

@ -11,7 +11,7 @@
<div v-for="item in dutyAgg" :key="item.workflow">
<el-badge :value="item.count" class="item">
<el-button
icon="el-icon-document-copy"
icon="el-icon-promotion"
type="primary"
size="small"
@click="toTicket"
@ -71,7 +71,7 @@
scope.row.employee_.type != '' &&
scope.row.employee_.type == 'employee'
"
>企业员工</span
>正式员工</span
>
<span
v-if="

View File

@ -12,8 +12,8 @@
<el-badge :value="operationnumber" class="item">
<el-button
class="projecting"
icon="el-icon-document-copy"
type="primary"
icon="el-icon-bell"
type="danger"
size="small"
></el-button>
</el-badge>
@ -23,23 +23,34 @@
<el-badge :value="rpjnumber" class="item">
<el-button
class="projecting"
icon="el-icon-document-copy"
icon="el-icon-user"
type="success"
size="small"
></el-button>
</el-badge>
<div style="font-size: 16px">相关方入厂</div>
</div>
<div>
<el-badge :value="visitnumber2" class="item">
<el-button
class="projecting"
icon="el-icon-van"
type="warning"
size="small"
></el-button>
</el-badge>
<div style="font-size: 16px">相关方项目</div>
<div style="font-size: 16px">拉送货</div>
</div>
<div>
<el-badge :value="visitnumber" class="item">
<el-button
class="projecting"
icon="el-icon-document-copy"
type="success"
icon="el-icon-view"
type="primary"
size="small"
></el-button>
</el-badge>
<div style="font-size: 16px">来访项目</div>
<div style="font-size: 16px">来访</div>
</div>
</div>
</el-card>
@ -61,7 +72,7 @@
<div class="count-list-item">
<div class="item-img item-img1"></div>
<div class="item-info">
<div title="员工" class="normal">内部员工</div>
<div title="正式员工" class="normal">正式员工</div>
<div class="bottom">
<span class="large">{{ userCount.count_employee }}</span
>&nbsp;<span class="normal"></span>
@ -71,17 +82,27 @@
<div class="count-list-item">
<div class="item-img item-img3"></div>
<div class="item-info">
<div title="承包商" class="normal">相关方</div>
<div title="相关方" class="normal">相关方</div>
<div class="bottom">
<span class="large">{{ userCount.count_remployee }}</span
>&nbsp;<span class="normal"></span>
</div>
</div>
</div>
<div class="count-list-item">
<div class="item-img item-img4"></div>
<div class="item-info">
<div title="司机" class="normal">货车司机</div>
<div class="bottom">
<span class="large">{{ userCount.count_driver }}</span
>&nbsp;<span class="normal"></span>
</div>
</div>
</div>
<div class="count-list-item">
<div class="item-img item-img2"></div>
<div class="item-info">
<div title="外来人员" class="normal">访客</div>
<div title="访客" class="normal">访客</div>
<div class="bottom">
<span class="large">{{ userCount.count_visitor }}</span
>&nbsp;<span class="normal"></span>
@ -105,13 +126,15 @@ export default {
ep_count_type: "2",
userCount: {
total: 0,
count_employee: 0, //
count_employee: 0, //
count_remployee: 0, //访
count_visitor: 0, //
count_driver: 0,
},
operationnumber: null,
rpjnumber: null,
visitnumber: null,
operationnumber: 0,
rpjnumber: 0,
visitnumber: 0,
visitnumber2: 0,
};
},
created() {
@ -120,6 +143,7 @@ export default {
this.getOperation();
this.getRpj();
this.getVisit();
this.getVisit2();
},
methods: {
//
@ -175,6 +199,14 @@ export default {
this.visitnumber = res.count;
});
},
//
getVisit2() {
this.$API.vm.visit.list
.req({ page: 1, page_size: 1, state: 40, type: 50 })
.then((res) => {
this.visitnumber2 = res.count;
});
},
},
};
</script>
@ -296,6 +328,11 @@ export default {
background-size: 100% 100%;
}
.item-img4 {
background: url(/public/img/driver.png) no-repeat;
background-size: 100% 100%;
}
.item-info {
.normal {
font-size: 12px;

View File

@ -199,7 +199,7 @@ export default {
employee: "",
},
userTypeOptions: {
employee: "企业员工",
employee: "正式员工",
remployee: "相关方",
visitor: "访客",
},

View File

@ -173,7 +173,7 @@
isSaveing: false,
form: defaultForm,
epTypes: {
'employee': "企业员工",
'employee': "正式员工",
"remployee": "相关方",
"visitor": "访客"
},

View File

@ -277,7 +277,7 @@ export default {
temp: [],
postList: [],
userTypeOptions :{
'employee': '企业员工',
'employee': '正式员工',
'remployee': '相关方',
'visitor': '访客'
},