Views/Forms/Js/WorkFlow.js
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
layui.use(['index', 'jquery', 'form', 'table', 'micro'], function () {
var $ = layui.$
, form = layui.form
, table = layui.table
, micro = layui.micro;
//页面初始化
var STN = $("#txtSTN").val();
var MID = $("#txtMID").val();
var FormID = $("#txtFormID").val();
var mGet = {
getWorkFlow: function (mid) {
table.render({
elem: '#tabTable'
, cols: [[
{ field: 'DefaultFlow', width: 80, title: '默认', align: 'center', templet: '#swDefaultFlow', fixed: 'left' }
, { field: 'WFID', width: 100, title: '主键ID', align: 'center', hide:true }
, { field: 'Sort', width: 100, title: '排序', align: 'center', edit:'text' }
, { field: 'FlowName', title: '流程名称', align: 'center', edit: 'text' }
, { field: 'EffectiveNameStr', title: '生效范围', align: 'center' }
, { field: 'IsAccept', width: 100, title: '启用受理', align: 'center', templet: '#swIsAccept' }
, { field: 'IsSync', width: 100, title: '同步审批', align: 'center', templet: '#swIsSync' }
, { field: 'Creator', width: 200, title: '创建人', align: 'center' }
, { field: 'DateCreated', width: 200, title: '创建时间', align: 'center' }
, { fixed: 'right', title: '操作', toolbar: '#barTools', width: 150, align: 'center', fixed: 'right' }
]]
, page: true
, limit: 10
, limits: [10, 20, 30, 50, 100]
, data: micro.getAjaxData('json', micro.getRootPath() + '/Views/Forms/WorkFlowList.ashx', { 'action':'getworkflow','mid':mid})["data"]
, text: { none: 'No Data.没有数据。' }
});
}
, btnAddOpenLink: function () {
var stn = $("#txtSTN").val();
stn = stn === '' ? 'micro' : stn;
var formName = microXmSelect.getValue('name');
var microText = '添加【' + formName + '】的审批流程';
layer.open({
type: 2
, title: microText
, content: '/Views/Forms/Flow/Add/' + stn + '/' + MID + '/' + $("#txtFormID").val()
, maxmin: true
, area: ['100%', '100%']
, scrollbar: false
, btn: ['保存修改', '关闭']
, yes: function (index, layero) {
var iframeWindow = window['layui-layer-iframe' + index]
, submitID = 'btnModify'
, submit = layero.find('iframe').contents().find('#' + submitID);
$(submit).click();
}
, btn2: function (index, layero) {
var State = layero.find('iframe').contents().find('#txtState').val();
if (State == 'True')
后面还有 136 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
