| | |
| | | :ajaxFun="ajaxFun" |
| | | ref="companyTable" |
| | | > |
| | | <template #toolbar></template> |
| | | <template #toolbar> |
| | | <el-button type='primary' @click="addOrUpdateHandle" |
| | | v-if="permissions.basic_company_add">新增</el-button> |
| | | </template> |
| | | </ttable> |
| | | <!-- 弹窗, 新增 / 修改 --> |
| | | <table-form v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getData"></table-form> |
| | |
| | | isShowHide:true,//是否显示显影按钮 |
| | | isSearch:false,//高级查询按钮 |
| | | isCopy: true, |
| | | isRefresh: true, // 是否显示刷新按钮 |
| | | defaultOrderBy:{column:'createTime',direction:'desc'} |
| | | }, |
| | | table: { |
| | |
| | | {minWidth:'120',prop: "createTime",label:"创建时间",sort: true,isTrue:true,isSearch:true,searchInfoType:'datetimerange'}, |
| | | |
| | | ], |
| | | toolbar: [ |
| | | { |
| | | text: '新增', |
| | | type: 'primary', |
| | | fun: this.addOrUpdateHandle |
| | | } |
| | | ], |
| | | toolbar: [], |
| | | operator:[ |
| | | { |
| | | text: '删除', |
| | |
| | | }, |
| | | methods: { |
| | | hello(){ |
| | | if(!this.permissions.basic_company_copy){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | if(this.multipleSelection.length < 1){ |
| | | this.$message.error("请先选择要复制的数据!") |
| | | return |
| | | } |
| | | copy(this.multipleSelection).then(response =>{ |
| | | this.getData() |
| | | }) |
| | |
| | | }, |
| | | // 新增 /修改 |
| | | addOrUpdateHandle(row) { |
| | | if(!this.permissions.basic_company_edit && row.id!=null){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.addOrUpdateVisible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.addOrUpdate.init(row==null?null:row.id) |
| | |
| | | }, |
| | | // 删除公司信息 |
| | | deleteHandle(row) { |
| | | if(!this.permissions.basic_company_del){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.$confirm('是否确认删除公司名为:"'+row.companyName+'"', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |