| | |
| | | :ajaxFun="ajaxFun" |
| | | ref="crewTable" |
| | | > |
| | | <template #toolbar></template> |
| | | <template #toolbar> |
| | | <el-button type="primary" @click="addOrUpdateHandle" |
| | | v-if="permissions.basic_crew_add">新增</el-button> |
| | | </template> |
| | | </ttable> |
| | | </el-col> |
| | | <el-col :span="16"> |
| | |
| | | :paramObj="paramObj" |
| | | ref="staffTable" |
| | | > |
| | | <template #toolbar></template> |
| | | <template #toolbar> |
| | | <el-button type="primary" @click="addHandle" |
| | | v-if="permissions.basic_crew_person_add"></el-button> |
| | | </template> |
| | | </ttable> |
| | | </el-col> |
| | | <!-- 弹窗, 新增 / 修改 --> |
| | |
| | | render: { fun: this.addOrUpdateHandle } |
| | | } |
| | | ], |
| | | toolbar: [ |
| | | { |
| | | text: '新增', |
| | | type: 'primary', |
| | | fun: this.addOrUpdateHandle |
| | | } |
| | | ], |
| | | toolbar: [], |
| | | operator: [ |
| | | { |
| | | text: '删除', |
| | |
| | | operatorConfig: { |
| | | fixed: 'right', |
| | | label: '操作', |
| | | width: 100, |
| | | minWidth: 100 |
| | | width: 110, |
| | | minWidth: 110 |
| | | } |
| | | }, |
| | | crewId: null, |
| | |
| | | searchInfoType: 'text' |
| | | } |
| | | ], |
| | | toolbar: [ |
| | | { |
| | | text: '添加', |
| | | type: 'primary', |
| | | fun: this.addHandle |
| | | } |
| | | ], |
| | | toolbar: [], |
| | | operator: [ |
| | | { |
| | | text: '删除', |
| | |
| | | }, |
| | | // 新增 / 修改 |
| | | addOrUpdateHandle(row) { |
| | | if(!this.permissions.basic_crew_edit && row.id!=null){ |
| | | return |
| | | } |
| | | this.addOrUpdateVisible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.addOrUpdate.init(row == null ? null : row.id) |
| | |
| | | } |
| | | }, |
| | | deleteStaff(row) { |
| | | if(!this.permissions.basic_crew_person_del){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | var newStaffList = [] |
| | | newStaffList.push(row) |
| | | this.crewList = { id: this.crewId, staffList: newStaffList } |
| | |
| | | }, |
| | | // 删除 |
| | | deleteHandle(row) { |
| | | if(!this.permissions.basic_crew_del){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.$confirm('是否确认删除班次名称为:' + row.crewName, '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |