This commit is contained in:
liuye
2022-03-29 16:38:19 +08:00
11 changed files with 210 additions and 16 deletions

View File

@@ -32,19 +32,20 @@ const app = new Vue({
store,
...App
});
store.dispatch("agentSign").then(config => {
const init = (c = 0) => {
if (config) {
store.commit("getConfig", {...config, latlng: [config.lat, config.lng]})
app.$mount();
} else {
if (c < 5) {
setTimeout(() => {
init(++c)
}, 300)
}
}
}
init()
})
app.$mount();
// store.dispatch("agentSign").then(config => {
// const init = (c = 0) => {
// if (config) {
// store.commit("getConfig", {...config, latlng: [config.lat, config.lng]})
// app.$mount();
// } else {
// if (c < 5) {
// setTimeout(() => {
// init(++c)
// }, 300)
// }
// }
// }
// init()
// })

View File

@@ -0,0 +1,77 @@
<template>
<div class="report">
<components :is="component"></components>
<div class="report-list">
<image @click="component = 'WorkReport'" :class="[component === 'WorkReport' ? 'active' : '']" src="./images/report1.png" />
<image @click="component = 'Daily'" :class="[component === 'Daily' ? 'active' : '']" src="./images/report2.png" />
<image @click="component = 'InspectLog'" :class="[component === 'InspectLog' ? 'active' : '']" src="./images/report3.png" />
<image @click="component = 'MeetingMminutes'" :class="[component === 'MeetingMminutes' ? 'active' : '']" src="./images/report4.png" />
</div>
</div>
</template>
<script>
import Daily from './components/Daily'
import WorkReport from './components/WorkReport'
import InspectLog from './components/InspectLog'
import MeetingMminutes from './components/MeetingMminutes'
export default {
name: 'Report',
appName: '工作汇报',
data () {
return {
component: 'WorkReport'
}
},
components: {
Daily,
InspectLog,
WorkReport,
MeetingMminutes
},
onLoad () {
},
methods: {
}
}
</script>
<style lang="scss" scoped>
.report {
* {
box-sizing: border-box;
}
.report-list {
display: flex;
justify-content: center;
align-items: center;
height: 240px;
padding: 0 24px;
background: #FFFFFF;
image {
width: 156px;
height: 208px;
margin-right: 16px;
border: 4px solid transparent;
&:last-child {
margin-right: 0;
}
&.active {
border: 4px solid #408EF6;
}
}
}
}
</style>

View File

@@ -0,0 +1,29 @@
<template>
<div class="Daily">
</div>
</template>
<script>
export default {
name: 'Daily',
data () {
return {
}
},
onLoad () {
},
methods: {
}
}
</script>
<style lang="scss" scoped>
</style>

View File

@@ -23,7 +23,7 @@
<image src="../images/paizhao.png" />
<span>拍照</span>
</div>
<div class="left-item">
<div class="left-item" @click="linkTo('./AddReport')">
<image src="../images/pintu.png" />
<span>拼图汇报</span>
</div>

View File

@@ -0,0 +1,29 @@
<template>
<div class="InspectLog">
</div>
</template>
<script>
export default {
name: 'InspectLog',
data () {
return {
}
},
onLoad () {
},
methods: {
}
}
</script>
<style lang="scss" scoped>
</style>

View File

@@ -0,0 +1,29 @@
<template>
<div class="MeetingMminutes">
</div>
</template>
<script>
export default {
name: 'MeetingMminutes',
data () {
return {
}
},
onLoad () {
},
methods: {
}
}
</script>
<style lang="scss" scoped>
</style>

View File

@@ -0,0 +1,29 @@
<template>
<div class="WorkReport">
</div>
</template>
<script>
export default {
name: 'WorkReport',
data () {
return {
}
},
onLoad () {
},
methods: {
}
}
</script>
<style lang="scss" scoped>
</style>

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB