mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-11-08 18:34:44 +08:00
可以正常审核
This commit is contained in:
@@ -132,9 +132,6 @@ function addInstance() {
|
||||
area: ['1200px', '700px'], //宽高
|
||||
maxmin: true, //开启最大化最小化按钮
|
||||
content: '/FlowManage/FlowLaunch/FlowProcessNewForm?keyValue=' + selected.Id,
|
||||
end: function () {
|
||||
list.reload();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//左边分类导航树
|
||||
var ztree = function() {
|
||||
var ztree = function () {
|
||||
var nodes = [
|
||||
{
|
||||
name: "流程处理",
|
||||
@@ -14,7 +14,7 @@ var ztree = function() {
|
||||
var setting = {
|
||||
view: { selectedMulti: false },
|
||||
callback: {
|
||||
onClick: function(event, treeId, treeNode) {
|
||||
onClick: function (event, treeId, treeNode) {
|
||||
list.reload(treeNode.value);
|
||||
}
|
||||
}
|
||||
@@ -23,13 +23,13 @@ var ztree = function() {
|
||||
zTreeObj.expandAll(true);
|
||||
}();
|
||||
|
||||
var selectScheme = function(val) {
|
||||
var selectScheme = function (val) {
|
||||
$("#WorkflowName").empty();
|
||||
$.getJSON("/workflowschemas/Load",
|
||||
function(data) {
|
||||
function (data) {
|
||||
$.each(data.rows,
|
||||
function(i, n) {
|
||||
$("#WorkflowName").append("<option value='" + this.Code + "' v-bind:value='"+this.Code+"'>" + this.Code + "</option>");
|
||||
function (i, n) {
|
||||
$("#WorkflowName").append("<option value='" + this.Code + "' v-bind:value='" + this.Code + "'>" + this.Code + "</option>");
|
||||
});
|
||||
|
||||
if (val != undefined) {
|
||||
@@ -66,16 +66,23 @@ function MainGrid() {
|
||||
index: "CreateUserId",
|
||||
hidden: true
|
||||
},
|
||||
|
||||
{
|
||||
index: "Code",
|
||||
name: "Code",
|
||||
label: "流程编号"
|
||||
},
|
||||
|
||||
{
|
||||
index: "CustomName",
|
||||
name: "CustomName",
|
||||
label: "申请标题"
|
||||
},
|
||||
{
|
||||
name: "CreateUserName",
|
||||
index: "CreateUserName",
|
||||
label: "申请人"
|
||||
},
|
||||
{
|
||||
index: "ActivityName",
|
||||
name: "ActivityName",
|
||||
@@ -98,11 +105,11 @@ function MainGrid() {
|
||||
multiselect: true,
|
||||
multiboxonly: true,
|
||||
|
||||
loadComplete: function() {
|
||||
loadComplete: function () {
|
||||
var table = this;
|
||||
setTimeout(function() {
|
||||
updatePagerIcons(table);
|
||||
},
|
||||
setTimeout(function () {
|
||||
updatePagerIcons(table);
|
||||
},
|
||||
0);
|
||||
}
|
||||
})
|
||||
@@ -116,7 +123,7 @@ function MainGrid() {
|
||||
search: false
|
||||
});
|
||||
|
||||
this.reload = function(id) {
|
||||
this.reload = function (id) {
|
||||
if (id != undefined) selectedId = id;
|
||||
this.maingrid.jqGrid("setGridParam", { url: url + selectedId })
|
||||
.trigger("reloadGrid", [{ page: 1 }]); //重载JQGrid
|
||||
@@ -135,21 +142,13 @@ var vm = new Vue({
|
||||
function del() {
|
||||
list.del("Id",
|
||||
"/FlowInstances/Delete",
|
||||
function() {
|
||||
function () {
|
||||
list.reload();
|
||||
ztree.reload();
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
//自定义的编辑按钮
|
||||
function edit() {
|
||||
var selected = list.getSelectedObj();
|
||||
if (selected == null) {
|
||||
return;
|
||||
}
|
||||
editDlg.update(selected);
|
||||
}
|
||||
|
||||
//进度详情
|
||||
function detail() {
|
||||
@@ -163,9 +162,9 @@ function detail() {
|
||||
title: selected.Name,
|
||||
skin: "layui-layer-rim", //加上边框
|
||||
area: ["800px", "600px"], //宽高
|
||||
content: "/FlowManage/FlowInstances/ProcessLookForm?processSchemeId=" + selected.ProcessSchemeId + "&activityId="+selected.ActivityId,
|
||||
content: "/FlowManage/FlowInstances/ProcessLookForm?processSchemeId=" + selected.ProcessSchemeId + "&activityId=" + selected.ActivityId,
|
||||
maxmin: true, //开启最大化最小化按钮
|
||||
end: function() {
|
||||
end: function () {
|
||||
list.reload();
|
||||
}
|
||||
});
|
||||
@@ -185,22 +184,23 @@ function verificationForm() {
|
||||
area: ["1200px", "700px"], //宽高
|
||||
content: "/FlowManage/FlowInstances/VerificationForm?processSchemeId="
|
||||
+ selected.ProcessSchemeId + "&activityId="
|
||||
+ selected.ActivityId + "&createusername="
|
||||
+ selected.CreateUserId + "&description="
|
||||
+selected.Description,
|
||||
+ selected.ActivityId + "&processInstanceId="
|
||||
+ selected.Id + "&createuserid="
|
||||
+ selected.CreateUserId + "&createusername=" + selected.CreateUserName + "&description="
|
||||
+ selected.Description,
|
||||
maxmin: true, //开启最大化最小化按钮
|
||||
end: function() {
|
||||
end: function () {
|
||||
list.reload();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function add() {
|
||||
editDlg.add();
|
||||
layer.msg('请在流程设计列表中发起流程!');
|
||||
}
|
||||
|
||||
function refresh() {
|
||||
list.reload();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user