|
@@ -1,44 +1,32 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
<el-form :model="queryParams" ref="queryForm" :inline="true" size="small" label-width="100px">
|
|
|
- <template v-if="roleType == 'gov'">
|
|
|
- <el-form-item label="市" prop="cityId" v-if="userType == 'GOV_PROV'">
|
|
|
- <el-select v-model="queryParams.cityId" placeholder="请选择市" @change="getDistrictData" filterable style="width: 200px;">
|
|
|
- <el-option v-for="(item, index) in cityDataList" :key="index" :label="item.name" :value="item.id"></el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="区" prop="districtId" v-if="userType == 'GOV_PROV' || userType == 'GOV_CITY'">
|
|
|
- <el-select v-model="queryParams.districtId" placeholder="请选择区" filterable style="width: 200px;">
|
|
|
- <el-option v-for="(item, index) in districtDataList" :key="index" :label="item.name" :value="item.id"></el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </template>
|
|
|
- <template v-else>
|
|
|
+ <template v-if="!checkRole(['entAdmin','entUser'])">
|
|
|
<el-form-item label="省" prop="provinceId">
|
|
|
- <el-select v-model="queryParams.provinceId" placeholder="请选择省" @change="getCityData" filterable style="width: 200px;">
|
|
|
- <el-option v-for="(item,index) in provinceDataList" :key="index" :label="item.name" :value="item.id"></el-option>
|
|
|
- </el-select>
|
|
|
+ <el-select v-model="queryParams.provinceId" placeholder="请选择省" @change="getCityData" filterable style="width: 200px;">
|
|
|
+ <el-option v-for="(item,index) in provinceDataList" :key="index" :label="item.name" :value="item.id"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="市" prop="cityId">
|
|
|
+ <el-select v-model="queryParams.cityId" placeholder="请选择市" @change="getDistrictData" filterable style="width: 200px;">
|
|
|
+ <el-option v-for="(item, index) in cityDataList" :key="index" :label="item.name" :value="item.id"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="区" prop="districtId">
|
|
|
+ <el-select v-model="queryParams.districtId" placeholder="请选择区" filterable style="width: 200px;">
|
|
|
+ <el-option v-for="(item, index) in districtDataList" :key="index" :label="item.name" :value="item.id"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="年份" prop="year">
|
|
|
+ <el-date-picker v-model="queryParams.year" type="year" placeholder="选择年" style="width: 200px;" value-format="yyyy"></el-date-picker>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="市" prop="cityId">
|
|
|
- <el-select v-model="queryParams.cityId" placeholder="请选择市" @change="getDistrictData" filterable style="width: 200px;">
|
|
|
- <el-option v-for="(item, index) in cityDataList" :key="index" :label="item.name" :value="item.id"></el-option>
|
|
|
- </el-select>
|
|
|
+ <el-form-item label="企业名称" prop="entName">
|
|
|
+ <el-input v-model="queryParams.entName" clearable style="width: 200px;" placeholder="请输入企业名称"></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="区" prop="districtId">
|
|
|
- <el-select v-model="queryParams.districtId" placeholder="请选择区" filterable style="width: 200px;">
|
|
|
- <el-option v-for="(item, index) in districtDataList" :key="index" :label="item.name" :value="item.id"></el-option>
|
|
|
- </el-select>
|
|
|
+ <el-form-item label="社会信用代码" prop="license">
|
|
|
+ <el-input v-model="queryParams.license" style="width: 200px;" placeholder="请输入社会信用代码"></el-input>
|
|
|
</el-form-item>
|
|
|
- </template>
|
|
|
- <el-form-item label="年份" prop="year">
|
|
|
- <el-date-picker v-model="queryParams.year" type="year" placeholder="选择年" style="width: 200px;" value-format="yyyy"></el-date-picker>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="企业名称" prop="entName">
|
|
|
- <el-input v-model="queryParams.entName" clearable style="width: 200px;" placeholder="请输入企业名称"></el-input>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="社会信用代码" prop="license">
|
|
|
- <el-input v-model="queryParams.license" style="width: 200px;" placeholder="请输入社会信用代码"></el-input>
|
|
|
- </el-form-item>
|
|
|
+ </template>
|
|
|
<el-form-item label="项目编号" prop="projectNo">
|
|
|
<el-input v-model="queryParams.projectNo" style="width: 200px;" placeholder="请输入项目编号"></el-input>
|
|
|
</el-form-item>
|
|
@@ -90,6 +78,7 @@
|
|
|
import {listDeclareApi,listDeclareCommonApi,projectBackApi} from '@/api/enterprise/declare/declare'
|
|
|
import {entStateOptions, getLabel, authStateOptions,yesOrNoOptions} from '@/utils/dataFormat'
|
|
|
import { downLoadZip } from "@/utils/zipdownload";
|
|
|
+ import { checkRole } from "@/utils/permission"; // 权限判断函数
|
|
|
export default {
|
|
|
data () {
|
|
|
return {
|
|
@@ -143,6 +132,7 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ checkRole,
|
|
|
handleDownloadBatch() {
|
|
|
if(this.selectCount <= 0) {
|
|
|
this.$message.error('请选择要下载的项目');
|