Commit 80fe72e9 authored by danfuman's avatar danfuman

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

parents e2416687 275cbff4
...@@ -30,7 +30,7 @@ public class EnterpriseBussinessSupplierProjectPageBody extends BasePage { ...@@ -30,7 +30,7 @@ public class EnterpriseBussinessSupplierProjectPageBody extends BasePage {
* 供应商企业 * 供应商企业
*/ */
@NotNull(message = "企业不能为空") @NotNull(message = "企业不能为空")
private Integer companyName; private String companyName;
/** /**
* 查询关键字 * 查询关键字
......
This diff is collapsed.
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
</ul> </ul>
<div class="alltags" v-if="visitedViews.length > 0"> <div class="alltags" v-if="visitedViews.length > 0">
<div class="" @click="closeall"><i class="el-icon-arrow-down" v-if="!showall"></i> <i class="el-icon-arrow-up" v-if="showall"></i></div> <div class="" @click="closeall"><i class="el-icon-arrow-down" v-if="!showall"></i> <i class="el-icon-arrow-up" v-if="showall"></i></div>
<div class="tagslist" v-if="showall"> <div class="tagslist" v-show="showall">
<!--<div v-for="(tag, index) in visitedViews"--> <!--<div v-for="(tag, index) in visitedViews"-->
<!--:key="tag.path"--> <!--:key="tag.path"-->
<!--:class="isActive(tag)?'active':''"--> <!--:class="isActive(tag)?'active':''"-->
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
> >
<div @click="changetags"> <div @click="changetags">
<i class="el-icon-check"></i> <i class="el-icon-check"></i>
<span :id="isActive(tag)?'tagTitle':''">{{ tag.title }}</span> <span :id="isActive(tag)?'tagTitles':''">{{ tag.title }}</span>
</div> </div>
</router-link> </router-link>
<div class="clasall" @click="closeAllTag(selectedTag)">关闭全部标签</div> <div class="clasall" @click="closeAllTag(selectedTag)">关闭全部标签</div>
...@@ -120,7 +120,6 @@ export default { ...@@ -120,7 +120,6 @@ export default {
}, },
methods: { methods: {
changetags(){ changetags(){
console.log(88)
this.showall = false this.showall = false
}, },
closeall(){ closeall(){
......
...@@ -14,7 +14,9 @@ ...@@ -14,7 +14,9 @@
:amountTotal="amountTotal" :amountTotal="amountTotal"
@handle-search="handleSearch" @handle-search="handleSearch"
/> />
<skeleton style="margin-left:16px;" v-if="isSkeleton"></skeleton>
<tables <tables
v-else
:indexFixed="true" :indexFixed="true"
:tableLoading="tableLoading" :tableLoading="tableLoading"
:tableData="tableData" :tableData="tableData"
...@@ -39,6 +41,7 @@ ...@@ -39,6 +41,7 @@
import mixin from '../../mixins/mixin' import mixin from '../../mixins/mixin'
import {clientProjectPage,getSelect,bidWinMergeDetail} from '@/api/detail/party-a/dealings' import {clientProjectPage,getSelect,bidWinMergeDetail} from '@/api/detail/party-a/dealings'
import HeadDetailForm from "../../component/HeadDetailForm" import HeadDetailForm from "../../component/HeadDetailForm"
import skeleton from '@/views/project/projectList/component/skeleton'
export default { export default {
props: [ props: [
...@@ -47,12 +50,13 @@ export default { ...@@ -47,12 +50,13 @@ export default {
'title' 'title'
], ],
components: { components: {
HeadDetailForm HeadDetailForm,skeleton
}, },
mixins: [mixin], mixins: [mixin],
data() { data() {
return { return {
drawer: false, drawer: false,
isSkeleton:true,
queryParams: { queryParams: {
cid: this.companyId, cid: this.companyId,
companyId: this.data.companyId, companyId: this.data.companyId,
...@@ -113,6 +117,7 @@ export default { ...@@ -113,6 +117,7 @@ export default {
if(res.code==200){ if(res.code==200){
this.tableData = res.rows this.tableData = res.rows
} }
this.isSkeleton = false;
this.tableDataTotal = res.total this.tableDataTotal = res.total
this.amountTotal = res.totalAmount this.amountTotal = res.totalAmount
}, },
......
...@@ -14,7 +14,9 @@ ...@@ -14,7 +14,9 @@
:amountTotal="amountTotal" :amountTotal="amountTotal"
@handle-search="handleSearch" @handle-search="handleSearch"
/> />
<skeleton style="margin-left:16px;" v-if="isSkeleton"></skeleton>
<tables <tables
v-else
:indexFixed="true" :indexFixed="true"
:tableLoading="tableLoading" :tableLoading="tableLoading"
:tableData="tableData" :tableData="tableData"
...@@ -39,6 +41,7 @@ ...@@ -39,6 +41,7 @@
import mixin from '../../mixins/mixin' import mixin from '../../mixins/mixin'
import { supplierProjectPage,getSelect,bidWinMergeDetail } from '@/api/detail/party-a/dealings' import { supplierProjectPage,getSelect,bidWinMergeDetail } from '@/api/detail/party-a/dealings'
import HeadDetailForm from "../../component/HeadDetailForm" import HeadDetailForm from "../../component/HeadDetailForm"
import skeleton from '@/views/project/projectList/component/skeleton'
export default { export default {
props: [ props: [
...@@ -47,11 +50,12 @@ export default { ...@@ -47,11 +50,12 @@ export default {
'title' 'title'
], ],
components: { components: {
HeadDetailForm HeadDetailForm,skeleton
}, },
mixins: [mixin], mixins: [mixin],
data() { data() {
return { return {
isSkeleton:true,
drawer: false, drawer: false,
queryParams: { queryParams: {
companyId: this.data.companyId, companyId: this.data.companyId,
...@@ -113,6 +117,7 @@ export default { ...@@ -113,6 +117,7 @@ export default {
if(res.code==200){ if(res.code==200){
this.tableData = res.rows this.tableData = res.rows
} }
this.isSkeleton = false;
this.tableDataTotal = res.total this.tableDataTotal = res.total
this.amountTotal = res.totalAmount this.amountTotal = res.totalAmount
}, },
......
...@@ -130,7 +130,7 @@ export default { ...@@ -130,7 +130,7 @@ export default {
handleClick(e, data) { handleClick(e, data) {
this.rowData = data this.rowData = data
this.isDetails = true; this.isDetails = true;
this.title = '与客户'+data.companyName+'合作记录' this.title = '与客户'+data.companyName.replace(/<font color='red'>/g,'').replace(/<\/font>/g,'')+'合作记录'
}, },
handleDetail(row){ handleDetail(row){
if(row.sourceUrl){ if(row.sourceUrl){
......
...@@ -124,7 +124,7 @@ export default { ...@@ -124,7 +124,7 @@ export default {
handleClick(e, data) { handleClick(e, data) {
this.rowData = data this.rowData = data
this.isDetails = true this.isDetails = true
this.title = '与供应商'+data.companyName+'合作记录' this.title = '与供应商'+data.companyName.replace(/<font color='red'>/g,'').replace(/<\/font>/g,'')+'合作记录'
}, },
handleDetail(row){ handleDetail(row){
if(row.sourceUrl){ if(row.sourceUrl){
......
...@@ -188,6 +188,15 @@ export default { ...@@ -188,6 +188,15 @@ export default {
companyName: this.customerInfo.companyName companyName: this.customerInfo.companyName
} }
document.getElementById('tagTitle').innerText = this.customerInfo.companyName document.getElementById('tagTitle').innerText = this.customerInfo.companyName
// let lists = this.$store.state.tagsView.visitedViews
// lists.forEach(item=>{
// if(item.fullPath == this.$route.fullPath){
let titlename = document.getElementById('tagTitles')
if(titlename){
titlename.innerText = this.customerInfo.companyName
}
// }
// })
}) })
} }
} }
...@@ -273,6 +282,15 @@ export default { ...@@ -273,6 +282,15 @@ export default {
if(this.companyInfo && this.companyInfo.companyName){ if(this.companyInfo && this.companyInfo.companyName){
this.$nextTick(()=>{ this.$nextTick(()=>{
document.getElementById('tagTitle').innerText = this.companyInfo.companyName document.getElementById('tagTitle').innerText = this.companyInfo.companyName
// let lists = this.$store.state.tagsView.visitedViews
// lists.forEach(item=>{
// if(item.fullPath == this.$route.fullPath){
let titlename = document.getElementById('tagTitles')
if(titlename){
titlename.innerText = this.companyInfo.companyName
}
// }
// })
}) })
} }
} }
...@@ -313,6 +331,15 @@ export default { ...@@ -313,6 +331,15 @@ export default {
companyName: this.customerInfo.companyName companyName: this.customerInfo.companyName
} }
document.getElementById('tagTitle').innerText = this.customerInfo.companyName document.getElementById('tagTitle').innerText = this.customerInfo.companyName
// let lists = this.$store.state.tagsView.visitedViews
// lists.forEach(item=>{
// if(item.fullPath == this.$route.fullPath){
let titlename = document.getElementById('tagTitles')
if(titlename){
titlename.innerText = this.customerInfo.companyName
}
// }
// })
}) })
} }
} else { } else {
......
...@@ -342,6 +342,7 @@ ...@@ -342,6 +342,7 @@
import * as echarts from 'echarts' import * as echarts from 'echarts'
import addproject from '../projectList/component/addProject' import addproject from '../projectList/component/addProject'
import NoData from '../../component/noData' import NoData from '../../component/noData'
import '@/assets/lib/china.js'
export default { export default {
name: 'Overview', name: 'Overview',
...@@ -473,9 +474,11 @@ export default { ...@@ -473,9 +474,11 @@ export default {
countGroupByProvince(data).then(res=>{ countGroupByProvince(data).then(res=>{
if(res.code==200){ if(res.code==200){
this.viewData4 = res.data; this.viewData4 = res.data;
console.log(this.viewData4)
if(this.viewData4.length>0){ if(this.viewData4.length>0){
res.data.map(item=>{ this.viewData4.map(item=>{
item.name = item.type
item.value = {count:item.count}
item.select = { item.select = {
itemStyle:{ itemStyle:{
areaColor: '#0081FF', areaColor: '#0081FF',
...@@ -486,9 +489,11 @@ export default { ...@@ -486,9 +489,11 @@ export default {
} }
} }
}) })
let chartDom1 = document.getElementById("drawChinese") this.$nextTick(()=>{
this.myChart4 = echarts.init(chartDom1) console.log(this.viewData4)
this.initChart4() this.initChart4()
})
} }
} }
}) })
...@@ -722,15 +727,18 @@ export default { ...@@ -722,15 +727,18 @@ export default {
}, },
//中国地图 //中国地图
initChart4(){ initChart4(){
let chartDom1 = document.getElementById("drawChinese")
this.myChart4 = echarts.init(chartDom1)
let _this = this let _this = this
// 指定图表的配置项和数据 // 指定图表的配置项和数据
// 绘制图表 // 绘制图表
let options = { let options = {
tooltip: { tooltip: {
trigger: 'item', trigger: 'item',
show: false, show: true,
formatter: function(params) { formatter: function(params) {
return params.type + ':' + params.count console.dir(params )
return `${params.value}`
} }
}, },
// 左侧小导航图标 // 左侧小导航图标
...@@ -749,6 +757,7 @@ export default { ...@@ -749,6 +757,7 @@ export default {
mapType: 'china', mapType: 'china',
roam: false, roam: false,
zoom: 1.2, zoom: 1.2,
label: { label: {
normal: { normal: {
show: false, // 省份名称 show: false, // 省份名称
...@@ -1183,6 +1192,7 @@ export default { ...@@ -1183,6 +1192,7 @@ export default {
height: 360px; height: 360px;
margin-top: -30px; margin-top: -30px;
position: relative; position: relative;
margin: 0 auto;
.nhzd{ .nhzd{
width: 50px; width: 50px;
height: auto; height: auto;
......
...@@ -282,15 +282,7 @@ ...@@ -282,15 +282,7 @@
<img src="@/assets/images/addree.png" alt=""> <img src="@/assets/images/addree.png" alt="">
<p class="list-content-text" v-if="item.province||item.city||item.area"> <p class="list-content-text" v-if="item.province||item.city||item.area">
<span>行政区划:</span> <span>行政区划:</span>
<span > <span >{{item.province}}<template v-if="item.city">-{{item.city}}</template><template v-if="item.area">-{{item.area}}</template></span>
{{item.province}}
<template v-if="item.city">
-{{item.city}}
</template>
<template v-if="item.area">
-{{item.area}}
</template>
</span>
</p> </p>
<p class="list-content-text" v-if="item.landAddr"> <p class="list-content-text" v-if="item.landAddr">
<span>土地坐落:</span> <span>土地坐落:</span>
......
package com.dsk.system.domain.business.dto; package com.dsk.system.domain.business.dto;
import com.dsk.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
...@@ -14,7 +15,7 @@ import java.util.Map; ...@@ -14,7 +15,7 @@ import java.util.Map;
*/ */
@Data @Data
@NoArgsConstructor @NoArgsConstructor
public class BusinessSearchDto implements Serializable { public class BusinessSearchDto extends BaseEntity implements Serializable {
/** /**
* 用户id * 用户id
*/ */
...@@ -24,18 +25,6 @@ public class BusinessSearchDto implements Serializable { ...@@ -24,18 +25,6 @@ public class BusinessSearchDto implements Serializable {
*/ */
private Integer status; private Integer status;
/**
* 数据权限
*/
private Map<String, Object> params;
public Map<String, Object> getParams() {
if (params == null) {
params = new HashMap<>();
}
return params;
}
public BusinessSearchDto(Long userId) { public BusinessSearchDto(Long userId) {
this.userId = userId; this.userId = userId;
} }
......
package com.dsk.system.domain.customer.dto; package com.dsk.system.domain.customer.dto;
import com.dsk.common.core.domain.BaseEntity;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
...@@ -14,7 +15,7 @@ import java.util.Map; ...@@ -14,7 +15,7 @@ import java.util.Map;
*/ */
@Data @Data
@NoArgsConstructor @NoArgsConstructor
public class CustomerSearchDto implements Serializable { public class CustomerSearchDto extends BaseEntity implements Serializable {
/** /**
* 企业id * 企业id
*/ */
...@@ -67,17 +68,4 @@ public class CustomerSearchDto implements Serializable { ...@@ -67,17 +68,4 @@ public class CustomerSearchDto implements Serializable {
* 信资等级 * 信资等级
*/ */
private List<String> creditLevels; private List<String> creditLevels;
/**
* 数据权限
*/
private Map<String, Object> params;
public Map<String, Object> getParams() {
if (params == null) {
params = new HashMap<>();
}
return params;
}
} }
...@@ -71,11 +71,11 @@ ...@@ -71,11 +71,11 @@
left join sys_dept d on u.dept_id = d.dept_id left join sys_dept d on u.dept_id = d.dept_id
<where> <where>
<if test="userId != null"> and (f.user_id = #{userId} or i.is_private = 1)</if> <if test="userId != null"> and (f.user_id = #{userId} or i.is_private = 1)</if>
<if test="startTime != null and startTime != '' "> and f.creat_time &gt;= #{startTime} </if> <if test="startTime != null and startTime != '' "> and f.visit_time &gt;= #{startTime} </if>
<if test="endTime != null and endTime != '' "> and f.creat_time &lt;= #{endTime} </if> <if test="endTime != null and endTime != '' "> and f.visit_time &lt;= #{endTime} </if>
${params.dataScope} ${params.dataScope}
</where> </where>
ORDER BY f.creat_time DESC ORDER BY f.visit_time DESC
</select> </select>
<select id="selectRelateProject" resultType="com.dsk.system.domain.business.vo.BusinessListVo"> <select id="selectRelateProject" resultType="com.dsk.system.domain.business.vo.BusinessListVo">
select i.id,i.project_name as projectName select i.id,i.project_name as projectName
......
...@@ -314,10 +314,9 @@ ...@@ -314,10 +314,9 @@
</delete> </delete>
<delete id="deleteBusinessInfoByIds" parameterType="Long"> <delete id="deleteBusinessInfoByIds" parameterType="Long">
delete i,b,co,f,l,r,u delete i,b,f,l,r,u
from business_info i from business_info i
left join business_backlog b on b.business_id = i.id left join business_backlog b on b.business_id = i.id
left join business_contacts co on co.business_id = i.id
left join business_follow_record f on f.business_id = i.id left join business_follow_record f on f.business_id = i.id
left join business_label l on l.business_id = i.id left join business_label l on l.business_id = i.id
left join business_relate_company r on r.business_id = i.id left join business_relate_company r on r.business_id = i.id
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<!-- 数据范围过滤 --> <!-- 数据范围过滤 -->
<if test="params.dataScope != null and params.dataScope != '' "> ${params.dataScope} </if> <if test="params.dataScope != null and params.dataScope != '' "> ${params.dataScope} </if>
</where> </where>
order by cfr.create_time desc order by cfr.visit_time desc
</select> </select>
</mapper> </mapper>
......
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