kun
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<div class="search">
|
||||
<input
|
||||
type="text"
|
||||
placeholder="请输入搜索内容"
|
||||
placeholder="请输入组织名称"
|
||||
v-model.trim="searchVal"
|
||||
@keyup.enter="getSearch()"
|
||||
/>
|
||||
@@ -15,21 +15,21 @@
|
||||
<!-- 分类搜索 -->
|
||||
<div class="select-box">
|
||||
<select name="type" v-model="type_value" @change="scree()">
|
||||
<option value="全部">全部</option>
|
||||
<option value="组织类型">组织类型</option>
|
||||
<template v-for="(type,index) in types">
|
||||
<option :key="index" :value="index">{{type}}</option>
|
||||
</template>
|
||||
</select>
|
||||
|
||||
<select name="year" v-model="year_value" @change="scree()">
|
||||
<option value="全部">全部</option>
|
||||
<option value="年检时间">年检时间</option>
|
||||
<template v-for="(year,index) in years">
|
||||
<option :key="index" :value="index">{{year}}</option>
|
||||
</template>
|
||||
</select>
|
||||
|
||||
<select name="condition" v-model="year_status" @change="scree()">
|
||||
<option value="全部">全部</option>
|
||||
<option value="年检结果">年检结果</option>
|
||||
<option value="0">不合格</option>
|
||||
<option value="1">合格</option>
|
||||
</select>
|
||||
@@ -127,9 +127,9 @@ export default {
|
||||
record: [],
|
||||
types: [],
|
||||
years: '',
|
||||
year_status: '全部',
|
||||
type_value: '全部',
|
||||
year_value: '全部',
|
||||
year_status: '年检结果',
|
||||
type_value: '组织类型',
|
||||
year_value: '年检时间',
|
||||
bgData: [],
|
||||
arr1: [],
|
||||
arr0: [],
|
||||
@@ -187,15 +187,15 @@ export default {
|
||||
},
|
||||
/** 获取后台数据 */
|
||||
getData(type = '', year = '', yearStatus = '', status = '') {
|
||||
if (type == "全部") {
|
||||
if (type == "组织类型") {
|
||||
type = ''
|
||||
}
|
||||
|
||||
if (year == '全部') {
|
||||
if (year == '年检时间') {
|
||||
year = ''
|
||||
}
|
||||
|
||||
if (yearStatus == '全部') {
|
||||
if (yearStatus == '年检结果') {
|
||||
yearStatus = ''
|
||||
}
|
||||
let _this = this
|
||||
@@ -222,15 +222,15 @@ export default {
|
||||
})
|
||||
|
||||
if (this.type_value === '') {
|
||||
this.type_value = '全部'
|
||||
this.type_value = '组织类型'
|
||||
}
|
||||
|
||||
if (this.years[this.year_value] === '') {
|
||||
this.year_value = '全部'
|
||||
this.year_value = '年检时间'
|
||||
}
|
||||
|
||||
if (this.year_status === '') {
|
||||
this.year_status = '全部'
|
||||
this.year_status = '年检结果'
|
||||
}
|
||||
},
|
||||
/** 获取类型 */
|
||||
|
||||
Reference in New Issue
Block a user