You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.9 KiB
Plaintext

11 months ago
import { PageBaseGenerList } from "./PageBaseGenerList";
import { HttpHandler } from "../api/Gener";
import { GPNReturnObj, GPNReturnType } from "./GPNReturnObj";
export class GL_Focus extends PageBaseGenerList {
constructor() {
super("GL_Focus");
this.PageTitle = "我的关注(收藏)";
}
//重写的构造方法.
async Init() {
this.DTFieldOfSearch = "RDT"; // 按照日期范围查询的字段.
this.DTFieldOfLabel = "保存日期"; //日期字段名.
this.LinkField = "Title";
this.Icon = "";
this.PageSize = 0; // 分页的页面行数, 0不分页.
// 定义列,这些列用于显示.
this.Columns = [
{ Key: "WorkID", Name: "工作ID", IsShow: false },
{ Key: "Title", Name: "标题", IsShow: true },
{ Key: "StarterName", Name: "发起人", IsShow: true },
{ Key: "RDT", Name: "发起时间", IsShow: true },
{ Key: "Sender", Name: "发送人", IsShow: true },
{ Key: "NodeName", Name: "停留节点", IsShow: true },
{ Key: "FlowName", Name: "流程", IsShow: true },
{ Key: "PRI", Name: "PRI", IsShow: true, RefFunc: "PRI" },
{ Key: "SDT", Name: "应完成时间", IsShow: true },
{ Key: "ADT", Name: "接受时间", IsShow: true },
];
//获得数据源.
const handler = new HttpHandler("BP.WF.HttpHandler.WF");
const res = handler.DoMethodReturnJSON("Draft_Init");
if (res) {
this.Data = res;
}
}
//打开页面.
LinkFieldClick(object: Record<string, any>) {
let url = "MyFlow.vue?WorkID=" + object.WorkID;
const keys = Object.keys(object);
for (const key of keys) {
url += `&${key}=${object[key]}`;
}
return new GPNReturnObj(GPNReturnType.OpenUrlByDrawer90, url);
// throw new Error("Method not implemented.");
}
BtnClick(btnName: string, object: Record<string, any>) {
if (btnName === object.WorkID) throw new Error("Method not implemented.");
}
}