Просмотр исходного кода

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

XMTT лет назад: 7
Родитель
Сommit
62535aba7a

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

66
        <div class="row">
66
        <div class="row">
67
            <div class="col-2 item-caption">企业地址</div>
67
            <div class="col-2 item-caption">企业地址</div>
68
            <div class="col-6">
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
            </div>
70
            </div>
71
        </div>
71
        </div>
72
        <div class="row me">
72
        <div class="row me">
128
        <div class="row">
128
        <div class="row">
129
            <div class="col-2 item-caption">企业资质</div>
129
            <div class="col-2 item-caption">企业资质</div>
130
            <div class="col-4">
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
            </div>
132
            </div>
133
            <div class="col-2">
133
            <div class="col-2">
134
                <div class="btn pull-right opt-qf">
134
                <div class="btn pull-right opt-qf">
145
        <div class="row">
145
        <div class="row">
146
            <div class="col-2 item-caption">供应商领域</div>
146
            <div class="col-2 item-caption">供应商领域</div>
147
            <div class="col-4">
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
            </div>
149
            </div>
150
            <div class="col-2">
150
            <div class="col-2">
151
                <div class="btn pull-right opt-fos">
151
                <div class="btn pull-right opt-fos">
162
        <div class="row">
162
        <div class="row">
163
            <div class="col-2 item-caption">客户领域</div>
163
            <div class="col-2 item-caption">客户领域</div>
164
            <div class="col-4">
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
            </div>
166
            </div>
167
            <div class="col-2">
167
            <div class="col-2">
168
                <div class="btn pull-right opt-foc">
168
                <div class="btn pull-right opt-foc">

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

96
        <div class="row">
96
        <div class="row">
97
            <div class="col-2 item-caption">研究方向</div>
97
            <div class="col-2 item-caption">研究方向</div>
98
            <div class="col-4">
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
            </div>
100
            </div>
101
            <div class="col-2">
101
            <div class="col-2">
102
                <div class="btn pull-right opt-ra">
102
                <div class="btn pull-right opt-ra">

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

50
                        }
50
                        }
51
                        if (form.val().addr) {
51
                        if (form.val().addr) {
52
                            var addr = trim(form.val().addr);
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
                                return;
55
                                return;
56
                            }
56
                            }
57
                        }
57
                        }
181
                        util.alert('提示', '请先填写内容');
181
                        util.alert('提示', '请先填写内容');
182
                        return;
182
                        return;
183
                    }
183
                    }
184
                    if (oValue.length > 20) {
185
                        util.alert('提示', '添加内容不能超过20个字');
184
                    if (oValue.length > 50) {
185
                        util.alert('提示', '添加内容不能超过50个字');
186
                        return;
186
                        return;
187
                    } else {
187
                    } else {
188
                        var oValueList = oValue.split(","),
188
                        var oValueList = oValue.split(","),
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
                    form.val({newQualification: "", qualificationList: oJudge});
310
                    form.val({newQualification: "", qualificationList: oJudge});
311
                });
311
                });
312
                root.find(".opt-fos").on("click", function () {
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
                    form.val({newFieldOfSupplier: "", fieldOfSupplierList: oJudge});
314
                    form.val({newFieldOfSupplier: "", fieldOfSupplierList: oJudge});
315
                });
315
                });
316
                root.find(".opt-foc").on("click", function () {
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
                    form.val({newFieldOfCustomer: "", fieldOfCustomerList: oJudge});
318
                    form.val({newFieldOfCustomer: "", fieldOfCustomerList: oJudge});
319
                });
319
                });
320
320

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

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