d961879b by zrj

daping quan

1 parent 65e7acce
......@@ -13,7 +13,7 @@
v-for="(val,i) in baseList" :key="i" :label="val" :value="val"/>
</el-select>
</div>
<div class="datePick_bg" style="position: absolute;top: 32px;right: 18px;height: 28px">
<div class="datePick_bg" style="position: absolute;top: 4vh;right: 18px;height: 28px">
<el-date-picker
v-model="nowDate"
type="month"
......@@ -24,13 +24,13 @@
></el-date-picker>
</div>
<el-row class="w100">
<el-col v-if="!isLoad" :span="8">
<el-col v-if="!isLoad&&obj.IFBASE" :span="8">
<left-page :obj="obj" :type="type" :url="result" :historyDate="nowDate" :sBase="selectBase"/>
</el-col>
<el-col v-if="!isLoad" :span="8">
<el-col v-if="!isLoad&&obj.IFBASE" :span="8">
<center-page :obj="obj" :isLeader="isLeader" :type="type" :url="result" :historyDate="nowDate" :sBase="selectBase"/>
</el-col>
<el-col v-if="!isLoad" :span="8">
<el-col v-if="!isLoad&&obj.IFBASE" :span="8">
<right-page :obj="obj" :type="type" :url="result" :historyDate="nowDate" :sBase="selectBase"/>
</el-col>
</el-row>
......@@ -57,10 +57,10 @@ const year = now.getFullYear() // 获取年份(4位数)
const month = now.getMonth() + 1 // 获取月份(0-11,需要+1)
const formatMonth = (month) => (month < 10 ? `0${month}` : month)
const nowDate = ref(`${year}-${formatMonth(month)}`)
let selectBase = ref("总部")
let selectBase = ref()
let baseList = ref()
let isLeader = ref(false)
// url.value = 'http://192.168.1.152:8899/login/sid=36c62778-f35a-4285-a279-08aa2b8a1fa8#/'
// url.value = 'http://192.168.1.152:8899/login/sid=f30d94a0-70cc-4d7b-b28c-b85622422a35#/'
url.value = window.location.href
result.value = url.value?.split('=')[1]?.split('#')[0];
......@@ -73,7 +73,6 @@ onMounted(() => {
if (result.value) {
handelGetYS000()
isLeader.value = validateEmail(result.value)
console.log(isLeader.value)
} else {
// result.value = 'a3afc265-1e60-4376-bcfb-6ca124db8704'
// handelGetYS000()
......@@ -94,7 +93,7 @@ async function handelGetYS000() {
function setType(){
isLoad.value = true
nextTick(() => {
if (selectBase.value !== '总部') {
if (selectBase.value !== '全公司') {
type.value = false
} else {
type.value = true
......@@ -109,7 +108,7 @@ function setType(){
<style lang="scss" scoped>
.basePick_bg {
position: absolute;
top: 32px;
top: 4vh;
right: 180px;
height: 28px;
width: 155px;
......
......@@ -212,12 +212,15 @@ const init = () => {
clear()
obj.value["SELECTDATE"] = hDate
obj.value["BASE"] = sBase
if (!intervalA) {
handelGetYS001()
handelGetYS002()
handelGetYS003()
handelGetYS004()
handelGetYS005()
// if (!intervalA) {
// handelGetYS001()
// handelGetYS002()
// handelGetYS003()
// handelGetYS004()
// handelGetYS005()
// }
if (intervalA) {
clearInterval(intervalA);
}
intervalA = setInterval(getdata(), 1000 * 60 * 60);
}
......
......@@ -408,8 +408,11 @@ function handelSelect4() {
const init = () => {
clear()
if (!intervalA) {
handelGetYS006()
// if (!intervalA) {
// handelGetYS006()
// }
if (intervalA) {
clearInterval(intervalA);
}
intervalA = setInterval(getdata(), 1000 * 60 * 60);
}
......
......@@ -329,10 +329,13 @@ const init = () => {
clear()
obj.value["SELECTDATE"] = hDate
obj.value["BASE"] = sBase
if (!intervalA) {
handelGetYS007()
handelGetYS008()
handelGetYS009()
// if (!intervalA) {
// handelGetYS007()
// handelGetYS008()
// handelGetYS009()
// }
if (intervalA) {
clearInterval(intervalA);
}
intervalA = setInterval(getdata(), 1000 * 60 * 60);
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!