| File was renamed from eladmin-web-master/src/views/system/company/index.vue |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="description" label="描述" /> |
| | | <el-table-column prop="createTime" label="创建日期" /> |
| | | <el-table-column v-if="checkPer(['admin','systemSetting:edit','systemSetting:del'])" label="操作" width="150px" align="center"> |
| | | <el-table-column v-if="checkPer(['admin','sysUserCompany:edit','sysUserCompany:del'])" label="操作" width="150px" align="center"> |
| | | <template slot-scope="scope"> |
| | | <udOperation |
| | | :data="scope.row" |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import crudSystemSetting from '@/api/system/systemSetting' |
| | | import crudSysUserCompany from '@/api/system/sysUserCompany' |
| | | import CRUD, { presenter, header, form, crud } from '@crud/crud' |
| | | import rrOperation from '@crud/RR.operation' |
| | | import crudOperation from '@crud/CRUD.operation' |
| | |
| | | |
| | | const defaultForm = { id: null, name: null, description: null, label: null, value: null, createBy: null, updateBy: null, createTime: null, updateTime: null } |
| | | export default { |
| | | name: 'SystemSetting', |
| | | name: 'SysUserCompany', |
| | | components: { pagination, crudOperation, rrOperation, udOperation }, |
| | | mixins: [presenter(), header(), form(defaultForm), crud()], |
| | | cruds() { |
| | | return CRUD({ title: '公司管理', url: 'api/systemSetting', idField: 'id', sort: 'id,desc', crudMethod: { ...crudSystemSetting }}) |
| | | return CRUD({ title: '公司管理', url: 'api/sysUserCompany', idField: 'id', sort: 'id,desc', crudMethod: { ...crudSysUserCompany }}) |
| | | }, |
| | | data() { |
| | | return { |
| | | permission: { |
| | | add: ['admin', 'systemSetting:add'], |
| | | edit: ['admin', 'systemSetting:edit'], |
| | | del: ['admin', 'systemSetting:del'], |
| | | download: ['admin', 'systemSetting:download'] |
| | | add: ['admin', 'sysUserCompany:add'], |
| | | edit: ['admin', 'sysUserCompany:edit'], |
| | | del: ['admin', 'sysUserCompany:del'], |
| | | download: ['admin', 'sysUserCompany:download'] |
| | | }, |
| | | rules: { |
| | | label: [ |