|
|
@ -32,7 +32,7 @@ |
|
|
|
<el-option v-for="item in sbzlList" :key="item.value" :label="item.label" :value="item.value" /> |
|
|
|
</el-select> |
|
|
|
<el-select v-model="listQuery.neibuleibie" placeholder="请选择检验类别" clearable> |
|
|
|
<el-option v-for="item in searchNblbList" v-show="item.parentId" :key="item.code" :label="item.name" :value="item.code" /> |
|
|
|
<el-option v-for="item in allCategory" :key="item.code" :label="item.name" :value="item.code" /> |
|
|
|
</el-select> |
|
|
|
<el-input v-model="listQuery.shiyongdanwei" placeholder="使用单位名称" clearable style="width: 340px" @keyup.enter.native="handleFilter" /> |
|
|
|
<el-input v-model="listQuery.zhucedaima" placeholder="注册代码" clearable style="width: 230px" @keyup.enter.native="handleFilter" /> |
|
|
@ -233,6 +233,7 @@ import Utils from '../../utils/contact.js' |
|
|
|
import { getOwnList, terminateRenwu, completeRenwuFn } from '@/api/renwu' |
|
|
|
import { cancelRenwuFn } from '@/api/common' |
|
|
|
import Enclosure from '@/views/common/Enclosure' |
|
|
|
import {mapGetters} from 'vuex' |
|
|
|
export default { |
|
|
|
name: 'MyTask', |
|
|
|
components: { Sticky, Pagination, SliceUpload, Enclosure }, |
|
|
@ -297,9 +298,14 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
// 使用对象展开运算符将 getter 混入 computed 对象中 |
|
|
|
searchNblbList() { |
|
|
|
return this.$store.getters.allCategory |
|
|
|
...mapGetters(['allCategory']) |
|
|
|
}, |
|
|
|
watch:{ |
|
|
|
allCategory:{ |
|
|
|
handler(n,o){ |
|
|
|
return n.filter(item=>item.parentId!==null) |
|
|
|
}, |
|
|
|
deep:true |
|
|
|
} |
|
|
|
}, |
|
|
|
created() { |
|
|
|