Browse Source

静态化页面相关

XMTT 7 years ago
parent
commit
0d5baa2249

+ 2 - 2
html/model/sys/article/index.html

@ -94,9 +94,9 @@
94 94
            </thead>
95 95
            <tbody>
96 96
            <tr ch-dir="list">
97
                <td class="opt-check" ><i class="icon icon-st-check" articleId="{{articleId}}"></i></td>
97
                <td class="opt-check" ><i class="icon icon-st-check" articleId="{{articleId}}" shareId="{{shareId}}" createTime="{{createTime}}"></i></td>
98 98
                <td>{{pi}}</td>
99
                <td class="table-opt" articleId="{{articleId}}"><a class="name">{{articleTitle}}</a></td>
99
                <td class="table-opt" articleId="{{articleId}}" shareId="{{shareId}}" createTime="{{createTime}}"><a class="name">{{articleTitle}}</a></td>
100 100
                <td>{{professorName}}{{organizationName}}</td>
101 101
                <td>{{subject}}</td>
102 102
                <td class="hand-dict" dict="banner" code="{{colNum}}"></td>

+ 1 - 1
html/model/sys/content/index.html

@ -74,7 +74,7 @@
74 74
            </thead>
75 75
            <tbody>
76 76
            <tr ch-dir="list">
77
                <td class="opt-check" ><i class="icon icon-st-check" contentId="{{articleId}}{{resourceId}}{{id}}"></i></td>
77
                <td class="opt-check" ><i class="icon icon-st-check" contentId="{{articleId}}{{resourceId}}{{id}}" shareId="{{shareId}}" createTime="{{createTime}}"></i></td>
78 78
                <td>{{pi}}</td>
79 79
                <td>{{name}}{{articleTitle}}{{resourceName}}</td>
80 80
                <td>{{professorName}}{{authors}}{{organizationName}}</td>

+ 2 - 2
html/model/sys/paper/index.html

@ -78,9 +78,9 @@
78 78
            </thead>
79 79
            <tbody>
80 80
            <tr ch-dir="list">
81
                <td class="opt-check" ><i class="icon icon-st-check" paperId="{{id}}"></i></td>
81
                <td class="opt-check" ><i class="icon icon-st-check" paperId="{{id}}" shareId="{{shareId}}" createTime="{{createTime}}"></i></td>
82 82
                <td>{{pi}}</td>
83
                <td class="table-opt" paperId="{{id}}"><a class="name">{{name}}</a></td>
83
                <td class="table-opt" paperId="{{id}}" shareId="{{shareId}}" createTime="{{createTime}}"><a class="name">{{name}}</a></td>
84 84
                <td>{{authors}}</td>
85 85
                <td>{{keywords}}</td>
86 86
                <td>{{createTime-showDay}}</td>

+ 2 - 2
html/model/sys/patent/index.html

@ -78,9 +78,9 @@
78 78
            </thead>
79 79
            <tbody>
80 80
            <tr ch-dir="list">
81
                <td class="opt-check" ><i class="icon icon-st-check" patentId="{{id}}"></i></td>
81
                <td class="opt-check" ><i class="icon icon-st-check" patentId="{{id}}" shareId="{{shareId}}" createTime="{{createTime}}"></i></td>
82 82
                <td>{{pi}}</td>
83
                <td class="table-opt" patentId="{{id}}"><a class="name">{{name}}</a></td>
83
                <td class="table-opt" patentId="{{id}}" shareId="{{shareId}}" createTime="{{createTime}}"><a class="name">{{name}}</a></td>
84 84
                <td>{{authors}}</td>
85 85
                <td>{{keywords}}</td>
86 86
                <td>{{createTime-showDay}}</td>

+ 2 - 2
js/model/sys/article/articleModify.js

@ -28,10 +28,10 @@ $(function() {
28 28
                if(data.success == true) {
29 29
                    var userid = data.data.id;
30 30
                    if (userid == undefined || userid.length == 0 || userid == "null") {
31
                        location.href = "http://localhost:81/html/index.html";
31
                        location.href = "http://www.ekexiu.com:81/html/index.html";
32 32
                    }
33 33
                }else {
34
                    location.href = "http://localhost:81/html/index.html";
34
                    location.href = "http://www.ekexiu.com:81/html/index.html";
35 35
                }
36 36
            }
37 37
        });

+ 16 - 9
js/model/sys/article/index.js

@ -37,7 +37,10 @@ spa_define(function () {
37 37
                    });
38 38
                    root.find(".table-opt a.name").on("click",function () {
39 39
                        var articleId = $(this).parent().attr("articleId");
40
                        window.open('http://www.ekexiu.com/articalShow.html?articleId=' + articleId);
40
                        var time = $(this).parent().attr("createTime").substring(0,8);
41
                        var shareId = $(this).parent().attr("shareId");
42
                        // window.open('http://www.ekexiu.com/articalShow.html?articleId=' + articleId);
43
                        window.open('http://192.168.3.233:81/shtml/a/'+time+'/' + shareId+'.html');
41 44
                    })
42 45
                });
43 46
@ -59,10 +62,10 @@ spa_define(function () {
59 62
                    $this.toggleClass("checked");
60 63
                });
61 64
                root.find(".opt-del").on("click", function() {
62
                    var $org = root.find("td.opt-check>i.checked");
63
                    if($org.length) {
65
                    var $article = root.find("td.opt-check>i.checked");
66
                    if($article.length) {
64 67
                        var ret = [];
65
                        $org.each(function() {
68
                        $article.each(function() {
66 69
                            ret.push($(this).attr("articleId"));
67 70
                        });
68 71
                        util.boxMsg({
@ -149,7 +152,8 @@ spa_define(function () {
149 152
                        } else {
150 153
                            // $.util.get("../ajax/article/id/"+$article.attr("articleId"),null,function(rd){
151 154
                            //     if(rd){
152
                                    window.open('http://www.ekexiu.com:81/html/model/sys/article/articleModify.html?articleId=' + $article.attr("articleId"));
155
                            //         window.open('http://www.ekexiu.com:81/html/model/sys/article/articleModify.html?articleId=' + $article.attr("articleId"));
156
                                    window.open('http://'+window.location.host+'/html/model/sys/article/articleModify.html?articleId=' + $article.attr("articleId"));
153 157
                            //     }else{
154 158
                            //         util.alertMsg("文章不存在", function(){pdg.reload();});
155 159
                            //     }
@ -185,12 +189,15 @@ spa_define(function () {
185 189
                    }
186 190
                });
187 191
                root.find(".opt-view").on("click", function () {
188
                    var $org = root.find("td.opt-check>i.checked");
189
                    if ($org.length) {
190
                        if ($org.length > 1) {
192
                    var $article = root.find("td.opt-check>i.checked");
193
                    if ($article.length) {
194
                        if ($article.length > 1) {
191 195
                            util.alert("只能选择一篇文章");
192 196
                        } else {
193
                            window.open('http://www.ekexiu.com/articalShow.html?articleId=' + $org.attr("articleId"));
197
                            var time = $article.attr("createTime").substring(0,8);
198
                            var shareId = $article.attr("shareId");
199
                            // window.open('http://www.ekexiu.com/articalShow.html?articleId=' + $article.attr("articleId"));
200
                            window.open('http://192.168.3.233:81/shtml/a/'+time+'/' + shareId+'.html');
194 201
                        }
195 202
                    } else {
196 203
                        util.alert("请选择一篇文章");

+ 8 - 3
js/model/sys/content/index.js

@ -93,19 +93,24 @@ spa_define(function () {
93 93
94 94
                root.find(".opt-view").on("click", function () {
95 95
                    var $org = root.find("td.opt-check>i.checked");
96
                    var time = $org.attr("createTime").substring(0,8);
97
                    var shareId = $org.attr("shareId");
96 98
                    var contentType = pdg.queryParam().contentType;
97 99
                    if ($org.length) {
98 100
                        if ($org.length > 1) {
99 101
                            util.alert("只能选择一个用户");
100 102
                        } else {
101 103
                            if ( contentType==3){//文章
102
                                window.open('http://www.ekexiu.com/articalShow.html?articleId=' + $org.attr("contentId"));
104
                                // window.open('http://www.ekexiu.com/articalShow.html?articleId=' + $org.attr("contentId"));
105
                                window.open('http://192.168.3.233:81/shtml/a/'+time+'/' + shareId+'.html');
103 106
                            }else if ( contentType== 2){//资源
104 107
                                window.open('http://www.ekexiu.com/resourceShow.html?resourceId=' + $org.attr("contentId"));
105 108
                            }else if ( contentType==4){//专利
106
                                window.open('http://www.ekexiu.com/patentShow.html?patentId=' + $org.attr("contentId"));
109
                                // window.open('http://www.ekexiu.com/patentShow.html?patentId=' + $org.attr("contentId"));
110
                                window.open('http://192.168.3.233:81/shtml/pt/'+time+'/' + shareId+'.html');
107 111
                            }else if ( contentType==5){//论文
108
                                window.open('http://www.ekexiu.com/paperShow.html?paperId=' + $org.attr("contentId"));
112
                                // window.open('http://www.ekexiu.com/paperShow.html?paperId=' + $org.attr("contentId"));
113
                                window.open('http://192.168.3.233:81/shtml/pp/'+time+'/' + shareId+'.html');
109 114
                            }
110 115
                        }
111 116
                    } else {

+ 12 - 6
js/model/sys/paper/index.js

@ -44,8 +44,11 @@ spa_define(function () {
44 44
                        $e.removeClass("hand-agreeid");
45 45
                    });
46 46
                    root.find(".table-opt a.name").on("click",function () {
47
                        var paperId = $(this).parent().attr("paperId");
48
                        window.open('http://www.ekexiu.com/paperShow.html?paperId=' + paperId);
47
                        // var paperId = $(this).parent().attr("paperId");
48
                        var time = $(this).parent().attr("createTime").substring(0,8);
49
                        var shareId = $(this).parent().attr("shareId");
50
                        // window.open('http://www.ekexiu.com/paperShow.html?paperId=' + paperId);
51
                        window.open('http://192.168.3.233:81/shtml/pp/'+time+'/' + shareId+'.html');
49 52
                    })
50 53
                });
51 54
@ -128,12 +131,15 @@ spa_define(function () {
128 131
                    }
129 132
                });
130 133
                root.find(".opt-view").on("click", function () {
131
                    var $org = root.find("td.opt-check>i.checked");
132
                    if ($org.length) {
133
                        if ($org.length > 1) {
134
                    var $paper = root.find("td.opt-check>i.checked");
135
                    if ($paper.length) {
136
                        if ($paper.length > 1) {
134 137
                            util.alert("只能选择一篇资源");
135 138
                        } else {
136
                            window.open('http://www.ekexiu.com/paperShow.html?paperId=' + $org.attr("paperId"));
139
                            var time = $paper.attr("createTime").substring(0,8);
140
                            var shareId = $paper.attr("shareId");
141
                            // window.open('http://www.ekexiu.com/paperShow.html?paperId=' + $paper.attr("paperId"));
142
                            window.open('http://192.168.3.233:81/shtml/pp/'+time+'/' + shareId+'.html');
137 143
                        }
138 144
                    } else {
139 145
                        util.alert("请选择一篇资源");

+ 12 - 6
js/model/sys/patent/index.js

@ -44,8 +44,11 @@ spa_define(function () {
44 44
                        $e.removeClass("hand-agreeid");
45 45
                    });
46 46
                    root.find(".table-opt a.name").on("click",function () {
47
                        var patentId = $(this).parent().attr("patentid");
48
                        window.open('http://www.ekexiu.com/patentShow.html?patentId=' + patentId);
47
                        // var patentId = $(this).parent().attr("patentid");
48
                        var time = $(this).parent().attr("createTime").substring(0,8);
49
                        var shareId = $(this).parent().attr("shareId");
50
                        // window.open('http://www.ekexiu.com/patentShow.html?patentId=' + patentId);
51
                        window.open('http://192.168.3.233:81/shtml/pt/'+time+'/' + shareId+'.html');
49 52
                    })
50 53
                });
51 54
@ -134,12 +137,15 @@ spa_define(function () {
134 137
                    }
135 138
                });
136 139
                root.find(".opt-view").on("click", function () {
137
                    var $org = root.find("td.opt-check>i.checked");
138
                    if ($org.length) {
139
                        if ($org.length > 1) {
140
                    var $patent = root.find("td.opt-check>i.checked");
141
                    if ($patent.length) {
142
                        if ($patent.length > 1) {
140 143
                            util.alert("只能选择一篇资源");
141 144
                        } else {
142
                            window.open('http://www.ekexiu.com/patentShow.html?patentId=' + $org.attr("patentId"));
145
                            var time = $patent.attr("createTime").substring(0,8);
146
                            var shareId = $patent.attr("shareId");
147
                            // window.open('http://www.ekexiu.com/patentShow.html?patentId=' + $patent.attr("patentId"));
148
                            window.open('http://192.168.3.233:81/shtml/pt/'+time+'/' + shareId+'.html');
143 149
                        }
144 150
                    } else {
145 151
                        util.alert("请选择一篇资源");