事故调查管理代码提交
parent
f58761937f
commit
f921dd8c52
|
@ -8,9 +8,9 @@
|
|||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="发生时间" prop="incidentName">
|
||||
<el-form-item label="发生时间" prop="incidentDates">
|
||||
<el-date-picker
|
||||
v-model="searchForm.incidentName"
|
||||
v-model="searchForm.incidentDates"
|
||||
value-format="yyyy-MM-dd"
|
||||
style="width: 100%"
|
||||
type="daterange"
|
||||
|
@ -24,21 +24,20 @@
|
|||
<el-input v-model="searchForm.location" placeholder="请输入关键字" class="filter-item"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<!-- TODO 待实现数据字典-->
|
||||
<!-- <el-col :span="4">-->
|
||||
<!-- <el-form-item label="事故类型" prop="keySource">-->
|
||||
<!-- <el-select v-model="searchForm.incidentType" placeholder="请选择">-->
|
||||
<!-- <el-option v-for="item in incidentTypes" :key="item.value" :label="item.label" :value="item.value" />-->
|
||||
<!-- </el-select>-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- </el-col>-->
|
||||
<!-- <el-col :span="4">-->
|
||||
<!-- <el-form-item label="事故等级" prop="keySource">-->
|
||||
<!-- <el-select v-model="searchForm.incidentLevel" placeholder="请选择">-->
|
||||
<!-- <el-option v-for="item in incidentLevels" :key="item.value" :label="item.label" :value="item.value" />-->
|
||||
<!-- </el-select>-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- </el-col>-->
|
||||
<el-col :span="4">
|
||||
<el-form-item label="事故类型" prop="incidentType">
|
||||
<el-select v-model="searchForm.incidentType" placeholder="请选择">
|
||||
<el-option v-for="item in incidentTypes" :key="item.value" :label="item.label" :value="item.value" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-form-item label="事故等级" prop="incidentLevel">
|
||||
<el-select v-model="searchForm.incidentLevel" placeholder="请选择">
|
||||
<el-option v-for="item in incidentLevels" :key="item.value" :label="item.label" :value="item.value" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="getList">
|
||||
查询
|
||||
|
@ -101,25 +100,30 @@
|
|||
<el-form-item :label-width="formLabelWidth" label="事故名称">
|
||||
<el-input v-model="infoForm.incidentName" autocomplete="off"/>
|
||||
</el-form-item>
|
||||
<!-- TODO 需要数据字典-->
|
||||
<!-- <el-form-item :label-width="formLabelWidth" label="事故类型">-->
|
||||
<!-- <el-select v-model="hiddenPartList" placeholder="请选择活动区域">-->
|
||||
<!-- <el-option label="区域一" value="shanghai"/>-->
|
||||
<!-- <el-option label="区域二" value="beijing"/>-->
|
||||
<!-- </el-select>-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item :label-width="formLabelWidth" label="事故类型">
|
||||
<el-select v-model="infoForm.hiddenPartList" placeholder="请选择">
|
||||
<el-option
|
||||
v-for="item in hiddenPartList"
|
||||
:key="item.id"
|
||||
:label="item.type"
|
||||
:value="item.id"/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item :label-width="formLabelWidth" label="所属公司">-->
|
||||
<!-- <el-select v-model="form.region" placeholder="请选择活动区域">-->
|
||||
<!-- <el-option label="区域一" value="shanghai"/>-->
|
||||
<!-- <el-option label="区域二" value="beijing"/>-->
|
||||
<!-- </el-select>-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item :label-width="formLabelWidth" label="事故级别">-->
|
||||
<!-- <el-select v-model="incidentLevels" placeholder="请选择活动区域">-->
|
||||
<!-- <el-select v-model="form.region" placeholder="请选择">-->
|
||||
<!-- <el-option label="区域一" value="shanghai"/>-->
|
||||
<!-- <el-option label="区域二" value="beijing"/>-->
|
||||
<!-- </el-select>-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item :label-width="formLabelWidth" label="事故级别">
|
||||
<el-select v-model="infoForm.incidentLevels" placeholder="请选择">
|
||||
<el-option
|
||||
v-for="item in incidentLevels"
|
||||
:key="item.id"
|
||||
:label="item.type"
|
||||
:value="item.id"/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item :label-width="formLabelWidth" label="事故发生地点">
|
||||
<el-input v-model="infoForm.location" autocomplete="off"/>
|
||||
</el-form-item>
|
||||
|
@ -452,11 +456,7 @@ export default {
|
|||
this.$parent.activeName = 'Detail'
|
||||
this.$parent.hiddenId = id
|
||||
},
|
||||
translate(id, list) {
|
||||
for (let i = 0; i < list.length; i++) {
|
||||
if (list[i].BIANMA === id || list[i].value === id || list[i].id === id) return list[i].NAME || list[i].label
|
||||
}
|
||||
},
|
||||
|
||||
formatDate(date, format) {
|
||||
return formatDate(date, format)
|
||||
}
|
||||
|
|
|
@ -2,18 +2,17 @@
|
|||
<!-- <component :is="activeName" />-->
|
||||
<div>
|
||||
<List v-show="activeName==='List'" ref="list"/>
|
||||
<Detail v-if="activeName==='Detail'"/>
|
||||
<!-- <Detail v-if="activeName==='Detail'"/>-->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import List from './list.vue'
|
||||
import Detail from './components/detail'
|
||||
import List from './components/list.vue'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
List: List,
|
||||
Detail: Detail
|
||||
List: List
|
||||
// Detail: Detail
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
|
Loading…
Reference in New Issue