| | |
| | | <div class="app-container"> |
| | | <el-card class="box-card"> |
| | | <el-row style="display: flex; flex-direction: row; align-items: center" justify="space-between"> |
| | | <div v-for="card in cardList" style="display: flex;flex-direction: row; margin-right: 50px"> |
| | | <div> |
| | | <div class="icon-container"> |
| | | <i :class="card.icon"></i> |
| | | </div> |
| | | </div> |
| | | <div v-for="data in card.dataList" class="dashboard-item"> |
| | | <div style="color: #5C9BF8;margin-bottom: 20px;font-size: 20px">{{ data.value }}</div> |
| | | <div>{{data.label}}</div> |
| | | <div v-for="card in cardList" style="display: flex;flex-direction: row; margin-right: 50px" :key="card.label"> |
| | | <div> |
| | | <div class="icon-container"> |
| | | <i :class="card.icon"></i> |
| | | </div> |
| | | </div> |
| | | <!-- <el-col :span="1">--> |
| | | <!-- <div class="dashboard-item">--> |
| | | <!-- <div style="width: 1px;height: 55px;border: 1px solid #D7EBFA;margin: 20px;"></div>--> |
| | | <!-- </div>--> |
| | | <!-- </el-col>--> |
| | | <div v-for="data in card.dataList" class="dashboard-item" :key="data.label"> |
| | | <div style="color: #5C9BF8;margin-bottom: 20px;font-size: 20px">{{ data.value }}</div> |
| | | <div>{{ data.label }}</div> |
| | | </div> |
| | | </div> |
| | | <!-- <el-col :span="1">--> |
| | | <!-- <div class="dashboard-item">--> |
| | | <!-- <div style="width: 1px;height: 55px;border: 1px solid #D7EBFA;margin: 20px;"></div>--> |
| | | <!-- </div>--> |
| | | <!-- </el-col>--> |
| | | <el-col :span="8"></el-col> |
| | | </el-row> |
| | | </el-card> |
| | |
| | | </el-form-item> |
| | | </el-form> |
| | | |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-row :gutter="10" class="mb8" v-show = "index === 'platform_online'"> |
| | | <!-- <el-col :span="1.5">--> |
| | | <!-- <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"--> |
| | | <!-- v-hasPermi="['platform:platform:add']">新增</el-button>--> |
| | | <!-- </el-col>--> |
| | | <!-- <el-col :span="1.5">--> |
| | | <!-- <el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate"--> |
| | | <!-- v-hasPermi="['platform:platform:edit']">修改</el-button>--> |
| | | <!-- </el-col>--> |
| | | <!-- <el-col :span="1.5">--> |
| | | <!-- <el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete"--> |
| | | <!-- v-hasPermi="['platform:platform:remove']">删除</el-button>--> |
| | | <!-- </el-col>--> |
| | | <!-- <el-col :span="1.5">--> |
| | | <!-- <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"--> |
| | | <!-- v-hasPermi="['platform:platform:export']">导出</el-button>--> |
| | | <!-- </el-col>--> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd" |
| | | v-hasPermi="['platform:platform:add']">新增</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate" |
| | | v-hasPermi="['platform:platform:edit']">修改</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete" |
| | | v-hasPermi="['platform:platform:remove']">删除</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" |
| | | v-hasPermi="['platform:platform:export']">导出</el-button> |
| | | <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" |
| | | v-hasPermi="['platform:platform:export']">导入</el-button> |
| | | </el-col> |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| | | </el-row> |
| | | |
| | | <el-table v-loading="loading" :data="platformList" @selection-change="handleSelectionChange"> |
| | | <template v-for="(item, index) in tableHead"> |
| | | <el-table-column :key="item.name" :prop="item.prop" :label="item.label"> |
| | | </el-table-column> |
| | | </template> |
| | | <el-table-column :prop="item.prop" :label="item.label" v-for="(item, index) in tableHead" :key="index" /> |
| | | |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> |
| | | <template slot-scope="scope"> |
| | |
| | | ], |
| | | }, |
| | | tableHead: [], |
| | | cardList: [] |
| | | cardList: [], |
| | | index: null |
| | | }; |
| | | }, |
| | | beforeRouteEnter(to, from, next) { |
| | |
| | | next(); |
| | | }, |
| | | created() { |
| | | this.index =this.$route.query.index; |
| | | if (this.$route.query.type === '1') { |
| | | let data = videoData.table.filter(item => item.index === this.$route.query.index)[0] |
| | | this.tableHead = data.columns; |
| | | this.cardList = data.card; |
| | | console.log(data, "aaa") |
| | | console.log(this.cardList, "ddd") |
| | | }; |
| | | } |
| | | if (this.$route.query.type === '2') { |
| | | let data = carData.table.filter(item => item.index === this.$route.query.index)[0] |
| | | this.tableHead = data.columns; |
| | |
| | | this.tableHead = data.columns; |
| | | this.cardList = data.card; |
| | | } |
| | | this.getList(this.$route.query.url); |
| | | this.getList(); |
| | | }, |
| | | methods: { |
| | | /** 查询卡口过车数据一致性列表 */ |
| | | getList(url) { |
| | | getList() { |
| | | let url = this.$route.query.url; |
| | | this.loading = true; |
| | | dataCenter(url, this.queryParams).then(response => { |
| | | this.platformList = response.rows; |
| | | this.platformList = response.data; |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | }); |