From 3a8e1524dcf0eeb610d38123d5f0a3ef838379cd Mon Sep 17 00:00:00 2001
From: linzhijie <19970921lzj>
Date: 星期一, 12 四月 2021 15:44:53 +0800
Subject: [PATCH] Merge branch '20210406-maqv2' into 20210412-youhua

---
 src/main/resources/templates/main.html |  287 ++++++++-------------------------------------------------
 1 files changed, 40 insertions(+), 247 deletions(-)

diff --git a/src/main/resources/templates/main.html b/src/main/resources/templates/main.html
index ad95bc4..f603c95 100644
--- a/src/main/resources/templates/main.html
+++ b/src/main/resources/templates/main.html
@@ -10,11 +10,11 @@
             <form id="post-form1">
                 <div class="select-list">
                     <ul>
-                        <li>
+                        <li  id="hideA">
                             <p>[[#{jsp.exam.enterprise.companyname}]]锛�</p>
                             <input type="text" name="userName" id="userName" value=""/>
                         </li>
-                        <li>
+                        <li  id="hideB">
                             <a class="btn btn-primary btn-rounded btn-sm" onclick="openUserList()">
                             <i class="fa fa-search"></i>&nbsp;[[#{menu.exam.enterprise.view}]]</a>
                         </li>
@@ -42,14 +42,6 @@
                 </div>
             </form>
         </div>
-<!--        <div class="col-sm-12 select-table" id="enterpriseInfo">-->
-<!--            <p class="select-title" align="center">浼佷笟淇℃伅</p>-->
-<!--            <table id="bootstrap-table1" data-mobile-responsive="true"></table>-->
-<!--        </div>-->
-<!--        <div class="col-sm-12 select-table" id="memberInfo">-->
-<!--            <p class="select-title" align="center">鐢ㄦ埛淇℃伅</p>-->
-<!--            <table id="bootstrap-table2" data-mobile-responsive="true"></table>-->
-<!--        </div>-->
         <div class="col-sm-12 select-table">
             <p class="select-title" align="center">[[#{jsp.main.other.001}]]</p>
             <table id="bootstrap-table-form1" data-mobile-responsive="true"></table>
@@ -80,72 +72,18 @@
     var statusDatas = [[${@dict.getType('test_status')}]];
     var userId = [[${user.userId}]];
 
-    // $(function () {
-    //     var options = {
-    //         id: "bootstrap-table1",
-    //         url: ctx + "exam/extend/list2?userType=02",
-    //         showSearch: false,
-    //         showRefresh: false,
-    //         showToggle: false,
-    //         showColumns: false,
-    //         createUrl: ctx + "exam/enterprise/add",
-    //         updateUrl: ctx + "exam/enterprise/edit/{id}",
-    //         removeUrl: ctx + "exam/enterprise/remove",
-    //         exportUrl: ctx + "exam/enterprise/export",
-    //         modalName: [[#{jsp.exam.demographyParam.businessuser}]],
-    //         // showRefresh: true,
-    //         queryParams: queryParams,
-    //         pageSize: 10,
-    //         pageList: [10, 50, 100],
-    //         columns: [
-    //             {
-    //                 field: 'userId',
-    //                 title: 'ID'
-    //             },
-    //             {
-    //                 field: 'loginName',
-    //                 title: [[#{jsp.exam.distributor.loginname}]]
-    //             },
-    //             {
-    //                 field: 'userName',
-    //                 title: [[#{jsp.exam.enterprise.companyname}]]
-    //             },
-    //             {
-    //                 field: 'businessManager',
-    //                 title: [[#{jsp.exam.distributor.businessmanager}]]
-    //             },
-    //             {
-    //                 field: 'testNum',
-    //                 title: [[#{jsp.exam.enterprise.usetimes}]],
-    //                 formatter: function (value, row, index) {
-    //                     return '<a href="javascript:void(0)" onclick="modifyUsageCount(\'' + row.id + '\')">' + value + '</a>';
-    //                 }
-    //             },
-    //             {
-    //                 field: 'effectTime',
-    //                 title: [[#{jsp.exam.enterprise.effectivetime}]]
-    //             },
-    //             {
-    //                 field: 'invalidTime',
-    //                 title: [[#{jsp.exam.distributor.termcooperation}]]
-    //             },
-    //             {
-    //                 field: 'legalPerson',
-    //                 title: [[#{jsp.exam.enterprise.corporate}]]
-    //             },
-    //             {
-    //                 title: [[#{basis.operate}]],
-    //                 align: 'center',
-    //                 formatter: function (value, row, index) {
-    //                     var actions = [];
-    //                     actions.push('<a class="btn btn-danger btn-xs " href="javascript:void(0)" onclick="freelogin(\'' + row.userId + '\')"><i class="fa fa-eye"></i>' + [[#{basis.freelogin}]] + '</a>');
-    //                     return actions.join('');
-    //                 }
-    //             }
-    //         ]
-    //     };
-    //     $.table.init(options);
-    // });
+    $(function(){ //浠g爜閮ㄥ垎
+        $.ajax({
+            type: "post",
+            url: ctx + "exam/enterprise/checkUser",
+            success: function (data) {
+                if(data.code=='0') {
+                    $("#hideA").css('display','none');
+                    $("#hideB").css('display','none');
+                }
+            }
+        });
+    })
 
     function freelogin(id) {
         $.ajax({
@@ -183,146 +121,6 @@
         }
         $("#" + tableId).bootstrapTable('refresh', params);
     }
-
-    // function searchDefine2() {
-    //     var tableId = 'bootstrap-table2';
-    //     var params = {
-    //         queryValue: $("#queryValue").val(),
-    //         queryType: $("#queryType").val(),
-    //         limit: 10,
-    //     }
-    //     $("#" + tableId).bootstrapTable('refresh', params);
-    // }
-    //
-    // $(function () {
-    //     var options = {
-    //         id: "bootstrap-table2",
-    //         url: ctx + "exam/testMember" + "/list",
-    //         showSearch: false,
-    //         showRefresh: false,
-    //         showToggle: false,
-    //         showColumns: false,
-    //         createUrl: ctx + "exam/testMember" + "/add/" + $("#testId").val(),
-    //         updateUrl: ctx + "exam/testMember" + "/edit/{id}",
-    //         removeUrl: ctx + "exam/testMember" + "/remove",
-    //         exportUrl: ctx + "exam/testMember" + "/export",
-    //         exportUrlLinkTest: ctx + "exam/testMember" + "/exportLinkTest",
-    //         importUrl: ctx + "exam/testMember" + "/importData/" + $("#testId").val(),
-    //         importTemplateUrl: ctx + "exam/testMember" + "/importTemplate",
-    //         modalName: [[#{jsp.exam.test_package.032}]],
-    //         pageSize: 10,
-    //         pageList: [10, 50, 100],
-    //         queryParams: queryParams2,
-    //         // queryParams: function (params) {
-    //         //     var temp = {
-    //         //         queryValue:$("#queryValue").val(),
-    //         //         queryType: $("#queryType").val(),
-    //         //     }
-    //         //     return temp;
-    //         // },
-    //         columns: [
-    //             {
-    //                 field: 'memberId',
-    //                 title: [[#{jsp.exam.test_package.033}]],
-    //                 visible: false
-    //             },
-    //             {
-    //                 field: 'memberName',
-    //                 title: [[#{jsp.exam.report.008}]]
-    //             },
-    //             {
-    //                 field: 'memberDept',
-    //                 title: [[#{jsp.system.dept.002}]],
-    //                 sortable: true
-    //
-    //             },
-    //             {
-    //                 field: 'memberEmail',
-    //                 title: [[#{jsp.system.user.profile.005}]]
-    //             },
-    //             {
-    //                 field: 'memberPhone',
-    //                 title: [[#{jsp.system.user.profile.003}]]
-    //             },
-    //             {
-    //                 field: 'testId',
-    //                 title: [[#{jsp.exam.report.014}]],
-    //                 visible: false
-    //             },
-    //             {
-    //                 field: 'startTime',
-    //                 title: [[#{jsp.exam.test_package.startTime}]]
-    //             },
-    //             {
-    //                 field: 'endTime',
-    //                 title: [[#{jsp.exam.test_package.endTime}]]
-    //             },
-    //             {
-    //                 field: 'smsStatus',
-    //                 title: [[#{jsp.exam.test_package.035}]],
-    //                 formatter: function (value, row, index) {
-    //                     return $.table.selectDictLabel(sms_type, value);
-    //                 }
-    //             },
-    //             {
-    //                 field: 'smsTime',
-    //                 title: [[#{jsp.exam.test_package.036}]]
-    //             },
-    //             {
-    //                 field: 'emailStatus',
-    //                 title: [[#{jsp.exam.test_package.037}]],
-    //                 formatter: function (value, row, index) {
-    //                     return $.table.selectDictLabel(email_status, value);
-    //                 }
-    //             },
-    //             {
-    //                 field: 'emailTime',
-    //                 title: [[#{jsp.exam.test_package.038}]]
-    //             },
-    //             {
-    //                 field: 'status',
-    //                 title: [[#{basis.state}]],
-    //                 formatter: function (value, row, index) {
-    //                     return $.table.selectDictLabel(test_member_status, value);
-    //                 }
-    //             },
-    //             {
-    //                 field: 'remark',
-    //                 title: [[#{basis.remark}]]
-    //             },
-    //             {
-    //                 field: 'token',
-    //                 title: [[#{jsp.exam.test_package.testtoken}]],
-    //                 visible: false
-    //             },
-    //             {
-    //                 field: 'hrEmailStatus',
-    //                 title: [[#{hr.mailbox.status}]],
-    //                 formatter: function (value, row, index) {
-    //                     if (value == 1) {
-    //                         return [[#{dict.ic138}]];
-    //                     } else if (value == 2) {
-    //                         return [[#{dict.ic140}]];
-    //                     } else {
-    //                         return "-";
-    //                     }
-    //                 },
-    //                 visible: false
-    //             },
-    //             {
-    //                 title: [[#{basis.operate}]],
-    //                 align: 'center',
-    //                 formatter: function (value, row, index) {
-    //                     var actions = [];
-    //                     actions.push('<a class="btn btn-success btn-xs " href="javascript:void(0)" onclick="openTestDetail(\'' + row.token + '\')"><i class="fa fa-edit"></i>[[#{jsp.exam.test_package.testinfo}]]</a> ');
-    //                     actions.push('<a class="btn btn-warning btn-xs " href="javascript:void(0)" onclick="openMemberReport(' + row.memberId + "," + row.testId + ')"><i class="fa fa-edit"></i>[[#{view.report}]]</a> ');
-    //                     return actions.join('');
-    //                 }
-    //             }
-    //         ]
-    //     };
-    //     $.table.init(options);
-    // });
 
     // 鏌ョ湅娴嬭瘯杩涘害
     function openTestDetail(token) {
@@ -421,11 +219,6 @@
         $.modal.openTab([[#{menu.exam.enterprise.view}]], url);
     }
 
-    function openPackageList() {
-        var url = ctx + 'exam/test_package/searchTestPackage?testName=' + $("#testName").val();
-        $.modal.openTab([[#{menu.exam.test_package.search}]], url);
-    }
-
     function openMemberSearch() {
         var url = ctx + 'exam/testMember/memberQuery?queryType=' + $("#queryType").val() + '&queryValue=' + $("#queryValue").val();
         $.modal.openTab([[#{menu.exam.testMember.list}]], url);
@@ -488,16 +281,16 @@
                     field: 'langType',
                     title: [[#{language.used.in.the.test}]]
                 },
-                {
-                    field: 'status',
-                    title: [[#{basis.state}]],
-                    formatter: function (value, row, index) {
-                        return $.table.selectDictLabel(test_member_status, value);
-                    }
-                },
+                // {
+                //     field: 'status',
+                //     title: [[#{basis.state}]],
+                //     formatter: function (value, row, index) {
+                //         return $.table.selectDictLabel(test_member_status, value);
+                //     }
+                // },
                 {
                     field: 'startTime',
-                    title: [[#{current.time}]]
+                    title: [[#{jsp.main.other.004}]]
                 },
             ]
         };
@@ -549,7 +342,7 @@
                 },
                 {
                     field: 'userName',
-                    title: [[#{jsp.exam.enterprise.companyname}]],
+                    title: [[#{enterprise.customer.name}]],
                     formatter: function (value, row, index) {
                         // return '<a href="javascript:void(0)" onclick="userDetail(\'' + row.userId + '\')">' + value + '</a>';
                         return '<a href="javascript:void(0)" onclick="freelogin(\'' + row.userId + '\')">' + value + '</a>';
@@ -561,7 +354,7 @@
                 },
                 {
                     field: 'testType',
-                    title: [[#{basis.type}]],
+                    title: [[#{jsp.main.other.005}]],
                     formatter: function (value, row, index) {
                         return $.table.selectDictLabel(testTypeDatas, value);
                     }
@@ -577,21 +370,21 @@
                     field: 'testNum',
                     title: [[#{jsp.exam.test_package.009}]]
                 },
-                {
-                    field: 'finishNum',
-                    title: [[#{jsp.exam.test_package.010}]]
-                }, {
-                    field: 'testingNum',
-                    title: [[#{jsp.exam.test_package.0101}]]
-                },
-                {
-                    field: 'unTestNum',
-                    title: [[#{jsp.exam.test_package.011}]]
-                },
-                {
-                    field: 'testEmail',
-                    title: [[#{jsp.exam.test_package.012}]]
-                },
+                // {
+                //     field: 'finishNum',
+                //     title: [[#{jsp.exam.test_package.010}]]
+                // }, {
+                //     field: 'testingNum',
+                //     title: [[#{jsp.exam.test_package.0101}]]
+                // },
+                // {
+                //     field: 'unTestNum',
+                //     title: [[#{jsp.exam.test_package.011}]]
+                // },
+                // {
+                //     field: 'testEmail',
+                //     title: [[#{jsp.exam.test_package.012}]]
+                // },
                 {
                     field: 'invalidTime',
                     title: [[#{jsp.exam.test_package.004}]],
@@ -651,7 +444,7 @@
     /*浼佷笟鐢ㄦ埛鎴栬�呭垎閿�鍟嗙晫闈�-璇︾粏*/
     function userDetail(userId) {
         var url = ctx + "exam/distributor";
-        $.modal.openTab([[#{menu.exam.enterprise.view}]], url);
+        $.modal.openTab([[#{menu.exam.enterprise.view1}]], url);
     }
 </script>
 </body>

--
Gitblit v1.9.1