| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <template>
- <div class="inspect-page">
- <div class="head">
- <div>
- <h2>门店巡检与考核</h2>
- <p>指标配置 · 计划管理 · 任务执行 · 整改流程 · 考核排名</p>
- </div>
- <el-button type="primary" icon="el-icon-refresh" @click="reload">刷新当前页</el-button>
- </div>
- <el-tabs v-model="tab" type="card" @tab-click="reload">
- <el-tab-pane label="考核指标配置" name="indicator"><indicator-index ref="indicator" /></el-tab-pane>
- <el-tab-pane label="巡检计划管理" name="plan"><plan-index ref="plan" /></el-tab-pane>
- <el-tab-pane label="巡检任务执行" name="task"><task-index ref="task" /></el-tab-pane>
- <el-tab-pane label="整改流程管理" name="rect"><rectification-index ref="rect" /></el-tab-pane>
- <el-tab-pane label="考核结果排名" name="assess"><assess-index ref="assess" /></el-tab-pane>
- </el-tabs>
- </div>
- </template>
- <script>
- import IndicatorIndex from './indicator/Index.vue'
- import PlanIndex from './plan/Index.vue'
- import TaskIndex from './task/Index.vue'
- import RectificationIndex from './rectification/Index.vue'
- import AssessIndex from './assess/Index.vue'
- export default {
- name: 'InspectManage',
- components: { IndicatorIndex, PlanIndex, TaskIndex, RectificationIndex, AssessIndex },
- data() {
- return { tab: 'indicator' }
- },
- methods: {
- reload() {
- this.$nextTick(() => {
- const page = this.$refs[this.tab]
- if (page) {
- if (typeof page.loadAll === 'function') page.loadAll()
- else if (typeof page.load === 'function') page.load()
- }
- })
- }
- }
- }
- </script>
- <style scoped>
- .inspect-page { padding: 20px; background: #f5f7fa; min-height: 100%; color: #303133; }
- .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
- .head h2 { margin: 0; font-size: 22px; }
- .head p { margin: 7px 0 0; color: #909399; }
- </style>
|