|
@@ -99,22 +99,23 @@
|
|
<el-table-column label="修改时间" align="center" prop="updateTime"/>
|
|
<el-table-column label="修改时间" align="center" prop="updateTime"/>
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-button
|
|
|
|
- size="mini"
|
|
|
|
- type="text"
|
|
|
|
- icon="el-icon-edit"
|
|
|
|
- @click="handleUpdate(scope.row)"
|
|
|
|
- v-hasPermi="['data:steelcylinder:edit']"
|
|
|
|
- >修改
|
|
|
|
- </el-button>
|
|
|
|
- <el-button
|
|
|
|
- size="mini"
|
|
|
|
- type="text"
|
|
|
|
- icon="el-icon-delete"
|
|
|
|
- @click="handleDelete(scope.row)"
|
|
|
|
- v-hasPermi="['data:steelcylinder:remove']"
|
|
|
|
- >删除
|
|
|
|
- </el-button>
|
|
|
|
|
|
+ <el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)"
|
|
|
|
+ v-hasPermi="['system:role:edit']">
|
|
|
|
+ <span class="el-dropdown-link">
|
|
|
|
+ <i class="el-icon-d-arrow-right el-icon--right"></i>更多
|
|
|
|
+ </span>
|
|
|
|
+ <el-dropdown-menu slot="dropdown">
|
|
|
|
+ <el-dropdown-item command="edit" v-hasPermi="['data:steelcylinder:edit']">修改
|
|
|
|
+ </el-dropdown-item>
|
|
|
|
+ <el-dropdown-item command="remove" v-hasPermi="['data:steelcylinder:remove']">删除
|
|
|
|
+ </el-dropdown-item>
|
|
|
|
+ <el-dropdown-item>
|
|
|
|
+ <router-link :to="'/center-data/data/housingconstruction/steelcylinderLog/index/' + scope.row.id">
|
|
|
|
+ 运营数据
|
|
|
|
+ </router-link>
|
|
|
|
+ </el-dropdown-item>
|
|
|
|
+ </el-dropdown-menu>
|
|
|
|
+ </el-dropdown>
|
|
<el-button
|
|
<el-button
|
|
size="mini"
|
|
size="mini"
|
|
type="text"
|
|
type="text"
|
|
@@ -628,6 +629,19 @@ export default {
|
|
this.getEnterpriseList();
|
|
this.getEnterpriseList();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ // 更多操作触发
|
|
|
|
+ handleCommand(command, row) {
|
|
|
|
+ switch (command) {
|
|
|
|
+ case 'edit':
|
|
|
|
+ this.handleUpdate(row)
|
|
|
|
+ break
|
|
|
|
+ case 'remove':
|
|
|
|
+ this.handleDelete(row)
|
|
|
|
+ break
|
|
|
|
+ default:
|
|
|
|
+ break
|
|
|
|
+ }
|
|
|
|
+ },
|
|
//获取充装员列表
|
|
//获取充装员列表
|
|
getPractitioner(id) {
|
|
getPractitioner(id) {
|
|
listPractitioner({"post": "practitioner_czy", "enterpriseId": id}).then(response => {
|
|
listPractitioner({"post": "practitioner_czy", "enterpriseId": id}).then(response => {
|