Views/Set/Js/Control.js

(开头部分) 6KB

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

layui.use(['index', 'jquery', 'table', 'layer', 'micro'], function () {
    var $ = layui.$
        , form = layui.form
        , table = layui.table
        , layer = layui.layer
        , micro = layui.micro;

    var MID = micro.getUrlPara('mid');
    var mGet = {
        getTxtValGroup: function () {
            //selParentID bind
            var Fields = { "txt": "TabColName", "val": "TID", "stn": "mTabs", "lv": "False", "ob": "ParentID,Sort", "note": "Title" };
            micro.getTxtValGroup('get', 'selTabColName', micro.getRootPath() + '/App_Handler/GetParSubTextValue.ashx', Fields);
        },
        getTxtValSrcTab: function () {
            var Fields = { "txt": "TabColName", "val": "TabColName", "stn": "mTabs", "ob": "ParentID,Sort" };
            micro.getTxtVal('getalltn', 'ctlSourceTable', micro.getRootPath() + '/App_Handler/GetPublicTextValue.ashx', Fields);
        },
        getTextName: function (TabColName, Selected) {
            var Fields = { "txt": "TabColName", "val": "TabColName", "stn": "mTabs", "tcn": "" + TabColName + "", "ob": "Sort" };
            micro.getTxtVal('get', 'ctlTextName', micro.getRootPath() + '/App_Handler/GetPublicTextValue.ashx', Fields, Selected);
        },
        getTextValue: function (TabColName, Selected) {
            var Fields = { "txt": "TabColName", "val": "TabColName", "stn": "mTabs", "tcn": "" + TabColName + "", "ob": "Sort" };
            micro.getTxtVal('get', 'ctlTextValue', micro.getRootPath() + '/App_Handler/GetPublicTextValue.ashx', Fields, Selected);
        },
        getSingleList: function (TID) {
            var Fields = { "TID": "" + TID + "" };
            Fields = encodeURI(Fields);
            var Parameter = { "action": "get", "mid": MID, "fields": Fields };
            micro.mAjax('json', micro.getRootPath() + '/Views/Set/System/ControlList.ashx', Parameter);
        }

    };


    //调用mGet函数selTabColName bind
    mGet.getTxtValGroup();
    //ctlSourceTable bind
    mGet.getTxtValSrcTab();

    form.on('select(ctlSourceTable)', function (data) {
        var v = data.value;
        mGet.getTextName(v);  //ctlTextName bind
        mGet.getTextValue(v);  //ctlTextValue bind
    });

    form.on('select(selTabColName)', function (data) {

        var Fields = { "TID": "" + data.value + "" };
        Fields = encodeURI(JSON.stringify(Fields));
        var Parameter = { "action": "get", "mid": MID, "fields": Fields };
        var v = micro.getAjaxData('json', micro.getRootPath() + '/Views/Set/System/ControlList.ashx', Parameter);

        mGet.getTextName(v["data"][0].ctlSourceTable, v["data"][0].ctlTextName);   //ctlTextName bind
        mGet.getTextValue(v["data"][0].ctlSourceTable, v["data"][0].ctlTextValue);  //ctlTextValue bind

        form.val("micro-form", {

            "Invalid": v["data"][0].Invalid == "True" ? true : false,
后面还有 66 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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