| | |
| | | name: '项目文件' |
| | | }, |
| | | { |
| | | id: 4, |
| | | name: '技术文件' |
| | | }, |
| | | { |
| | | id: 5, |
| | | name: '知识产权' |
| | | }, |
| | | { |
| | | id: 6, |
| | | name: '质量服务标准' |
| | | }, |
| | | { |
| | | id: 3, |
| | | name: '其他' |
| | | } |
| | |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="文件类型:" > |
| | | <el-select v-model="data.queryParams.knowledgeType" placeholder="请选择" clearable> |
| | | <el-option |
| | | v-for="item in typeList" |
| | | :key="item.id" |
| | | :label="item.name" |
| | | :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item > |
| | | <el-button type="primary" @click="getList">查询</el-button> |
| | | <el-button type="primary" plain @click="reset">重置</el-button> |
| | |
| | | <el-table-column label="名称" prop="name" align="center"/> |
| | | <el-table-column label="文件类型" prop="knowledgeType" align="center"> |
| | | <template #default="scope"> |
| | | {{scope.row.knowledgeType == 1 ? '体系' : scope.row.knowledgeType == 2 ? '项目' : '其他'}} |
| | | {{ getTypeName(scope.row.knowledgeType) }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="文件" prop="filePath" align="center"> |
| | |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | companyId: null |
| | | companyId: null, |
| | | knowledgeType: null |
| | | }, |
| | | total: 0, |
| | | dataList: [], |
| | | companyList: [], |
| | | isAdmin: false, |
| | | expertData: [] |
| | | expertData: [], |
| | | typeList: [ |
| | | { |
| | | id: 1, |
| | | name: '体系文件' |
| | | }, |
| | | { |
| | | id: 2, |
| | | name: '项目文件' |
| | | }, |
| | | { |
| | | id: 4, |
| | | name: '技术文件' |
| | | }, |
| | | { |
| | | id: 5, |
| | | name: '知识产权' |
| | | }, |
| | | { |
| | | id: 6, |
| | | name: '质量服务标准' |
| | | }, |
| | | { |
| | | id: 3, |
| | | name: '其他' |
| | | } |
| | | ] |
| | | }); |
| | | |
| | | const { queryParams, total, dataList,companyList,isAdmin, expertData } = toRefs(data); |
| | | const { queryParams, total, dataList,companyList,isAdmin, expertData, typeList } = toRefs(data); |
| | | const userInfo = ref() |
| | | onMounted(async ()=>{ |
| | | if(userStore.roles.includes('admin')){ |
| | |
| | | ElMessage.warning(res.message) |
| | | } |
| | | } |
| | | |
| | | const getTypeName = (type)=>{ |
| | | return data.typeList.find(i=>i.id == type)?.name |
| | | } |
| | | const openFile = async(path)=>{ |
| | | const ext = path.split('.').pop().toLowerCase(); |
| | | if (ext === 'doc' || ext === 'xls' || ext === 'xlsx') { |
| | |
| | | data.queryParams = { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | companyId: null |
| | | companyId: null, |
| | | knowledgeType: null |
| | | } |
| | | await getCompanyList() |
| | | await getList() |