更换corpId

This commit is contained in:
aixianling
2024-04-02 15:16:37 +08:00
parent 8990e921ae
commit dee681d246
2 changed files with 1325 additions and 1319 deletions

View File

@@ -311,6 +311,7 @@
</template>
<script>
const corpId = "wwb182f88f0327b37f"
import DvMap from './components/DvMap'
import DoughnutChart from './components/DoughnutChart'
export default {
@@ -849,8 +850,7 @@
this.$nextTick(() => {
this.instance.post(`/api/wxgridinfo/tree`, null, {
params: {
gridParentId: this.gridId,
corpId: 'wpytYEDgAA5zwi8Ak2mwFh3PwBKwwlWA'
gridParentId: this.gridId, corpId
}
}).then(res => {
if (res.code === 0) {
@@ -865,8 +865,7 @@
this.gridParentId = gridId || 'gr3AePMwAAFWlqlNvfJboAWkRNbnA14A'
this.instance.post(`/api/wxgridinfo/tree`, null, {
params: {
gridParentId: gridId || '',
corpId: 'wpytYEDgAA5zwi8Ak2mwFh3PwBKwwlWA'
gridParentId: gridId || '', corpId
}
}).then(res => {
if (res.code === 0) {
@@ -884,7 +883,7 @@
getInfo () {
this.instance.post(`/api/wxgridinfo/comprehensiveOverview`, null, {
params: {
corpId: 'wpytYEDgAA5zwi8Ak2mwFh3PwBKwwlWA'
corpId
}
}).then(res => {
if (res.code === 0) {
@@ -894,7 +893,7 @@
this.instance.post(`/api/wxgridinfo/wxGroupTag`, null, {
params: {
corpId: 'wpytYEDgAA5zwi8Ak2mwFh3PwBKwwlWA'
corpId
}
}).then(res => {
if (res.code === 0) {
@@ -915,7 +914,7 @@
this.instance.post(`/api/wxgridinfo/wxGroupOverview`, null, {
params: {
corpId: 'wpytYEDgAA5zwi8Ak2mwFh3PwBKwwlWA',
corpId,
gridId: this.gridId || this.gridParentId
}
}).then(res => {
@@ -926,7 +925,7 @@
this.instance.post(`/api/wxgridinfo/wjwqgk`, null, {
params: {
corpId: 'wpytYEDgAA5zwi8Ak2mwFh3PwBKwwlWA',
corpId,
gridId: this.gridId || this.gridParentId
}
}).then(res => {
@@ -937,7 +936,7 @@
this.instance.post(`/api/wxgridinfo/wjwqgkGMFB`, null, {
params: {
corpId: 'wpytYEDgAA5zwi8Ak2mwFh3PwBKwwlWA',
corpId,
gridId: this.gridId || this.gridParentId
}
}).then(res => {
@@ -948,7 +947,7 @@
this.instance.post(`/api/wxgridinfo/cyActivity`, null, {
params: {
corpId: 'wpytYEDgAA5zwi8Ak2mwFh3PwBKwwlWA',
corpId,
gridId: this.gridId || this.gridParentId
}
}).then(res => {
@@ -1166,7 +1165,7 @@
.el-input__suffix {
right: 1px;
top: 0px;
top: 0;
}
i {

View File

@@ -258,7 +258,7 @@
<div class="info-title">
<h2>事件详情</h2>
</div>
<img src="https://cdn.cunwuyun.cn/dvcp/dv/qxn/close.png" @click="isShow = false" />
<img src="https://cdn.cunwuyun.cn/dvcp/dv/qxn/close.png" @click="isShow = false"/>
<h3 :title="eventInfo.desc">{{ eventInfo.desc }}</h3>
<div class="info-wrapper">
<div class="info-wrapper__item">
@@ -312,9 +312,11 @@
</template>
<script>
import DvMap from './components/DvMap'
import DoughnutChart from './components/DoughnutChart'
export default {
const corpId = "wwb182f88f0327b37f"
import DvMap from './components/DvMap'
import DoughnutChart from './components/DoughnutChart'
export default {
name: 'AppQxnEventDv',
label: '事件上报',
@@ -327,7 +329,7 @@
DoughnutChart
},
data () {
data() {
return {
policeStationList: [],
currIndex: 0,
@@ -354,22 +356,22 @@
trigger: 'axis',
backgroundColor: 'rgba(0, 102, 154, 0.65)',
borderColor: 'rgba(0, 102, 154, 0.65)',
textStyle: { color: '#fff' },
axisPointer: { type: 'cross' }
textStyle: {color: '#fff'},
axisPointer: {type: 'cross'}
},
color: ['#33CCCC', '#DBB36E'],
xAxis: {
type: "category",
axisTick: {show: false},
axisLine: { lineStyle: { color: 'rgba(179, 223, 255, 0.4)' } },
axisLine: {lineStyle: {color: 'rgba(179, 223, 255, 0.4)'}},
axisLabel: {color: '#8FABBF', fontSize: 12}
},
yAxis: {
nameGap: 23,
minInterval: 1,
splitLine: { lineStyle: { color: 'rgba(108, 128, 151, 0.3)', type: 'dashed' } },
splitLine: {lineStyle: {color: 'rgba(108, 128, 151, 0.3)', type: 'dashed'}},
axisLabel: {color: '#8FABBF', fontSize: 12},
axisPointer: { snap: true }
axisPointer: {snap: true}
},
series: [
{
@@ -407,22 +409,22 @@
trigger: 'axis',
backgroundColor: 'rgba(0, 102, 154, 0.65)',
borderColor: 'rgba(0, 102, 154, 0.65)',
textStyle: { color: '#fff' },
axisPointer: { type: 'cross' }
textStyle: {color: '#fff'},
axisPointer: {type: 'cross'}
},
color: ['#33CCCC', '#2C97E8','#BFEAFF', '#DBB36E'],
color: ['#33CCCC', '#2C97E8', '#BFEAFF', '#DBB36E'],
xAxis: {
type: "category",
axisTick: {show: false},
axisLine: { lineStyle: { color: 'rgba(179, 223, 255, 0.4)' } },
axisLine: {lineStyle: {color: 'rgba(179, 223, 255, 0.4)'}},
axisLabel: {color: '#8FABBF', fontSize: 12}
},
yAxis: {
nameGap: 23,
minInterval: 1,
splitLine: { lineStyle: { color: 'rgba(108, 128, 151, 0.3)', type: 'dashed' } },
splitLine: {lineStyle: {color: 'rgba(108, 128, 151, 0.3)', type: 'dashed'}},
axisLabel: {color: '#8FABBF', fontSize: 12},
axisPointer: { snap: true }
axisPointer: {snap: true}
},
daemon: (color) => ({
showSymbol: false,
@@ -440,27 +442,27 @@
y: 0,
y2: 1,
colorStops: [
{ offset: 0, color: this.Hex2RGBA(color, 0.3) },
{ offset: 1, color: this.Hex2RGBA(color, 0.1) }
{offset: 0, color: this.Hex2RGBA(color, 0.3)},
{offset: 1, color: this.Hex2RGBA(color, 0.1)}
]
}
}
})
},
chartData3: [] ,
chartData3: [],
chartConfig3: {
xAxis: {
type: "category",
axisTick: {show: false},
axisLabel: {color: '#8FABBF', fontSize: 12},
axisLine: { lineStyle: { color: 'rgba(179, 223, 255, 0.4)' } }
axisLine: {lineStyle: {color: 'rgba(179, 223, 255, 0.4)'}}
},
tooltip: {
trigger: 'axis',
backgroundColor: 'rgba(0, 102, 154, 0.65)',
borderColor: 'rgba(0, 102, 154, 0.65)',
textStyle: { color: '#fff' },
axisPointer: { type: 'cross' }
textStyle: {color: '#fff'},
axisPointer: {type: 'cross'}
},
grid: {
left: '0%',
@@ -477,14 +479,14 @@
yAxis: {
nameGap: 23,
minInterval: 1,
splitLine: { lineStyle: { color: 'rgba(255,255,255,.2)', type: 'dashed' } },
axisPointer: { show: false },
splitLine: {lineStyle: {color: 'rgba(255,255,255,.2)', type: 'dashed'}},
axisPointer: {show: false},
axisLabel: {color: '#8FABBF', fontSize: 12}
},
axisPointer: {
type: 'shadow',
triggerTooltip: false,
shadowStyle: { color: 'rgba(46, 153, 255, .2)' }
shadowStyle: {color: 'rgba(46, 153, 255, .2)'}
},
color: [
{
@@ -494,8 +496,8 @@
y: 0,
y2: 1,
colorStops: [
{ offset: 0, color: 'rgba(51, 204, 204, 1)' },
{ offset: 1, color: 'rgba(31, 89, 89, 0.25)' }
{offset: 0, color: 'rgba(51, 204, 204, 1)'},
{offset: 1, color: 'rgba(31, 89, 89, 0.25)'}
]
},
{
@@ -505,8 +507,8 @@
y: 0,
y2: 1,
colorStops: [
{ offset: 0, color: 'rgba(44, 151, 232, 1)' },
{ offset: 1, color: 'rgba(21, 154, 255, 0)' }
{offset: 0, color: 'rgba(44, 151, 232, 1)'},
{offset: 1, color: 'rgba(21, 154, 255, 0)'}
]
},
{
@@ -516,8 +518,8 @@
y: 0,
y2: 1,
colorStops: [
{ offset: 0, color: 'rgba(191, 234, 255, 1)' },
{ offset: 1, color: 'rgba(191, 234, 255, 0.1)' }
{offset: 0, color: 'rgba(191, 234, 255, 1)'},
{offset: 1, color: 'rgba(191, 234, 255, 0.1)'}
]
},
{
@@ -527,8 +529,8 @@
y: 0,
y2: 1,
colorStops: [
{ offset: 0, color: 'rgba(219, 179, 110, 1)' },
{ offset: 1, color: 'rgba(219, 179, 110, 0.1)' }
{offset: 0, color: 'rgba(219, 179, 110, 1)'},
{offset: 1, color: 'rgba(219, 179, 110, 0.1)'}
]
}
],
@@ -558,18 +560,18 @@
wxGridReportOverviewInfo: {},
tableData1: [],
colConfigs1: [
{ prop: 'createTime', label: '时间', align: 'center', width: '60px', dateFormat: 'MM/DD' },
{ prop: 'reporterName', label: '姓名', align: 'center' },
{ prop: 'caseName', label: '事件名称', align: 'left', width: 130 }
{prop: 'createTime', label: '时间', align: 'center', width: '60px', dateFormat: 'MM/DD'},
{prop: 'reporterName', label: '姓名', align: 'center'},
{prop: 'caseName', label: '事件名称', align: 'left', width: 130}
],
eventInfo: {},
reportHandleList: [],
colConfigs2: [
{ slot: 'index' },
{ prop: 'name', label: '姓名', align: 'center' },
{ prop: 'overCount', label: '已办结', align: 'center', width: 60 },
{ prop: 'handleCount', label: '办理中', align: 'center', width: 60 },
{ prop: 'reportCount', label: '上报数', align: 'center', width: 60 },
{slot: 'index'},
{prop: 'name', label: '姓名', align: 'center'},
{prop: 'overCount', label: '已办结', align: 'center', width: 60},
{prop: 'handleCount', label: '办理中', align: 'center', width: 60},
{prop: 'reportCount', label: '上报数', align: 'center', width: 60},
{
prop: 'reportCount',
label: '联系TA',
@@ -599,8 +601,8 @@
}
],
colConfigs3: [
{ prop: 'createTime', label: '时间', align: 'center', dateFormat: 'MM/DD' },
{ prop: 'desc', label: '事件内容', align: 'left', width: 300 },
{prop: 'createTime', label: '时间', align: 'center', dateFormat: 'MM/DD'},
{prop: 'desc', label: '事件内容', align: 'left', width: 300},
{
prop: 'status',
label: '状态',
@@ -659,7 +661,7 @@
},
computed: {
chartData1 () {
chartData1() {
if (!this.wxGridReportOverviewInfo['上报来源分布+事件办理情况']) {
return []
}
@@ -673,7 +675,7 @@
})
},
chartData2 () {
chartData2() {
if (!this.wxGridReportOverviewInfo['上报来源分布+事件办理情况']) {
return []
}
@@ -688,17 +690,17 @@
})
},
sllData () {
sllData() {
return [{
key: '累计受理事件',
value: this.wxGridReportOverviewInfo['全部上报事件数量'] - this.wxGridReportOverviewInfo['待受理数量']
},{
}, {
key: '累计上报事件',
value: this.wxGridReportOverviewInfo['全部上报事件数量']
}]
},
sllRate () {
sllRate() {
if (!this.wxGridReportOverviewInfo['全部上报事件数量']) {
return 0
}
@@ -706,11 +708,11 @@
return Number((((this.wxGridReportOverviewInfo['全部上报事件数量'] - this.wxGridReportOverviewInfo['待受理数量']) / this.wxGridReportOverviewInfo['全部上报事件数量']) * 100).toFixed(2))
},
sjbjData () {
sjbjData() {
return [{key: '累计办结事件', value: this.wxGridReportOverviewInfo['已办结数量']}, {key: '累计受理事件', value: this.wxGridReportOverviewInfo['全部上报事件数量'] - this.wxGridReportOverviewInfo['待受理数量']}]
},
sjbjRate () {
sjbjRate() {
if (!this.wxGridReportOverviewInfo['全部上报事件数量']) {
return 0
}
@@ -719,11 +721,11 @@
},
},
mounted () {
mounted() {
this.instance.post(`/api/wxgridcata/list`, null, {
params: {
level: 1,
corpId: 'wpytYEDgAA5zwi8Ak2mwFh3PwBKwwlWA'
corpId
}
}).then(res => {
if (res.code === 0) {
@@ -734,7 +736,7 @@
},
methods: {
mapProcessType (status) {
mapProcessType(status) {
return {
'1': '创建',
'2': '受理',
@@ -746,10 +748,10 @@
}[status]
},
getLaunchCode (wxUserId) {
getLaunchCode(wxUserId) {
this.instance.post(`/api/appdvcpconfig/getLaunchCode`, null, {
params: {
corpId: 'wpytYEDgAA5zwi8Ak2mwFh3PwBKwwlWA',
corpId,
userid: wxUserId,
operatorUserid: this.$store.state.user.info.wxUserId
}
@@ -760,7 +762,7 @@
})
},
mapStatus (status, type) {
mapStatus(status, type) {
const index = Number(status)
return [{
color: '#FFB300',
@@ -781,13 +783,13 @@
}][index][type]
},
init (gridId) {
init(gridId) {
this.gridId = ''
this.gridParentId = gridId || 'gr3AePMwAAFWlqlNvfJboAWkRNbnA14A'
this.instance.post(`/api/wxgridinfo/tree`, null, {
params: {
gridParentId: gridId || '',
corpId: 'wpytYEDgAA5zwi8Ak2mwFh3PwBKwwlWA'
corpId
}
}).then(res => {
if (res.code === 0) {
@@ -801,12 +803,12 @@
})
},
onStationChange () {
onStationChange() {
this.$nextTick(() => {
this.instance.post(`/api/wxgridinfo/tree`, null, {
params: {
gridParentId: this.gridId,
corpId: 'wpytYEDgAA5zwi8Ak2mwFh3PwBKwwlWA'
corpId
}
}).then(res => {
if (res.code === 0) {
@@ -816,11 +818,11 @@
})
},
getEventInfo (orderId, info) {
getEventInfo(orderId, info) {
this.instance.post(`/api/wxgridinfo/reportInfo`, null, {
params: {
orderId,
corpId: 'wpytYEDgAA5zwi8Ak2mwFh3PwBKwwlWA'
corpId
}
}).then(res => {
if (res.code === 0) {
@@ -835,15 +837,15 @@
})
},
onTypeChange (index) {
onTypeChange(index) {
this.currIndex = index
this.getWxGridReportCata()
},
onChange () {
onChange() {
this.instance.post(`/api/wxgridinfo/wxGridReportNew`, null, {
params: {
corpId: 'wpytYEDgAA5zwi8Ak2mwFh3PwBKwwlWA',
corpId,
gridId: this.gridId || this.gridParentId,
type: this.type
}
@@ -854,7 +856,7 @@
})
},
onReportChange (index) {
onReportChange(index) {
this.dateRange = index
this.$nextTick(() => {
@@ -862,10 +864,10 @@
})
},
getReportList () {
getReportList() {
this.instance.post(`/api/wxgridinfo/reportList`, null, {
params: {
corpId: 'wpytYEDgAA5zwi8Ak2mwFh3PwBKwwlWA',
corpId,
gridId: this.gridId || this.gridParentId,
size: '50',
...this.search
@@ -877,12 +879,12 @@
})
},
getWxGridReportCata () {
getWxGridReportCata() {
this.instance.post(`/api/wxgridinfo/wxGridReportCata`, null, {
params: {
categoryId: this.eventList[this.currIndex].categoryId,
gridId: this.gridId || this.gridParentId,
corpId: 'wpytYEDgAA5zwi8Ak2mwFh3PwBKwwlWA'
corpId
}
}).then(res => {
if (res.code === 0) {
@@ -899,10 +901,10 @@
})
},
getReportHandleList () {
getReportHandleList() {
this.instance.post(`/api/wxgridinfo/reportHandleList`, null, {
params: {
corpId: 'wpytYEDgAA5zwi8Ak2mwFh3PwBKwwlWA',
corpId,
gridId: this.gridId || this.gridParentId,
size: '50',
dateRange: this.dateRange
@@ -916,10 +918,10 @@
})
},
getInfo () {
getInfo() {
this.instance.post(`/api/wxgridinfo/comprehensiveOverview`, null, {
params: {
corpId: 'wpytYEDgAA5zwi8Ak2mwFh3PwBKwwlWA'
corpId
}
}).then(res => {
if (res.code === 0) {
@@ -933,7 +935,7 @@
this.instance.post(`/api/wxgridinfo/wxGridReportOverview`, null, {
params: {
corpId: 'wpytYEDgAA5zwi8Ak2mwFh3PwBKwwlWA',
corpId,
gridId: this.gridId || this.gridParentId
}
}).then(res => {
@@ -944,7 +946,7 @@
this.instance.post(`/api/wxgridinfo/wxGridReportNew`, null, {
params: {
corpId: 'wpytYEDgAA5zwi8Ak2mwFh3PwBKwwlWA',
corpId,
gridId: this.gridId || this.gridParentId,
type: this.type
}
@@ -976,11 +978,11 @@
return "#" + hex.toString(16);
}
}
}
}
</script>
<style lang="scss" scoped>
.AppQxnDv {
.AppQxnDv {
display: flex;
height: 100%;
padding-top: 16px;
@@ -1015,6 +1017,7 @@
}
}
}
.event-info {
position: fixed;
left: 0;
@@ -1139,7 +1142,7 @@
&:after {
position: absolute;
top: 37px;
left: 0%;
left: 0;
width: 105px;
height: 2px;
background: #647886;
@@ -1286,7 +1289,7 @@
width: 24px;
height: 24px;
cursor: pointer;
transition: all ease 300;
transition: all ease 300ms;
&:hover {
opacity: 0.6;
@@ -1304,6 +1307,7 @@
}
}
}
.table-index {
display: flex;
align-items: center;
@@ -1381,6 +1385,7 @@
font-size: 16px;
}
}
h2 {
position: relative;
font-size: 16px;
@@ -1472,7 +1477,7 @@
.el-input__suffix {
right: 1px;
top: 0px;
top: 0;
}
i {
@@ -1509,7 +1514,7 @@
.el-input__suffix {
right: 1px;
top: 0px;
top: 0;
}
i {
@@ -1521,26 +1526,26 @@
.el-table {
font-size: 12px;
color: #d0e1e8;
background-color: transparent!important;
background-color: transparent !important;
th.el-table__cell.is-leaf, .el-table td.el-table__cell {
border: none!important;
border: none !important;
}
tr.el-table__row--striped td {
background: rgba(33, 180, 253, 0.1)!important;
background: rgba(33, 180, 253, 0.1) !important;
}
.el-table__header tr th:first-child .cell {
padding: 0!important;
padding: 0 !important;
}
.el-table__body tr td:first-child .cell {
padding: 0!important;
padding: 0 !important;
}
&.el-table--enable-row-hover .el-table__body tr:hover > td.el-table__cell {
background-color: rgba(33, 180, 253, 0.1)!important;
background-color: rgba(33, 180, 253, 0.1) !important;
}
th.el-table__cell {
@@ -1557,11 +1562,12 @@
}
.el-table__header tr .cell {
color: #02FEFF!important;
color: #02FEFF !important;
}
}
.ai-table__header {
background: rgba(33, 180, 253, 0.1)!important;
background: rgba(33, 180, 253, 0.1) !important;
}
}
@@ -1623,6 +1629,7 @@
}
}
}
.right-middle {
width: 556px;
margin: 0 40px;
@@ -1724,5 +1731,5 @@
}
}
}
}
}
</style>