Commit 6ad36aa9 authored by huangjie's avatar huangjie

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

parents 53c1c2ad c1afd3a7
...@@ -7,11 +7,10 @@ const steerScroll = function(iframeId, navigation, state, parentId) { // state: ...@@ -7,11 +7,10 @@ const steerScroll = function(iframeId, navigation, state, parentId) { // state:
let dom = window let dom = window
if (parentId) { // 默认页面可以滚动 if (parentId) { // 默认页面可以滚动
dom = document.getElementById(parentId) dom = document.getElementById(parentId)
if(!dom){ if (!dom) {
return return
} }
dom.style.overflow = 'auto' dom.style.overflow = 'auto'
navigation.totalHeight = 0
} else { } else {
document.body.style.overflow = 'visible' document.body.style.overflow = 'visible'
} }
...@@ -22,12 +21,12 @@ const steerScroll = function(iframeId, navigation, state, parentId) { // state: ...@@ -22,12 +21,12 @@ const steerScroll = function(iframeId, navigation, state, parentId) { // state:
if (data && typeof data === 'object') { if (data && typeof data === 'object') {
// 动态设置iFrame高度 // 动态设置iFrame高度
if (data.height) { if (data.height) {
document.getElementById(iframeId).style.height = data.height+'px' document.getElementById(iframeId).style.height = data.height + 'px'
scrolling(iframeId, navigation, parentId) // 初始加载获取滚动条距离顶部高度 scrolling(iframeId, navigation, parentId) // 初始加载获取滚动条距离顶部高度
} }
// 点击企业详情页 栏目名动态设置滚动高度 // 点击企业详情页 栏目名动态设置滚动高度
if (data.scrollHeight) { if (data.scrollHeight) {
let navHeight = navigation.isFixed ? navigation.totalHeight - navigation.fixedHeight : navigation.totalHeight const navHeight = navigation.isFixed && !parentId ? navigation.totalHeight - navigation.fixedHeight : !parentId ? navigation.totalHeight : 0
dom.scrollTo(sct, parseInt(data.scrollHeight) + navHeight) dom.scrollTo(sct, parseInt(data.scrollHeight) + navHeight)
} }
// 点击企业详情页 栏目下拉子标签动态设置滚动高度 // 点击企业详情页 栏目下拉子标签动态设置滚动高度
...@@ -63,11 +62,9 @@ const scrolling = function(iframeId, navigation, parentId) { ...@@ -63,11 +62,9 @@ const scrolling = function(iframeId, navigation, parentId) {
let scrollTop = parentId ? document.getElementById(parentId).scrollTop : window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop let scrollTop = parentId ? document.getElementById(parentId).scrollTop : window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop
// 将滚动距离传入子组件 // 将滚动距离传入子组件
const ifa = document.getElementById(iframeId) const ifa = document.getElementById(iframeId)
if ((scrollTop < navigation.totalHeight && !navigation.isFixed) || navigation.isFixed) { scrollTop = scrollTop + navigation.totalHeight
scrollTop = scrollTop + navigation.totalHeight
}
const bodyHeight = document.body.clientHeight - navigation.totalHeight const bodyHeight = document.body.clientHeight - navigation.totalHeight
ifa.contentWindow.postMessage({ 'scrollTop': scrollTop, 'bodyHeight': bodyHeight }, '*') ifa.contentWindow.postMessage({ 'scrollTop': scrollTop, 'navHeight': navigation.totalHeight, 'bodyHeight': bodyHeight }, '*')
} }
export { export {
......
...@@ -105,7 +105,7 @@ export default { ...@@ -105,7 +105,7 @@ export default {
data() { data() {
return { return {
encodeStr, encodeStr,
datatype:'3',//切换类型 datatype:'1',//切换类型
dataAll: {}, dataAll: {},
dtdata:[],//数据 dtdata:[],//数据
dttime:[],//坐标 dttime:[],//坐标
......
...@@ -84,12 +84,6 @@ export default { ...@@ -84,12 +84,6 @@ export default {
let res = await financialData({cid: this.companyId}) let res = await financialData({cid: this.companyId})
if(res.code==200 && res.data){ if(res.code==200 && res.data){
this.viewData = res.data this.viewData = res.data
// totalVal = data.map(item => item.value).reduce((prev, cur) => prev + cur)
// this.viewData = data.map(item => {
// let it = {name:item.year, value:item.value, percent:parseFloat(Number(Number(item.value)/Number(totalVal)*100).toFixed(2))}
// return it
// })
// console.log(this.viewData)
if(this.viewData.length>0){ if(this.viewData.length>0){
this.$nextTick(() => { this.$nextTick(() => {
this.getDT(val) this.getDT(val)
...@@ -101,10 +95,12 @@ export default { ...@@ -101,10 +95,12 @@ export default {
let myChart = echarts.init(document.getElementById("echartsFinance")) let myChart = echarts.init(document.getElementById("echartsFinance"))
let barData = [],years = [],compareData = []; let barData = [],years = [],compareData = [];
this.viewData.map(item=>{ this.viewData.map(item=>{
barData.push(item[val]); barData.push(item[val+'Size'].toFixed(2));
compareData.push(item[val+'Compare']||''); compareData.push(item[val+'Compare']||'');
years.push(item.year) years.push(item.year)
}) })
// let compareDataMax = Math.max(...compareData)
// let compareDataMin = Math.min(...compareData)
let option = { let option = {
legend: { legend: {
show:true, show:true,
...@@ -145,7 +141,7 @@ export default { ...@@ -145,7 +141,7 @@ export default {
yAxis: [ yAxis: [
{ {
type: 'value', type: 'value',
min:0, // min:0,
splitLine : { //网格线 splitLine : { //网格线
lineStyle: { lineStyle: {
type: 'dashed' //设置网格线类型 dotted:虚线 solid:实线 type: 'dashed' //设置网格线类型 dotted:虚线 solid:实线
...@@ -156,7 +152,7 @@ export default { ...@@ -156,7 +152,7 @@ export default {
type: 'value', type: 'value',
// min:'dataMin', // min:'dataMin',
// max:'dataMax', // max:'dataMax',
// interval:compareData.length, // interval:((compareDataMax-compareDataMin)/5).toFixed(2),
splitLine : { //网格线 splitLine : { //网格线
show:false show:false
}, },
...@@ -193,7 +189,7 @@ export default { ...@@ -193,7 +189,7 @@ export default {
color: "#0081FF" color: "#0081FF"
}, },
type: 'line', type: 'line',
// yAxisIndex: 1, yAxisIndex: 1,
data: compareData data: compareData
}, },
], ],
......
...@@ -20,5 +20,9 @@ public class CustomerStatusListVo implements Serializable { ...@@ -20,5 +20,9 @@ public class CustomerStatusListVo implements Serializable {
* 城投id * 城投id
*/ */
private String uipId; private String uipId;
/**
* 企业名称
*/
private String companyName;
} }
...@@ -28,6 +28,8 @@ public interface CustomerMapper extends BaseMapper<Customer> { ...@@ -28,6 +28,8 @@ public interface CustomerMapper extends BaseMapper<Customer> {
List<CustomerStatusListVo> selectStatusList(@Param("uipIds") List<String> uipIds, @Param("userId") Long userId); List<CustomerStatusListVo> selectStatusList(@Param("uipIds") List<String> uipIds, @Param("userId") Long userId);
List<CustomerStatusListVo> selectStatusListByCompanyName(@Param("companyNames") List<String> companyNames, @Param("userId") Long userId);
// List<String> selectUipIdList(@Param("uipIds") List<String> uipIds, @Param("userId") Long userId); // List<String> selectUipIdList(@Param("uipIds") List<String> uipIds, @Param("userId") Long userId);
} }
......
...@@ -29,6 +29,8 @@ public interface ICustomerService { ...@@ -29,6 +29,8 @@ public interface ICustomerService {
List<CustomerStatusListVo> selectStatusList(List<String> uipIds); List<CustomerStatusListVo> selectStatusList(List<String> uipIds);
List<CustomerStatusListVo> selectStatusListByCompanyName(List<String> companyNames);
// List<String> selectUipIdList(List<String> uipIds); // List<String> selectUipIdList(List<String> uipIds);
Integer status(String companyName); Integer status(String companyName);
......
...@@ -119,6 +119,11 @@ public class CustomerServiceImpl implements ICustomerService { ...@@ -119,6 +119,11 @@ public class CustomerServiceImpl implements ICustomerService {
return baseMapper.selectStatusList(uipIds, SecurityUtils.getUserId()); return baseMapper.selectStatusList(uipIds, SecurityUtils.getUserId());
} }
@Override
public List<CustomerStatusListVo> selectStatusListByCompanyName(List<String> companyNames) {
return baseMapper.selectStatusListByCompanyName(companyNames, SecurityUtils.getUserId());
}
// @Override // @Override
// public List<String> selectUipIdList(List<String> uipIds) { // public List<String> selectUipIdList(List<String> uipIds) {
......
...@@ -58,6 +58,17 @@ ...@@ -58,6 +58,17 @@
</foreach> </foreach>
</select> </select>
<select id="selectStatusListByCompanyName" resultType="com.dsk.system.domain.customer.vo.CustomerStatusListVo">
select
ct.customer_id, ct.company_name
from customer ct
join customer_user ctu on ct.customer_id = ctu.customer_id
where ctu.user_id = #{userId} and ctu.status = 0 and ct.company_name in
<foreach collection="companyNames" item="companyName" open="(" separator="," close=")">
#{companyName}
</foreach>
</select>
<!-- <select id="selectUipIdList" resultType="java.lang.String">--> <!-- <select id="selectUipIdList" resultType="java.lang.String">-->
<!-- select--> <!-- select-->
<!-- ct.uip_id--> <!-- ct.uip_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