| | |
| | | @current-change="currentChange" |
| | | > |
| | | <template slot="menuLeft"> |
| | | <el-button icon="el-icon-plus" plain size="small" type="primary" @click="addClickHandler">创建 |
| | | <el-button v-if="permissionList.addBtn" class="button-custom-icon" plain size="small" type="primary" |
| | | @click="addClickHandler"> |
| | | <icon-show :name="permissionList.addBtn.source"></icon-show> |
| | | 创建 |
| | | </el-button> |
| | | <el-button icon="el-icon-delete" plain size="small" type="danger" @click="delClickHandler">删除 |
| | | <el-button v-if="permissionList.delBtn" class="button-custom-icon" plain size="small" type="danger" @click="delClickHandler"> |
| | | <icon-show :name="permissionList.delBtn.source"></icon-show> |
| | | 删除 |
| | | </el-button> |
| | | <el-button icon="el-icon-download" plain size="small" type="primary" @click="exportClickHandler">导出 |
| | | <el-button v-if="permissionList.viewTheScopeBtn" class="button-custom-icon" plain size="small" type="primary" @click="checkViewClickHandler"> |
| | | <icon-show :name="permissionList.viewTheScopeBtn.source"></icon-show> |
| | | 查看使用范围 |
| | | </el-button> |
| | | <el-button icon="el-icon-upload2" plain size="small" type="primary" @click="uploadClickHandler">导入 |
| | | <el-button v-if="permissionList.importBtn" class="button-custom-icon" plain size="small" type="primary" @click="uploadClickHandler"> |
| | | <icon-show :name="permissionList.importBtn.source"></icon-show> |
| | | 导入 |
| | | </el-button> |
| | | <el-button icon="el-icon-view" plain size="small" type="primary" @click="checkViewClickHandler">查看使用范围 |
| | | <el-button v-if="permissionList.exportBtn" class="button-custom-icon" plain size="small" type="primary" @click="exportClickHandler"> |
| | | <icon-show :name="permissionList.exportBtn.source"></icon-show> |
| | | 导出 |
| | | </el-button> |
| | | </template> |
| | | |
| | | <template slot="menu" slot-scope="{row,index}"> |
| | | <el-button icon="el-icon-edit" plain size="small" type="text" @click="editClickHandler(row)">修改 |
| | | <el-button v-if="permissionList.editBtn" size="small" type="text" |
| | | @click="editClickHandler(row)"> |
| | | <icon-show :name="permissionList.editBtn.source"></icon-show> |
| | | 编辑 |
| | | </el-button> |
| | | <el-button icon="el-icon-delete" plain size="small" type="text" @click="delRowClickHandler(row)">删除 |
| | | <el-button v-if="permissionList.delBtn" plain size="small" type="text" @click="delRowClickHandler(row)"> |
| | | <icon-show :name="permissionList.delBtn.source"></icon-show> |
| | | 删除 |
| | | </el-button> |
| | | </template> |
| | | |
| | | <template #icon="{ row }"> |
| | | <span class="avue-icon avue-icon--small" style="display: block"> |
| | | <svg v-if="row.imagePath && row.imagePath.indexOf('#')==0" aria-hidden="true"> |
| | | <use :xlink:href="row.imagePath"></use> |
| | | </svg> |
| | | <i v-else :class="row.imagePath"></i> |
| | | </span> |
| | | <span class="avue-icon"> |
| | | <icon-show :name="row.imagePath"></icon-show> |
| | | </span> |
| | | </template> |
| | | </avue-crud> |
| | | |
| | |
| | | </el-col> |
| | | <el-col :span="24"> |
| | | <el-form-item label="图标:" prop="imagePath"> |
| | | <avue-input-icon v-model="form.imagePath" :icon-list="iconList" placeholder="请选择图标"> |
| | | </avue-input-icon> |
| | | <input-icon v-model="form.imagePath" placeholder="请选择图标"> |
| | | </input-icon> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="24"> |
| | |
| | | </el-row> |
| | | </el-form> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="addSaveHandler">确 定</el-button> |
| | | <el-button @click="visibleCloseHandler">取 消</el-button> |
| | | <el-button size="small" type="primary" @click="addSaveHandler">确 定</el-button> |
| | | <el-button size="small" @click="visibleCloseHandler">取 消</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | |
| | |
| | | import {gridStatus, addSave, editSave, deleteStatus, exportStatus, listUsed} from "@/api/modeling/statusPool/api"; |
| | | import func from "@/util/func"; |
| | | import basicOption from "@/util/basic-option"; |
| | | import iconList from "@/config/iconList"; |
| | | import {mapGetters} from "vuex"; |
| | | |
| | | export default { |
| | | name: "index", |
| | | data() { |
| | | return { |
| | | iconList: iconList, |
| | | loading: false, |
| | | data: [], |
| | | option: { |
| | |
| | | }, |
| | | } |
| | | }, |
| | | computed:{ |
| | | ...mapGetters(["permission"]), |
| | | permissionList() { |
| | | return { |
| | | addBtn: this.vaildData(this.permission[this.$route.query.id].ADD, false), |
| | | delBtn: this.vaildData(this.permission[this.$route.query.id].DELETE, false), |
| | | editBtn: this.vaildData(this.permission[this.$route.query.id].EDIT, false), |
| | | exportBtn: this.vaildData(this.permission[this.$route.query.id].EXPORT, false), |
| | | importBtn: this.vaildData(this.permission[this.$route.query.id].IMPORT, false), |
| | | viewTheScopeBtn: this.vaildData(this.permission[this.$route.query.id].SEARCH, false), |
| | | }; |
| | | }, |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | }, |
| | |
| | | this.lastIndex = newIndex; |
| | | }, |
| | | () => { |
| | | this.selectList = []; |
| | | this.selectList = [row]; |
| | | } |
| | | ); |
| | | }, |