Cat.Web/Cat.Admin.Web/wwwroot/wf/cat_workflow_design.js

(开头部分) 11KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

var property = {
    //toolBtns: ["start round mix", "end round mix", "task", "node", "chat", "state", "plug", "join", "fork", "complex mix"],
    toolBtns: ["start round mix", "end round mix", "task", "node", "chat","join", "fork"],
    haveHead: true,
    headLabel: true,
    headBtns: ["new", "open", "save", "undo", "redo", "reload", "print"],//如果haveHead=true,则定义HEAD区的按钮
    haveTool: true,
    haveDashed: true,
    haveGroup: true,
    useOperStack: true,
    initLabelText:"新建流程"
};
//取代setNodeRemarks方法,采用更灵活的注释配置
GooFlow.prototype.remarks.toolBtns = {
    cursor: "选择指针",
    direct: "结点连线",
    dashed: "关联虚线",
    start: "入口结点",
    "end": "结束结点",
    "task": "任务结点",
    node: "自动结点",
    chat: "通知结点",
    state: "状态结点",
    plug: "附加插件",
    fork: "分支结点",
    "join": "联合结点",
    "complex": "复合结点",
    group: "组织划分框编辑开关"
};
GooFlow.prototype.remarks.headBtns = {
    new: "新建流程",
    open: "打开流程",
    save: "保存结果",
    undo: "撤销",
    redo: "重做",
    reload: "刷新流程",
    print: "打印流程图"
};
GooFlow.prototype.remarks.extendRight = "工作区向右扩展";
GooFlow.prototype.remarks.extendBottom = "工作区向下扩展";
var workflow;
$(document).ready(function () {
    var name = ys.request("name");
    property.initLabelText = name;
    workflow = $.createGooFlow($("#workflow"), property);

    var id = ys.request("id");
    if (id > 0) {
        ys.ajax({
            url: '/WorkFLowManage/WfWorkFLow/GetFormJson' + '?id=' + id,
            type: 'get',
            success: function (obj) {
                if (obj.Tag == 1) {
                    debugger;
                    if (obj.Data.FlowContent != null && obj.Data.FlowContent != "") {
                        try {
                            debugger;
                            workflow.loadData(JSON.parse(obj.Data.FlowContent));
                        }
                        catch{ }
后面还有 281 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。