Browse Source

需求管理、专家用户名和机构名修改, trim

XMTT 7 years ago
parent
commit
2fec08755b

+ 4 - 0
css/model/sys/customer.css

@ -30,3 +30,7 @@
30 30
    cursor:pointer;
31 31
}
32 32
.temtextarea{width: 100%;height: 80px;margin-top: 8px;border: none;border: 1px solid #ccc; border-radius: 4px;}
33
34
.sys_customer_myedit .state1{
35
    text-align:right;
36
}

+ 10 - 1
css/model/sys/demand.css

@ -5,7 +5,7 @@
5 5
.sys_demand_index th.opt-check,.sys_demand_index td.opt-check{
6 6
    width: 30px;
7 7
}
8
.sys_demand_index .table-opt .name{
8
.sys_demand_index .table-opt .title{
9 9
    cursor:pointer;
10 10
}
11 11
.sys_demand_index td.table-opt.col-1.random {
@ -13,4 +13,13 @@
13 13
}
14 14
.sys_demand_edit{
15 15
    width:800px;
16
}
17
18
.sys_demand_index td.table-opt.edit {
19
    padding: 1px;
20
    text-align: center;
21
}
22
23
.sys_demand_index .state2,.sys_demand_index .state3{
24
    display: none;
16 25
}

+ 31 - 24
html/model/sys/demand/index.html

@ -5,31 +5,28 @@
5 5
    <div class="container dt-form">
6 6
        <div class="row">
7 7
            <div class="col-1 item-caption">主题</div>
8
            <div class="col-5">
9
                <div class="form-item text" defVal="" name="demandTitle"></div>
8
            <div class="col-2">
9
                <div class="form-item text" defVal="" name="title"></div>
10 10
            </div>
11 11
            <div class="col-1 item-caption ">发布者</div>
12 12
            <div class="col-2">
13 13
                <div class="form-item text" defVal="" name="professorName"></div>
14 14
            </div>
15
            <div class="col-1 item-caption">需求目的</div>
15
            <div class="col-1 item-caption ">发布时间</div>
16 16
            <div class="col-2">
17
                <div class="form-item select" dictCode="demandAim" defVal="" name="demandAim"></div>
18
            </div>
19
        </div>
20
        <div class="row">
21
            <div class="col-1 item-caption ">创建日期</div>
22
            <div class="col-5">
23 17
                <div class="form-item date" defVal="" name="bt"></div>
24 18
            </div>
25 19
            <div class="col-1 item-caption center">至</div>
26
            <div class="col-5">
20
            <div class="col-2">
27 21
                <div class="form-item date" defVal="" name="et"></div>
28 22
            </div>
29 23
        </div>
30 24
        <div class="row">
31
            <div class="col-10">
32
25
            <div class="col-1 item-caption">需求状态</div>
26
            <div class="col-2">
27
                <div class="form-item select" dictCode="demandState" name="state"></div>
28
            </div>
29
            <div class="col-7">
33 30
            </div>
34 31
            <div class="col-2">
35 32
                <div class="btn opt-query pull-right">
@ -48,36 +45,46 @@
48 45
        <table class="table table-bordered">
49 46
            <thead>
50 47
            <tr>
51
                <th>查看</th>
52 48
                <th>序号</th>
53 49
                <th>主题</th>
54
                <th>需求目的</th>
55 50
                <th>发布者</th>
51
                <th>联系电话</th>
52
                <th>地址</th>
53
                <th>费用预算</th>
54
                <th>预计时长</th>
55
                <th>有效期</th>
56 56
                <th>发布时间</th>
57
                <th>需求类型</th>
58 57
                <th>需求状态</th>
58
                <th>浏览量</th>
59 59
                <th>操作</th>
60 60
            </tr>
61 61
            </thead>
62 62
            <tbody>
63 63
            <tr ch-dir="list">
64
                <td class="table-opt" demandId="{{demandId}}"><i class="icon icon-eye-open"></i></td>
65 64
                <td>{{pi}}</td>
66
                <td>{{demandTitle}}</td>
67
                <td class="hand-dict" dict="demandAim" code="{{demandAim}}"></td>
65
                <td class="table-opt" demandId="{{id}}"><a class="title">{{title}}</a></td>
68 66
                <td>{{professorName}}</td>
67
                <td>{{contactNum}}</td>
68
                <td>{{province}}-{{city}}</td>
69
                <td class="hand-dict" dict="cost" code="{{cost}}"></td>
70
                <td class="hand-dict" dict="duration" code="{{duration}}"></td>
71
                <td>{{invalidDay-showDay}}</td>
69 72
                <td>{{createTime-showDay}}</td>
70
                <td class="hand-dict" dict="demandType" code="{{demandType}}"></td>
71
                <td>{{demandStatus-status2}}</td>
72
                <td class="table-opt col-1 random" demandId="{{demandId}}" demandStatus="{{demandStatus}}"><div class="btn opt-auth">
73
                    <i class="icon-random"></i>
74
                    {{demandStatus-status}}
73
                <td class="hand-dict" dict="demandState" code="{{state}}"></td>
74
                <td>{{pageViews}}</td>
75
                <td class="table-opt edit" demandId="{{id}}"><div class="btn opt-auth state{{state}}">
76
                    <i class="icon-times"></i>
77
                    关闭
75 78
                </div></td>
79
                <!--<td class="table-opt col-1 random" demandId="{{demandId}}" demandStatus="{{demandStatus}}"><div class="btn opt-auth">-->
80
                    <!--<i class="icon-random"></i>-->
81
                    <!--{{demandStatus-status}}-->
82
                <!--</div></td>-->
76 83
            </tr>
77 84
            </tbody>
78 85
            <tbody ch-dir="array.empty">
79 86
            <tr>
80
                <td class="empty-desc" colspan="9">表格暂无数据</td>
87
                <td class="empty-desc" colspan="12">表格暂无数据</td>
81 88
            </tr>
82 89
            </tbody>
83 90
        </table>

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

@ -6,38 +6,38 @@
6 6
        <div class="row">
7 7
            <div class="col-2 item-caption">专家姓名</div>
8 8
            <div class="col-4">
9
                <div class="form-item text required readOnly" placeholder="姓名最长为10个字" name="name"></div>
9
                <div class="form-item text trim required name " placeholder="姓名最长为10个字" name="name"></div>
10 10
            </div>
11 11
            <span class="requiredSpan">*</span>
12 12
        </div>
13 13
        <div class="row">
14 14
            <div class="col-2 item-caption">职称</div>
15 15
            <div class="col-4">
16
                <div class="form-item text" placeholder="职称不得超过20个字" name="title"></div>
16
                <div class="form-item text trim" placeholder="职称不得超过20个字" name="title"></div>
17 17
            </div>
18 18
            <div class="col-2 item-caption">职位</div>
19 19
            <div class="col-4">
20
                <div class="form-item text" placeholder="职位不得超过20个字" name="office"></div>
20
                <div class="form-item text trim" placeholder="职位不得超过20个字" name="office"></div>
21 21
            </div>
22 22
        </div>
23 23
        <div class="row">
24 24
            <div class="col-2 item-caption">所在机构</div>
25 25
            <div class="col-4">
26
                <div class="form-item text" placeholder="所在机构不得超过50个字" name="orgName"></div>
26
                <div class="form-item text trim org" placeholder="所在机构不得超过50个字" name="orgName"></div>
27 27
            </div>
28 28
            <div class="col-2 item-caption">所属部门</div>
29 29
            <div class="col-4">
30
                <div class="form-item text" placeholder="所在部门不得超过20个字" name="department"></div>
30
                <div class="form-item text trim" placeholder="所在部门不得超过20个字" name="department"></div>
31 31
            </div>
32 32
        </div>
33 33
        <div class="row me">
34 34
            <div class="col-2 item-caption">联系电话</div>
35 35
            <div class="col-4">
36
                <div class="form-item text" placeholder="联系电话不得超过50个字" name="phone"></div>
36
                <div class="form-item text trim" placeholder="联系电话不得超过50个字" name="phone"></div>
37 37
            </div>
38 38
            <div class="col-2 item-caption">联系邮箱</div>
39 39
            <div class="col-4">
40
                <div class="form-item text" defVal="" name="email"></div>
40
                <div class="form-item text trim" defVal="" name="email"></div>
41 41
            </div>
42 42
        </div>
43 43
        <div class="row me">

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

@ -6,38 +6,38 @@
6 6
        <div class="row">
7 7
            <div class="col-2 item-caption">专家姓名</div>
8 8
            <div class="col-4">
9
                <div class="form-item text required" placeholder="姓名最长为10个字" name="name"></div>
9
                <div class="form-item text required trim" placeholder="姓名最长为10个字" name="name"></div>
10 10
            </div>
11 11
            <span class="requiredSpan">*</span>
12 12
        </div>
13 13
        <div class="row">
14 14
            <div class="col-2 item-caption">职称</div>
15 15
            <div class="col-4">
16
                <div class="form-item text" placeholder="职称不得超过20个字" name="title"></div>
16
                <div class="form-item text trim" placeholder="职称不得超过20个字" name="title"></div>
17 17
            </div>
18 18
            <div class="col-2 item-caption">职位</div>
19 19
            <div class="col-4">
20
                <div class="form-item text" placeholder="职位不得超过20个字" name="office"></div>
20
                <div class="form-item text trim" placeholder="职位不得超过20个字" name="office"></div>
21 21
            </div>
22 22
        </div>
23 23
        <div class="row">
24 24
            <div class="col-2 item-caption">所在机构</div>
25 25
            <div class="col-4">
26
                <div class="form-item text" placeholder="所在机构不得超过50个字" name="orgName"></div>
26
                <div class="form-item text trim" placeholder="所在机构不得超过50个字" name="orgName"></div>
27 27
            </div>
28 28
            <div class="col-2 item-caption">所属部门</div>
29 29
            <div class="col-4">
30
                <div class="form-item text" placeholder="所在部门不得超过20个字" name="department"></div>
30
                <div class="form-item text " placeholder="所在部门不得超过20个字" name="department"></div>
31 31
            </div>
32 32
        </div>
33 33
        <div class="row me">
34 34
            <div class="col-2 item-caption">联系电话</div>
35 35
            <div class="col-4">
36
                <div class="form-item text" placeholder="联系电话不得超过50个字" name="pMobile"></div>
36
                <div class="form-item text trim" placeholder="联系电话不得超过50个字" name="pMobile"></div>
37 37
            </div>
38 38
            <div class="col-2 item-caption">联系邮箱</div>
39 39
            <div class="col-4">
40
                <div class="form-item text" defVal="" name="pEmail"></div>
40
                <div class="form-item text trim" defVal="" name="pEmail"></div>
41 41
            </div>
42 42
        </div>
43 43
        <div class="row">

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

@ -6,19 +6,19 @@
6 6
        <div class="row">
7 7
            <div class="col-2 item-caption">手机</div>
8 8
            <div class="col-6">
9
                <div class="form-item text" placeholder="手机或邮箱至少输入一项" name="mobile"></div>
9
                <div class="form-item text trim" placeholder="手机或邮箱至少输入一项" name="mobile"></div>
10 10
            </div>
11 11
        </div>
12 12
        <div class="row">
13 13
            <div class="col-2 item-caption">邮箱</div>
14 14
            <div class="col-6">
15
                <div class="form-item text" placeholder="手机或邮箱至少输入一项" name="email"></div>
15
                <div class="form-item text trim" placeholder="手机或邮箱至少输入一项" name="email"></div>
16 16
            </div>
17 17
        </div>
18 18
        <div class="row">
19 19
            <div class="col-2 item-caption">用户名</div>
20 20
            <div class="col-6">
21
                <div class="form-item text required" placeholder="姓名最长为10个字" name="name"></div>
21
                <div class="form-item text required trim" placeholder="姓名最长为10个字" name="name"></div>
22 22
            </div>
23 23
        </div>
24 24
        <div class="row">

+ 22 - 62
js/model/sys/demand/index.js

@ -15,78 +15,38 @@ spa_define(function () {
15 15
                    }
16 16
                    return "";
17 17
                });
18
                pdg.code.shell("status", function (env) {
19
                    var v = env.cd[this.k];
20
                    return v === "1" ? "关闭需求" : (v === "0" ? "打开需求" : "");
21
                });
22
                pdg.code.shell("status2", function (env) {
23
                    var v = env.cd[this.k];
24
                    return v === "1" ? "发布中" : (v === "0" ? "已关闭" : "");
25
                });
26 18
                pdg.code.listen($.dict.doTransfer);
27 19
                root.find(".opt-query").on("click", function () {
28 20
                    pdg.load();
29 21
                });
30 22
                pdg.load();
31
                root.on("click", ".icon-eye-open", function () {
32
                    var $this = $(this);
33
                    var demandId = $this.parent().attr("demandId");
34
                    util.get("../ajax/demand/id/" + demandId, null, function (rd) {
35
                        if (rd) {
36
                            spa.showModal("sys_demand_edit", {
37
                                data: rd,
38
                                hand: function () {
39
                                    pdg.load()
40
                                }
41
                            })
42
                        } else {
43
                            util.alert("客户选择有误", function () {
44
                                pdg.load();
45
                            });
46
                        }
47
                    }, {});
48
                });
49 23
                root.on("click", ".opt-auth", function () {
50 24
                    var demandId = $(this).parent().attr("demandId");
51
                    var demandStatus = $(this).parent().attr("demandStatus");
52 25
                    if (demandId) {
53
                        if (demandStatus == "1") {
54
                            util.boxMsg({
55
                                title: "确认关闭",
56
                                content: "您是否要关闭选中的需求!!!!!!!!!!!!!!!!!!",
57
                                btns: [{
58
                                    caption: "关闭", hand: function () {
59
                                        util.post("../ajax/demand/close", {
60
                                            demandId: demandId,
61
                                            demandStatus: demandStatus
62
                                        }, function () {
63
                                            pdg.load();
64
                                        });
65
                                    }
66
                                },
67
                                    {caption: "取消"}
68
                                ]
69
                            });
70
                        }if (demandStatus == "0"){
71
                            util.boxMsg({
72
                                title: "确认打开",
73
                                content: "您是否要打开选中的需求",
74
                                btns: [{
75
                                    caption: "打开", hand: function () {
76
                                        util.post("../ajax/demand/close", {
77
                                            demandId: demandId,
78
                                            demandStatus: demandStatus
79
                                        }, function () {
80
                                            pdg.load();
81
                                        });
82
                                    }
83
                                },
84
                                    {caption: "取消"}
85
                                ]
86
                            });
87
                        }
26
                        util.boxMsg({
27
                            title: "确认关闭",
28
                            content: "您是否要关闭选中的需求!!!!!!!!!!!!!!!!!!",
29
                            btns: [{
30
                                caption: "关闭", hand: function () {
31
                                    util.post("../ajax/demand/close", {
32
                                        id: demandId
33
                                    }, function () {
34
                                        pdg.reload();
35
                                    });
36
                                }
37
                            },
38
                                {caption: "取消"}
39
                            ]
40
                        });
88 41
                    }
89 42
                });
43
                var bindDataEvent = function() {
44
                    root.find(".table-opt a.title").on("click", function () {
45
                        var demandId = $(this).parent().attr("demandId");
46
                        window.open('http://www.ekexiu.com/information-brow.html?demandId=' + demandId);
47
                    });
48
                };
49
                pdg.code.listen(bindDataEvent);
90 50
            }
91 51
        };
92 52
    });

+ 74 - 3
js/model/sys/professornew/details.js

@ -130,7 +130,7 @@ spa_define(function () {
130 130
                    }
131 131
                    if (oValue.length > 15) {
132 132
                        util.alert('提示', '添加内容不能超过15个字');
133
                        return;
133
134 134
                    } else {
135 135
                        var oValueList = oValue.split(","),
136 136
                            length = oValueList.length;
@ -177,7 +177,7 @@ spa_define(function () {
177 177
                    }
178 178
                    if (oValue.length > 20) {
179 179
                        util.alert('提示', '添加内容不能超过20个字');
180
                        return;
180
181 181
                    } else {
182 182
                        var oValueList = oValue.split(","),
183 183
                            length = oValueList.length;
@ -259,7 +259,7 @@ spa_define(function () {
259 259
                    }
260 260
                };
261 261
                function oString(data) {
262
                    var arry = new Array();
262
                    var arry = [];
263 263
                    if (data) {
264 264
                        for (var i = 0; i < data.length; i++) {
265 265
                            arry.push(data[i]);
@ -268,6 +268,77 @@ spa_define(function () {
268 268
                    return arry.join(",");
269 269
                }
270 270
271
                root.find(".name").on("focusout", function () {
272
                    if (form.val().name != data.data.name) {
273
                        if (form.val().name) {
274
                            var name = trim(form.val().name);
275
                            if (name.length > 10) {
276
                                util.alert("姓名最长为10个字,请重新修改");
277
                                form.val({name: data.data.name});
278
                                return;
279
                            }
280
                        }
281
                        if (form.val().name == null) {
282
                            util.alert("专家姓名不可为空,请重新修改");
283
                            form.val({name: data.data.name});
284
                            return;
285
                        }
286
                        util.boxMsg({
287
                            title: "确认修改",
288
                            content: "您修改了姓名,该专家的专利和论文将取消关联,确定修改?",
289
                            btns: [{
290
                                caption: "确认",
291
                                hand: function () {
292
                                    util.post("../ajax/sys/professor/updateName", {
293
                                        name: form.val().name,
294
                                        id: data.data.id
295
                                    }, function () {
296
                                        data.data.name = form.val().name;
297
                                    }, {});
298
                                }
299
                            },
300
                                {
301
                                    caption: "取消",hand:function () {
302
                                    form.val({name: data.data.name});
303
                                }}
304
                            ]
305
                        });
306
                    }
307
                });
308
309
                root.find(".org").on("focusout", function () {
310
                    if (form.val().orgName != data.data.orgName) {
311
                        if (form.val().orgName) {
312
                            var orgName = trim(form.val().orgName);
313
                            if (orgName.length > 50) {
314
                                util.alert("机构名最长为50个字,请重新修改");
315
                                form.val({orgName: data.data.orgName});
316
                                return;
317
                            }
318
                        }
319
                        util.boxMsg({
320
                            title: "确认修改",
321
                            content: "修改了所在机构,该专家认证员工身份将失效,为企业发布的需求也将关闭,确定修改?",
322
                            btns: [{
323
                                caption: "确认",
324
                                hand: function () {
325
                                    util.post("../ajax/sys/professor/updateOrgName", {
326
                                        orgName: form.val().orgName,
327
                                        orgId:data.data.orgId,
328
                                        id: data.data.id
329
                                    }, function () {
330
                                        data.data.orgName = form.val().orgName;
331
                                    }, {});
332
                                }
333
                            },
334
                                {caption: "取消",hand:function () {
335
                                    form.val({orgName: data.data.orgName});
336
                                }}
337
                            ]
338
                        });
339
                    }
340
                });
341
271 342
                root.find(".opt-industry").on("click", function () {
272 343
                    part(form.val().newIndustry, form.val().industryList);
273 344
                    form.val({newIndustry: "", industryList: oJudge});

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

@ -31,28 +31,28 @@ spa_define(function () {
31 31
                            subjectList: "", industryList: "", researchAreaList: ""
32 32
                        });
33 33
                        if (form.val().title) {
34
                            var title = trim(form.val().title);
34
                            var title = form.val().title;
35 35
                            if (title.length > 20) {
36 36
                                util.alert("职称不得超过20个字");
37 37
                                return;
38 38
                            }
39 39
                        }
40 40
                        if (form.val().office) {
41
                            var office = trim(form.val().office);
41
                            var office = form.val().office;
42 42
                            if (office.length > 20) {
43 43
                                util.alert("职位不得超过20个字");
44 44
                                return;
45 45
                            }
46 46
                        }
47 47
                        if (form.val().orgName) {
48
                            var orgName = trim(form.val().orgName);
48
                            var orgName = form.val().orgName;
49 49
                            if (orgName.length > 50) {
50 50
                                util.alert("所在机构不得超过50个字");
51 51
                                return;
52 52
                            }
53 53
                        }
54 54
                        if (form.val().department) {
55
                            var department = trim(form.val().department);
55
                            var department = form.val().department;
56 56
                            if (department.length > 20) {
57 57
                                util.alert("所在部门不得超过20个字");
58 58
                                return;
@ -65,8 +65,8 @@ spa_define(function () {
65 65
                            }
66 66
                        }
67 67
                        if (form.val().mobile) {
68
                            var mobile = trim(form.val().mobile);
69
                            if (trim(mobile)) {
68
                            var mobile = form.val().mobile;
69
                            if (mobile) {
70 70
                                if (mobile.length > 50) {
71 71
                                    util.alert('提示', '联系电话不得超过50个字');
72 72
                                    return;
@ -74,7 +74,7 @@ spa_define(function () {
74 74
                            }
75 75
                        }
76 76
                        if (form.val().email) {
77
                            var email = trim(form.val().email);
77
                            var email = form.val().email;
78 78
                            var gunf = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
79 79
                            if (!gunf.test(email)) {
80 80
                                util.alert("联系邮箱格式有误,请检查后重新填写");
@ -82,7 +82,7 @@ spa_define(function () {
82 82
                            }
83 83
                        }
84 84
                        if (form.val().name) {
85
                            var name = trim(form.val().name);
85
                            var name = form.val().name;
86 86
                            if (name.length > 10) {
87 87
                                util.alert("姓名最长为10个字");
88 88
                                return;

+ 3 - 6
js/model/sys/userInfo/new.js

@ -8,13 +8,10 @@ spa_define(function () {
8 8
            modal: function (data) {
9 9
                var root = spa.findInModal(".sys_userinfo_new");
10 10
                var form = fb.build(root.find(".newForm"));
11
                var trim = function (str) { //删除左右两端的空格			  
12
                    return str.replace(/(^\s*)|(\s*$)/g, "");
13
                };
14 11
                var saveBtn = root.find(".opt-save"),
15 12
                    save = function () {
16 13
                        if (form.val().mobile) {
17
                            var mobile = trim(form.val().mobile);
14
                            var mobile = form.val().mobile;
18 15
                            var hunPhone = /^1[3|4|5|7|8]\d{9}$/;
19 16
                            if (!hunPhone.test(mobile)) {
20 17
                                util.alert("注册电话格式有误,请检查后重新填写");
@ -22,7 +19,7 @@ spa_define(function () {
22 19
                            }
23 20
                        }
24 21
                        if (form.val().email) {
25
                            var email = trim(form.val().email);
22
                            var email = form.val().email;
26 23
                            var gunf = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
27 24
                            if (!gunf.test(email)) {
28 25
                                util.alert("注册邮箱格式有误,请检查后重新填写");
@ -30,7 +27,7 @@ spa_define(function () {
30 27
                            }
31 28
                        }
32 29
                        if (form.val().name) {
33
                            var name = trim(form.val().name);
30
                            var name = form.val().name;
34 31
                            if (name.length > 10) {
35 32
                                util.alert("姓名最长为10个字");
36 33
                                return;

+ 41 - 0
js/static.js

@ -214,6 +214,47 @@
214 214
        }, {
215 215
            code: "9", caption: "重大新闻", enabled: true
216 216
        }]);
217
218
        dict.set("cost", [{
219
            code: "0", caption: "未选择", enabled: true
220
        },{
221
            code: "1", caption: "1万元以内", enabled: true
222
        }, {
223
            code: "2", caption: "1-5万元", enabled: true
224
        }, {
225
            code: "3", caption: "5-10万元", enabled: true
226
        }, {
227
            code: "4", caption: "10-20万元", enabled: true
228
        }, {
229
            code: "5", caption: "20-50万元", enabled: true
230
        }, {
231
            code: "6", caption: "50万元以上", enabled: true
232
        }]);
233
234
        dict.set("duration", [{
235
            code: "0", caption: "未选择", enabled: true
236
        },{
237
            code: "1", caption: "1个月内", enabled: true
238
        }, {
239
            code: "2", caption: "1-3个月", enabled: true
240
        }, {
241
            code: "3", caption: "3-6个月", enabled: true
242
        }, {
243
            code: "4", caption: "6-12个月", enabled: true
244
        }, {
245
            code: "5", caption: "1年以上", enabled: true
246
        }]);
247
248
        dict.set("demandState", [{
249
            code: "0", caption: "已过期", enabled: true
250
        },{
251
            code: "1", caption: "发布中", enabled: true
252
        }, {
253
            code: "2", caption: "已完成", enabled: true
254
        }, {
255
            code: "3", caption: "已关闭", enabled: true
256
        }]);
257
217 258
    });
218 259
219 260
})();