XMTT 7 年之前
父節點
當前提交
be8aab797a
共有 2 個文件被更改,包括 34 次插入38 次删除
  1. 13 10
      html/model/sys/userInfo/check.html
  2. 21 28
      js/model/sys/userInfo/check.js

+ 13 - 10
html/model/sys/userInfo/check.html

@ -45,16 +45,19 @@
45 45
    </div>
46 46
47 47
    <div class="container page-split"></div>
48
    <div class="container tpl-btns">
49
        <div class="row">
50
            <div class="btn opt-examine">
51
                查看用户信息
52
            </div>
53
            <div class="btn opt-review">
54
                审核
55
            </div>
56
        </div>
57
    </div>
48
    <!--<div class="container tpl-btns">-->
49
        <!--<div class="row">-->
50
            <!--<div class="btn opt-examine">-->
51
                <!--查看用户信息-->
52
            <!--</div>-->
53
            <!--<div class="btn opt-review">-->
54
                <!--审核-->
55
            <!--</div>-->
56
        <!--</div>-->
57
    <!--</div>-->
58
    <style type="text/css">
59
        .table.table-bordered tr th{text-align: center;}
60
    </style>
58 61
    <div class="container dt-tpl">
59 62
        <table class="table table-bordered">
60 63
            <thead>

+ 21 - 28
js/model/sys/userInfo/check.js

@ -24,11 +24,11 @@ spa_define(function () {
24 24
                //     var $this = $(this);
25 25
                //     $this.toggleClass("checked");
26 26
                // });
27
                root.find(".opt-examine").on("click", function () {
28
                    // var $org = root.find("td.opt-check>i.checked");
27
28
                root.on("click", ".opt-examine", function () {
29 29
                    var $this = $(this);
30
                    var $org = $this.parent().attr("userId");
31
                    util.get("../ajax/userinfo/id/" + $org, null, function (data) {
30
                    var $id = $this.parent().attr("userId");
31
                    util.get("../ajax/userinfo/id/" + $id, null, function (data) {
32 32
                        if (data) {
33 33
                            spa.showModal("sys_userinfo_examine", {
34 34
                                data: data, hand: function () {
@ -42,33 +42,26 @@ spa_define(function () {
42 42
                        }
43 43
                    }, {});
44 44
                });
45
                root.find(".opt-review").on("click", function () {
46
                    var $check = root.find("td.opt-check>i.checked");
47
                    if ($check.length) {
48
                        if ($check.length > 1) {
49
                            util.alert("只能选择一个用户")
50
                        } else {
51
                            util.get("../ajax/userinfo/id/" + $check.attr("userId"), null, function (data) {
52
                                if (data) {
53
                                    if (data.state == "2") {
54
                                        spa.showModal("sys_userinfo_review", {
55
                                            data: data, hand: function () {
56
                                                pdg.reload();
57
                                            }
58
                                        })
59
                                    } else {
60
                                        util.alert("只有待审核的可以点击");
45
                root.on("click", ".opt-review", function () {
46
                    var $this = $(this);
47
                    var $id = $this.parent().attr("userId");
48
                    util.get("../ajax/userinfo/id/" + $id, null, function (data) {
49
                        if (data) {
50
                            if (data.state == "2") {
51
                                spa.showModal("sys_userinfo_review", {
52
                                    data: data, hand: function () {
53
                                        pdg.reload();
61 54
                                    }
62
                                } else {
63
                                    util.alert("用户不存在了", function () {
64
                                        pdg.load();
65
                                    });
66
                                }
55
                                })
56
                            } else {
57
                                util.alert("只有待审核的可以点击");
58
                            }
59
                        } else {
60
                            util.alert("用户不存在了", function () {
61
                                pdg.load();
67 62
                            });
68 63
                        }
69
                    } else {
70
                        util.alert("请选择一名专家");
71
                    }
64
                    });
72 65
                });
73 66
                pdg.code.listen($.dict.doTransfer);
74 67
                pdg.load();