Commit 6dedea1e authored by Administrator's avatar Administrator

Merge remote-tracking branch 'origin/dev20230707' into dev20230707

parents e0955191 3b48016a
...@@ -70,7 +70,7 @@ export const constantRoutes = [ ...@@ -70,7 +70,7 @@ export const constantRoutes = [
path: 'index', path: 'index',
component: () => import('@/views/index'), component: () => import('@/views/index'),
name: 'Index', name: 'Index',
meta: { title: '首页', icon: 'index',noCache: true } meta: { title: '首页', icon: 'index',noCache: false }
} }
] ]
}, },
......
...@@ -51,6 +51,10 @@ export default { ...@@ -51,6 +51,10 @@ export default {
type: String, type: String,
default: '请选择' default: '请选择'
}, },
'moneyValue': {
type: String,
default: ''
},
'ref-str': { 'ref-str': {
type: String, type: String,
default: `timeselect${String(Math.random(0, 100)).slice(2)}`, default: `timeselect${String(Math.random(0, 100)).slice(2)}`,
...@@ -92,6 +96,9 @@ export default { ...@@ -92,6 +96,9 @@ export default {
if(this.moneyList&&this.moneyList.length>0){ if(this.moneyList&&this.moneyList.length>0){
this.options = this.moneyList this.options = this.moneyList
} }
if(this.moneyValue){
this.value = this.moneyValue
}
}, },
destroyed() { destroyed() {
const app = document.getElementById('app') const app = document.getElementById('app')
...@@ -411,20 +418,20 @@ export default { ...@@ -411,20 +418,20 @@ export default {
width: 186px; width: 186px;
color: #606266; color: #606266;
text-indent: 0; text-indent: 0;
padding: 16px; padding: 14px;
padding-top: 0px; padding-top: 0px;
border: 1px solid #e0e0e0; border: 1px solid #e0e0e0;
.popper_wrap { .popper_wrap {
margin-top: 16px; margin-top: 16px;
display: inline-block; display: inline-block;
.popper_input { .popper_input {
width: 100px; width: 90px;
display: inline-block; display: inline-block;
margin: 0px 8px; margin: 0px 8px;
line-height: 34px; line-height: 34px;
} }
.el-input__inner { .el-input__inner {
width: 100px; width: 90px;
} }
} }
input::-webkit-outer-spin-button, input::-webkit-outer-spin-button,
......
...@@ -46,6 +46,10 @@ export default { ...@@ -46,6 +46,10 @@ export default {
type: String, type: String,
default: '请选择', default: '请选择',
}, },
'timeValue': {
type: String,
default: '',
},
'ref-str': { 'ref-str': {
type: String, type: String,
default: `timeselect${String(Math.random(0, 100)).slice(2)}`, default: `timeselect${String(Math.random(0, 100)).slice(2)}`,
...@@ -106,6 +110,9 @@ export default { ...@@ -106,6 +110,9 @@ export default {
if(this.dateTo){ if(this.dateTo){
this.defaultValue = new Date(this.dateTo) this.defaultValue = new Date(this.dateTo)
} }
if(this.timeValue){
this.value = this.timeValue
}
this.handleAppClick() this.handleAppClick()
if(this.timeList&&this.timeList.length>0){ if(this.timeList&&this.timeList.length>0){
this.options = this.timeList this.options = this.timeList
......
...@@ -212,7 +212,7 @@ ...@@ -212,7 +212,7 @@
pageSize:10, pageSize:10,
recordlist:[], recordlist:[],
timeList:['今日','近三天','近七天','自定义'], timeList:['今日','近三天','近七天','自定义'],
datatype:0, datatype:'',
defaultValue:new Date(), defaultValue:new Date(),
pickerValue: [], pickerValue: [],
params:{ params:{
...@@ -301,88 +301,120 @@ ...@@ -301,88 +301,120 @@
self.myChart1.resize() self.myChart1.resize()
}, 10) }, 10)
}, },
initChart(data){ initChart(list){
let data=[]
if(list.length > 10){
for(var i=0;i<10;i++){
data.push(list[i])
}
}else {
data=list
}
//业主单位合作情况 //业主单位合作情况
this.option = { this.option ={
legend: { tooltip: {
show: false, trigger: 'axis',
x:'center', axisPointer: {
y:'bottom', type: 'cross'
padding:[10,0,10,0],
itemWidth: 24,
itemHeight: 10,
textStyle:{
borderRadius:30,
} }
}, },
yAxis: { xAxis: {
type: 'category', type: 'category',
inverse: true, // 反向坐标 axisLabel: { //坐标轴刻度标签的相关设置
data: data.map(item => item.companyName), margin: 15, //刻度标签与轴线之间的距离
axisLine: { color:"#666666"
show: false,
},
axisTick: {
show: false,
}, },
axisTick: false, //坐标轴刻度
axisPointer: { axisPointer: {
label: { type: 'shadow'
show: true, },
margin: 30 data: data.map(item => item.companyName),
},
yAxis: [
{
type: 'value',
axisLabel: { //坐标轴刻度标签的相关设置
color:"#666666"
},
name: '单位:次',
nameLocation: 'end',
nameTextStyle: {
padding: [0, 10, 0, -60], // 四个数字分别为上右下左与原位置距离
color: '#666666',
} }
}, },
axisLabel: { {
margin: 200, type: 'value',
textStyle: { axisLabel: { //坐标轴刻度标签的相关设置
align: 'left', color:"#666666"
}, },
formatter: function (value,index) { name: '单位:万元',
if (value.length > 15) { nameLocation: 'end',
value=`${value.slice(0, 15)}...` nameTextStyle: {
} padding: [0, 0, 0, 100], // 四个数字分别为上右下左与原位置距离
return value color: '#666666',
}, },
}, splitLine: {
}, show: true,
xAxis: { lineStyle: {
type: 'value', type: 'dashed',
axisLabel: { //坐标轴刻度标签的相关设置 color: ['#FFFFFF']
// color:"#666666" }
}, }
name: '单位/万元', }
// nameLocation: 'start', ],
nameLocation: 'end',
nameTextStyle: {
padding: [0, 0, 0, 0], // 四个数字分别为上右下左与原位置距离
// color: '#666666',
},
},
grid: { grid: {
left: '22%', top:30,
top: 60, left:80,
right: 80, right:90,
bottom: 60, bottom:30,
},
tooltip: {
show: true,
// backgroundColor: 'rgba(0,0,0,.7)',
borderWidth: 0,
// textStyle: {
// color: '#fff',
// },
}, },
series: { series: [
name:'合同总额', {
data: data.map(item => item.totalAmount), name:'合作金额(万元)',
barGap: 0, smooth: false, //平滑
type: 'bar', type:"line",
itemStyle:{ symbolSize: 6,
color: '#92C9FF', yAxisIndex: 1,
barBorderRadius:[0, 20, 20, 0] tooltip: {
valueFormatter: function (value) {
return value + '万元'
}
},
itemStyle: {
normal:{
color: '#67B3FD',
lineStyle: {
width:3
},
}
},
data:data.map(item => item.totalAmount),
}, },
barWidth: 8, {
}, name:'合作次数(次)',
type: 'bar',
barWidth: 20,
tooltip: {
valueFormatter: function (value) {
return value + '次';
}
},
itemStyle: {
normal:{
color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
offset: 0,
color: '#56A5FF'
}, {
offset: 1,
color: '#1B8EFF'
}]),
barBorderRadius:[20,20, 0, 0]
}
},
data:data.map(item => item.businessCount),
}
]
} }
this.option && this.myChart.setOption(this.option) this.option && this.myChart.setOption(this.option)
}, },
......
...@@ -33,6 +33,9 @@ ...@@ -33,6 +33,9 @@
<template slot="stockPercent" slot-scope="scope"> <template slot="stockPercent" slot-scope="scope">
<span>{{scope.row.stockPercent?parseFloat(Number(scope.row.stockPercent*100).toFixed(4))+'%':'--'}}</span> <span>{{scope.row.stockPercent?parseFloat(Number(scope.row.stockPercent*100).toFixed(4))+'%':'--'}}</span>
</template> </template>
<template slot="shouldCapiConv" slot-scope="scope">
<span>{{scope.row.shouldCapiConv === '0.00万元人民币'? '--':scope.row.shouldCapiConv}}</span>
</template>
</tables> </tables>
</div> </div>
</template> </template>
...@@ -56,7 +59,7 @@ export default { ...@@ -56,7 +59,7 @@ export default {
forData: [ forData: [
{label: '发起人/股东', prop: 'stockName', minWidth: '230', slot: true}, {label: '发起人/股东', prop: 'stockName', minWidth: '230', slot: true},
{label: '持股比例', prop: 'stockPercent', slot: true}, {label: '持股比例', prop: 'stockPercent', slot: true},
{label: '认缴出资', prop: 'shouldCapiConv'}, {label: '认缴出资', prop: 'shouldCapiConv', slot: true},
{label: '实缴出资额', prop: 'realCapi'}, {label: '实缴出资额', prop: 'realCapi'},
{label: '认缴出资日期', prop: 'conDate'}, {label: '认缴出资日期', prop: 'conDate'},
{label: '参股日期', prop: 'realCapiDate', width: '150'} {label: '参股日期', prop: 'realCapiDate', width: '150'}
......
This diff is collapsed.
...@@ -391,14 +391,17 @@ ...@@ -391,14 +391,17 @@
<select id="selectAmountAnalyze" resultType="com.dsk.system.domain.business.vo.BusinessAnalyzeVo"> <select id="selectAmountAnalyze" resultType="com.dsk.system.domain.business.vo.BusinessAnalyzeVo">
select select
bi.amount_source,count(bi.id) businessCount, ROUND(sum(bi.investment_amount), 4) totalAmount bi.amount_source,count(bi.id) businessCount, ROUND(sum(bi.investment_amount), 4) totalAmount
<include refid="businessSearchSql"/> <include refid="businessSearchSql"/>
and bi.amount_source is not null
group by bi.amount_source group by bi.amount_source
having businessCount > 0
</select> </select>
<select id="selectTypeAnalyze" resultType="com.dsk.system.domain.business.vo.BusinessAnalyzeVo"> <select id="selectTypeAnalyze" resultType="com.dsk.system.domain.business.vo.BusinessAnalyzeVo">
select select
bi.project_type,count(bi.id) businessCount, ROUND(sum(bi.investment_amount), 4) totalAmount bi.project_type,count(bi.id) businessCount, ROUND(sum(bi.investment_amount), 4) totalAmount
<include refid="businessSearchSql"/> <include refid="businessSearchSql"/>
and bi.project_type is not null
group by bi.project_type group by bi.project_type
<if test="status != null and status == 0 "> order by businessCount desc </if> <if test="status != null and status == 0 "> order by businessCount desc </if>
<if test="status != null and status == 2 "> order by totalAmount desc </if> <if test="status != null and status == 2 "> order by totalAmount desc </if>
...@@ -408,6 +411,7 @@ ...@@ -408,6 +411,7 @@
select select
bi.project_category,count(bi.id) businessCount, ROUND(sum(bi.investment_amount), 4) totalAmount bi.project_category,count(bi.id) businessCount, ROUND(sum(bi.investment_amount), 4) totalAmount
<include refid="businessSearchSql"/> <include refid="businessSearchSql"/>
and bi.project_category is not null
group by bi.project_category group by bi.project_category
<if test="status != null and status == 0 "> order by businessCount desc </if> <if test="status != null and status == 0 "> order by businessCount desc </if>
<if test="status != null and status == 2 "> order by totalAmount desc </if> <if test="status != null and status == 2 "> order by totalAmount desc </if>
......
...@@ -118,6 +118,7 @@ ...@@ -118,6 +118,7 @@
left join business_info bi on (bi.customer_id = ct.customer_id and bi.status = 2) left join business_info bi on (bi.customer_id = ct.customer_id and bi.status = 2)
where ctu.status = 0 and ctu.user_id = #{userId} where ctu.status = 0 and ctu.user_id = #{userId}
group by ct.customer_id group by ct.customer_id
having businessCount > 0
order by totalAmount desc order by totalAmount desc
limit 10 limit 10
</select> </select>
......
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