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

This commit is contained in:
aixianling
2022-01-27 18:02:18 +08:00
4 changed files with 47 additions and 45 deletions

View File

@@ -10,7 +10,7 @@
<p>异常情况</p> <p>异常情况</p>
<div v-if="datas.length"> <div v-if="datas.length">
<div v-for="(item, index) in datas" :key="index" style="color: #ff4466"> <div v-for="(item, index) in datas" :key="index" style="color: #ff4466">
<span style="color: #666" v-if="item.status == 0">{{ item.checkTime && item.checkTime.substring(0, 10) }}:</span> <span style="color: #666" v-if="item.status == 0">{{ item.createTime && item.createTime.substring(0, 10) }}:</span>
<div v-if="item.temperature * 1 >= 37.3"> <div v-if="item.temperature * 1 >= 37.3">
<span>当前体温</span> <span>当前体温</span>

View File

@@ -49,7 +49,8 @@
<AiEmpty description="暂无数据" class="emptyWrap" v-else></AiEmpty> <AiEmpty description="暂无数据" class="emptyWrap" v-else></AiEmpty>
</div> </div>
<div class="fixedBtn" @click="toErr" v-if="userList.status == '0' && today == '1'">异常情况处理</div> <div class="fixedBtn" @click="toErr" v-if="userList.status == '0'">异常情况处理</div>
<!-- && today == '1' -->
</div> </div>
</template> </template>

View File

@@ -29,7 +29,8 @@
"open": true, "open": true,
"proxy": { "proxy": {
"/lan": { "/lan": {
"target": "http://192.168.1.87:9000", // "target": "http://192.168.1.87:9000",
"target": "http://test87tpweb.cunwuyun.cn",
"changeOrigin": true, "changeOrigin": true,
"pathRewrite": { "pathRewrite": {
"^/lan": "/" "^/lan": "/"

View File

@@ -7,12 +7,12 @@
<div class="area-select"> <div class="area-select">
<div class="select-content"> <div class="select-content">
<div class="area-content"> <div class="area-content">
<AiAreaPicker :areaId="user.areaId" v-model="areaId" @select="areaSelect" :name.sync="areaName"> <!-- <AiAreaPicker :areaId="user.areaId" v-model="areaId" @select="areaSelect" :name.sync="areaName">
<img src="./img/local-icon.png" alt=""> <img src="./img/local-icon.png" alt="">
<span class="label" v-if="areaName">{{ areaName }}</span> <span class="label" v-if="areaName">{{ areaName }}</span>
<span v-else>请选择</span> <span v-else>请选择</span>
<u-icon name="arrow-down" color="#666" size="24" /> <u-icon name="arrow-down" color="#666" size="24" />
</AiAreaPicker> </AiAreaPicker> -->
</div> </div>
<div class="search-input" v-if="tabIndex"> <div class="search-input" v-if="tabIndex">
<img src="./img/search-icon.png" alt=""> <img src="./img/search-icon.png" alt="">
@@ -96,14 +96,15 @@ export default {
}, },
computed: { ...mapState(['user']) }, computed: { ...mapState(['user']) },
created() { created() {
this.areaId = this.user.areaId this.$dict.load('appSpecialTypeFive').then(() => {
this.areaName = this.user.areaName this.areaId = this.user.areaId
this.getStatistic() this.areaName = this.user.areaName
this.getStatisticMon() this.getStatistic()
this.getUserList() this.getUserList()
})
uni.$on('specialPeopleList', () => { uni.$on('specialPeopleList', () => {
this.getStatistic() this.getStatistic()
this.getStatisticMon()
this.getUserList() this.getUserList()
}) })
}, },
@@ -115,7 +116,6 @@ export default {
areaSelect(e) { areaSelect(e) {
this.areaId = e this.areaId = e
this.getStatistic() this.getStatistic()
this.getStatisticMon()
this.getUserList() this.getUserList()
}, },
tabClick(index) { tabClick(index) {
@@ -123,45 +123,45 @@ export default {
}, },
getStatistic() { getStatistic() {
this.statisticsList = [] this.statisticsList = []
this.$http.post(`/app/appapplicationinfo/specialStatistic?areaId=${this.areaId}&type=0&range=0`).then((res) => { this.$http.post(`/app/appspecialadjustment/statistic?type=0&range=0`).then((res) => {
if (res.code == 0) { // if (res.code == 0) {
for(let i in res.data){ // for(let i in res.data){
var obj = { // var obj = {
label: i, // label: i,
value: res.data[i] // value: res.data[i]
} // }
this.statisticsList.push(obj) // this.statisticsList.push(obj)
} // }
} // }
}) })
}, },
getStatisticMon() { getStatisticMon() {
this.statisticsListMon = [] // this.statisticsListMon = []
this.$http.post(`/app/appapplicationinfo/specialStatistic?areaId=${this.areaId}&type=0&range=1`).then((res) => { // this.$http.post(`/app/appapplicationinfo/specialStatistic?areaId=${this.areaId}&type=0&range=1`).then((res) => {
if (res.code == 0) { // if (res.code == 0) {
for(let i in res.data){ // for(let i in res.data){
var obj = { // var obj = {
label: i, // label: i,
value: res.data[i] // value: res.data[i]
} // }
this.statisticsListMon.push(obj) // this.statisticsListMon.push(obj)
} // }
} // }
}) // })
}, },
getUserList() { getUserList() {
this.userList = [] this.userList = []
this.$http.post(`/app/appapplicationinfo/queryPeople?areaId=${this.areaId}&type=0&name=${this.name}`).then((res) => { this.$http.post(`/app/appspecialadjustment/allList?type=0&name=${this.name}`).then((res) => {
if (res.code == 0) { // if (res.code == 0) {
for(let i in res.data){ // for(let i in res.data){
var obj = { // var obj = {
label: i, // label: i,
value: res.data[i], // value: res.data[i],
check: false // check: false
} // }
this.userList.push(obj) // this.userList.push(obj)
} // }
} // }
}) })
}, },
toAdd() { toAdd() {