| | |
| | | </div> --> |
| | | <div class="s-item"> |
| | | <gradient-btn size="sm" @click="getList">查询</gradient-btn> |
| | | <gradient-btn size="sm" @click="add">添加</gradient-btn> |
| | | <!-- <gradient-btn size="sm" @click="add">添加</gradient-btn> --> |
| | | </div> |
| | | </div> |
| | | <div class="table-wrap"> |
| | |
| | | :width="header.width" :min-width="header.minWidth" show-overflow-tooltip align="center"></el-table-column> |
| | | <el-table-column prop="cztime" fixed="right" width="240px" align="center" label="操作"> |
| | | <template slot-scope="scope"> |
| | | <el-button class="yellow" size="mini" @click="edit(scope.row)">编辑</el-button> |
| | | <el-button class="l-green" size="mini" @click="deleteRec(scope.row)">删除</el-button> |
| | | <el-button class="yellow" size="mini" :disabled="!hasPermission" @click="edit(scope.row)">编辑</el-button> |
| | | <!-- <el-button class="l-green" size="mini" @click="deleteRec(scope.row)">删除</el-button> --> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | |
| | | import { getGatewayList, getGatewayType, getCommType, deleteGateway } from "./js/apis"; |
| | | export default { |
| | | name: "", |
| | | name: "gateway", |
| | | components: { |
| | | Panel, |
| | | gradientBtn, |
| | |
| | | }, |
| | | }; |
| | | }, |
| | | computed: { |
| | | hasPermission() { |
| | | return this.$store.state.user.downloadFlag == 1; |
| | | }, |
| | | }, |
| | | methods: { |
| | | deleteRec(record) { |
| | | this.$confirm("确认删除该记录吗", "系统提示", { |