Views/Forms/Js/MicroPublicFormList.js
(开头部分) 18KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
layui.use(['index', 'jquery', 'form', 'table', 'micro'], function () {
var $ = layui.$
, form = layui.form
, table = layui.table
, micro = layui.micro;
var Action = $('#txtAction').val();
var Type = $('#txtType').val();
var MID = $('#txtMID').val();
//事件
var mGet = {
ViewPublicFormList: function (action,type,mid) {
table.render({
elem: '#tabTable'
, url: micro.getRootPath() + '/Views/Forms/MicroPublicFormList.ashx?action=' + action + '&type=' + type + '&mid=' + mid + "&random=" + Math.random()
, even: true
, toolbar: true
, cols: [[
{ type: 'checkbox', fixed: 'left' }
, { field: 'FormName', title: '类型', width: 230, align: 'center', fixed: 'left' }
, { field: 'FormNumber', title: '编号', width: 160, align: 'center', fixed: 'left', toolbar: '#barFormNumber' }
, { field: 'DisplayName', title: '申请者', width: 200, align: 'center', fixed: 'left' }
, { field: 'NodeName', title: '所在阶段', width: 150, align: 'center' }
, { field: 'ApprovalState', title: '表单状态', width: 200, align: 'center' }
, { field: 'ApprovalDisplayName', title: '审批者', width: 200, align: 'center' }
, { field: 'ApprovalTime', title: '审批时间', width: 220, align: 'center' }
, { field: 'WorkTel', title: '分机', width: 100, align: 'center' }
, { field: 'WorkMobilePhone', title: '手机', width: 160, align: 'center' }
, { field: 'EMail', title: '邮箱', width: 330, align: 'center' }
, { field: 'AdDepartment', title: '部门/科室', width: 500, align: 'left' }
, { field: 'DateCreated', title: '申请时间', width: 220, align: 'center', fixed: 'right' }
]]
, page: true
, limit: 100
, limits: [10, 20, 30, 50, 100, 200, 300, 500]
, data: ''
, height: 'full-120'
, text: { none: 'No relevant data.暂无相关数据。' }
});
},
layerOpen: function (shortTableName, moduleID, formID, formsID, formNumber) {
//防止页面回发
$(window.parent.document).find('#txtState').val('False');
$('#txtState').val('False');
var parm = { "action": "View", "stn": shortTableName, "mid": moduleID, "formid": formID, "pkv": formsID }
layer.open({
type: 2
, title: '《' + formNumber + '》申请单的详情 / Details of the application form.'
, content: micro.getAjaxData('json', micro.getRootPath() + '/App_Handler/GetFormLinkAddress.ashx', parm)["LinkAddress"] + '/View/' + shortTableName + '/' + moduleID + '/' + formID + '/' + formsID
, area: ['95%', '90%']
, btn: ['同意【Agree】', '驳回【Return】', '转发【Forward】', '草稿【Draft】', '提交【Submit】', '修改【Modify】', '撤回【Withdrawal】', '打印【Print】', '受理【Accept】', '结案【Case closed】', '删除【Delete】', '关闭【Close】']
, skin: micro.getAjaxData('json', micro.getRootPath() + '/Views/Forms/MicroFormCheckApproval.ashx', parm)["Class"]
, yes: function (index, layero) { //按钮一 同意
layer.open({
后面还有 287 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
