修复BUG
This commit is contained in:
2
.npmrc
2
.npmrc
@@ -1,5 +1,5 @@
|
||||
registry=http://192.168.1.87:4873/
|
||||
email=aixianling@sinoecare.com
|
||||
always-auth=true
|
||||
_auth="YWRtaW46YWRtaW4xMjM="
|
||||
package-lock=false
|
||||
//192.168.1.87:4873/:_auth="YWRtaW46YWRtaW4xMjM="
|
||||
|
||||
@@ -87,6 +87,7 @@ export default {
|
||||
this.$http.post(url, null, {params}).then((res) => {
|
||||
if (res?.data) {
|
||||
let parents = res.data.map(e => e.parentGirdId)
|
||||
console.log(parents)
|
||||
this.allData = res.data.map(e => ({...e, hasChildren: parents.includes(e.id)}))
|
||||
this.treeInit()
|
||||
if (this.$route.query.selected) { //确认按钮弹窗报错
|
||||
@@ -106,7 +107,10 @@ export default {
|
||||
params: {girdId: last}
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
this.selectList = [{girdName: '可选范围', id: ''}, res.data.filter(e => !!this.allData.find(a => a.id == e.id))].flat()
|
||||
this.selectList = [{
|
||||
girdName: '可选范围',
|
||||
id: ''
|
||||
}, res.data.filter(e => !!this.allData.find(a => a.id == e.id))].flat()
|
||||
this.getGridsByGridMemberAndParent({id: last})
|
||||
}
|
||||
})
|
||||
@@ -138,7 +142,7 @@ export default {
|
||||
this.selectList = []
|
||||
this.treeInit(true)
|
||||
} else {
|
||||
this.selectList.splice(index, 8)
|
||||
this.selectList.splice(index + 1, 8)
|
||||
this.getGridsByGridMemberAndParent(row)
|
||||
}
|
||||
},
|
||||
|
||||
@@ -2,15 +2,9 @@
|
||||
<div class="statistics">
|
||||
<AiTopFixed>
|
||||
<div class="select-gird">
|
||||
<!-- <AiPagePicker type="gird" v-model="selectGird" valueObj nodeKey="id" class="right-span" @change="handleSelectGird"
|
||||
<AiPagePicker type="gird" valueObj nodeKey="id" formType="2" @select="handleSelectGird" class="right-span"
|
||||
action="/app/apppatrolreportinfo/listByInfo">
|
||||
<AiMore v-model="selectGird.girdName"/>
|
||||
</AiPagePicker> -->
|
||||
<AiPagePicker type="gird" valueObj nodeKey="id" formType="2" @select="handleSelectGird" class="right-span" action="/app/appgirdmemberinfo/queryMyGirdList">
|
||||
<AiMore v-model="selectGird.girdName" icon="arrow-right" placeholder="选择网格"/>
|
||||
<!-- <span :class="searchGrid.girdName ? 'grid-name' : 'grid-name color-999'">{{searchGrid.girdName || '所属网格'}}</span>
|
||||
<u-icon name="close-circle" color="#999" size="34" style="margin-left: 4px" v-if="searchGrid.girdName" @click.stop="clearGrid" />
|
||||
<u-icon name="arrow-down" color="#999" size="24" style="margin-left: 4px" v-else /> -->
|
||||
</AiPagePicker>
|
||||
</div>
|
||||
</AiTopFixed>
|
||||
@@ -40,7 +34,8 @@
|
||||
<div class="info-content">
|
||||
<div class="title">巡查事件分类
|
||||
<!-- <div class="type-select" :style="statusInfo.name ? '' : 'color:#999;'" @click="show=true">{{statusInfo.name || '请选择'}}<u-icon name="arrow-right"></u-icon></div> -->
|
||||
<u-select v-model="show" :list="$dict.getDict('clapEventStatusHistory')" value-name="dictValue" label-name="dictName" @confirm="selectStatus"></u-select>
|
||||
<u-select v-model="show" :list="$dict.getDict('clapEventStatusHistory')" value-name="dictValue"
|
||||
label-name="dictName" @confirm="selectStatus"></u-select>
|
||||
</div>
|
||||
<AiEmpty v-if="!typeData.length"></AiEmpty>
|
||||
<div class="echart-content" id="type" v-else></div>
|
||||
@@ -53,6 +48,7 @@
|
||||
<script>
|
||||
import {mapState} from 'vuex'
|
||||
import echarts from 'echarts'
|
||||
|
||||
export default {
|
||||
props: {},
|
||||
data() {
|
||||
@@ -325,21 +321,25 @@ export default {
|
||||
.statstics-content {
|
||||
padding: 30px 30px 0;
|
||||
}
|
||||
|
||||
::v-deep .AiTopFixed {
|
||||
.content {
|
||||
background-color: #3975C6;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.icon-img {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
}
|
||||
}
|
||||
|
||||
::v-deep .AiMore {
|
||||
span {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
.info-content {
|
||||
width: 100%;
|
||||
background: #FFF;
|
||||
@@ -347,6 +347,7 @@ export default {
|
||||
margin-bottom: 24px;
|
||||
position: relative;
|
||||
padding-bottom: 32px;
|
||||
|
||||
.title {
|
||||
font-size: 32px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
@@ -354,11 +355,13 @@ export default {
|
||||
color: #333;
|
||||
line-height: 48px;
|
||||
padding: 24px 16px 24px 24px;
|
||||
|
||||
img {
|
||||
float: right;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
.type-select {
|
||||
font-size: 26px;
|
||||
position: absolute;
|
||||
@@ -369,12 +372,15 @@ export default {
|
||||
line-height: 48px;
|
||||
}
|
||||
}
|
||||
|
||||
.el-row {
|
||||
display: flex;
|
||||
padding: 32px 0 60px 0;
|
||||
|
||||
.item {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
|
||||
h2 {
|
||||
font-size: 64px;
|
||||
font-family: DINAlternate-Bold, DINAlternate;
|
||||
@@ -383,6 +389,7 @@ export default {
|
||||
line-height: 64px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: 28px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
@@ -391,10 +398,12 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.echart-content {
|
||||
width: 100%;
|
||||
height: 500px;
|
||||
}
|
||||
|
||||
.num {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
@@ -406,6 +415,7 @@ export default {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
.pad-b120 {
|
||||
background-color: #F3F7F8;
|
||||
padding-bottom: 120px;
|
||||
|
||||
Reference in New Issue
Block a user