| | |
| | | </div> |
| | | |
| | | <div class="search-bar-box-item"> |
| | | <el-select |
| | | placeholder="请选择所属单位" |
| | | v-model="filters.create_dept" |
| | | |
| | | clearable |
| | | > |
| | | <el-select placeholder="请选择所属单位" v-model="filters.create_dept" clearable> |
| | | <el-option |
| | | v-for="dept in departments" |
| | | :key="dept.value" |
| | |
| | | <el-button type="text" icon="el-icon-view" @click="handleViewDetail(row)" |
| | | >详情</el-button |
| | | > |
| | | </template> |
| | | </template> |
| | | <!-- 已通过 --> |
| | | <template v-if="row.status == 3 " > |
| | | <template v-if="row.status == 3"> |
| | | <el-button type="text" icon="el-icon-view" @click="handleViewDetail(row)" |
| | | >详情</el-button |
| | | > |
| | | </template> |
| | | <!--草稿--> |
| | | <template v-else > |
| | | <el-button type="text" icon="el-icon-edit" @click="handleViewDetail(row)" |
| | | >编辑</el-button |
| | | > |
| | | <el-button type="text" icon="el-icon-position" @click="userPublishPush(row.id)" |
| | | >发布</el-button |
| | | > |
| | | <el-button type="text" icon="el-icon-delete" @click="deleteOrderLog(row.id)" |
| | | >删除</el-button |
| | | > |
| | | <template v-if="row.status == 0"> |
| | | <el-button type="text" icon="el-icon-edit" @click="handleViewDetail(row)" |
| | | >编辑</el-button |
| | | > |
| | | <el-button type="text" icon="el-icon-position" @click="userPublishPush(row.id)" |
| | | >发布</el-button |
| | | > |
| | | <el-button type="text" icon="el-icon-delete" @click="deleteOrderLog(row.id)" |
| | | >删除</el-button |
| | | > |
| | | </template> |
| | | </div> |
| | | </template> |
| | |
| | | mounted() { |
| | | this.fetchTableData(); |
| | | const id = this.$route.query.id; |
| | | if (id) { // 确保 id 存在 |
| | | this.handleViewDetail({ id }); |
| | | } else { |
| | | console.error('工单ID不存在!'); |
| | | } |
| | | if (id) { |
| | | // 确保 id 存在 |
| | | this.handleViewDetail({ id }); |
| | | } else { |
| | | console.error('工单ID不存在!'); |
| | | } |
| | | }, |
| | | computed: { |
| | | ...mapGetters(['userInfo', 'permission']), |