Browse Source

模板配置表格增加列:检验项目模式

master
李磊 3 years ago
parent
commit
4d4e0486ec
  1. 1
      src/components/drawerDialog/index.vue
  2. 19
      src/views/task/list.vue
  3. 3
      src/views/ysjl/3000/common/inspection-items.vue

1
src/components/drawerDialog/index.vue

@ -251,6 +251,7 @@
@current-change="rowClick" @current-change="rowClick"
> >
<el-table-column align="center" label="序号" width="50" type="index" /> <el-table-column align="center" label="序号" width="50" type="index" />
<el-table-column :formatter="(row, index, cellValue) => jyxmModes[cellValue]" align="center" label="检验项目模式" prop="jyxmMode" />
<el-table-column align="center" label="检验项目索引" prop="sort" /> <el-table-column align="center" label="检验项目索引" prop="sort" />
<el-table-column <el-table-column
align="center" align="center"

19
src/views/task/list.vue

@ -32,7 +32,7 @@
<el-option v-for="item in sbzlList" :key="item.value" :label="item.label" :value="item.value" /> <el-option v-for="item in sbzlList" :key="item.value" :label="item.label" :value="item.value" />
</el-select> </el-select>
<el-select v-model="listQuery.neibuleibie" placeholder="请选择检验类别" clearable> <el-select v-model="listQuery.neibuleibie" placeholder="请选择检验类别" clearable>
<el-option v-for="item in searchNblbList" :key="item.code" :label="item.name" :value="item.code" v-show="item.parentId" /> <el-option v-for="item in searchNblbList" :key="item.code" :label="item.name" :value="item.code" />
</el-select> </el-select>
<el-input v-model="listQuery.shiyongdanwei" placeholder="使用单位名称" clearable style="width: 340px" @keyup.enter.native="handleFilter" /> <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" /> <el-input v-model="listQuery.zhucedaima" placeholder="注册代码" clearable style="width: 230px" @keyup.enter.native="handleFilter" />
@ -232,7 +232,6 @@ import Pagination from '@/components/Pagination'
import Utils from '../../utils/contact.js' import Utils from '../../utils/contact.js'
import { getOwnList, terminateRenwu, completeRenwuFn } from '@/api/renwu' import { getOwnList, terminateRenwu, completeRenwuFn } from '@/api/renwu'
import { cancelRenwuFn } from '@/api/common' import { cancelRenwuFn } from '@/api/common'
import { mapGetters } from 'vuex'
import Enclosure from '@/views/common/Enclosure' import Enclosure from '@/views/common/Enclosure'
export default { export default {
name: 'MyTask', name: 'MyTask',
@ -291,23 +290,17 @@ export default {
isSysUser: this.$store.getters.clientType === 'System' isSysUser: this.$store.getters.clientType === 'System'
} }
}, },
filters: { computed: {
screen(value) { // 使 getter computed
console.log(value,254444) searchNblbList() {
return value.charAt(0).toUpperCase() + value.slice(1) return this.$store.getters.allCategory.filter(row => row.parentId)
} }
}, },
created() { created() {
this.getList() this.getList()
this.getSbList(undefined, undefined, 1) this.getSbList(undefined, undefined, 1)
this.jylbList = this.$store.getters.allCategory this.jylbList = this.$store.getters.allCategory
}, },
computed: {
// 使 getter computed
searchNblbList(){
return this.$store.getters.allCategory
}
},
mounted() { mounted() {
const that = this const that = this
this.common.$on('task-list', function() { this.common.$on('task-list', function() {

3
src/views/ysjl/3000/common/inspection-items.vue

@ -1,4 +1,3 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-table <el-table
@ -28,7 +27,7 @@
label="项目编号" label="项目编号"
prop="jianyanmu" prop="jianyanmu"
/> />
<el-table-column align="center" label="检验项目及内容" prop="jianyanneirong" /> <el-table-column align="left" label="检验项目及内容" prop="jianyanneirong" />
<el-table-column <el-table-column
align="center" align="center"
prop="jianyanjieguo" prop="jianyanjieguo"

Loading…
Cancel
Save