Browse Source

Merge branch 'master' into resourceIssure

XMTT 7 years ago
parent
commit
aeec0306f1

+ 1 - 1
html/model/sys/article/subject.html

@ -11,7 +11,7 @@
11 11
        <div class="row">
12 12
            <div class="col-2 item-caption">关键词</div>
13 13
            <div class="col-4">
14
                <div class="form-item text" placeholder="添加内容不能超过15个字" name="newSubject"></div>
14
                <div class="form-item text trim" placeholder="添加内容不能超过15个字" name="newSubject"></div>
15 15
            </div>
16 16
            <div class="col-2">
17 17
                <div class="btn pull-right opt-subject">

+ 1 - 1
html/model/sys/paper/keyword.html

@ -11,7 +11,7 @@
11 11
        <div class="row">
12 12
            <div class="col-2 item-caption">关键词</div>
13 13
            <div class="col-4">
14
                <div class="form-item text" placeholder="添加内容不能超过15个字" name="newKeyword"></div>
14
                <div class="form-item text trim" placeholder="添加内容不能超过15个字" name="newKeyword"></div>
15 15
            </div>
16 16
            <div class="col-2">
17 17
                <div class="btn pull-right opt-keyword">

+ 1 - 1
html/model/sys/patent/keyword.html

@ -11,7 +11,7 @@
11 11
        <div class="row">
12 12
            <div class="col-2 item-caption">关键词</div>
13 13
            <div class="col-4">
14
                <div class="form-item text" placeholder="添加内容不能超过15个字" name="newKeyword"></div>
14
                <div class="form-item text trim" placeholder="添加内容不能超过15个字" name="newKeyword"></div>
15 15
            </div>
16 16
            <div class="col-2">
17 17
                <div class="btn pull-right opt-keyword">

+ 3 - 3
html/model/sys/professornew/details.html

@ -89,7 +89,7 @@
89 89
        <div class="row">
90 90
            <div class="col-2 item-caption">学术领域</div>
91 91
            <div class="col-4">
92
                <div class="form-item text" placeholder="添加内容不能超过15个字" name="newSubject"></div>
92
                <div class="form-item text trim" placeholder="添加内容不能超过15个字" name="newSubject"></div>
93 93
            </div>
94 94
            <div class="col-2">
95 95
                <div class="btn pull-right opt-subject">
@ -106,7 +106,7 @@
106 106
        <div class="row">
107 107
            <div class="col-2 item-caption">研究方向</div>
108 108
            <div class="col-4">
109
                <div class="form-item text" placeholder="添加内容不能超过20个字" name="newResearchArea"></div>
109
                <div class="form-item text trim" placeholder="添加内容不能超过20个字" name="newResearchArea"></div>
110 110
            </div>
111 111
            <div class="col-2">
112 112
                <div class="btn pull-right opt-ra">
@ -123,7 +123,7 @@
123 123
        <div class="row">
124 124
            <div class="col-2 item-caption">行业领域</div>
125 125
            <div class="col-4">
126
                <div class="form-item text" placeholder="添加内容不能超过15个字" name="newIndustry"></div>
126
                <div class="form-item text trim" placeholder="添加内容不能超过15个字" name="newIndustry"></div>
127 127
            </div>
128 128
            <div class="col-2">
129 129
                <div class="btn pull-right opt-industry">

+ 1 - 1
html/model/sys/resourceinfo/subject.html

@ -11,7 +11,7 @@
11 11
        <div class="row">
12 12
            <div class="col-2 item-caption">关键词</div>
13 13
            <div class="col-4">
14
                <div class="form-item text" placeholder="添加内容不能超过15个字" name="newSubject"></div>
14
                <div class="form-item text trim" placeholder="添加内容不能超过15个字" name="newSubject"></div>
15 15
            </div>
16 16
            <div class="col-2">
17 17
                <div class="btn pull-right opt-subject">

+ 3 - 3
html/model/sys/userInfo/details.html

@ -79,7 +79,7 @@
79 79
        <div class="row">
80 80
            <div class="col-2 item-caption">学术领域</div>
81 81
            <div class="col-4">
82
                <div class="form-item text" placeholder="添加内容不能超过15个字" name="newSubject"></div>
82
                <div class="form-item text trim" placeholder="添加内容不能超过15个字" name="newSubject"></div>
83 83
            </div>
84 84
            <div class="col-2">
85 85
                <div class="btn pull-right opt-subject">
@ -96,7 +96,7 @@
96 96
        <div class="row">
97 97
            <div class="col-2 item-caption">研究方向</div>
98 98
            <div class="col-4">
99
                <div class="form-item text" placeholder="添加内容不能超过30个字" name="newResearchArea"></div>
99
                <div class="form-item text trim" placeholder="添加内容不能超过30个字" name="newResearchArea"></div>
100 100
            </div>
101 101
            <div class="col-2">
102 102
                <div class="btn pull-right opt-ra">
@ -113,7 +113,7 @@
113 113
        <div class="row">
114 114
            <div class="col-2 item-caption">行业领域</div>
115 115
            <div class="col-4">
116
                <div class="form-item text" placeholder="添加内容不能超过15个字" name="newIndustry"></div>
116
                <div class="form-item text trim" placeholder="添加内容不能超过15个字" name="newIndustry"></div>
117 117
            </div>
118 118
            <div class="col-2">
119 119
                <div class="btn pull-right opt-industry">

+ 6 - 0
js/model/sys/article/subject.js

@ -36,6 +36,9 @@ spa_define(function () {
36 36
                            }
37 37
                        }, {});
38 38
                    };
39
                var trim = function (str) { //删除左右两端的空格			  
40
                    return str.replace(/(^\s*)|(\s*$)/g, "");
41
                };
39 42
40 43
                var part = function (one, list, num) {
41 44
                    oValue = one;
@ -56,6 +59,9 @@ spa_define(function () {
56 59
                    } else {
57 60
                        var oValueList = oValue.split(","),
58 61
                            length = oValueList.length;
62
                        for (var m = 0;m<oValueList.length;m++) {
63
                            oValueList[m] = trim(oValueList[m]);
64
                        }
59 65
                        for (var j = 0; j < length; j++) {
60 66
                            for (var n = j + 1; n < oValueList.length + 1;) {
61 67
                                if (oValueList[j] == oValueList[n]) {

+ 6 - 0
js/model/sys/org/details.js

@ -133,6 +133,9 @@ spa_define(function () {
133 133
                    } else {
134 134
                        var oValueList = oValue.split(","),
135 135
                            length = oValueList.length;
136
                        for (var m = 0;m<oValueList.length;m++) {
137
                            oValueList[m] = trim(oValueList[m]);
138
                        }
136 139
                        for (var j = 0; j < length; j++) {
137 140
                            for (var n = j + 1; n < oValueList.length + 1;) {
138 141
                                if (oValueList[j] == oValueList[n]) {
@ -184,6 +187,9 @@ spa_define(function () {
184 187
                    } else {
185 188
                        var oValueList = oValue.split(","),
186 189
                            length = oValueList.length;
190
                        for (var m = 0;m<oValueList.length;m++) {
191
                            oValueList[m] = trim(oValueList[m]);
192
                        }
187 193
                        for (var j = 0; j < length; j++) {
188 194
                            for (var n = j + 1; n < oValueList.length + 1;) {
189 195
                                if (oValueList[j] == oValueList[n]) {

+ 7 - 0
js/model/sys/paper/keyword.js

@ -35,6 +35,10 @@ spa_define(function () {
35 35
                        }, {});
36 36
                    };
37 37
38
                var trim = function (str) { //删除左右两端的空格			  
39
                    return str.replace(/(^\s*)|(\s*$)/g, "");
40
                };
41
38 42
                var part = function (one, list, num) {
39 43
                    oValue = one;
40 44
                    oJudge = list || [];
@ -54,6 +58,9 @@ spa_define(function () {
54 58
                    } else {
55 59
                        var oValueList = oValue.split(","),
56 60
                            length = oValueList.length;
61
                        for (var m = 0;m<oValueList.length;m++) {
62
                            oValueList[m] = trim(oValueList[m]);
63
                        }
57 64
                        for (var j = 0; j < length; j++) {
58 65
                            for (var n = j + 1; n < oValueList.length + 1;) {
59 66
                                if (oValueList[j] == oValueList[n]) {

+ 7 - 0
js/model/sys/patent/keyword.js

@ -35,6 +35,10 @@ spa_define(function () {
35 35
                        }, {});
36 36
                    };
37 37
38
                var trim = function (str) { //删除左右两端的空格			  
39
                    return str.replace(/(^\s*)|(\s*$)/g, "");
40
                };
41
38 42
                var part = function (one, list, num) {
39 43
                    oValue = one;
40 44
                    oJudge = list || [];
@ -54,6 +58,9 @@ spa_define(function () {
54 58
                    } else {
55 59
                        var oValueList = oValue.split(","),
56 60
                            length = oValueList.length;
61
                        for (var m = 0;m<oValueList.length;m++) {
62
                            oValueList[m] = trim(oValueList[m]);
63
                        }
57 64
                        for (var j = 0; j < length; j++) {
58 65
                            for (var n = j + 1; n < oValueList.length + 1;) {
59 66
                                if (oValueList[j] == oValueList[n]) {

+ 6 - 0
js/model/sys/professornew/details.js

@ -134,6 +134,9 @@ spa_define(function () {
134 134
                    } else {
135 135
                        var oValueList = oValue.split(","),
136 136
                            length = oValueList.length;
137
                        for (var m = 0;m<oValueList.length;m++) {
138
                            oValueList[m] = trim(oValueList[m]);
139
                        }
137 140
                        for (var j = 0; j < length; j++) {
138 141
                            for (var n = j + 1; n < oValueList.length + 1;) {
139 142
                                if (oValueList[j] == oValueList[n]) {
@ -181,6 +184,9 @@ spa_define(function () {
181 184
                    } else {
182 185
                        var oValueList = oValue.split(","),
183 186
                            length = oValueList.length;
187
                        for (var m = 0;m<oValueList.length;m++) {
188
                            oValueList[m] = trim(oValueList[m]);
189
                        }
184 190
                        for (var j = 0; j < length; j++) {
185 191
                            for (var n = j + 1; n < oValueList.length + 1;) {
186 192
                                if (oValueList[j] == oValueList[n]) {

+ 7 - 0
js/model/sys/resourceinfo/subject.js

@ -36,6 +36,10 @@ spa_define(function () {
36 36
                        }, {});
37 37
                    };
38 38
39
                var trim = function (str) { //删除左右两端的空格			  
40
                    return str.replace(/(^\s*)|(\s*$)/g, "");
41
                };
42
39 43
                var part = function (one, list, num) {
40 44
                    oValue = one;
41 45
                    oJudge = list || [];
@ -55,6 +59,9 @@ spa_define(function () {
55 59
                    } else {
56 60
                        var oValueList = oValue.split(","),
57 61
                            length = oValueList.length;
62
                        for (var m = 0;m<oValueList.length;m++) {
63
                            oValueList[m] = trim(oValueList[m]);
64
                        }
58 65
                        for (var j = 0; j < length; j++) {
59 66
                            for (var n = j + 1; n < oValueList.length + 1;) {
60 67
                                if (oValueList[j] == oValueList[n]) {

+ 3 - 0
js/model/sys/resresult/edit.js

@ -161,6 +161,9 @@ spa_define(function () {
161 161
                    } else {
162 162
                        var oValueList = oValue.split(","),
163 163
                            length = oValueList.length;
164
                        for (var m = 0;m<oValueList.length;m++) {
165
                            oValueList[m] = trim(oValueList[m]);
166
                        }
164 167
                        for (var j = 0; j < length; j++) {
165 168
                            for (var n = j + 1; n < oValueList.length + 1;) {
166 169
                                if (oValueList[j] == oValueList[n]) {

+ 3 - 0
js/model/sys/resresult/new.js

@ -138,6 +138,9 @@ spa_define(function () {
138 138
                    } else {
139 139
                        var oValueList = oValue.split(","),
140 140
                            length = oValueList.length;
141
                        for (var m = 0;m<oValueList.length;m++) {
142
                            oValueList[m] = trim(oValueList[m]);
143
                        }
141 144
                        for (var j = 0; j < length; j++) {
142 145
                            for (var n = j + 1; n < oValueList.length + 1;) {
143 146
                                if (oValueList[j] == oValueList[n]) {

+ 6 - 0
js/model/sys/userInfo/details.js

@ -118,6 +118,9 @@ spa_define(function () {
118 118
                    } else {
119 119
                        var oValueList = oValue.split(","),
120 120
                            length = oValueList.length;
121
                        for (var m = 0;m<oValueList.length;m++) {
122
                            oValueList[m] = trim(oValueList[m]);
123
                        }
121 124
                        for (var j = 0; j < length; j++) {
122 125
                            for (var n = j + 1; n < oValueList.length + 1;) {
123 126
                                if (oValueList[j] == oValueList[n]) {
@ -165,6 +168,9 @@ spa_define(function () {
165 168
                    } else {
166 169
                        var oValueList = oValue.split(","),
167 170
                            length = oValueList.length;
171
                        for (var m = 0;m<oValueList.length;m++) {
172
                            oValueList[m] = trim(oValueList[m]);
173
                        }
168 174
                        for (var j = 0; j < length; j++) {
169 175
                            for (var n = j + 1; n < oValueList.length + 1;) {
170 176
                                if (oValueList[j] == oValueList[n]) {