Merge branch 'ehs' of https://e.coding.net/ctcdevteam/ehs/ehs_web into ehs
This commit is contained in:
commit
14f3f372ad
|
@ -15,7 +15,7 @@
|
|||
<div class="right-panel">
|
||||
<div class="right-panel-search">
|
||||
<el-input
|
||||
v-model="search.keyword"
|
||||
v-model="query.search"
|
||||
placeholder="编号/名称"
|
||||
clearable
|
||||
></el-input>
|
||||
|
@ -162,21 +162,6 @@
|
|||
@click="handleFormaccess('add')"
|
||||
></el-button>
|
||||
</div>
|
||||
<!-- <div class="right-panel">
|
||||
<div class="right-panel-search">
|
||||
<el-input
|
||||
v-model="search.keyword"
|
||||
placeholder="姓名/手机号"
|
||||
clearable
|
||||
@click="handleQuery"
|
||||
></el-input>
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-search"
|
||||
@click="handleQuery"
|
||||
></el-button>
|
||||
</div>
|
||||
</div> -->
|
||||
</el-header>
|
||||
<el-main class="nopadding">
|
||||
<scTable
|
||||
|
@ -306,9 +291,6 @@ export default {
|
|||
apiObj: this.$API.am.area.list,
|
||||
query: {},
|
||||
selection: [],
|
||||
search: {
|
||||
keyword: null,
|
||||
},
|
||||
levels: {
|
||||
10: "低风险",
|
||||
20: "一般风险",
|
||||
|
@ -438,7 +420,7 @@ export default {
|
|||
|
||||
//搜索
|
||||
handleQuery() {
|
||||
this.$refs.table.queryData(this.search)
|
||||
this.$refs.table.queryData(this.query)
|
||||
},
|
||||
|
||||
//根据ID获取树结构
|
||||
|
|
|
@ -64,39 +64,16 @@
|
|||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="发生区域" prop="area_.name"></el-table-column>
|
||||
<el-table-column label="当事人" prop="employee_.name">
|
||||
<el-table-column label="事件类型" prop="obj_cate">
|
||||
<template #default="scope">
|
||||
<span v-if="scope.row.employee && scope.row.obj_cate == 'people'">{{
|
||||
scope.row.employee_.name
|
||||
}}</span>
|
||||
<span v-else>未知人员</span>
|
||||
{{objCateOptions[scope.row.obj_cate]}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="人员类型" prop="employee_.type">
|
||||
<el-table-column label="事件对象">
|
||||
<template #default="scope">
|
||||
<span v-if="scope.row.employee && scope.row.obj_cate == 'people'">
|
||||
<span
|
||||
v-if="
|
||||
scope.row.employee_.type != '' &&
|
||||
scope.row.employee_.type == 'employee'
|
||||
"
|
||||
>正式员工</span
|
||||
>
|
||||
<span
|
||||
v-if="
|
||||
scope.row.employee_.type != '' &&
|
||||
scope.row.employee_.type == 'remployee'
|
||||
"
|
||||
>相关方</span
|
||||
>
|
||||
<span
|
||||
v-if="
|
||||
scope.row.employee_.type != '' &&
|
||||
scope.row.employee_.type == 'visitor'
|
||||
"
|
||||
>访客</span
|
||||
>
|
||||
<span v-if="scope.row.opl">{{scope.row.operation_name}}</span>
|
||||
<span v-else-if="scope.row.employee">
|
||||
{{eTypeOptions[scope.row.employee_.type]}}-{{scope.row.employee_.name}}
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
@ -175,6 +152,17 @@ export default {
|
|||
return {
|
||||
defaultTime: ['00:00:00', '23:59:59'],
|
||||
timeRange: [],
|
||||
objCateOptions: {
|
||||
'people':'人员',
|
||||
'opl': '作业',
|
||||
'other': '其他'
|
||||
},
|
||||
eTypeOptions:{
|
||||
'employee': '正式员工',
|
||||
'remployee': '相关方',
|
||||
'visitor': '访客',
|
||||
'driver': '司机'
|
||||
},
|
||||
cateOptions: [],
|
||||
areaOptions: [],
|
||||
dialog: {
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
</el-col>
|
||||
|
||||
<el-col :md="12" :sm="24">
|
||||
<el-form-item label="自主算法" prop="self_algo">
|
||||
<el-form-item label="需布设" prop="self_algo">
|
||||
<el-switch v-model="form.self_algo"></el-switch>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
</el-col>
|
||||
<el-col :md="12" :sm="24" :xs="24">
|
||||
<el-form-item label="作业区域" prop="area">
|
||||
<el-select v-model="form.area" placeholder="选择作业区域" @change="areaChange">
|
||||
<el-select v-model="form.area" placeholder="选择作业区域">
|
||||
<el-option
|
||||
v-for="item in areaoptions"
|
||||
:key="item.id"
|
||||
|
@ -194,6 +194,7 @@ export default {
|
|||
mounted() {
|
||||
this.getDept();
|
||||
this.getArea();
|
||||
this.getVchannels();
|
||||
},
|
||||
methods: {
|
||||
//所属部门,属地部门,业务部门
|
||||
|
@ -218,8 +219,8 @@ export default {
|
|||
this.coordinatoroptions = res;
|
||||
});
|
||||
},
|
||||
areaChange(val) {
|
||||
this.$API.third.tdevice.list.req({ type: 60, page: 0, area: val }).then((res) => {
|
||||
getVchannels(){
|
||||
this.$API.third.tdevice.list.req({ type: 60, page: 0 }).then((res) => {
|
||||
this.vchannelOptions = res;
|
||||
});
|
||||
},
|
||||
|
|
|
@ -296,7 +296,7 @@ export default {
|
|||
'employee': '正式员工',
|
||||
'remployee': '相关方',
|
||||
'visitor': '访客',
|
||||
'driver':'司机'
|
||||
'driver':'货车司机'
|
||||
},
|
||||
userTypeOptions2: [
|
||||
{label:"正式员工", value:"employee"},
|
||||
|
|
Loading…
Reference in New Issue