Commit 8e105646 authored by danfuman's avatar danfuman

Merge branch 'zuhuduan' of http://192.168.60.201/root/dsk-operate-sys into zuhuduan

parents 63bea6c3 87c3b2f0
...@@ -21,10 +21,7 @@ import com.dsk.system.domain.vo.SysOssVo; ...@@ -21,10 +21,7 @@ import com.dsk.system.domain.vo.SysOssVo;
import com.dsk.system.service.ISysOssService; import com.dsk.system.service.ISysOssService;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.io.ByteArrayInputStream; import java.io.ByteArrayInputStream;
...@@ -210,4 +207,28 @@ public class JskCombineInfoController extends BaseController { ...@@ -210,4 +207,28 @@ public class JskCombineInfoController extends BaseController {
SysOssVo sysOssVo = ossService.buildResultEntity(title.concat(Constants.SUFFIX_XLSX), Constants.SUFFIX_XLSX, client.getConfigKey(), uploadResult); SysOssVo sysOssVo = ossService.buildResultEntity(title.concat(Constants.SUFFIX_XLSX), Constants.SUFFIX_XLSX, client.getConfigKey(), uploadResult);
return R.ok(sysOssVo); return R.ok(sysOssVo);
} }
/***
*@Description: 获取集团logo
*@Param:
*@return: com.dsk.common.core.domain.R
*@Author: Dgm
*@date: 2023/9/12 16:05
*/
@RequestMapping(value = "/combineMemberLogo", method = RequestMethod.POST)
public R combineMemberLogo(@RequestBody Map<String,Object> paramMap) {
return baseService.combineMemberLogo(paramMap);
}
/***
*@Description: 集团统计展示调用允许
*@Param:
*@return: com.dsk.common.core.domain.R
*@Author: Dgm
*@date: 2023/9/12 16:05
*/
@RequestMapping(value = "/memberCount", method = RequestMethod.POST)
public R memberCount(@RequestBody JskCombineSearchDto dto) throws Exception {
return baseService.memberCount(dto);
}
} }
...@@ -17,6 +17,7 @@ import com.dsk.jsk.domain.vo.JskCombineWinBidProjectExportVo; ...@@ -17,6 +17,7 @@ import com.dsk.jsk.domain.vo.JskCombineWinBidProjectExportVo;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections4.MapUtils; import org.apache.commons.collections4.MapUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
...@@ -215,4 +216,44 @@ public class JskCombineInfoService { ...@@ -215,4 +216,44 @@ public class JskCombineInfoService {
} }
return dskOpenApiUtil.responsePage(map); return dskOpenApiUtil.responsePage(map);
} }
/***
*@Description: 获取集团logo
*@Param:
*@return: com.dsk.common.core.domain.R
*@Author: Dgm
*@date: 2023/9/12 16:05
*/
public R combineMemberLogo(Map<String,Object> object) {
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterprise/combineMemberLogo", object);
return BeanUtil.toBean(map, R.class);
}
/***
*@Description: 集团统计展示调用允许
*@Param:
*@return: com.dsk.common.core.domain.R
*@Author: Dgm
*@date: 2023/9/12 16:05
*/
public R memberCount(JskCombineSearchDto dto) {
Map<String, Object> paramsMap = BeanUtil.beanToMap(dto, false, false);
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/combine/memberCount", paramsMap);
if (ObjectUtil.isNotEmpty(map.get("data"))) {
Map<String, Object> data = BeanUtil.beanToMap(map.get("data"));
data.put("performance", businessCount(paramsMap));
}
return BeanUtil.toBean(map, R.class);
}
public Integer businessCount(Map<String, Object> paramsMap) {
Integer performance = 0;
Map<String, Object> resMap = dskOpenApiUtil.requestBody("/nationzj/project/combine/projectList", paramsMap);
Integer code = MapUtils.getInteger(resMap, "code", 300);
Map data = MapUtils.getMap(resMap, "data", null);
if (code.equals(HttpStatus.OK.value())) {
performance = MapUtils.getInteger(data, "totalCount", 0);
}
return performance;
}
} }
...@@ -2,8 +2,11 @@ ...@@ -2,8 +2,11 @@
<div class="no-data"> <div class="no-data">
<div class="no-data-box"> <div class="no-data-box">
<img :src="noData" alt="抱歉,没找到相关数据" /> <img :src="noData" alt="抱歉,没找到相关数据" />
<div v-if="text">抱歉,您还未添加{{text}}项目</div> <div v-if="record">抱歉,您还未添加跟进动态</div>
<div v-else>抱歉,没找到相关数据</div> <template v-else>
<div v-if="text">抱歉,您还未添加{{text}}项目</div>
<div v-else>抱歉,没找到相关数据</div>
</template>
<span v-if="condition">建议调整关键词或筛选条件,重新搜索</span> <span v-if="condition">建议调整关键词或筛选条件,重新搜索</span>
</div> </div>
</div> </div>
...@@ -13,6 +16,10 @@ ...@@ -13,6 +16,10 @@
export default { export default {
name: "NoData", name: "NoData",
props: { props: {
record: {
type: Boolean,
default: false
},
condition: { condition: {
type: Boolean, type: Boolean,
default: false default: false
......
...@@ -151,7 +151,7 @@ ...@@ -151,7 +151,7 @@
<el-table :data="tableData" :header-cell-style="{ background:'#f0f3fa',color: 'rgba(35,35,35,0.8)'}" v-horizontal-scroll="'hover'" class="table-item1 fixed-table" border highlight-current-row> <el-table :data="tableData" :header-cell-style="{ background:'#f0f3fa',color: 'rgba(35,35,35,0.8)'}" v-horizontal-scroll="'hover'" class="table-item1 fixed-table" border highlight-current-row>
<el-table-column type="index" label="序号" fixed width="60"> <el-table-column type="index" label="序号" fixed width="60">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{(pageNum - 1) *20 + scope.$index + 1}}</span> <span>{{(pageNum - 1) *pageSize + scope.$index + 1}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="公司名称" fixed width="380" > <el-table-column label="公司名称" fixed width="380" >
......
...@@ -345,7 +345,7 @@ ...@@ -345,7 +345,7 @@
</div> </div>
</div> </div>
</template> </template>
<no-data :condition="true" style="padding:40px" v-if="viewData6.length==0"/> <no-data :record="true" style="padding:40px" v-if="viewData6.length==0"/>
</div> </div>
</el-card> </el-card>
</div> </div>
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
</div> </div>
<el-dropdown @command="transactionPricehandleCommand" class="el-dropdown-land" placement="bottom-start" trigger="click" ref="transactionPriceShowPopper" :hide-on-click="false"> <el-dropdown @command="transactionPricehandleCommand" class="el-dropdown-land" placement="bottom-start" trigger="click" ref="transactionPriceShowPopper" :hide-on-click="false">
<span class="el-dropdown-link" :class="importantProjectDto.startMoney ||importantProjectDto.endMoney ? 'color_text': ''"> <span class="el-dropdown-link" :class="importantProjectDto.startMoney ||importantProjectDto.endMoney ? 'color_text': ''">
项目投资额(万元){{importantProjectDto.startMoney ||importantProjectDto.endMoney? " 1项": ""}}<i class="el-icon-caret-bottom"></i> 项目投资额{{importantProjectDto.startMoney ||importantProjectDto.endMoney? " 1项": ""}}<i class="el-icon-caret-bottom"></i>
</span> </span>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item v-for="(item, i) in transactionPriceOptions" :class="importantProjectDto.startMoney == item.value[0] &&importantProjectDto.endMoney == item.value[1] && <el-dropdown-item v-for="(item, i) in transactionPriceOptions" :class="importantProjectDto.startMoney == item.value[0] &&importantProjectDto.endMoney == item.value[1] &&
......
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