Commit cf0d067b authored by tianhongyang's avatar tianhongyang

Merge branch 'V20231129-中建一局二公司' of http://192.168.60.201/root/dsk-operate-sys...

Merge branch 'V20231129-中建一局二公司' of http://192.168.60.201/root/dsk-operate-sys into V20231129-中建一局二公司
parents e97f1916 29bdf8c0
...@@ -56,7 +56,7 @@ public class ProjectSearchVo { ...@@ -56,7 +56,7 @@ public class ProjectSearchVo {
/** /**
* 工程类别明细 * 工程类别明细
*/ */
private String projectType; private String projectType2;
/** /**
* 项目与咨询机构关系 * 项目与咨询机构关系
......
...@@ -47,13 +47,7 @@ public class ExportService { ...@@ -47,13 +47,7 @@ public class ExportService {
private String EXPORT_BACK_URL; private String EXPORT_BACK_URL;
public AjaxResult aptitudeFile(MultipartFile file) throws Exception { public AjaxResult aptitudeFile(MultipartFile file) throws Exception {
int exportCount = 1;
if (RedisUtils.hasKey("aptitudeFileExportCount")){
exportCount = RedisUtils.getCacheObject("aptitudeFileExportCount");
if (exportCount>=3000){
return AjaxResult.error("每天最多导出3次");
}
}
ComposeQueryDto composeQueryDto = new ComposeQueryDto(); ComposeQueryDto composeQueryDto = new ComposeQueryDto();
//识别Excel内容 //识别Excel内容
...@@ -64,7 +58,7 @@ public class ExportService { ...@@ -64,7 +58,7 @@ public class ExportService {
List<String> list = new ArrayList<>(); List<String> list = new ArrayList<>();
for (int i = 0; i < companyNameList.size(); i++) { for (int i = 0; i < companyNameList.size(); i++) {
if (null==companyNameList.get(i)){ if (null==companyNameList.get(i)){
return AjaxResult.error("上传格式有误"); return AjaxResult.error("请使用正确的模板");
} }
if (i<500){ if (i<500){
list.add(companyNameList.get(i).getCompanyName()); list.add(companyNameList.get(i).getCompanyName());
...@@ -87,8 +81,6 @@ public class ExportService { ...@@ -87,8 +81,6 @@ public class ExportService {
composeQueryDto.setExportBackUrl(EXPORT_BACK_URL); composeQueryDto.setExportBackUrl(EXPORT_BACK_URL);
composeQueryDto.setExportExeclName(fileName); composeQueryDto.setExportExeclName(fileName);
dskOpenApiUtil.requestBody("/operate/export/zjyj/aptitude", BeanUtil.beanToMap(composeQueryDto,false,false)); dskOpenApiUtil.requestBody("/operate/export/zjyj/aptitude", BeanUtil.beanToMap(composeQueryDto,false,false));
RedisUtils.setCacheObject("aptitudeFileExportCount",exportCount+1);
RedisUtils.expire("aptitudeFileExportCount", Duration.ofHours(24));
return AjaxResult.success(); return AjaxResult.success();
} }
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
p.province_name, p.province_name,
p.isinvestproject, p.isinvestproject,
p.project_type1, p.project_type1,
p.project_type, p.project_type2,
p.contract_orig_value, p.contract_orig_value,
p.owner_name, p.owner_name,
p.contract_org_name, p.contract_org_name,
......
...@@ -433,7 +433,7 @@ ...@@ -433,7 +433,7 @@
}, },
{ {
"name": "工程勘察劳务", "name": "工程勘察劳务",
"id": 267, "id": 1701,
"type": 2, "type": 2,
"parentId": 227 "parentId": 227
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="app-container MonitoringDynamics"> <div class="app-container MonitoringDynamics">
<div class="search"> <div class="search">
<div class="search-item" style="line-height: 32px;margin-top: 0;padding-bottom: 8px;"> <div class="search-item" style="line-height: 32px;margin-top: 0;padding-bottom: 8px;">
<div class="label">监控动态</div> <div class="label">监控对象</div>
<el-input class="name" placeholder="请输入监控对象名称" v-model="companyName"> <el-input class="name" placeholder="请输入监控对象名称" v-model="companyName">
<el-button slot="append" @click="handleKeyword()">搜索</el-button> <el-button slot="append" @click="handleKeyword()">搜索</el-button>
</el-input> </el-input>
......
...@@ -30,9 +30,9 @@ ...@@ -30,9 +30,9 @@
<router-link :to="`/monitoring/MonitoringReportDetails/${i.companyOrstaffId}`" tag="a" class="a-link companyName">{{i.companyOrstaffName}}</router-link> <router-link :to="`/monitoring/MonitoringReportDetails/${i.companyOrstaffId}`" tag="a" class="a-link companyName">{{i.companyOrstaffName}}</router-link>
</p> </p>
<p class="card-right-p"> <p class="card-right-p">
<span class="right-label">提示:</span> <!--<span class="right-label">提示:</span>-->
<span class="right-color color1">{{i.promptCount}}</span> <!--<span class="right-color color1">{{i.promptCount}}</span>-->
<span class="right-label">正向:</span> <!--<span class="right-label">正向:</span>-->
<span class="right-color color2">{{i.positiveCount}}</span> <span class="right-color color2">{{i.positiveCount}}</span>
<span class="right-label">低风险:</span> <span class="right-label">低风险:</span>
<span class="right-color color3">{{i.lowRiskCount}}</span> <span class="right-color color3">{{i.lowRiskCount}}</span>
......
...@@ -13,12 +13,20 @@ ...@@ -13,12 +13,20 @@
:value="item"> :value="item">
</el-option> </el-option>
</el-select> </el-select>
<el-select v-model="value1" @change="selectChange1" v-if="options.length>0" placeholder="请选择"> <el-select v-model="value1" value-key="id" @change="selectChange1" v-if="options.length>0" placeholder="请选择">
<el-option <el-option
v-for="item in options" v-for="item in options"
:key="item.name" :key="item.name"
:label="item.name" :label="item.name"
:value="item.id"> :value="item">
</el-option>
</el-select>
<el-select v-model="value2" value-key="id" @change="selectChange2" v-if="options2.length>0" placeholder="请选择">
<el-option
v-for="item in options2"
:key="item.name"
:label="item.name"
:value="item">
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
...@@ -61,8 +69,10 @@ export default { ...@@ -61,8 +69,10 @@ export default {
list, list,
activeIndex:0, activeIndex:0,
options: [], options: [],
options2: [],
value: '', value: '',
value1: '', value1: '',
value2: '',
info:"", info:"",
} }
}, },
...@@ -98,6 +108,7 @@ export default { ...@@ -98,6 +108,7 @@ export default {
} }
}, },
selectChange(){ selectChange(){
this.info = "";
if(this.value.list&&this.value.list.length>0){ if(this.value.list&&this.value.list.length>0){
this.options = this.value.list; this.options = this.value.list;
this.value1 = "" this.value1 = ""
...@@ -105,20 +116,36 @@ export default { ...@@ -105,20 +116,36 @@ export default {
this.options = [] this.options = []
standard({id:this.value.id}).then(res=>{ standard({id:this.value.id}).then(res=>{
this.info = res.data this.info = res.data
}) })
} }
this.value2 = "";
this.options2 = []
}, },
selectChange1(){ selectChange1(){
standard({id:this.value1}).then(res=>{ this.info = "";
if(this.value1.list&&this.value1.list.length>0){
this.options2 = this.value1.list;
this.value2 = ""
}else{
this.options2 = []
standard({id:this.value1.id}).then(res=>{
this.info = res.data
})
}
},
selectChange2(){
this.info = "";
standard({id:this.value2.id}).then(res=>{
this.info = res.data this.info = res.data
}) })
}, },
changeActiveIndex(index){ changeActiveIndex(index){
this.info = "";
this.activeIndex=index; this.activeIndex=index;
this.value = ''; this.value = '';
this.options = [] this.options = [];
this.value2 = "";
this.options2 = []
}, },
} }
} }
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
:on-change="handleFileListChange" :on-change="handleFileListChange"
:headers="headers" :headers="headers"
:on-remove="onRemove" :on-remove="onRemove"
:on-error="onError"
:on-success="onSuccess"> :on-success="onSuccess">
<img class="up_img" src="@/assets/images/plus.png"> <img class="up_img" src="@/assets/images/plus.png">
<div class="up_text">点击选择文件或将文件拖拽至此导入企业名录</div> <div class="up_text">点击选择文件或将文件拖拽至此导入企业名录</div>
...@@ -102,6 +103,10 @@ import {importTemplate} from '@/api/supplier/assistant.js'; ...@@ -102,6 +103,10 @@ import {importTemplate} from '@/api/supplier/assistant.js';
onRemove(){ onRemove(){
this.isUpload = false this.isUpload = false
}, },
onError(res, file, fileList){
this.$emit("loadingFn",false);
this.$message.error({ message: res.msg?res.msg:'服务器错误', showClose: true })
},
onSuccess(res, file, fileList) { onSuccess(res, file, fileList) {
this.$refs["upload"].clearFiles() this.$refs["upload"].clearFiles()
this.isUpload = false; this.isUpload = false;
...@@ -113,6 +118,7 @@ import {importTemplate} from '@/api/supplier/assistant.js'; ...@@ -113,6 +118,7 @@ import {importTemplate} from '@/api/supplier/assistant.js';
this.$emit("loadingFn",false); this.$emit("loadingFn",false);
this.$message.error({ message: res.msg, showClose: true }) this.$message.error({ message: res.msg, showClose: true })
} }
}, },
downloadClick() { downloadClick() {
......
...@@ -125,7 +125,7 @@ ...@@ -125,7 +125,7 @@
</div> </div>
</div> </div>
<div class="pagination clearfix" v-show="total>0"> <div class="pagination clearfix" v-show="total>0">
<el-pagination background :page-size="pageSize" :current-page.sync="pageNum" @current-change="handleCurrentChange" layout="prev, pager, next" <el-pagination background v-if="pageFlag" :page-size="pageSize" :current-page="pageNum" @current-change="handleCurrentChange" layout="prev, pager, next"
:total="total"> :total="total">
</el-pagination> </el-pagination>
</div> </div>
...@@ -256,6 +256,7 @@ export default { ...@@ -256,6 +256,7 @@ export default {
pageSize: 5, pageSize: 5,
pageSize1: 5, pageSize1: 5,
dataEXCEL:{}, dataEXCEL:{},
pageFlag:true,
isSkeleton: false, isSkeleton: false,
exportData:{ exportData:{
title:'查城投平台', title:'查城投平台',
...@@ -376,11 +377,11 @@ export default { ...@@ -376,11 +377,11 @@ export default {
handleCurrentChange(pageNum) { handleCurrentChange(pageNum) {
if(pageNum*this.pageSize>10000){ if(pageNum*this.pageSize>10000){
this.$message.warning("数据达上限") this.$message.warning("数据达上限")
this.pageNum = 10000/this.pageSize this.reloadPage();
}else{ }else{
this.pageNum = pageNum; this.pageNum = pageNum;
this.search()
} }
this.search()
}, },
handleCurrentChange1(pageNum) { handleCurrentChange1(pageNum) {
......
...@@ -186,13 +186,14 @@ ...@@ -186,13 +186,14 @@
}) })
}, },
handleClick(item,key){ handleClick(item,key){
if(key === 1){ if(key === 0 || key === 1){
this.status=item.status this.status=item.status
this.handleVisible=true this.handleVisible=true
} }
if(key === 2){ if(key === 2){
this.handleVisible1=true this.handleVisible1=true
} }
console.log(this.status)
this.id=item.id this.id=item.id
}, },
// 开始时间改变 // 开始时间改变
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment