|
@@ -2,33 +2,35 @@
|
|
<div class="container">
|
|
<div class="container">
|
|
<el-row class="rows" :gutter="20">
|
|
<el-row class="rows" :gutter="20">
|
|
<el-col :xs="24" :sm="24" :md="12" :span="7">
|
|
<el-col :xs="24" :sm="24" :md="12" :span="7">
|
|
- <operate/>
|
|
|
|
|
|
+ <operate :data="dataInfo"/>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :xs="24" :sm="24" :md="12" :span="7">
|
|
<el-col :xs="24" :sm="24" :md="12" :span="7">
|
|
- <business/>
|
|
|
|
|
|
+ <business :data="dataInfo"/>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :xs="24" :sm="24" :md="24" :span="10">
|
|
<el-col :xs="24" :sm="24" :md="24" :span="10">
|
|
- <management/>
|
|
|
|
|
|
+ <management :data="dataInfo"/>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :xs="24" :sm="24" :md="12" :span="7">
|
|
<el-col :xs="24" :sm="24" :md="12" :span="7">
|
|
- <hrdata/>
|
|
|
|
|
|
+ <hrdata :data="dataInfo"/>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :xs="24" :sm="24" :md="12" :span="7">
|
|
<el-col :xs="24" :sm="24" :md="12" :span="7">
|
|
- <student/>
|
|
|
|
|
|
+ <student :data="dataInfo"/>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :xs="24" :sm="24" :md="24" :span="10">
|
|
<el-col :xs="24" :sm="24" :md="24" :span="10">
|
|
- <curriculum/>
|
|
|
|
|
|
+ <curriculum :data="dataInfo"/>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
|
|
+import { getIndex } from '../api'
|
|
import operate from './operate'
|
|
import operate from './operate'
|
|
import business from './business'
|
|
import business from './business'
|
|
import management from './management'
|
|
import management from './management'
|
|
import hrdata from './hr'
|
|
import hrdata from './hr'
|
|
import student from './student'
|
|
import student from './student'
|
|
import curriculum from './curriculum'
|
|
import curriculum from './curriculum'
|
|
|
|
+
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
operate,
|
|
operate,
|
|
@@ -40,9 +42,27 @@ export default {
|
|
},
|
|
},
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
-
|
|
|
|
|
|
+ dataInfo: {},
|
|
|
|
+ business: {},
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ mounted () {
|
|
|
|
+ this.FetchDetail();
|
|
|
|
+ },
|
|
|
|
+ methods: {
|
|
|
|
+ async FetchDetail() {
|
|
|
|
+ const data = {}
|
|
|
|
+ try {
|
|
|
|
+ const res = await getIndex()
|
|
|
|
+ for (const item of res.data) {
|
|
|
|
+ data[item.dataType] = item
|
|
|
|
+ }
|
|
|
|
+ } catch (error) {
|
|
|
|
+ console.log(error)
|
|
|
|
+ }
|
|
|
|
+ this.dataInfo = data
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|