| | |
| | | <div class="flex a-center"> |
| | | <div |
| | | class="title" |
| | | :class="{ active: currentType === 'list' }" |
| | | :class="{ active: currentType == 'list' }" |
| | | @click="handleTypeChange('list')" |
| | | > |
| | | 实验与调度列表 |
| | | </div> |
| | | <div |
| | | v-if="userRole === '3'" |
| | | v-if="userRole == '3'" |
| | | class="drafts" |
| | | :class="{ active: currentType === 'draft' }" |
| | | :class="{ active: currentType == 'draft' }" |
| | | @click="handleTypeChange('draft')" |
| | | > |
| | | 草稿箱 |
| | | </div> |
| | | </div> |
| | | <el-button |
| | | v-if="userRole === '3'" |
| | | v-if="userRole == '3'" |
| | | @click="handleAddPlan" |
| | | class="el-icon-plus" |
| | | type="primary" |
| | |
| | | <template v-if="userRole == '3'"> |
| | | <el-button type="text" @click="handleDetail(scope.row)">详情</el-button> |
| | | <el-button |
| | | v-if="scope.row.status === 1" |
| | | v-if="scope.row.status == 1" |
| | | type="text" |
| | | @click="handleDelete(scope.row)" |
| | | >删除</el-button> |
| | |
| | | <template v-if="userRole == '4' || userRole == '5'"> |
| | | <el-button type="text" @click="handleDetail(scope.row)">详情</el-button> |
| | | <el-button |
| | | v-if="scope.row.status === 1" |
| | | v-if="scope.row.status == 1" |
| | | type="text" |
| | | @click="handleConfirm(scope.row)" |
| | | >确认</el-button> |
| | |
| | | }, |
| | | handleTypeChange(type) { |
| | | this.currentType = type; |
| | | this.form.status = type === 'draft' ? '-1' : ''; |
| | | this.form.status = type == 'draft' ? '-1' : ''; |
| | | this.form.pageNum = 1; |
| | | this.getTableData(); |
| | | }, |
| | | getTableData() { |
| | | const params = { |
| | | ...this.form, |
| | | status: this.currentType === 'draft' ? '-1' : this.form.status |
| | | status: this.currentType == 'draft' ? '-1' : this.form.status |
| | | }; |
| | | getDispatchList(params).then(res => { |
| | | console.log('111111111111',res) |