This commit is contained in:
shijing 2022-10-28 10:56:02 +08:00
commit 8d20056f4a
5 changed files with 40 additions and 49 deletions

View File

@ -10,45 +10,25 @@
<div class="card-body">
<div>
<el-badge :value="operationnumber" class="item">
<el-button
class="projecting"
icon="el-icon-bell"
type="danger"
size="small"
></el-button>
<el-button class="projecting" icon="el-icon-bell" type="danger" size="small"></el-button>
</el-badge>
<div style="font-size: 16px">危险作业</div>
</div>
<div>
<el-badge :value="rpjnumber" class="item">
<el-button
class="projecting"
icon="el-icon-user"
type="success"
size="small"
></el-button>
<el-button class="projecting" 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-button class="projecting" icon="el-icon-van" type="warning" size="small"></el-button>
</el-badge>
<div style="font-size: 16px">拉送货</div>
</div>
<div>
<el-badge :value="visitnumber" class="item">
<el-button
class="projecting"
icon="el-icon-view"
type="primary"
size="small"
></el-button>
<el-button class="projecting" icon="el-icon-view" type="primary" size="small"></el-button>
</el-badge>
<div style="font-size: 16px">来访</div>
</div>
@ -74,8 +54,7 @@
<div class="item-info">
<div title="正式员工" class="normal">正式员工</div>
<div class="bottom">
<span class="large">{{ userCount.count_employee }}</span
>&nbsp;<span class="normal"></span>
<span class="large">{{ userCount.count_employee }}</span>&nbsp;<span class="normal"></span>
</div>
</div>
</div>
@ -84,8 +63,7 @@
<div class="item-info">
<div title="相关方" class="normal">相关方</div>
<div class="bottom">
<span class="large">{{ userCount.count_remployee }}</span
>&nbsp;<span class="normal"></span>
<span class="large">{{ userCount.count_remployee }}</span>&nbsp;<span class="normal"></span>
</div>
</div>
</div>
@ -94,8 +72,7 @@
<div class="item-info">
<div title="司机" class="normal">货车司机</div>
<div class="bottom">
<span class="large">{{ userCount.count_driver }}</span
>&nbsp;<span class="normal"></span>
<span class="large">{{ userCount.count_driver }}</span>&nbsp;<span class="normal"></span>
</div>
</div>
</div>
@ -104,8 +81,7 @@
<div class="item-info">
<div title="访客" class="normal">访客</div>
<div class="bottom">
<span class="large">{{ userCount.count_visitor }}</span
>&nbsp;<span class="normal"></span>
<span class="large">{{ userCount.count_visitor }}</span>&nbsp;<span class="normal"></span>
</div>
</div>
</div>
@ -143,7 +119,6 @@ export default {
this.getManCount(); //$$
this.getOperation();
this.getRpj();
this.getVisit();
this.getVisit2();
},
methods: {
@ -203,9 +178,14 @@ export default {
//
getVisit2() {
this.$API.vm.visit.list
.req({ page: 1, page_size: 1, state: 40, type: 50 })
.req({ page: 1, page_size: 1, state: 40, purpose: 50 })
.then((res) => {
this.visitnumber2 = res.count;
this.$API.vm.visit.list
.req({ page: 1, page_size: 1, state: 40 })
.then((res2) => {
this.visitnumber = res2.count - this.visitnumber2;
});
});
},
},
@ -218,6 +198,7 @@ export default {
height: 45px;
font-size: 25px;
}
.welcome .logo {
text-align: center;
}
@ -261,10 +242,12 @@ export default {
color: var(--el-color-primary);
background: rgba(180, 180, 180, 0.1);
}
.item {
margin-top: 10px;
margin-right: 40px;
}
.tips-item-message {
flex: 1;
font-size: 14px;
@ -274,11 +257,14 @@ export default {
background: url(/public/img/zuoye.png) no-repeat;
background-size: 100% 100%;
}
.actions {
text-align: center;
margin: 40px 0 20px 0;
}
.screen-cockpits {
// margin-top: -15px;
.cockpit-count {
.count-list {
@ -287,6 +273,7 @@ export default {
justify-content: space-around;
align-items: center;
height: 80px;
.count-list-item {
width: 33.3333%;
height: 50%;
@ -361,6 +348,7 @@ export default {
display: flex;
align-items: center;
justify-content: space-between;
.countTypeWrap {
font-size: 14px;
@ -497,12 +485,14 @@ export default {
}
}
}
.card-header {
display: flex;
justify-content: space-between;
align-items: center;
height: 24px;
}
.card-body {
display: flex;
justify-content: space-around;

View File

@ -76,7 +76,14 @@
label="名称"
prop="name"
fixed="left"
width="180"
width="200"
:show-overflow-tooltip="true"
></el-table-column>
<el-table-column
label="相关方"
prop="rparty_name"
width="200"
:show-overflow-tooltip="true"
></el-table-column>
<el-table-column label="项目类型" prop="type" width="180">
<template #default="scope">{{ type_[scope.row.type] }} </template>
@ -133,11 +140,6 @@
prop="belong_dept_name"
width="180"
></el-table-column>
<el-table-column
label="相关方"
prop="rparty_name"
width="180"
></el-table-column>
<el-table-column
label="创建人"
prop="create_by_name"
@ -175,7 +177,7 @@
>编辑
</el-button>-->
<el-popconfirm
v-if="scope.row.state == 10"
v-if="scope.row.state != 30"
title="确定删除吗?"
@confirm="table_del(scope.row, scope.$index)"
>

View File

@ -6,7 +6,7 @@
type="primary"
icon="el-icon-plus"
@click="add"
></el-button>
>新建项目</el-button>
<el-select
v-model="query.purpose"
placeholder="来访事由"
@ -65,7 +65,7 @@
width="50"
></el-table-column>
<el-table-column label="来访事由" prop="state" width="180" fixed="left">
<el-table-column label="来访事由" prop="state" width="100" fixed="left">
<template #default="scope">{{
purpose_[scope.row.purpose]
}}</template>
@ -170,7 +170,7 @@
>查看
</el-button>
<el-button
v-if="scope.row.state == 10"
v-if="scope.row.state != 30"
link
type="danger"
size="small"

View File

@ -133,6 +133,7 @@
style="width: 100%"
v-model="addForm.participant"
placeholder="请选择参与者"
filterable
>
<el-option
v-for="item in staffs"
@ -296,11 +297,12 @@
v-model="addForm.participant_cc"
multiple
placeholder="请选择抄送给谁"
filterable
>
<el-option
v-for="item in staffs"
:key="item.id"
:label="item.name"
:label="item.name + '-' + item.phone"
:value="item.id"
>
</el-option>

View File

@ -71,7 +71,6 @@
v-auth="'workflow.update'"
>配置
</el-button>
<el-divider direction="vertical"></el-divider>
<el-button
link
size="small"
@ -80,7 +79,6 @@
v-auth="'workflow.update'"
>编辑
</el-button>
<el-divider direction="vertical"></el-divider>
<el-button
link
size="small"
@ -89,7 +87,6 @@
>
流程图
</el-button>
<el-divider direction="vertical"></el-divider>
<el-popconfirm
title="确定删除吗?"
@confirm="workflowDel(scope.row)"
@ -117,7 +114,7 @@
@click="closeMark"
></i>
</div>
<div style="width: 90%; margin: auto">
<div style="width: 100%; margin: auto">
<svg
:height="mySvgHeight"
id="mySvg"