| | |
| | | }); |
| | | //console.log(permission_new) |
| | | state.permission = permission_new; |
| | | setStore({name: "saber-permission", content: permission_new}); |
| | | setStore({name: "permission", content: permission_new}); |
| | | }, |
| | | |
| | | } |
| | |
| | | size="small" |
| | | plain |
| | | icon="el-icon-refresh-right" |
| | | @click="handleSend">手动推送 |
| | | v-if="permission.task.task_sendPush" |
| | | @click="handleSend" >手动推送 |
| | | </el-button> |
| | | <div style="float: right;margin-left: 10px"> |
| | | <vci-docking-search :formInline="formInline" :SearchObject="SearchObject" :page="page" :status="status" @getList="dockingGetList"></vci-docking-search> |
| | |
| | | <template slot="menuLeft"> |
| | | <!-- <el-button icon="el-icon-search" size="small" type="primary" @click="handleStatus">查 询 |
| | | </el-button> --> |
| | | <el-button icon="el-icon-delete" size="small" type="danger" @click="handleDeleteByIds">删 除 |
| | | <el-button icon="el-icon-delete" size="small" type="danger" @click="handleDeleteByIds" v-if="this.permission.systemInfo.systemInfo_remove">删 除 |
| | | </el-button> |
| | | </template> |
| | | <template slot="search" slot-scope="{row,size}"> |
| | |
| | | :size="size" clearable style="width:300px;margin-left: 10px;" |
| | | @clear="handleClear" @keyup.enter.native="handleEnter"></el-input> |
| | | </template> |
| | | <template #menu="{row,index,size}"> |
| | | <template #menu="{row,index,size}" v-if="this.permission.systemInfo.systemInfo_empower"> |
| | | <el-button icon="el-icon-menu" size="small" type="text" @click="classifyHandler(row)">分类授权</el-button> |
| | | |
| | | </template> |
| | | |
| | | |
| | | </avue-crud> |
| | | <el-dialog :visible.sync="dialogVisible" append-to-body class="avue-dialog avue-dialog--top" title="分类授权" |
| | | top="-50px"> |
| | |
| | | sysInfoTree, |
| | | batchAddSave |
| | | } from '@/api/integration/sysInfo.js' |
| | | |
| | | import {mapGetters} from "vuex"; |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | search: {}, |
| | | delIds: [], |
| | | data: [], |
| | | option: { |
| | | height: "auto", |
| | | tip: false, |
| | | border: true, |
| | | align: 'center', |
| | | menuAlign: 'center', |
| | | index: true, |
| | | searchMenuSpan: 8, |
| | | searchBtn: false, |
| | | emptyBtn: false, |
| | | columnBtn: false, |
| | | defaultSort: { |
| | | prop: 'id,name', |
| | | order: 'descending' |
| | | }, |
| | | selection: true, |
| | | column: [ |
| | | { |
| | | label: '系统编号', |
| | | prop: 'id', |
| | | sortable: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: '系统编号不能为空', |
| | | trigger: 'blur' |
| | | }], |
| | | // maxlength: 30, //字数限制 |
| | | }, { |
| | | label: '系统名称', |
| | | prop: 'name', |
| | | sortable: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: '系统名称不能为空', |
| | | trigger: 'blur' |
| | | }], |
| | | // maxlength: 30, //字数限制 |
| | | }, |
| | | { |
| | | label: '系统描述', |
| | | prop: 'description', |
| | | type: 'textarea' |
| | | } |
| | | ] |
| | | }, |
| | | |
| | | } |
| | | }, |
| | | created() { |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["permission"]), |
| | | option(){ |
| | | return{ |
| | | height: "auto", |
| | | tip: false, |
| | | border: true, |
| | | align: 'center', |
| | | menuAlign: 'center', |
| | | index: true, |
| | | searchMenuSpan: 8, |
| | | addBtn:this.permission.systemInfo.systemInfo_add, |
| | | editBtn:this.permission.systemInfo.systemInfo_edit, |
| | | delBtn:this.permission.systemInfo.systemInfo_remove, |
| | | searchBtn: false, |
| | | emptyBtn: false, |
| | | columnBtn: false, |
| | | defaultSort: { |
| | | prop: 'id,name', |
| | | order: 'descending' |
| | | }, |
| | | selection: true, |
| | | column: [ |
| | | { |
| | | label: '系统编号', |
| | | prop: 'id', |
| | | sortable: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: '系统编号不能为空', |
| | | trigger: 'blur' |
| | | }], |
| | | // maxlength: 30, //字数限制 |
| | | }, { |
| | | label: '系统名称', |
| | | prop: 'name', |
| | | sortable: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: '系统名称不能为空', |
| | | trigger: 'blur' |
| | | }], |
| | | // maxlength: 30, //字数限制 |
| | | }, |
| | | { |
| | | label: '系统描述', |
| | | prop: 'description', |
| | | type: 'textarea' |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | //重置 |
| | | resetting(){ |