| | |
| | | <el-container> |
| | | <el-main> |
| | | <basic-container> |
| | | <avue-crud ref="crud" v-model="form" :data="data" :option="option" :page.sync="page" @on-load="onLoad" |
| | | <avue-crud ref="crud" v-model="form" :cell-style="cellStyle" :data="data" :option="option" :page.sync="page" |
| | | @on-load="onLoad" |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @selection-change="selectionChange" |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | | @refresh-change="refreshChange" @row-click="rowClick" :cell-style="cellStyle"> |
| | | @size-change="sizeChange" @refresh-change="refreshChange" @row-click="rowClick"> |
| | | <template slot="menu" slot-scope="{row,index}"> |
| | | <el-button icon="el-icon-edit" size="small" type="text" @click="updateSave(row,index)" :disabled="row.usedFlag === 'true' ? false :true">编辑</el-button> |
| | | <el-button icon="el-icon-delete" size="small" type="text" @click="deleteSave(row,index)">删除</el-button> |
| | | <el-button v-if="row.usedFlag=='false' || row.usedFlag==''" icon="el-icon-position" size="small" type="text" |
| | | @click="ENABLE(row,index)">启用 |
| | | <el-button v-if="permission.info.info_edit" :disabled="row.usedFlag === 'true' ? false :true" |
| | | icon="el-icon-edit" size="small" |
| | | type="text" |
| | | @click="updateSave(row,index)">编辑 |
| | | </el-button> |
| | | <el-button v-else icon="el-icon-finished" size="small" type="text" @click="DISABLE(row,index)">停用 |
| | | <el-button v-if="permission.info.info_delete" icon="el-icon-delete" size="small" type="text" |
| | | @click="deleteSave(row,index)">删除 |
| | | </el-button> |
| | | <span v-if="permission.info.info_enable"> |
| | | |
| | | <el-button v-if="row.usedFlag=='false' || row.usedFlag==''" icon="el-icon-position" size="small" |
| | | type="text" @click="ENABLE(row,index)">启用 |
| | | </el-button> |
| | | </span> |
| | | <span v-if="permission.info.info_stop"> |
| | | <el-button v-if="row.usedFlag !== 'false' && row.usedFlag !== ''" icon="el-icon-finished" |
| | | size="small" |
| | | type="text" @click="DISABLE(row, index)">停用 |
| | | </el-button> |
| | | </span> |
| | | </template> |
| | | <template slot="menuLeft"> |
| | | <el-button icon="el-icon-plus" size="small" type="primary" @click="addSave">新 增 |
| | | <el-button v-if="permission.info.info_add" icon="el-icon-plus" size="small" type="primary" @click="addSave"> |
| | | 新 增 |
| | | </el-button> |
| | | <el-button icon="el-icon-share" size="small" @click="PUSH">同 步 |
| | | <el-button v-if="permission.info.info_sync" icon="el-icon-share" size="small" @click="PUSH">同 步 |
| | | </el-button> |
| | | <el-button icon="el-icon-search" size="small" @click="openAdvancedQuery">查 询 |
| | | <el-button v-if="permission.info.info_query" icon="el-icon-search" size="small" @click="openAdvancedQuery">查 |
| | | 询 |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | |
| | | } from "@/api/docking/info"; |
| | | import {getDictionary} from "@/api/omd/enum"; |
| | | import infoForm from "./infoForm.vue"; |
| | | import {mapGetters} from "vuex"; |
| | | |
| | | export default { |
| | | name: "info", |
| | |
| | | created() { |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["permission"]), |
| | | |
| | | oids() { |
| | | let oids = []; |
| | | this.selectionList.forEach(ele => { |
| | |
| | | width: 10px; |
| | | |
| | | } |
| | | |
| | | // 滚动条的滑块 |
| | | /deep/ .el-table__body-wrapper::-webkit-scrollbar-thumb { |
| | | background-color: #ececec; |