前端转vue
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

ProcessInfo.ts 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. // 定义 IEntity 接口,这里假设它是一个空接口,若有实际定义请按需修改
  2. interface IEntity {}
  3. // 定义 ProcessInfo 类
  4. export class ProcessInfo implements IEntity {
  5. ProcessInstanceId: string;
  6. // 流水号
  7. SerialNo: string;
  8. // 流程创建时间
  9. StartTime: string;
  10. // 流程结束时间
  11. EndTime: string;
  12. // 当前节点信息
  13. ActivitiInfo: string;
  14. // 状态 0: 未结束; 1: 结束
  15. IsActive: string;
  16. // 办理柜员
  17. Assignee: string;
  18. // 流程结束原因
  19. EndReason: string;
  20. // 发起流程交易号
  21. TradeNo: string;
  22. constructor() {
  23. this.ProcessInstanceId = '';
  24. this.SerialNo = '';
  25. this.StartTime = '';
  26. this.EndTime = '';
  27. this.ActivitiInfo = '';
  28. this.IsActive = '';
  29. this.Assignee = '';
  30. this.EndReason = '';
  31. this.TradeNo = '';
  32. }
  33. /**
  34. * 将对象属性转换为字符串数组
  35. * @returns 包含对象属性值的字符串数组
  36. */
  37. ChangeToTable(): string[] {
  38. return [
  39. this.ProcessInstanceId,
  40. this.SerialNo,
  41. this.StartTime,
  42. this.EndTime,
  43. this.ActivitiInfo,
  44. this.IsActive,
  45. this.Assignee,
  46. this.EndReason,
  47. this.TradeNo
  48. ];
  49. }
  50. /**
  51. * 从对象数组中获取值并赋值给当前对象的属性
  52. * @param parms 包含属性值的对象数组
  53. */
  54. ChangeFromTable(parms: any[]): void {
  55. this.ProcessInstanceId = parms[0].toString();
  56. this.SerialNo = parms[1].toString();
  57. this.StartTime = parms[2].toString();
  58. this.EndTime = parms[3].toString();
  59. this.ActivitiInfo = parms[4].toString();
  60. this.IsActive = parms[5].toString();
  61. this.Assignee = parms[6].toString();
  62. this.EndReason = parms[7].toString();
  63. this.TradeNo = parms[8].toString();
  64. }
  65. }