Browse Source

修改企业账户时不允许修改企业名称。文章和资源显示为发布时间

XMTT 7 years ago
parent
commit
30e87199f7

+ 5 - 3
html/model/sys/content/index.html

@ -20,7 +20,7 @@
20 20
        </div>
21 21
        <div class="row">
22 22
            <div class="col-1"></div>
23
            <div class="col-1 item-caption ">创建日期</div>
23
            <div class="col-1 item-caption ">发布时间</div>
24 24
            <div class="col-2">
25 25
                <div class="form-item date" defVal="" name="bt"></div>
26 26
            </div>
@ -63,7 +63,8 @@
63 63
                <th>名称</th>
64 64
                <th>发布者</th>
65 65
                <th>关键词</th>
66
                <th>创建时间</th>
66
                <th class="create">发布时间</th>
67
                <th class="publish">发布时间</th>
67 68
                <th class="number">权重</th>
68 69
                <th class="number">浏览量</th>
69 70
                <th class="number">点赞量</th>
@ -78,7 +79,8 @@
78 79
                <td>{{name}}{{articleTitle}}{{resourceName}}</td>
79 80
                <td>{{professorName}}{{authors}}{{organizationName}}</td>
80 81
                <td>{{subject}}{{keywords}}</td>
81
                <td>{{createTime-showDay}}</td>
82
                <td class="create">{{createTime-showDay}}</td>
83
                <td class="publish">{{publishTime-showDay}}</td>
82 84
                <td>{{sortNum}}</td>
83 85
                <td>{{pageViews}}</td>
84 86
                <td>{{articleAgree}}</td>

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

@ -98,7 +98,7 @@
98 98
					<td>{{industry}}</td>
99 99
					<td>{{city}}</td>
100 100
					<td>{{registerEmail}}</td>
101
					<td>{{createTime-showDay}}</td>
101
					<td>{{accountTime-showDay}}</td>
102 102
					<td class="hand-dict" dict="org_auth_status" code="{{authStatus}}"></td>
103 103
					<td>{{sortNum}}</td>
104 104
					<td>{{pageViews}}</td>

+ 1 - 1
html/model/sys/org/new.html

@ -13,7 +13,7 @@
13 13
        <div class="row">
14 14
            <div class="col-2 item-caption">企业名称</div>
15 15
            <div class="col-6">
16
                <div class="form-item text trim" placeholder="姓名最长为50个字" name="name"></div>
16
                <div class="form-item text trim oname" placeholder="姓名最长为50个字" name="name"></div>
17 17
            </div>
18 18
            <span class="requiredSpan">*</span>
19 19
        </div>

+ 5 - 0
js/model/sys/content/index.js

@ -36,6 +36,11 @@ spa_define(function () {
36 36
                        },{});
37 37
                        $e.removeClass("hand-collectionid");
38 38
                    });
39
                    if (type == 3 || type==2 ) {
40
                        $(".create").hide();
41
                    } else {
42
                        $(".publish").hide();
43
                    }
39 44
                });
40 45
41 46
                root.find(".opt-query").on("click", function () {

+ 1 - 0
js/model/sys/org/edit.js

@ -7,6 +7,7 @@ spa_define(function () {
7 7
        return {
8 8
            modal: function (data) {
9 9
                var root = spa.findInModal(".sys_org_new");
10
                $(".sys_org_new .oname").addClass("readOnly");
10 11
                var form = fb.build(root.find(".newForm"));
11 12
                var trim = function (str) {
12 13
                    return str.replace(/(^\s*)|(\s*$)/g, "");

+ 1 - 1
js/static.js

@ -152,7 +152,7 @@
152 152
        }]);
153 153
154 154
        dict.set("sort_rule",[{
155
            code:"1",caption:"按创建时间由新到排序",enabled:true
155
            code:"1",caption:"按创建时间由新到排序",enabled:true
156 156
        },{
157 157
            code:"2",caption:"按浏览量由高到低排序",enabled:true
158 158
        }]);