| | |
| | | label: user.nickName || user.userName, |
| | | })); |
| | | } else { |
| | | this.$message.error("获取用户列表失败"); |
| | | // this.$message.error("获取用户列表失败"); |
| | | } |
| | | }) |
| | | .catch((err) => { |
| | | console.error("获取用户列表失败", err); |
| | | // console.error("获取用户列表失败", err); |
| | | }); |
| | | }, |
| | | checkEditPermission(header) { |
| | |
| | | }) |
| | | }, |
| | | onError: (err) => { |
| | | this.$message && this.$message.error ? this.$message.error('上传签名失败') : alert('上传签名失败'); |
| | | // this.$message && this.$message.error ? this.$message.error('上传签名失败') : alert('上传签名失败'); |
| | | } |
| | | }); |
| | | } |
| | |
| | | this.$message.error(res.message || '获取详情失败'); |
| | | } |
| | | }).catch(err => { |
| | | console.error('获取详情失败:', err); |
| | | this.$message.error('获取详情失败'); |
| | | // console.error('获取详情失败:', err); |
| | | // this.$message.error('获取详情失败'); |
| | | }); |
| | | }, |
| | | handleClose() { |
| | |
| | | this.$message.error(res.message || "审批失败"); |
| | | } |
| | | }).catch(err => { |
| | | console.error("审批失败:", err); |
| | | this.$message.error("审批失败"); |
| | | // console.error("审批失败:", err); |
| | | // this.$message.error("审批失败"); |
| | | }); |
| | | }, |
| | | handleReject() { |
| | |
| | | this.$message.error(res.msg || '删除失败'); |
| | | } |
| | | }).catch(err => { |
| | | console.error('删除失败:', err); |
| | | this.$message.error('删除失败'); |
| | | // console.error('删除失败:', err); |
| | | // this.$message.error('删除失败'); |
| | | }); |
| | | }, |
| | | handleApprove(row) { |
| | |
| | | this.tableData = res.data.records || []; |
| | | this.total = res.data.total || 0; |
| | | } else { |
| | | this.$message.error(res.msg || '获取数据失败'); |
| | | // this.$message.error(res.msg || '获取数据失败'); |
| | | } |
| | | }).catch(err => { |
| | | console.error('获取数据失败:', err); |
| | | this.$message.error('获取数据失败'); |
| | | // console.error('获取数据失败:', err); |
| | | // this.$message.error('获取数据失败'); |
| | | }); |
| | | }, |
| | | handleTypeChange(type) { |
| | |
| | | } |
| | | }, |
| | | onError: (err) => { |
| | | this.$message.error("文件上传失败"); |
| | | onError(err); |
| | | // this.$message.error("文件上传失败"); |
| | | // onError(err); |
| | | }, |
| | | }); |
| | | }, |
| | |
| | | this.$message.error(res.message || '获取详情失败'); |
| | | } |
| | | }).catch(err => { |
| | | console.error('获取详情失败:', err); |
| | | this.$message.error('获取详情失败'); |
| | | // console.error('获取详情失败:', err); |
| | | // this.$message.error('获取详情失败'); |
| | | }); |
| | | }, |
| | | handleClose() { |
| | |
| | | this.$message.error(res.msg || '删除失败'); |
| | | } |
| | | }).catch(err => { |
| | | console.error('删除失败:', err); |
| | | this.$message.error('删除失败'); |
| | | // console.error('删除失败:', err); |
| | | // this.$message.error('删除失败'); |
| | | }); |
| | | }, |
| | | handleApprove(row) { |
| | |
| | | this.tableData = res.data.records || []; |
| | | this.total = res.data.total || 0; |
| | | } else { |
| | | this.$message.error(res.msg || '获取数据失败'); |
| | | // this.$message.error(res.msg || '获取数据失败'); |
| | | } |
| | | }).catch(err => { |
| | | console.error('获取数据失败:', err); |
| | | this.$message.error('获取数据失败'); |
| | | // console.error('获取数据失败:', err); |
| | | // this.$message.error('获取数据失败'); |
| | | }); |
| | | }, |
| | | handleTypeChange(type) { |
| | |
| | | this.$message.error(res.msg || '获取详情失败') |
| | | } |
| | | }).catch(err => { |
| | | console.error('获取详情失败:', err) |
| | | this.$message.error('获取详情失败') |
| | | // console.error('获取详情失败:', err) |
| | | // this.$message.error('获取详情失败') |
| | | }) |
| | | }, |
| | | getProjectData(data) { |
| | |
| | | this.form.qaReportFiles = [] |
| | | } |
| | | } else { |
| | | this.$message.error(res.message || '获取详情失败') |
| | | // this.$message.error(res.message || '获取详情失败') |
| | | } |
| | | }) |
| | | }, |
| | |
| | | this.$emit("close"); |
| | | } |
| | | }).catch(err => { |
| | | this.$message.error(err.message || '审核失败'); |
| | | // this.$message.error(err.message || '审核失败'); |
| | | }); |
| | | }, |
| | | handleReject() { |
| | |
| | | this.reportTableData = res.qaTestItemReportList.filter(item=> item.status!='-1') |
| | | } |
| | | } else { |
| | | this.$message.error(res.msg || '获取详情失败') |
| | | // this.$message.error(res.msg || '获取详情失败') |
| | | } |
| | | }).catch(err => { |
| | | console.error('获取详情失败:', err) |
| | | this.$message.error('获取详情失败') |
| | | // console.error('获取详情失败:', err) |
| | | // this.$message.error('获取详情失败') |
| | | }) |
| | | }, |
| | | handleClose() { |
| | |
| | | await this.getList(); |
| | | } catch (error) { |
| | | // 如果是校验失败,error会是false,此时不做任何处理,因为el-form会展示错误信息 |
| | | if (error !== false) { |
| | | this.$message.error('查询失败,请重试'); |
| | | } |
| | | // if (error !== false) { |
| | | // this.$message.error('查询失败,请重试'); |
| | | // } |
| | | } finally { |
| | | this.loading = false; |
| | | } |
| | |
| | | } |
| | | }) |
| | | .catch((err) => { |
| | | console.error("获取详情失败:", err); |
| | | this.$message.error("获取详情失败"); |
| | | // console.error("获取详情失败:", err); |
| | | // this.$message.error("获取详情失败"); |
| | | }); |
| | | }, |
| | | handleClose() { |
| | |
| | | this.$message.error(res.msg || '删除失败'); |
| | | } |
| | | }).catch(err => { |
| | | console.error('删除失败:', err); |
| | | this.$message.error('删除失败'); |
| | | // console.error('删除失败:', err); |
| | | // this.$message.error('删除失败'); |
| | | }); |
| | | }, |
| | | handleApprove(row) { |
| | |
| | | this.tableData = res.data.records || []; |
| | | this.total = res.data.total || 0; |
| | | } else { |
| | | this.$message.error(res.msg || '获取数据失败'); |
| | | // this.$message.error(res.msg || '获取数据失败'); |
| | | } |
| | | }).catch(err => { |
| | | console.error('获取数据失败:', err); |
| | | this.$message.error('获取数据失败'); |
| | | // console.error('获取数据失败:', err); |
| | | // this.$message.error('获取数据失败'); |
| | | }); |
| | | }, |
| | | handleTypeChange(type) { |
| | |
| | | } |
| | | } |
| | | } catch (error) { |
| | | console.error('获取详情失败:', error); |
| | | this.$message.error('获取详情失败,请重试'); |
| | | // console.error('获取详情失败:', error); |
| | | // this.$message.error('获取详情失败,请重试'); |
| | | } |
| | | }, |
| | | getStatusType(status) { |
| | |
| | | } |
| | | }) |
| | | .catch((err) => { |
| | | console.error("获取详情失败:", err); |
| | | this.$message.error("获取详情失败"); |
| | | // console.error("获取详情失败:", err); |
| | | // this.$message.error("获取详情失败"); |
| | | }); |
| | | }, |
| | | handleClose() { |
| | |
| | | |
| | | } |
| | | } catch (error) { |
| | | this.$message.error('获取详情失败:' + (error.message || '未知错误')) |
| | | // this.$message.error('获取详情失败:' + (error.message || '未知错误')) |
| | | } |
| | | }, |
| | | |
| | |
| | | this.$message.success('更新成功') |
| | | this.$router.push('/dataManagement/confirmation-sheet') |
| | | } catch (error) { |
| | | this.$message.error('更新失败:' + (error.message || '未知错误')) |
| | | // this.$message.error('更新失败:' + (error.message || '未知错误')) |
| | | } |
| | | }, |
| | | }, |
| | |
| | | this.$message.error(res.msg || '获取详情失败'); |
| | | } |
| | | } catch (error) { |
| | | console.error('获取详情失败:', error); |
| | | this.$message.error('获取详情失败'); |
| | | // console.error('获取详情失败:', error); |
| | | // this.$message.error('获取详情失败'); |
| | | } finally { |
| | | this.loading = false; |
| | | } |
| | |
| | | this.$message.error(res.msg || '签字失败'); |
| | | } |
| | | }).catch(() => { |
| | | this.$message.error('签字失败'); |
| | | // this.$message.error('签字失败'); |
| | | }); |
| | | }, |
| | | }, |
| | |
| | | this.total = res.data.total || 0; |
| | | } |
| | | } catch (error) { |
| | | console.error('获取列表数据失败:', error); |
| | | this.$message.error('获取列表数据失败'); |
| | | // console.error('获取列表数据失败:', error); |
| | | // this.$message.error('获取列表数据失败'); |
| | | } |
| | | }, |
| | | handleDateChange(val) { |
| | |
| | | this.showRevoke = false; |
| | | this.getTableData(); |
| | | } catch (error) { |
| | | console.error('撤销失败:', error); |
| | | this.$message.error("撤销失败"); |
| | | // console.error('撤销失败:', error); |
| | | // this.$message.error("撤销失败"); |
| | | } |
| | | } |
| | | }, |
| | |
| | | }); |
| | | } |
| | | } catch (error) { |
| | | console.error("获取方案列表失败:", error); |
| | | this.$message.error("获取方案列表失败"); |
| | | // console.error("获取方案列表失败:", error); |
| | | // this.$message.error("获取方案列表失败"); |
| | | } finally { |
| | | this.projectLoading = false; |
| | | } |
| | |
| | | }); |
| | | } |
| | | } catch (error) { |
| | | console.error("获取方案列表失败:", error); |
| | | this.$message.error("获取方案列表失败"); |
| | | // console.error("获取方案列表失败:", error); |
| | | // this.$message.error("获取方案列表失败"); |
| | | } finally { |
| | | this.projectLoading = false; |
| | | } |
| | |
| | | } |
| | | }) |
| | | .catch((err) => { |
| | | console.error("获取详情失败:", err); |
| | | this.$message.error("获取详情失败"); |
| | | // console.error("获取详情失败:", err); |
| | | // this.$message.error("获取详情失败"); |
| | | }); |
| | | }, |
| | | memberList(type) { |
| | |
| | | this.$message.error(res.msg || '签字失败'); |
| | | } |
| | | }).catch(() => { |
| | | this.$message.error('签字失败'); |
| | | // this.$message.error('签字失败'); |
| | | }); |
| | | }, |
| | | openSignature() { |
| | |
| | | this.changeStatus = false; |
| | | this.getTableData(); |
| | | }).catch(error => { |
| | | this.$message.error("删除失败"); |
| | | // this.$message.error("删除失败"); |
| | | }); |
| | | }, |
| | | handleUpdateData() { |
| | |
| | | } |
| | | } |
| | | } catch (error) { |
| | | console.error("获取详情失败:", error); |
| | | this.$message.error("获取详情失败,请重试"); |
| | | // console.error("获取详情失败:", error); |
| | | // this.$message.error("获取详情失败,请重试"); |
| | | } |
| | | }, |
| | | |
| | |
| | | this.$message.error(res.msg || '提交失败'); |
| | | } |
| | | }).catch(() => { |
| | | this.$message.error('提交失败'); |
| | | // this.$message.error('提交失败'); |
| | | }); |
| | | } else if (this.currentOperationType == 'delete') { |
| | | deleteById({ |
| | |
| | | this.changeStatus = false; |
| | | this.getTableData(); |
| | | }).catch(error => { |
| | | this.$message.error("删除失败"); |
| | | // this.$message.error("删除失败"); |
| | | }); |
| | | } |
| | | }, |
| | |
| | | this.$message.error(res.msg || '获取列表失败'); |
| | | } |
| | | }).catch(() => { |
| | | this.$message.error('获取列表失败'); |
| | | // this.$message.error('获取列表失败'); |
| | | }); |
| | | } |
| | | } |
| | |
| | | this.$message.error(res.msg || '提交失败'); |
| | | } |
| | | } catch (error) { |
| | | console.error('提交失败:', error); |
| | | this.$message.error('提交失败'); |
| | | // console.error('提交失败:', error); |
| | | // this.$message.error('提交失败'); |
| | | } |
| | | }, |
| | | |
| | |
| | | } |
| | | } |
| | | } catch (error) { |
| | | console.error('获取详情失败:', error); |
| | | this.$message.error('获取详情失败,请重试'); |
| | | // console.error('获取详情失败:', error); |
| | | // this.$message.error('获取详情失败,请重试'); |
| | | } |
| | | }, |
| | | handleAddTime(processTime) { |
| | |
| | | this.tableData = data.records || []; |
| | | this.total = data.total || 0; |
| | | } catch (error) { |
| | | console.error('获取列表数据失败:', error); |
| | | this.$message.error('获取列表数据失败'); |
| | | // console.error('获取列表数据失败:', error); |
| | | // this.$message.error('获取列表数据失败'); |
| | | } |
| | | }, |
| | | handleAddPlan() { |
| | |
| | | this.tableData = data.records || []; |
| | | this.total = data.total || 0; |
| | | } catch (error) { |
| | | console.error('获取列表数据失败:', error); |
| | | this.$message.error('获取列表数据失败'); |
| | | // console.error('获取列表数据失败:', error); |
| | | // this.$message.error('获取列表数据失败'); |
| | | } |
| | | }, |
| | | handleApprove(row) { |
| | |
| | | this.tableData = res.data.records || []; |
| | | this.total = res.data.total || 0; |
| | | } else { |
| | | this.$message.error(res.msg || '获取数据失败'); |
| | | // this.$message.error(res.msg || '获取数据失败'); |
| | | } |
| | | }).catch(err => { |
| | | this.$message.error('获取数据失败'); |
| | | // this.$message.error('获取数据失败'); |
| | | }); |
| | | }, |
| | | handleDateChange(val) { |
| | |
| | | this.tableData = res.data.records || []; |
| | | this.total = res.data.total || 0; |
| | | } else { |
| | | this.$message.error(res.msg || "获取数据失败"); |
| | | // this.$message.error(res.msg || "获取数据失败"); |
| | | } |
| | | }) |
| | | .catch(() => { |
| | | this.$message.error("获取数据失败"); |
| | | // this.$message.error("获取数据失败"); |
| | | }); |
| | | }, |
| | | handleDateChange(val) { |
| | |
| | | this.tableData = res.data.records || []; |
| | | this.total = res.data.total || 0; |
| | | } else { |
| | | this.$message.error(res.msg || '获取数据失败'); |
| | | // this.$message.error(res.msg || '获取数据失败'); |
| | | } |
| | | }).catch(() => { |
| | | this.$message.error('获取数据失败'); |
| | | // this.$message.error('获取数据失败'); |
| | | }); |
| | | }, |
| | | handleDetail(row) { |
| | |
| | | this.tableData = res.data.records || []; |
| | | this.total = res.data.total || 0; |
| | | } else { |
| | | this.$message.error(res.msg || "获取数据失败"); |
| | | // this.$message.error(res.msg || "获取数据失败"); |
| | | } |
| | | }) |
| | | .catch(() => { |
| | | this.$message.error("获取数据失败"); |
| | | // this.$message.error("获取数据失败"); |
| | | }); |
| | | }, |
| | | handleDateChange(val) { |
| | |
| | | this.list = res.records |
| | | this.total = res.total |
| | | } else { |
| | | this.$message.error('获取数据失败') |
| | | // this.$message.error('获取数据失败') |
| | | } |
| | | }) |
| | | } catch (error) { |
| | | console.error('获取操作日志列表失败:', error) |
| | | this.$message.error('获取操作日志列表失败') |
| | | // console.error('获取操作日志列表失败:', error) |
| | | // this.$message.error('获取操作日志列表失败') |
| | | } finally { |
| | | this.listLoading = false |
| | | } |