Explorar el Código

专家:“学术领域”、“行业领域”字数限制改为15个字,“研究方向”改为30个字。
企业:“所属行业”、“专注领域”、“供应商领域”、“客户领域”字数限制改为15个字,“企业地址”、“企业资质”改为50个字。

XMTT %!s(int64=7) %!d(string=hace) años
padre
commit
62535aba7a

+ 4 - 4
html/model/sys/org/details.html

@ -66,7 +66,7 @@
66 66
        <div class="row">
67 67
            <div class="col-2 item-caption">企业地址</div>
68 68
            <div class="col-6">
69
                <div class="form-item text" placeholder="字数限制20个字" name="addr"></div>
69
                <div class="form-item text" placeholder="字数限制50个字" name="addr"></div>
70 70
            </div>
71 71
        </div>
72 72
        <div class="row me">
@ -128,7 +128,7 @@
128 128
        <div class="row">
129 129
            <div class="col-2 item-caption">企业资质</div>
130 130
            <div class="col-4">
131
                <div class="form-item text" placeholder="字数限制20个字,最多10个" name="newQualification"></div>
131
                <div class="form-item text" placeholder="字数限制50个字,最多10个" name="newQualification"></div>
132 132
            </div>
133 133
            <div class="col-2">
134 134
                <div class="btn pull-right opt-qf">
@ -145,7 +145,7 @@
145 145
        <div class="row">
146 146
            <div class="col-2 item-caption">供应商领域</div>
147 147
            <div class="col-4">
148
                <div class="form-item text" placeholder="字数限制10个字,最多5个" name="newFieldOfSupplier"></div>
148
                <div class="form-item text" placeholder="字数限制15个字,最多5个" name="newFieldOfSupplier"></div>
149 149
            </div>
150 150
            <div class="col-2">
151 151
                <div class="btn pull-right opt-fos">
@ -162,7 +162,7 @@
162 162
        <div class="row">
163 163
            <div class="col-2 item-caption">客户领域</div>
164 164
            <div class="col-4">
165
                <div class="form-item text" placeholder="字数限制10个字,最多5个" name="newFieldOfCustomer"></div>
165
                <div class="form-item text" placeholder="字数限制15个字,最多5个" name="newFieldOfCustomer"></div>
166 166
            </div>
167 167
            <div class="col-2">
168 168
                <div class="btn pull-right opt-foc">

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

@ -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="添加内容不能超过20个字" name="newResearchArea"></div>
99
                <div class="form-item text" placeholder="添加内容不能超过30个字" name="newResearchArea"></div>
100 100
            </div>
101 101
            <div class="col-2">
102 102
                <div class="btn pull-right opt-ra">

+ 56 - 56
js/model/sys/org/details.js

@ -50,8 +50,8 @@ spa_define(function () {
50 50
                        }
51 51
                        if (form.val().addr) {
52 52
                            var addr = trim(form.val().addr);
53
                            if (addr.length > 20) {
54
                                util.alert("地址字数不得超过20个字");
53
                            if (addr.length > 50) {
54
                                util.alert("地址字数不得超过50个字");
55 55
                                return;
56 56
                            }
57 57
                        }
@ -181,8 +181,8 @@ spa_define(function () {
181 181
                        util.alert('提示', '请先填写内容');
182 182
                        return;
183 183
                    }
184
                    if (oValue.length > 20) {
185
                        util.alert('提示', '添加内容不能超过20个字');
184
                    if (oValue.length > 50) {
185
                        util.alert('提示', '添加内容不能超过50个字');
186 186
                        return;
187 187
                    } else {
188 188
                        var oValueList = oValue.split(","),
@ -219,56 +219,56 @@ spa_define(function () {
219 219
                    }
220 220
                };
221 221
222
                var part3 = function (one, list,num) {
223
                    oValue = one;
224
                    oJudge = list || [];
225
                    if (oJudge.length>=num) {
226
                        util.alert("最多"+num+"个");
227
                        return;
228
                    }
229
                    var repeat,
230
                        b;
231
                    if (!oValue) {
232
                        util.alert('提示', '请先填写内容');
233
                        return;
234
                    }
235
                    if (oValue.length > 10) {
236
                        util.alert('提示', '添加内容不能超过10个字');
237
                        return;
238
                    } else {
239
                        var oValueList = oValue.split(","),
240
                            length = oValueList.length;
241
                        for (var j = 0; j < length; j++) {
242
                            for (var n = j + 1; n < oValueList.length + 1;) {
243
                                if (oValueList[j] == oValueList[n]) {
244
                                    oValueList.remove(n);
245
                                    repeat = false;
246
                                } else {
247
                                    n++;
248
                                }
249
                            }
250
                        }
251
                        for (var j = 0; j < oValueList.length;) {
252
                            for (var i = 0; i < oJudge.length; i++) {
253
                                if (oValueList[j] == oJudge[i]) {
254
                                    oValueList.remove(j);
255
                                    repeat = false;
256
                                    b = true;
257
                                }
258
                            }
259
                            if (b) {
260
                                b = false
261
                            } else j++;
262
                        }
263
                        if (repeat == false) {
264
                            util.alert('提示', '添加内容不能重复');
265
                        }
266
                        for (var m = 0; m < oValueList.length; m++) {
267
                            ca.items.push({code: oValueList[m], caption: oValueList[m]});
268
                            oJudge.push(oValueList[m]);
269
                        }
270
                    }
271
                };
222
                // var part3 = function (one, list,num) {
223
                //     oValue = one;
224
                //     oJudge = list || [];
225
                //     if (oJudge.length>=num) {
226
                //         util.alert("最多"+num+"个");
227
                //         return;
228
                //     }
229
                //     var repeat,
230
                //         b;
231
                //     if (!oValue) {
232
                //         util.alert('提示', '请先填写内容');
233
                //         return;
234
                //     }
235
                //     if (oValue.length > 10) {
236
                //         util.alert('提示', '添加内容不能超过10个字');
237
                //         return;
238
                //     } else {
239
                //         var oValueList = oValue.split(","),
240
                //             length = oValueList.length;
241
                //         for (var j = 0; j < length; j++) {
242
                //             for (var n = j + 1; n < oValueList.length + 1;) {
243
                //                 if (oValueList[j] == oValueList[n]) {
244
                //                     oValueList.remove(n);
245
                //                     repeat = false;
246
                //                 } else {
247
                //                     n++;
248
                //                 }
249
                //             }
250
                //         }
251
                //         for (var j = 0; j < oValueList.length;) {
252
                //             for (var i = 0; i < oJudge.length; i++) {
253
                //                 if (oValueList[j] == oJudge[i]) {
254
                //                     oValueList.remove(j);
255
                //                     repeat = false;
256
                //                     b = true;
257
                //                 }
258
                //             }
259
                //             if (b) {
260
                //                 b = false
261
                //             } else j++;
262
                //         }
263
                //         if (repeat == false) {
264
                //             util.alert('提示', '添加内容不能重复');
265
                //         }
266
                //         for (var m = 0; m < oValueList.length; m++) {
267
                //             ca.items.push({code: oValueList[m], caption: oValueList[m]});
268
                //             oJudge.push(oValueList[m]);
269
                //         }
270
                //     }
271
                // };
272 272
273 273
274 274
@ -310,11 +310,11 @@ spa_define(function () {
310 310
                    form.val({newQualification: "", qualificationList: oJudge});
311 311
                });
312 312
                root.find(".opt-fos").on("click", function () {
313
                    part3(form.val().newFieldOfSupplier, form.val().fieldOfSupplierList,5);
313
                    part(form.val().newFieldOfSupplier, form.val().fieldOfSupplierList,5);
314 314
                    form.val({newFieldOfSupplier: "", fieldOfSupplierList: oJudge});
315 315
                });
316 316
                root.find(".opt-foc").on("click", function () {
317
                    part3(form.val().newFieldOfCustomer, form.val().fieldOfCustomerList,5);
317
                    part(form.val().newFieldOfCustomer, form.val().fieldOfCustomerList,5);
318 318
                    form.val({newFieldOfCustomer: "", fieldOfCustomerList: oJudge});
319 319
                });
320 320

+ 2 - 2
js/model/sys/userInfo/details.js

@ -159,8 +159,8 @@ spa_define(function () {
159 159
                        util.alert('提示', '请先填写内容');
160 160
                        return;
161 161
                    }
162
                    if (oValue.length > 20) {
163
                        util.alert('提示', '添加内容不能超过20个字');
162
                    if (oValue.length > 30) {
163
                        util.alert('提示', '添加内容不能超过30个字');
164 164
                        return;
165 165
                    } else {
166 166
                        var oValueList = oValue.split(","),