| | |
| | | <!-- 操作按钮区域 --> |
| | | <div class="table-operator"> |
| | | <a-button type="primary" @click="searchQuery" icon="search">刷新</a-button> |
| | | <!-- <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>--> |
| | | <a-button @click="handleAdd" type="primary" icon="plus">批量审核</a-button> |
| | | </div> |
| | | |
| | | <!-- table区域-begin --> |
| | | <div> |
| | | <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;"> |
| | | <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项 |
| | | <a style="margin-left: 24px" @click="onClearSelected">清空</a> |
| | | </div> |
| | | |
| | | <a-table |
| | | ref="table" |
| | |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" |
| | | class="j-table-force-nowrap" |
| | | @change="handleTableChange"> |
| | | |
| | |
| | | </template> |
| | | |
| | | <span slot="action" slot-scope="text, record"> |
| | | <a @click="handleEdit(record)">编辑</a> |
| | | <a @click="handleApproval(record)">审批</a> |
| | | <a-divider type="vertical" /> |
| | | <a-dropdown> |
| | | <a class="ant-dropdown-link">更多 |
| | | <a-icon type="down" /> |
| | | </a> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item> |
| | | <a @click="handleDetail(record)">详情</a> |
| | | </a-menu-item> |
| | | <a-menu-item> |
| | | <a-popconfirm |
| | | title="确定删除吗?" |
| | | @confirm="() => handleDelete(record.id)" |
| | | > |
| | | <a>删除</a> |
| | | </a-popconfirm> |
| | | </a-menu-item> |
| | | </a-menu> |
| | | </a-dropdown> |
| | | <a @click="handleDetail(record)">详情</a> |
| | | </span> |
| | | </a-table> |
| | | </div> |
| | | |
| | | |
| | | <AssignApproveUserModal ref="modalForm" @ok="modalFormOk"></AssignApproveUserModal> |
| | | <WorkUpcomingModal ref="modalForm" @ok="modalFormOk"></WorkUpcomingModal> |
| | | |
| | | <WorkUpcomingApprovalModal ref="modalFormApproval" @ok="modalFormOk"></WorkUpcomingApprovalModal> |
| | | </a-card> |
| | | </template> |
| | | |
| | |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import JDictSelectTag from '@comp/dict/JDictSelectTag.vue' |
| | | import AssignApproveUserModal from './modules/AssignApproveUser/AssignApproveUserModal__Style#Drawer.vue' |
| | | |
| | | import WorkUpcomingModal from './modules/WorkUpcoming/WorkUpcomingModal__Style#Drawer.vue' |
| | | import WorkUpcomingApprovalModal from './modules/WorkUpcoming/WorkUpcomingApprovalModal.vue' |
| | | export default { |
| | | name: 'AssignApproveUser', |
| | | mixins:[JeecgListMixin, mixinDevice], |
| | | components: { |
| | | JDictSelectTag, |
| | | AssignApproveUserModal |
| | | WorkUpcomingModal, |
| | | WorkUpcomingApprovalModal |
| | | }, |
| | | data () { |
| | | return { |
| | |
| | | } |
| | | }, |
| | | { |
| | | title: '产品名称', |
| | | title: '文档名称', |
| | | align: "center", |
| | | dataIndex: 'productName', |
| | | dataIndex: 'assignFileStream.docName', |
| | | width: 200, |
| | | }, |
| | | { |
| | | title: '部件名称', |
| | | align: "center", |
| | | dataIndex: 'componentName', |
| | | dataIndex: 'assignFileStream.deviceName', |
| | | width: 220, |
| | | }, |
| | | { |
| | | title: '零件名称', |
| | | align: "center", |
| | | dataIndex: 'partsName', |
| | | width: 250, |
| | | }, |
| | | { |
| | | title: '文档名称', |
| | | align: "center", |
| | | dataIndex: 'docName', |
| | | width: 250, |
| | | }, |
| | | { |
| | | title: '设备名称', |
| | | align: "center", |
| | | dataIndex: 'deviceName', |
| | | width: 250, |
| | | }, |
| | | { |
| | | title: '文档版本', |
| | | align: "center", |
| | | dataIndex: 'version', |
| | | dataIndex: 'assignFileStream.version', |
| | | width: 250, |
| | | }, |
| | | { |
| | | title: '申请人', |
| | | title: '密级', |
| | | align: "center", |
| | | dataIndex: 'applyUser_dictText', |
| | | width:300 |
| | | }, |
| | | { |
| | | title: '申请原因', |
| | | align: "center", |
| | | dataIndex: 'applyReason', |
| | | width:300 |
| | | }, |
| | | { |
| | | title: '申请时间', |
| | | align: "center", |
| | | dataIndex: 'applyTime', |
| | | width:300 |
| | | dataIndex: 'assignFileStream.secretLevel', |
| | | width: 250, |
| | | }, |
| | | { |
| | | title: '操作', |
| | |
| | | }, |
| | | methods: { |
| | | initDictConfig(){ |
| | | }, |
| | | handleApproval(record){ |
| | | this.$refs.modalFormApproval.edit(record); |
| | | this.$refs.modalFormApproval.title = "审批"; |
| | | this.$refs.modalFormApproval.disableSubmit = false; |
| | | } |
| | | } |
| | | } |