| | |
| | | 实验与调度列表 |
| | | </div> |
| | | <div |
| | | v-if="userRole === '3'" |
| | | class="drafts" |
| | | :class="{ active: currentType === 'draft' }" |
| | | @click="handleTypeChange('draft')" |
| | |
| | | 草稿箱 |
| | | </div> |
| | | </div> |
| | | <el-button @click="handleAddPlan" class="el-icon-plus" type="primary"> |
| | | 新增实验调度</el-button |
| | | <el-button |
| | | v-if="userRole === '3'" |
| | | @click="handleAddPlan" |
| | | class="el-icon-plus" |
| | | type="primary" |
| | | > |
| | | 新增实验调度 |
| | | </el-button> |
| | | </div> |
| | | </template> |
| | | <template #table> |
| | |
| | | :type="approvalDialogType" |
| | | :data="currentApprovalData" |
| | | @close="approvalDialogVisible = false" |
| | | @update:data="handleUpdateData" |
| | | /> |
| | | <ShowDelConfirm |
| | | :title="changeStatusTitle" |
| | |
| | | status: this.currentType === 'draft' ? '-1' : this.form.status |
| | | }; |
| | | getDispatchList(params).then(res => { |
| | | if (res) { |
| | | this.tableData = res.records || []; |
| | | this.total = res.total || 0; |
| | | console.log('111111111111',res) |
| | | if (res.code==200) { |
| | | this.tableData = res.data.records || []; |
| | | this.total = res.data.total || 0; |
| | | } |
| | | }); |
| | | }, |
| | |
| | | this.$message.error("删除失败"); |
| | | }); |
| | | }, |
| | | handleUpdateData() { |
| | | this.currentApprovalData = null; |
| | | this.getTableData(); |
| | | } |
| | | }, |
| | | }; |
| | | </script> |