Browse Source

2.4新增平台

XMTT 6 years ago
parent
commit
163eefcfea

+ 86 - 0
css/model/sys/demand.css

@ -22,4 +22,90 @@
22 22
23 23
.sys_demand_index .state2,.sys_demand_index .state3{
24 24
    display: none;
25
}
26
27
.sys_demand_edit .requiredSpan{
28
    color: #ff0000;
29
}
30
31
.sys_demand_edit{
32
    width: 800px;
33
    height: 700px;
34
}
35
36
.sys_demand_edit .citybox .frmtype {
37
    border: 1px solid #B5B5B5;
38
}
39
40
.sys_demand_edit .citybox span {
41
    position: relative;
42
    width: 96%;
43
    display: inline-block;
44
    padding: 0 0 0 6px;
45
    cursor: pointer;
46
    margin: 0;
47
    background: #fff;
48
}
49
50
.sys_demand_edit .citybox span .mr_show.mr_select {
51
    color: #333;
52
}
53
54
.sys_demand_edit .citybox span .mr_show {
55
    font-style: normal;
56
    color: #AAAAAA;
57
    width: 100%;
58
    display: inline-block;
59
    height: 32px;
60
    line-height: 32px;
61
    position: relative;
62
}
63
64
.sys_demand_edit .citybox span .mr_show .mr_select {
65
    color: #333;
66
}
67
68
.sys_demand_edit .citybox span .mr_sj {
69
    position: absolute;
70
    right: 10px;
71
    top: 15px;
72
    display: inline-block;
73
    height: 0;
74
    width: 0;
75
    border: 6px solid #fff;
76
    border-color: #28b8fa transparent transparent;
77
}
78
79
.sys_demand_edit .citybox span ul {
80
    width: 98%;
81
    border-radius: 0 0 5px 5px;
82
    position: absolute;
83
    border: 1px solid #E8E8E8;
84
    background: #fff;
85
    left: -1px;
86
    top: 38px;
87
    margin-bottom: 10px;
88
    display: none;
89
    z-index: 10;
90
    max-height: 280px;
91
    overflow: auto;
92
}
93
94
.sys_demand_edit .citybox span ul li {
95
    width: 100%;
96
    float: left;
97
    overflow: hidden;
98
    border-top: 1px solid #E8E8E8;
99
}
100
101
.sys_demand_edit .citybox span ul li:first-child {
102
    border-top: 0;
103
}
104
105
.sys_demand_edit .citybox span ul li a {
106
    display: block;
107
    height: 30px;
108
    line-height: 30px;
109
    padding: 0 8px;
110
    color: #494949;
25 111
}

+ 323 - 0
css/model/sys/platform.css

@ -0,0 +1,323 @@
1
@charset "utf-8";
2
.sys_platform_index .tpl-btns .row,.sys_buttedpro_index .tpl-btns .row,.sys_buttedorg_index .tpl-btns .row,.sys_residentorg_index .tpl-btns .row {
3
    padding-left: 10px;
4
}
5
6
.sys_platform_index th.opt-check, .sys_buttedpro_index td.opt-check, .sys_buttedorg_index td.opt-check, .sys_residentorg_index td.opt-check {
7
    width: 35px;
8
}
9
10
.sys_platform_index .orderBy .icon-close{
11
    display: none;
12
}
13
.sys_platform_index .table-opt .name,.sys_buttedpro_index .table-opt .name{
14
    cursor:pointer;
15
}
16
17
.sys_platform_new,.sys_buttedpro_new,.sys_buttedorg_new,.sys_residentorg_new{
18
    width: 500px;
19
    height: 250px;
20
    padding: 0 20px 10px;
21
}
22
23
.sys_platform_new .requiredSpan{
24
    color: #ff0000;
25
    position:relative;
26
    top:6px;
27
    left: -4px;
28
29
}
30
.sys_platform_details .requiredSpan{
31
    color: #ff0000;
32
}
33
34
.sys_platform_details{
35
    width: 800px;
36
    height: 700px;
37
}
38
39
.sys_platform_data .icon-close {
40
    display: none;
41
}
42
43
.sys_platform_new .newForm, .sys_platform_details .newForm, .sys_platform_cp .newForm {
44
    position: relative;
45
}
46
47
.sys_platform_new .newForm1, .sys_platform_details .newForm1, .sys_platform_cp .newForm1 {
48
    position: relative;
49
}
50
51
.sys_platform_details .newForm .head-ctn {
52
    position: absolute;
53
    top: 164px;
54
    right: 30px;
55
    width: 190px;
56
    height: 190px;
57
}
58
59
.sys_platform_details .platformSize.dyn-mselect .icon-drop {
60
    display: none !important;
61
}
62
63
.sys_platform_details .platformSize.dyn-mselect .dd-drop {
64
    display: none !important;
65
}
66
67
.sys_platform_details .platformSize.dyn-mselect .placeholder {
68
    display: none !important;
69
}
70
71
.sys_platform_details .newForm .head-ctn .upload-btn {
72
    position: absolute;
73
    bottom: 10px;
74
    left: 40px;
75
    width: 110px;
76
    height: 36px;
77
    color: rgba(0, 0, 0, 1);
78
    font-size: 14px;
79
    text-align: center;
80
    border: 1px solid #555555;
81
    padding-top: 6px;
82
}
83
84
.sys_platform_details .newForm .head-ctn .upload-btn i {
85
    font-size: 16px;
86
    color: rgb(95, 184, 120);
87
}
88
89
.sys_platform_details .newForm .head-ctn img {
90
    width: 100%;
91
    height: 100%;
92
}
93
94
.sys_platform_details .upload-item {
95
    position: absolute;
96
    width: 100%;
97
    top: 50%;
98
    transform: translateY(-50%);
99
}
100
101
.sys_platform_details .upload-item .progress {
102
    width: 1px;
103
    height: 30px;
104
    background-color: #3280FC;
105
}
106
107
.sys_platform_menu .nav ul {
108
    padding-left: 20px;
109
}
110
111
.sys_platform_details .webuploader-pick {
112
    position: relative;
113
    display: inline-block;
114
    cursor: pointer;
115
    background: #00b7ee;
116
    padding: 10px 15px;
117
    color: #fff;
118
    text-align: center;
119
    border-radius: 3px;
120
    overflow: hidden;
121
}
122
123
.sys_platform_details .webuploader-container {
124
    position: relative;
125
}
126
127
.sys_platform_details .webuploader-element-invisible {
128
    position: absolute !important;
129
    clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
130
    clip: rect(1px, 1px, 1px, 1px);
131
}
132
133
.sys_platform_details .webuploader-pick-hover {
134
    background: #00a2d4;
135
}
136
137
.sys_platform_details .webuploader-pick-disable {
138
    opacity: 0.6;
139
    pointer-events: none;
140
}
141
142
.sys_platform_details #picker {
143
    display: inline-block;
144
    line-height: 1.428571429;
145
    vertical-align: middle;
146
    margin: 0 12px 0 0;
147
}
148
149
.sys_platform_details #picker .webuploader-pick {
150
    padding: 6px 12px;
151
    display: block;
152
}
153
154
.sys_platform_details #uploader-demo .thumbnail {
155
    width: 110px;
156
    height: 110px;
157
}
158
159
.sys_platform_details #uploader-demo .thumbnail img {
160
    width: 100%;
161
}
162
163
.sys_platform_details .uploader-list {
164
    width: 100%;
165
    overflow: hidden;
166
}
167
168
.sys_platform_details .file-item {
169
    float: left;
170
    position: relative;
171
    margin: 0 20px 20px 0;
172
    padding: 4px;
173
}
174
175
.sys_platform_details .file-item .error {
176
    position: absolute;
177
    top: 4px;
178
    left: 4px;
179
    right: 4px;
180
    background: red;
181
    color: white;
182
    text-align: center;
183
    height: 20px;
184
    font-size: 14px;
185
    line-height: 23px;
186
}
187
188
.sys_platform_details .file-item .info {
189
    position: absolute;
190
    left: 4px;
191
    bottom: 4px;
192
    right: 4px;
193
    height: 20px;
194
    line-height: 20px;
195
    text-indent: 5px;
196
    background: rgba(0, 0, 0, 0.6);
197
    color: white;
198
    overflow: hidden;
199
    white-space: nowrap;
200
    text-overflow: ellipsis;
201
    font-size: 12px;
202
    z-index: 10;
203
}
204
205
.sys_platform_details .file-item .progress {
206
    position: absolute;
207
    right: 4px;
208
    bottom: 4px;
209
    height: 3px;
210
    left: 4px;
211
    height: 4px;
212
    overflow: hidden;
213
    z-index: 15;
214
    margin: 0;
215
    padding: 0;
216
    border-radius: 0;
217
    background: transparent;
218
}
219
220
.sys_platform_details .file-item .progress span {
221
    display: block;
222
    overflow: hidden;
223
    width: 0;
224
    height: 100%;
225
    background: #d14 url(../images/progress.png) repeat-x;
226
    -webit-transition: width 200ms linear;
227
    -moz-transition: width 200ms linear;
228
    -o-transition: width 200ms linear;
229
    -ms-transition: width 200ms linear;
230
    transition: width 200ms linear;
231
    -webkit-animation: progressmove 2s linear infinite;
232
    -moz-animation: progressmove 2s linear infinite;
233
    -o-animation: progressmove 2s linear infinite;
234
    -ms-animation: progressmove 2s linear infinite;
235
    animation: progressmove 2s linear infinite;
236
    -webkit-transform: translateZ(0);
237
}
238
239
.sys_platform_details .filelist div.file-panel span.cancel {
240
    /* background-position: -48px -24px; */
241
}
242
243
.sys_platform_details .filelist div.file-panel span.cancel:hover {
244
    background-position: -48px 0;
245
}
246
247
.sys_platform_details .citybox .frmtype {
248
    border: 1px solid #B5B5B5;
249
}
250
251
.sys_platform_details .citybox span {
252
    position: relative;
253
    width: 96%;
254
    display: inline-block;
255
    padding: 0 0 0 6px;
256
    cursor: pointer;
257
    margin: 0;
258
    background: #fff;
259
}
260
261
.sys_platform_details .citybox span .mr_show.mr_select {
262
    color: #333;
263
}
264
265
.sys_platform_details .citybox span .mr_show {
266
    font-style: normal;
267
    color: #AAAAAA;
268
    width: 100%;
269
    display: inline-block;
270
    height: 32px;
271
    line-height: 32px;
272
    position: relative;
273
}
274
275
.sys_platform_details .citybox span .mr_show .mr_select {
276
    color: #333;
277
}
278
279
.sys_platform_details .citybox span .mr_sj {
280
    position: absolute;
281
    right: 10px;
282
    top: 15px;
283
    display: inline-block;
284
    height: 0;
285
    width: 0;
286
    border: 6px solid #fff;
287
    border-color: #28b8fa transparent transparent;
288
}
289
290
.sys_platform_details .citybox span ul {
291
    width: 98%;
292
    border-radius: 0 0 5px 5px;
293
    position: absolute;
294
    border: 1px solid #E8E8E8;
295
    background: #fff;
296
    left: -1px;
297
    top: 38px;
298
    margin-bottom: 10px;
299
    display: none;
300
    z-index: 10;
301
    max-height: 280px;
302
    overflow: auto;
303
}
304
305
.sys_platform_details .citybox span ul li {
306
    width: 100%;
307
    float: left;
308
    overflow: hidden;
309
    border-top: 1px solid #E8E8E8;
310
}
311
312
.sys_platform_details .citybox span ul li:first-child {
313
    border-top: 0;
314
}
315
316
.sys_platform_details .citybox span ul li a {
317
    display: block;
318
    height: 30px;
319
    line-height: 30px;
320
    padding: 0 8px;
321
    color: #494949;
322
}
323

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

@ -97,7 +97,7 @@
97 97
                <td class="opt-check" ><i class="icon icon-st-check" articleId="{{articleId}}" shareId="{{shareId}}" createTime="{{createTime}}"></i></td>
98 98
                <td>{{pi}}</td>
99 99
                <td class="table-opt" articleId="{{articleId}}" shareId="{{shareId}}" createTime="{{createTime}}"><a class="name">{{articleTitle}}</a></td>
100
                <td professorId="{{professorId}}" orgId="{{orgId}}"><a class="author">{{professorName}}{{organizationName}}</a></td>
100
                <td ownerId="{{ownerId}}" articleType="{{articleType}}"><a class="author">{{professorName}}{{organizationName}}</a></td>
101 101
                <td>{{subject}}</td>
102 102
                <td class="hand-dict" dict="banner" code="{{colNum}}"></td>
103 103
                <td>{{publishTime-showDay}}</td>

+ 65 - 27
html/model/sys/demand/edit.html

@ -2,46 +2,84 @@
2 2
	<div class="modal-ctrl">
3 3
		<i class="icon icon-times"></i>
4 4
	</div>
5
	<div class="container opt-form">
5
	<div class="container newForm">
6 6
		<div class="row">
7
			<div class="col-2 item-caption ">主题</div>
8
			<div class="col-4">
9
				<div class="form-item text showOnly" defVal="" name="demandTitle"></div>
7
			<div class="col-2 item-caption">需求主题</div>
8
			<div class="col-6">
9
				<div class="form-item text readOnly" defVal="" name="title"></div>
10 10
			</div>
11 11
		</div>
12 12
		<div class="row">
13
			<div class="col-2 item-caption ">发布者</div>
13
			<div class="col-2 item-caption">所属企业</div>
14
			<div class="col-6">
15
				<div class="form-item text" name="orgName"></div>
16
			</div>
17
		</div>
18
		<div class="row me">
19
			<div class="col-2 item-caption">联系电话</div>
14 20
			<div class="col-4">
15
				<div class="form-item text showOnly" defVal="" name="professorName"></div>
21
				<div class="form-item text" placeholder="联系电话不得超过50个字" name="contactNum"></div>
16 22
			</div>
17 23
		</div>
18 24
		<div class="row">
19
			<div class="col-2 item-caption ">发布时间</div>
25
			<div class="col-2 item-caption">需求有效期</div>
26
			<div class="col-4">
27
				<div class="form-item date" defVal="" name="invalidDay"></div>
28
			</div>
29
			<div class="col-2 item-caption">预计合作周期</div>
20 30
			<div class="col-4">
21
				<div class="form-item text showOnly" dictCode="showDay" defVal="" name="day"></div>
31
				<div class="form-item select" defVal="" dictCode="duration" name="duration"></div>
22 32
			</div>
23 33
		</div>
24 34
		<div class="row">
25
			<div class="col-2 item-caption ">内容</div>
26
			<div class="col-4">
27
				<div class="form-item text showOnly" defVal="" name="demandContent"></div>
35
			<div class="col-2 item-caption">费用预算</div>
36
			<div class="col-6">
37
				<div class="form-item select" dictCode="cost" name="cost"></div>
38
			</div>
39
40
		</div>
41
		<div class="row">
42
			<div class="col-2 item-caption">所在城市</div>
43
			<div class="col-8">
44
				<form action="" name="form1">
45
					<div class=" col-6 citybox">
46
														<span class="frmtype frmtypeW" id="Province">
47
				                                        	<em class="mr_sj"></em>
48
				                                            <i class="mr_show" id="oprovince">请选择省份</i>
49
				                                            <ul>
50
				                                                <li><a href="javascript:void(0)" alt="请选择省份">请选择省份</a></li>
51
				                                            </ul>
52
				                                            <input type="hidden" name="cho_Province"
53
																   value="请选择省份">
54
				                                        </span>
55
					</div>
56
					<div class="col-6 citybox">
57
														<span class="frmtype frmtypeW" id="City">
58
				                                       		<em class="mr_sj"></em>
59
				                                            <i class="mr_show" id="ocity"></i>
60
				                                            <ul>
61
				                                                <li><a href="javascript:void(0)" alt="请选择城市">请选择城市</a></li>
62
				                                            </ul>
63
				                                            <input type="hidden" name="cho_City" value="请选择城市 ">
64
				                                        </span>
65
					</div>
66
				</form>
67
			</div>
68
		</div>
69
		<div class="row">
70
			<div class="col-2 item-caption">需求内容</div>
71
			<div class="col-6">
72
				<div class="form-item textarea" defVal="" name="descp"></div>
73
			</div>
74
		</div>
75
		<div class="row">
76
			<div class="col-10"></div>
77
			<div class="col-2">
78
				<div class="btn pull-right opt-save">
79
					<i class="icon-check"></i> 保存
80
				</div>
28 81
			</div>
29 82
		</div>
30
	</div>
31
	<div class="container dt-tpl">
32
		<table class="table table-bordered">
33
			<thead>
34
				<tr>				
35
					<th>反馈列表</th>
36
				</tr>
37
			</thead>
38
			<tbody>
39
				<tr ch-dir="list">			
40
					<td class="table-opt id" consultId="{{consultId}}">{{professorName}}&nbsp;&nbsp;{{createTime-showDay}}&nbsp;&nbsp;【{{consultStruts-struts}}】</td>
41
				</tr>
42
			</tbody>
43
			
44
		</table>
45
	</div>
46 83
84
	</div>
47 85
</div>

+ 17 - 2
html/model/sys/demand/index.html

@ -26,7 +26,11 @@
26 26
            <div class="col-2">
27 27
                <div class="form-item select" dictCode="demandState" name="state"></div>
28 28
            </div>
29
            <div class="col-7">
29
            <div class="col-1 item-caption">来源渠道</div>
30
            <div class="col-2">
31
                <div class="form-item select" dictCode="demandSource" name="source"></div>
32
            </div>
33
            <div class="col-4">
30 34
            </div>
31 35
            <div class="col-2">
32 36
                <div class="btn opt-query pull-right">
@ -38,6 +42,13 @@
38 42
    </div>
39 43
40 44
    <div class="container page-split"></div>
45
    <div class="container tpl-btns">
46
        <div class="row">
47
            <div class="btn opt-edit">
48
                编辑需求内容
49
            </div>
50
        </div>
51
    </div>
41 52
    <style type="text/css">
42 53
        .table.table-bordered tr th{text-align: center;}
43 54
    </style>
@ -45,6 +56,7 @@
45 56
        <table class="table table-bordered">
46 57
            <thead>
47 58
            <tr>
59
                <th class="opt-check" ><i class="icon icon-st-check"></i> </th>
48 60
                <th>序号</th>
49 61
                <th>主题</th>
50 62
                <th>发布者</th>
@ -56,11 +68,13 @@
56 68
                <th>发布时间</th>
57 69
                <th>需求状态</th>
58 70
                <th>浏览量</th>
71
                <th>来源渠道</th>
59 72
                <th>操作</th>
60 73
            </tr>
61 74
            </thead>
62 75
            <tbody>
63 76
            <tr ch-dir="list">
77
                <td class="opt-check" ><i class="icon icon-st-check" demandId="{{id}}"></i></td>
64 78
                <td>{{pi}}</td>
65 79
                <td class="table-opt" demandId="{{id}}"><a class="title">{{title}}</a></td>
66 80
                <td>{{professorName}}</td>
@ -72,6 +86,7 @@
72 86
                <td>{{createTime-showDay}}</td>
73 87
                <td class="hand-dict" dict="demandState" code="{{state}}"></td>
74 88
                <td>{{pageViews}}</td>
89
                <td>{{source}}</td>
75 90
                <td class="table-opt edit" demandId="{{id}}"><div class="btn opt-auth state{{state}}">
76 91
                    <i class="icon-times"></i>
77 92
                    关闭
@ -84,7 +99,7 @@
84 99
            </tbody>
85 100
            <tbody ch-dir="array.empty">
86 101
            <tr>
87
                <td class="empty-desc" colspan="12">表格暂无数据</td>
102
                <td class="empty-desc" colspan="14">表格暂无数据</td>
88 103
            </tr>
89 104
            </tbody>
90 105
        </table>

+ 71 - 0
html/model/sys/platform/buttedorg.html

@ -0,0 +1,71 @@
1
<div class="sys_buttedorg_index" loadUri="http://www.ekexiu.com/ajax/platformConsole/pqButtedOrg" pageSize="10" pageNo="1" pageIndex="pi">
2
    <div class="modal-ctrl">
3
        <i class="icon icon-times"></i>
4
    </div>
5
    <div class="container dt-form">
6
        <div class="row">
7
            <div class="col-1"></div>
8
            <div class="col-1 item-caption ">平台</div>
9
            <div class="col-2">
10
                <div class="form-item dyn-select queried" uri="../ajax/platform/name" name="pid"></div>
11
            </div>
12
            <div class="col-1 item-caption ">机构名称</div>
13
            <div class="col-2">
14
                <div class="form-item text" defVal="" name="name"></div>
15
            </div>
16
            <div class="col-2">
17
                <div class="btn opt-query pull-right">
18
                    <i class="icon-search"></i> 查询
19
                </div>
20
            </div>
21
        </div>
22
    </div>
23
24
    <div class="container page-split"></div>
25
    <div class="container tpl-btns">
26
        <div class="row">
27
            <div class="btn opt-new">
28
                新增对接机构
29
            </div>
30
            <div class="btn opt-del">
31
                删除对接机构
32
            </div>
33
        </div>
34
    </div>
35
    <div class="container dt-tpl">
36
        <table class="table table-bordered">
37
            <thead>
38
            <tr>
39
                <th class="opt-check" ><i class="icon icon-st-check"></i> </th>
40
                <th class="number">序号</th>
41
                <th>机构名称</th>
42
                <th>联系电话</th>
43
                <th>联系邮箱</th>
44
                <th>所在省份</th>
45
                <th>所在城市</th>
46
                <th>所属行业</th>
47
                <th>对接时间</th>
48
            </tr>
49
            </thead>
50
            <tbody>
51
            <tr ch-dir="list" class="ifempty">
52
                <td class="opt-check" ><i class="icon icon-st-check" orgId="{{id}}"></i></td>
53
                <td>{{pi}}</td>
54
                <td>{{name}}</td>
55
                <td>{{contactNum}}</td>
56
                <td>{{email}}</td>
57
                <td>{{province}}</td>
58
                <td>{{city}}</td>
59
                <td>{{industry}}</td>
60
                <td>{{buttedTime}}</td>
61
            </tr>
62
            </tbody>
63
            <tbody ch-dir="array.empty">
64
            <tr>
65
                <td class="empty-desc" colspan="9">表格暂无数据</td>
66
            </tr>
67
            </tbody>
68
        </table>
69
    </div>
70
    <ul class="dt-pager"></ul>
71
</div>

+ 73 - 0
html/model/sys/platform/buttedpro.html

@ -0,0 +1,73 @@
1
<div class="sys_buttedpro_index" loadUri="http://www.ekexiu.com/ajax/platformConsole/pqButtedProfessors" pageSize="10" pageNo="1" pageIndex="pi">
2
    <div class="modal-ctrl">
3
        <i class="icon icon-times"></i>
4
    </div>
5
    <div class="container dt-form">
6
        <div class="row">
7
            <div class="col-1"></div>
8
            <div class="col-1 item-caption ">平台</div>
9
            <div class="col-2">
10
                <div class="form-item dyn-select queried" uri="../ajax/platform/name" name="pid"></div>
11
            </div>
12
            <div class="col-1 item-caption ">专家姓名</div>
13
            <div class="col-2">
14
                <div class="form-item text" defVal="" name="name"></div>
15
            </div>
16
            <div class="col-2">
17
                <div class="btn opt-query pull-right">
18
                    <i class="icon-search"></i> 查询
19
                </div>
20
            </div>
21
        </div>
22
    </div>
23
24
    <div class="container page-split"></div>
25
    <div class="container tpl-btns">
26
        <div class="row">
27
            <div class="btn opt-new">
28
                新增对接专家
29
            </div>
30
            <div class="btn opt-del">
31
                删除对接专家
32
            </div>
33
        </div>
34
    </div>
35
    <div class="container dt-tpl">
36
        <table class="table table-bordered">
37
            <thead>
38
            <tr>
39
                <th class="opt-check" ><i class="icon icon-st-check"></i> </th>
40
                <th class="number">序号</th>
41
                <th>专家姓名</th>
42
                <th>性别</th>
43
                <th>职称</th>
44
                <th>职位</th>
45
                <th>所在机构</th>
46
                <th>联系电话</th>
47
                <th>联系邮箱</th>
48
                <th>对接时间</th>
49
            </tr>
50
            </thead>
51
            <tbody>
52
            <tr ch-dir="list" class="ifempty">
53
                <td class="opt-check" ><i class="icon icon-st-check" proId="{{id}}"></i></td>
54
                <td>{{pi}}</td>
55
                <td>{{name}}</td>
56
                <td>{{sex}}</td>
57
                <td>{{title}}</td>
58
                <td>{{office}}</td>
59
                <td>{{orgName}}</td>
60
                <td>{{phone}}</td>
61
                <td>{{email}}</td>
62
                <td>{{buttedTime}}</td>
63
            </tr>
64
            </tbody>
65
            <tbody ch-dir="array.empty">
66
            <tr>
67
                <td class="empty-desc" colspan="10">表格暂无数据</td>
68
            </tr>
69
            </tbody>
70
        </table>
71
    </div>
72
    <ul class="dt-pager"></ul>
73
</div>

+ 107 - 0
html/model/sys/platform/details.html

@ -0,0 +1,107 @@
1
<div class="sys_platform_details centerModal">
2
    <div class="modal-ctrl">
3
        <i class="icon icon-times"></i>
4
    </div>
5
    <div class="container newForm">
6
        <div class="row">
7
            <div class="col-2 item-caption">平台名称</div>
8
            <div class="col-6">
9
                <div class="form-item text readOnly" defVal="" name="name"></div>
10
            </div>
11
        </div>
12
        <div class="row me">
13
            <div class="col-2 item-caption">联系人</div>
14
            <div class="col-4">
15
                <div class="form-item text" defVal="" name="linkman"></div>
16
            </div>
17
        </div>
18
        <div class="row me">
19
            <div class="col-2 item-caption">联系电话</div>
20
            <div class="col-4">
21
                <div class="form-item text" placeholder="联系电话不得超过50个字" name="linkphone"></div>
22
            </div>
23
            <div class="col-2 item-caption">联系邮箱</div>
24
            <div class="col-4">
25
                <div class="form-item text" defVal="" name="linkemail"></div>
26
            </div>
27
        </div>
28
        <div class="row">
29
            <div class="col-2 item-caption">所在城市</div>
30
            <div class="col-8">
31
                <form action="" name="form1">
32
                    <div class=" col-6 citybox">
33
														<span class="frmtype frmtypeW" id="Province">
34
				                                        	<em class="mr_sj"></em>
35
				                                            <i class="mr_show" id="oprovince">请选择省份</i>
36
				                                            <ul>
37
				                                                <li><a href="javascript:void(0)" alt="请选择省份">请选择省份</a></li>
38
				                                            </ul>
39
				                                            <input type="hidden" name="cho_Province"
40
                                                                   value="请选择省份">
41
				                                        </span>
42
                    </div>
43
                    <div class="col-6 citybox">
44
														<span class="frmtype frmtypeW" id="City">
45
				                                       		<em class="mr_sj"></em>
46
				                                            <i class="mr_show" id="ocity"></i>
47
				                                            <ul>
48
				                                                <li><a href="javascript:void(0)" alt="请选择城市">请选择城市</a></li>
49
				                                            </ul>
50
				                                            <input type="hidden" name="cho_City" value="请选择城市 ">
51
				                                        </span>
52
                    </div>
53
                </form>
54
            </div>
55
        </div>
56
        <div class="row">
57
            <div class="col-2 item-caption">平台地址</div>
58
            <div class="col-6">
59
                <div class="form-item text" placeholder="字数限制50个字" name="addr"></div>
60
            </div>
61
        </div>
62
        <div class="row">
63
            <div class="col-2 item-caption">平台官网</div>
64
            <div class="col-6">
65
                <div class="form-item text" placeholder="字数限制50个字" name="url"></div>
66
            </div>
67
        </div>
68
        <div class="row">
69
            <div class="col-2 item-caption">面向行业</div>
70
            <div class="col-4">
71
                <div class="form-item text keydrop" placeholder="字数限制15个字,最多10个" name="newIndustry"></div>
72
            </div>
73
            <div class="col-2">
74
                <div class="btn pull-right opt-industry">
75
                    <i class="icon-check"></i> 添加
76
                </div>
77
            </div>
78
        </div>
79
        <div class="row">
80
            <div class="col-2"></div>
81
            <div class="col-6">
82
                <div class="form-item dyn-mselect platformSize"  name="industryList"></div>
83
            </div>
84
        </div>
85
        <div class="row">
86
            <div class="col-2 item-caption">平台简介</div>
87
            <div class="col-6">
88
                <div class="form-item textarea" defVal="" name="descp"></div>
89
            </div>
90
        </div>
91
        <div class="row">
92
            <div class="col-10"></div>
93
            <div class="col-2">
94
                <div class="btn pull-right opt-save">
95
                    <i class="icon-check"></i> 保存
96
                </div>
97
            </div>
98
        </div>
99
        <div class="head-ctn">
100
            <div id="uploader-demo">
101
                <div id="fileList" class="uploader-list"></div>
102
                <div id="filePicker">选择图片</div>
103
            </div>
104
        </div>
105
106
    </div>
107
</div>

+ 10 - 0
html/model/sys/platform/edit.html

@ -0,0 +1,10 @@
1
<!DOCTYPE html>
2
<html lang="en">
3
<head>
4
    <meta charset="UTF-8">
5
    <title>Title</title>
6
</head>
7
<body>
8
9
</body>
10
</html>

+ 89 - 0
html/model/sys/platform/index.html

@ -0,0 +1,89 @@
1
<div class="sys_platform_index" loadUri="http://www.ekexiu.com/ajax/platformConsole/pq" pageSize="10" pageNo="1" pageIndex="pi">
2
    <div class="modal-ctrl">
3
        <i class="icon icon-times"></i>
4
    </div>
5
    <div class="container dt-form">
6
        <div class="row">
7
            <div class="col-1 item-caption">平台</div>
8
            <div class="col-2">
9
                <div class="form-item text" defVal="" name="name"></div>
10
            </div>
11
            <div class="col-1 item-caption ">创建日期</div>
12
            <div class="col-2">
13
                <div class="form-item date" defVal="" name="bt"></div>
14
            </div>
15
            <div class="col-1 item-caption center">至</div>
16
            <div class="col-2">
17
                <div class="form-item date" defVal="" name="et"></div>
18
            </div>
19
        </div>
20
        <div class="row">
21
            <div class="col-10">
22
            </div>
23
            <div class="col-2">
24
                <div class="btn opt-query pull-right">
25
                    <i class="icon-search"></i> 查询
26
                </div>
27
            </div>
28
29
        </div>
30
    </div>
31
32
    <div class="container page-split"></div>
33
    <div class="container tpl-btns">
34
        <div class="row">
35
            <div class="btn opt-new">
36
                新增平台账户
37
            </div>
38
            <div class="btn opt-edit">
39
                修改账户
40
            </div>
41
            <div class="btn opt-details">
42
                编辑平台资料
43
            </div>
44
            <div class="btn opt-view">
45
                查看企业信息
46
            </div>
47
        </div>
48
    </div>
49
    <div class="container dt-tpl">
50
        <table class="table table-bordered">
51
            <thead>
52
            <tr>
53
                <th class="opt-check" ><i class="icon icon-st-check"></i> </th>
54
                <th>序号</th>
55
                <th>平台名称</th>
56
                <th>联系人</th>
57
                <th>联系电话</th>
58
                <th>联系邮箱</th>
59
                <th>所在省份</th>
60
                <th>所在城市</th>
61
                <th>面向行业</th>
62
                <th>帐号状态</th>
63
                <th>创建时间</th>
64
            </tr>
65
            </thead>
66
            <tbody>
67
            <tr ch-dir="list">
68
                <td class="opt-check" ><i class="icon icon-st-check" platformId="{{id}}"></i></td>
69
                <td>{{pi}}</td>
70
                <td class="table-opt" platformId="{{id}}" ><a class="name">{{name}}</a></td>
71
                <td>{{linkman}}</td>
72
                <td>{{linkphone}}</td>
73
                <td>{{linkmail}}</td>
74
                <td>{{province}}</td>
75
                <td>{{city}}</td>
76
                <td>{{industry}}</td>
77
                <td class="hand-state" platformId="{{id}}"></td>
78
                <td>{{createTime-showDay}}</td>
79
            </tr>
80
            </tbody>
81
            <tbody ch-dir="array.empty">
82
            <tr>
83
                <td class="empty-desc" colspan="11">表格暂无数据</td>
84
            </tr>
85
            </tbody>
86
        </table>
87
    </div>
88
    <ul class="dt-pager"></ul>
89
</div>

+ 31 - 0
html/model/sys/platform/new.html

@ -0,0 +1,31 @@
1
<div class="sys_platform_new centerModal">
2
    <div class="modal-ctrl">
3
        <i class="icon icon-times"></i>
4
    </div>
5
    <div class="container newForm">
6
        <div class="row">
7
            <div class="col-2 item-caption">平台名称</div>
8
            <div class="col-6">
9
                <div class="form-item text trim oname" placeholder="姓名最长为50个字" name="name"></div>
10
            </div>
11
            <span class="requiredSpan">*</span>
12
        </div>
13
        <div class="row">
14
            <div class="col-2 item-caption">邮箱</div>
15
            <div class="col-6">
16
                <div class="form-item text trim" placeholder="请输入正确的邮箱地址" name="email"></div>
17
            </div>
18
            <span class="requiredSpan">*</span>
19
        </div>
20
        <div class="row">
21
            <div class="col-10"></div>
22
            <div class="col-2">
23
                <div class="btn pull-right opt-save">
24
                    <i class="icon-check"></i> SAVE
25
                </div>
26
27
            </div>
28
        </div>
29
    </div>
30
31
</div>

+ 24 - 0
html/model/sys/platform/neworg.html

@ -0,0 +1,24 @@
1
<div class="sys_buttedorg_new centerModal">
2
    <div class="modal-ctrl">
3
        <i class="icon icon-times"></i>
4
    </div>
5
    <div class="container newForm">
6
        <div class="row">
7
            <div class="col-2 item-caption">机构ID</div>
8
            <div class="col-6">
9
                <div class="form-item typeahead" uri="../ajax/sys/org/orgId?s=15&q=" name="id"></div>
10
            </div>
11
            <span class="requiredSpan">*</span>
12
        </div>
13
        <div class="row">
14
            <div class="col-10"></div>
15
            <div class="col-2">
16
                <div class="btn pull-right opt-save">
17
                    <i class="icon-check"></i> SAVE
18
                </div>
19
20
            </div>
21
        </div>
22
    </div>
23
24
</div>

+ 24 - 0
html/model/sys/platform/newpro.html

@ -0,0 +1,24 @@
1
<div class="sys_buttedpro_new centerModal">
2
    <div class="modal-ctrl">
3
        <i class="icon icon-times"></i>
4
    </div>
5
    <div class="container newForm">
6
        <div class="row">
7
            <div class="col-2 item-caption">专家ID</div>
8
            <div class="col-6">
9
                <div class="form-item text trim " name="id"></div>
10
            </div>
11
            <span class="requiredSpan">*</span>
12
        </div>
13
        <div class="row">
14
            <div class="col-10"></div>
15
            <div class="col-2">
16
                <div class="btn pull-right opt-save">
17
                    <i class="icon-check"></i> SAVE
18
                </div>
19
20
            </div>
21
        </div>
22
    </div>
23
24
</div>

+ 24 - 0
html/model/sys/platform/newresident.html

@ -0,0 +1,24 @@
1
<div class="sys_residentorg_new centerModal">
2
    <div class="modal-ctrl">
3
        <i class="icon icon-times"></i>
4
    </div>
5
    <div class="container newForm">
6
        <div class="row">
7
            <div class="col-2 item-caption">企业名称</div>
8
            <div class="col-6">
9
                <div class="form-item typeahead" uri="../ajax/sys/org/orgId?s=15&q=" name="id"></div>
10
            </div>
11
            <span class="requiredSpan">*</span>
12
        </div>
13
        <div class="row">
14
            <div class="col-10"></div>
15
            <div class="col-2">
16
                <div class="btn pull-right opt-save">
17
                    <i class="icon-check"></i> SAVE
18
                </div>
19
20
            </div>
21
        </div>
22
    </div>
23
24
</div>

+ 71 - 0
html/model/sys/platform/residentorg.html

@ -0,0 +1,71 @@
1
<div class="sys_residentorg_index" loadUri="http://www.ekexiu.com/ajax/platform/info/pqResidentOrgs" pageSize="10" pageNo="1" pageIndex="pi">
2
    <div class="modal-ctrl">
3
        <i class="icon icon-times"></i>
4
    </div>
5
    <div class="container dt-form">
6
        <div class="row">
7
            <div class="col-1"></div>
8
            <div class="col-1 item-caption ">平台</div>
9
            <div class="col-2">
10
                <div class="form-item dyn-select queried" uri="../ajax/platform/name" name="pid"></div>
11
            </div>
12
            <div class="col-1 item-caption ">企业名称</div>
13
            <div class="col-2">
14
                <div class="form-item text" defVal="" name="name"></div>
15
            </div>
16
            <div class="col-2">
17
                <div class="btn opt-query pull-right">
18
                    <i class="icon-search"></i> 查询
19
                </div>
20
            </div>
21
        </div>
22
    </div>
23
24
    <div class="container page-split"></div>
25
    <div class="container tpl-btns">
26
        <div class="row">
27
            <div class="btn opt-new">
28
                新增入驻企业
29
            </div>
30
            <div class="btn opt-del">
31
                删除入驻企业
32
            </div>
33
        </div>
34
    </div>
35
    <div class="container dt-tpl">
36
        <table class="table table-bordered">
37
            <thead>
38
            <tr>
39
                <th class="opt-check" ><i class="icon icon-st-check"></i> </th>
40
                <th class="number">序号</th>
41
                <th>机构名称</th>
42
                <th>联系电话</th>
43
                <th>联系邮箱</th>
44
                <th>所在省份</th>
45
                <th>所在城市</th>
46
                <th>所属行业</th>
47
                <th>对接时间</th>
48
            </tr>
49
            </thead>
50
            <tbody>
51
            <tr ch-dir="list" class="ifempty">
52
                <td class="opt-check" ><i class="icon icon-st-check" orgId="{{id}}"></i></td>
53
                <td>{{pi}}</td>
54
                <td>{{name}}</td>
55
                <td>{{contactNum}}</td>
56
                <td>{{email}}</td>
57
                <td>{{province}}</td>
58
                <td>{{city}}</td>
59
                <td>{{industry}}</td>
60
                <td>{{buttedTime}}</td>
61
            </tr>
62
            </tbody>
63
            <tbody ch-dir="array.empty">
64
            <tr>
65
                <td class="empty-desc" colspan="9">表格暂无数据</td>
66
            </tr>
67
            </tbody>
68
        </table>
69
    </div>
70
    <ul class="dt-pager"></ul>
71
</div>

+ 9 - 12
html/model/sys/userInfo/check.html

@ -45,16 +45,13 @@
45 45
    </div>
46 46
47 47
    <div class="container page-split"></div>
48
    <!--<div class="container tpl-btns">-->
49
        <!--<div class="row">-->
50
            <!--<div class="btn opt-examine">-->
51
                <!--查看用户信息-->
52
            <!--</div>-->
53
            <!--<div class="btn opt-review">-->
54
                <!--审核-->
55
            <!--</div>-->
56
        <!--</div>-->
57
    <!--</div>-->
48
    <div class="container tpl-btns">
49
        <div class="row">
50
            <div class="btn opt-reviews">
51
                审核
52
            </div>
53
        </div>
54
    </div>
58 55
    <style type="text/css">
59 56
        .table.table-bordered tr th{text-align: center;}
60 57
    </style>
@ -62,7 +59,7 @@
62 59
        <table class="table table-bordered">
63 60
            <thead>
64 61
            <tr>
65
                <!--<th class="opt-check"><i class="icon icon-st-check"></i></th>-->
62
                <th class="opt-check"><i class="icon icon-st-check"></i></th>
66 63
                <th>操作</th>
67 64
                <th>序号</th>
68 65
                <th>用户名</th>
@ -80,7 +77,7 @@
80 77
            </thead>
81 78
            <tbody>
82 79
            <tr ch-dir="list">
83
                <!--<td class="opt-check"><i class="icon icon-st-check" userId="{{id}}"></i></td>-->
80
                <td class="opt-check"><i class="icon icon-st-check" userId="{{id}}"></i></td>
84 81
                <td class="table-opt" userId="{{id}}"><i class="icon icon-eye-open opt-examine"></i><i class="icon icon-check-board opt-review"></i></td>
85 82
                <td>{{-_index}}</td>
86 83
                <td>{{name}}</td>

+ 3 - 1
js/common.js

@ -443,4 +443,6 @@ Date.prototype.format = function (fmt) {
443 443
    for (var k in o)
444 444
        if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
445 445
    return fmt;
446
};
446
};
447

448
var baseUrl = "http://www.ekexiu.com";

+ 6 - 6
js/model/sys/article/index.js

@ -43,12 +43,12 @@ spa_define(function () {
43 43
                        window.open('http://www.ekexiu.com/shtml/a/'+time+'/' + shareId+'.html');
44 44
                    });
45 45
                    root.find("a.author").on("click",function () {
46
                        var professorId = $(this).parent().attr("professorId");
47
                        var orgId = $(this).parent().attr("orgId");
48
                        if(orgId) {
49
                            window.open('http://www.ekexiu.com/cmpInforShow.html?orgId='+onergId);
50
                        }else if(professorId){
51
                            window.open('http://www.ekexiu.com/userInforShow.html?professorId='+professorId);
46
                        var ownerId = $(this).parent().attr("ownerId");
47
                        var articleType = $(this).parent().attr("articleType");
48
                        if(articleType == 1) {
49
                            window.open('http://www.ekexiu.com/userInforShow.html?professorId='+ownenerId);
50
                        }else if(articleType == 2){
51
                            window.open('http://www.ekexiu.com/cmpInforShow.html?orgId='+ownerId);
52 52
                        }
53 53
                    })
54 54
                });

+ 7 - 7
js/model/sys/article/viewcount.js

@ -46,7 +46,7 @@ spa_define(function () {
46 46
                                util.get("../ajax/article/base", {id: articleId}, function (data) {
47 47
                                    if (data) {
48 48
                                        $e.parent().find(".articleTitle .name").text(data.articleTitle).attr('shareId',data.shareId).attr('createTime',data.createTime);
49
                                        $e.parent().find(".professorName .author").text(data.professorName || data.organizationName).attr('professorId',data.professorId).attr('orgId',data.orgId);
49
                                        $e.parent().find(".professorName .author").text(data.professorName || data.organizationName).attr('ownerId',data.ownerId).attr('articleType',data.articleType);
50 50
                                        $e.parent().find(".subject").text(data.subject);
51 51
                                        $e.parent().find(".colNum").text(caption("banner", data.colNum));
52 52
                                        $e.parent().find(".publishTime").text(showDay(data.publishTime));
@ -152,12 +152,12 @@ spa_define(function () {
152 152
                    window.open('http://www.ekexiu.com/shtml/a/'+time+'/' + shareId+'.html');
153 153
                });
154 154
                root.on("click",".professorName a.author",function () {
155
                    var professorId = $(this).attr("professorId");
156
                    var orgId = $(this).attr("orgId");
157
                    if(orgId) {
158
                        window.open('http://www.ekexiu.com/cmpInforShow.html?orgId='+onergId);
159
                    }else if(professorId){
160
                        window.open('http://www.ekexiu.com/userInforShow.html?professorId='+professorId);
155
                    var ownerId = $(this).attr("ownerId");
156
                    var articleType = $(this).attr("articleType");
157
                    if(articleType == 1) {
158
                        window.open('http://www.ekexiu.com/userInforShow.html?professorId='+ownenerId);
159
                    }else if(articleType == 2){
160
                        window.open('http://www.ekexiu.com/cmpInforShow.html?orgId='+ownerId);
161 161
                    }
162 162
                })
163 163
                var myChart = echarts.init(document.getElementById('total'));

+ 38 - 34
js/model/sys/demand/edit.js

@ -1,49 +1,53 @@
1
/**
2
 * Created by TT on 2017/5/23.
3
 */
1 4
;
2 5
spa_define(function () {
3
    return $.use(["spa", "code", "util", "form"], function (spa, code, util, form) {
6
    return $.use(["spa", "util", "form", "upload"], function (spa, util, fb, upload) {
4 7
        return {
5 8
            modal: function (data) {
6 9
                var root = spa.findInModal(".sys_demand_edit");
10
                var form = fb.build(root.find(".newForm"));
11
                var saveBtn = root.find(".opt-save"),
12
                    headArea = root.find(".head-ctn"),
13
                    save = function () {
14
                        console.log(form.val());
15
                    form.doPost("../ajax/demand/modify",function () {
16
                        spa.closeModal();
17
                        if (data.hand) {
18
                            data.hand();
19
                        }
20
                    },{})
21
                    };
22
23
                form.val(data.data);
24
7 25
                root.find(".modal-ctrl .icon-times").on("click", function () {
8 26
                    spa.closeModal();
9 27
                });
10
                var ef = form.build(root.find(".opt-form"));
11 28
12
                var day = data.data.createTime;
13
                data.data.day = day.substring(0, 4) + "年" + day.substring(4, 6) + "月" + day.substring(6, 8) + "日";
14
                ef.val(data.data);
15
                var cr = code.parseCode(root.find(".dt-tpl"));
16
                cr.shell("showDay", function (env) {
17
                    if (env.cd && env.cd[this.k]) {
18
                        var day = env.cd[this.k];
19
                        return day.substring(0, 4) + "-" + day.substring(4, 6) + "-" + day.substring(6, 8);
20
                    }
21
                    return "";
22
                });
23
                cr.shell("struts", function (env) {
24
                    var v = env.cd[this.k];
25
                    if (v === 1) {
26
                        return "已完成";
29
                $.fn.citySelect();
30
                $(document).on("click", "#City li a", function () {
31
                    var aVal = $(this).text();
32
                    $(this).parent().parent().parent().find('.mr_show').text(aVal);
33
                    $(this).parent().parent().parent().find('input[name=cho_City]').val(aVal);
34
                    if ($("#ocity").text() == "请选择城市") {
35
                        $("#ocity").removeClass("mr_select");
36
                    } else {
37
                        $("#ocity").addClass("mr_select");
27 38
                    }
28
                    if (v === 2) {
29
                        return "待回复";
30
                    }
31
                    if (v === 3) {
32
                        return "已谢绝";
33
                    }
34
                    return "进行中";
35
                });
36
                var allData;
37
                util.get("../ajax/demand/demandId/" + data.data.demandId, null, function (data) {
38
                    allData = data || [];
39
                    cr.val(data);
40
                }, {});
41
                root.on("click", ".table-opt", function () {
42
                    var id = $(".id").attr("consultId");
43
                    window.open('http://www.ekexiu.com/diloags.html?attrParams=consultId&consultId=' + id);
39
                    // console.log($("#ocity").text(),$("#oprovince").text())
40
                    form.val({province: $("#oprovince").text(), city: $("#ocity").text()});
44 41
                });
42
                if (data.data.province) {
43
                    $("#oprovince").text(data.data.province);
44
                }
45
                if (data.data.city) {
46
                    $("#ocity").text(data.data.city);
47
                }
45 48
49
                saveBtn.on("click", save);
46 50
            }
47
        };
51
        }
48 52
    });
49 53
});

+ 37 - 1
js/model/sys/demand/index.js

@ -20,6 +20,19 @@ spa_define(function () {
20 20
                    pdg.load();
21 21
                });
22 22
                pdg.load();
23
                root.find(".dt-tpl").on("click", "th.opt-check>i.icon-st-check", function () {
24
                    var $this = $(this);
25
                    $this.toggleClass("checked");
26
                    if ($this.hasClass("checked")) {
27
                        root.find(".dt-tpl td.opt-check>i.icon-st-check").addClass("checked");
28
                    } else {
29
                        root.find(".dt-tpl td.opt-check>i.icon-st-check").removeClass("checked");
30
                    }
31
                });
32
                root.find(".dt-tpl").on("click", "td.opt-check>i.icon-st-check", function () {
33
                    var $this = $(this);
34
                    $this.toggleClass("checked");
35
                });
23 36
                root.on("click", ".opt-auth", function () {
24 37
                    var demandId = $(this).parent().attr("demandId");
25 38
                    if (demandId) {
@ -40,7 +53,30 @@ spa_define(function () {
40 53
                        });
41 54
                    }
42 55
                });
43
                var bindDataEvent = function() {
56
                root.find(".opt-edit").on("click", function () {
57
                    var $demand = root.find("td.opt-check>i.checked");
58
                    if ($demand.length) {
59
                        if ($demand.length > 1) {
60
                            util.alert("只能选择一篇需求");
61
                        } else {
62
                            util.get("../ajax/demand/id/" + $demand.attr("demandId"), null, function (rd) {
63
                                if (rd) {
64
                                    spa.showModal("sys_demand_edit", {
65
                                        data: rd,
66
                                        hand: function () {
67
                                            pdg.load();
68
                                        }
69
                                    })
70
                                }else{util.alertMsg("需求不存在",function () {
71
                                    pdg.load();
72
                                })}
73
                            })
74
                        }
75
                    } else {
76
                        util.alert("请选择一个需求");
77
                    }
78
                });
79
                var bindDataEvent = function () {
44 80
                    root.find(".table-opt a.title").on("click", function () {
45 81
                        var demandId = $(this).parent().attr("demandId");
46 82
                        window.open('http://www.ekexiu.com/demandShow.html?demandId=' + demandId);

+ 97 - 0
js/model/sys/platform/buttedorg.js

@ -0,0 +1,97 @@
1
/**
2
 * Created by TT on 2018/5/28.
3
 * 对接的平台机构
4
 */
5
;
6
spa_define(function () {
7
    return $.use(["spa", "pagedatagrid", "util", "form"], function (spa, pdgf, util, form) {
8
        return {
9
            main: function () {
10
                var root = spa.findInMain(".sys_buttedorg_index");
11
                var pdg = pdgf.build(root);
12
                pdg.code.shell("showDay", function (env) {
13
                    if (env.cd && env.cd[this.k]) {
14
                        var day = env.cd[this.k];
15
                        return day.substring(0, 4) + "年" + day.substring(4, 6) + "月" + day.substring(6, 8) + "日  " + day.substring(8, 10) + ":" + day.substring(10, 12);
16
                    }
17
                    return "";
18
                });
19
                pdg.code.listen($.dict.doTransfer);
20
                root.find(".opt-query").on("click", function () {
21
                    if (pdg.form.val().pid == null) {
22
                        util.alert("请先选择一个平台");
23
                        return;
24
                    }
25
                    pdg.load();
26
                });
27
                if (pdg.form.val().pid == null) {
28
                    root.find(".ifempty").hide();
29
                }
30
                root.find(".dt-tpl").on("click", "th.opt-check>i.icon-st-check", function () {
31
                    var $this = $(this);
32
                    $this.toggleClass("checked");
33
                    if ($this.hasClass("checked")) {
34
                        root.find(".dt-tpl td.opt-check>i.icon-st-check").addClass("checked");
35
                    } else {
36
                        root.find(".dt-tpl td.opt-check>i.icon-st-check").removeClass("checked");
37
                    }
38
                });
39
                root.find(".dt-tpl").on("click", "td.opt-check>i.icon-st-check", function () {
40
                    var $this = $(this);
41
                    $this.toggleClass("checked");
42
                });
43
44
                root.find(".opt-new").on("click", function () {
45
                    var pid = pdg.form.val().pid;
46
                    if (pid == null) {
47
                        util.alert("请先选择一个平台");
48
                        return;
49
                    }
50
                    spa.showModal("sys_buttedorg_new", {
51
                        data: pid,
52
                        hand: function () {
53
                            pdg.reload()
54
                        }
55
                    })
56
                });
57
58
                root.find(".opt-del").on("click", function () {
59
                    var $orgId = root.find("td.opt-check>i.checked");
60
                    if ($orgId.length) {
61
                        if ($orgId.length > 1) {
62
                            util.alert("只能选择一个机构");
63
                        } else {
64
                            var orgId = $orgId.attr("orgId");
65
                            var platformId = pdg.form.val().pid;
66
                            util.boxMsg({
67
                                title: "确认删除",
68
                                content: "您是否要删除选中的对接机构?",
69
                                btns: [{
70
                                    caption: "删除",
71
                                    hand: function () {
72
                                        util.post(baseUrl + "/ajax/platform/buttedOrg/delete", {
73
                                            oid: orgId,
74
                                            pid: platformId
75
                                        }, function () {
76
                                            pdg.reload()
77
                                        }, {});
78
                                    }
79
                                },
80
                                    {caption: "取消"}
81
                                ]
82
                            });
83
                        }
84
                    } else {
85
                        util.alert("请选择一个机构");
86
                    }
87
                });
88
                root.on("click", "div .select-item", function () {
89
                    pdg.load();
90
                });
91
92
            }, mainDestory: function () {
93
94
            }
95
        };
96
    });
97
});

+ 96 - 0
js/model/sys/platform/buttedpro.js

@ -0,0 +1,96 @@
1
/**
2
 * Created by TT on 2018/5/25.
3
 */
4
;
5
spa_define(function () {
6
    return $.use(["spa", "pagedatagrid", "util","form"], function (spa, pdgf, util,form) {
7
        return {
8
            main: function () {
9
                var root = spa.findInMain(".sys_buttedpro_index");
10
                var pdg = pdgf.build(root);
11
                pdg.code.shell("showDay", function (env) {
12
                    if (env.cd && env.cd[this.k]) {
13
                        var day = env.cd[this.k];
14
                        return day.substring(0, 4) + "年" + day.substring(4, 6) + "月" + day.substring(6, 8) + "日  " + day.substring(8, 10) + ":" + day.substring(10, 12);
15
                    }
16
                    return "";
17
                });
18
                pdg.code.listen($.dict.doTransfer);
19
                root.find(".opt-query").on("click", function () {
20
                    if(pdg.form.val().pid == null){
21
                        util.alert("请先选择一个平台");
22
                        return;
23
                    }
24
                    pdg.load();
25
                });
26
                if (pdg.form.val().pid == null) {
27
                    root.find(".ifempty").hide();
28
                }
29
                root.find(".dt-tpl").on("click", "th.opt-check>i.icon-st-check", function () {
30
                    var $this = $(this);
31
                    $this.toggleClass("checked");
32
                    if ($this.hasClass("checked")) {
33
                        root.find(".dt-tpl td.opt-check>i.icon-st-check").addClass("checked");
34
                    } else {
35
                        root.find(".dt-tpl td.opt-check>i.icon-st-check").removeClass("checked");
36
                    }
37
                });
38
                root.find(".dt-tpl").on("click", "td.opt-check>i.icon-st-check", function () {
39
                    var $this = $(this);
40
                    $this.toggleClass("checked");
41
                });
42
43
                root.find(".opt-new").on("click", function () {
44
                    var pid = pdg.form.val().pid;
45
                    if(pid==null) {
46
                        util.alert("请先选择一个平台");
47
                        return;
48
                    }
49
                    spa.showModal("sys_buttedpro_new", {
50
                        data:pid,
51
                        hand: function() {
52
                            pdg.reload()
53
                        }
54
                    })
55
                });
56
57
                root.find(".opt-del").on("click", function () {
58
                    var $proId = root.find("td.opt-check>i.checked");
59
                    if ($proId.length) {
60
                        if ($proId.length > 1) {
61
                            util.alert("只能选择一个专家");
62
                        } else {
63
                            var proId = $proId.attr("proId");
64
                            var platformId = pdg.form.val().pid;
65
                            util.boxMsg({
66
                                title: "确认删除",
67
                                content: "您是否要删除选中的对接专家?",
68
                                btns: [{
69
                                    caption: "删除",
70
                                    hand: function () {
71
                                        util.post(baseUrl + "/ajax/platform/buttedProfessor/delete", {
72
                                            uid: proId,
73
                                            pid: platformId
74
                                        }, function () {
75
                                            pdg.reload()
76
                                        }, {});
77
                                    }
78
                                },
79
                                    {caption: "取消"}
80
                                ]
81
                            });
82
                        }
83
                    } else {
84
                        util.alert("请选择一个专家");
85
                    }
86
                });
87
                root.on("click", "div .select-item", function() {
88
                    pdg.load();
89
                });
90
91
            }, mainDestory: function () {
92
93
            }
94
        };
95
    });
96
});

+ 263 - 0
js/model/sys/platform/details.js

@ -0,0 +1,263 @@
1
/**
2
 * Created by TT on 2018/5/23.
3
 */
4
;
5
spa_define(function () {
6
    return $.use(["spa", "util", "form", "upload"], function (spa, util, fb, upload) {
7
        return {
8
            modal: function (data) {
9
                var root = spa.findInModal(".sys_platform_details");
10
                var ca = {ready: true, items: []};
11
                var form = fb.build(root.find(".newForm"), {
12
                    industryList: ca
13
                });
14
                var oValue;
15
                var oJudge;
16
                var trim = function (str) { //删除左右两端的空格			  
17
                    return str.replace(/(^\s*)|(\s*$)/g, "");
18
                };
19
                var saveBtn = root.find(".opt-save"),
20
                    save = function () {
21
                        form.val({
22
                            industry: oString(form.val().industryList)
23
                        });
24
                        if (form.val().url) {
25
                            var url = trim(form.val().url);
26
                            if (url.length > 50) {
27
                                util.alert("官网长度不得超过50个字");
28
                                return;
29
                            }
30
                        }
31
                        if (form.val().addr) {
32
                            var addr = trim(form.val().addr);
33
                            if (addr.length > 50) {
34
                                util.alert("地址字数不得超过50个字");
35
                                return;
36
                            }
37
                        }
38
                        if (form.val().linkphone) {
39
                            var linkphone = trim(form.val().linkphone);
40
                            if (linkphone.length > 50) {
41
                                util.alert("联系电话不得超过50个字");
42
                                return;
43
                            }
44
                        }
45
                        if (form.val().linkemail) {
46
                            var linkemail = trim(form.val().linkemail);
47
                            if (linkemail.length > 50) {
48
                                util.alert("联系邮箱不得超过50个字");
49
                                return;
50
                            }
51
                        }
52
                        if (form.val().descp) {
53
                            var descp = trim(form.val().descp);
54
                            if (descp.length > 1000) {
55
                                util.alert("联系邮箱不得超过1000个字");
56
                                return;
57
                            }
58
                        }
59
                        form.doPost(baseUrl+"/ajax/platform/info", function () {
60
                            spa.closeModal();
61
                            if (data.hand) {
62
                                data.hand();
63
                            }
64
                            // location.reload();
65
                        }, {});
66
                        console.log("tt")
67
                    };
68
69
                var split = function (data) {
70
                    var index = data.split(",");
71
                    var arr = [];
72
                    for (var m = 0; m < index.length; m++) {
73
                        ca.items.push({code: index[m], caption: index[m]});
74
                        arr.push(index[m]);
75
                    }
76
                    return arr;
77
                };
78
                if (data.data.industry) {
79
                    form.val({industryList: split(data.data.industry)});
80
                }
81
82
                form.val(data.data);
83
84
                root.find(".modal-ctrl .icon-times").on("click", function () {
85
                    spa.closeModal();
86
                });
87
88
                var part = function (one, list,num) {
89
                    oValue = one;
90
                    oJudge = list || [];
91
                    if (oJudge.length>=num) {
92
                        util.alert("最多"+num+"个");
93
                        return;
94
                    }
95
                    var repeat,
96
                        b;
97
                    if (!oValue) {
98
                        util.alert('提示', '请先填写内容');
99
                        return;
100
                    }
101
                    if (oValue.length > 15) {
102
                        util.alert('提示', '添加内容不能超过15个字');
103
                        return;
104
                    } else {
105
                        var oValueList = oValue.split(","),
106
                            length = oValueList.length;
107
                        for (var m = 0;m<oValueList.length;m++) {
108
                            oValueList[m] = trim(oValueList[m]);
109
                        }
110
                        for (var j = 0; j < length; j++) {
111
                            for (var n = j + 1; n < oValueList.length + 1;) {
112
                                if (oValueList[j] == oValueList[n]) {
113
                                    oValueList.remove(n);
114
                                    repeat = false;
115
                                } else {
116
                                    n++;
117
                                }
118
                            }
119
                        }
120
                        for (var j = 0; j < oValueList.length;) {
121
                            for (var i = 0; i < oJudge.length; i++) {
122
                                if (oValueList[j] == oJudge[i]) {
123
                                    oValueList.remove(j);
124
                                    repeat = false;
125
                                    b = true;
126
                                }
127
                            }
128
                            if (b) {
129
                                b = false
130
                            } else j++;
131
                        }
132
                        if (repeat == false) {
133
                            util.alert('提示', '添加内容不能重复');
134
                        }
135
                        for (var m = 0; m < oValueList.length; m++) {
136
                            ca.items.push({code: oValueList[m], caption: oValueList[m]});
137
                            oJudge.push(oValueList[m]);
138
                        }
139
                    }
140
                };
141
142
143
                Array.prototype.remove = function (obj) {
144
                    for (var i = 0; i < this.length; i++) {
145
                        var temp = this[i];
146
                        if (!isNaN(obj)) {
147
                            temp = i;
148
                        }
149
                        if (temp == obj) {
150
                            for (var j = i; j < this.length; j++) {
151
                                this[j] = this[j + 1];
152
                            }
153
                            this.length = this.length - 1;
154
                        }
155
                    }
156
                };
157
158
                function oString(data) {
159
                    var arry = new Array();
160
                    if (data) {
161
                        for (var i = 0; i < data.length; i++) {
162
                            arry.push(data[i]);
163
                        }
164
                    }
165
                    return arry.join(",");
166
                }
167
168
                root.find(".opt-industry").on("click", function () {
169
                    part(form.val().newIndustry, form.val().industryList,10);
170
                    form.val({newIndustry: "", industryList: oJudge});
171
                });
172
173
                var $list = $('#fileList'),
174
                    ratio = window.devicePixelRatio || 1,
175
                    thumbnailWidth = 100 * ratio,
176
                    thumbnailHeight = 100 * ratio,
177
                    uploader;
178
                uploader = WebUploader.create({
179
                    auto: true,
180
                    server: baseUrl+'/ajax/platform/upload',
181
182
                    pick: '#filePicker',
183
184
                    accept: {
185
                        title: 'Images',
186
                        extensions: 'gif,jpg,jpeg,bmp,png',
187
                        mimeTypes: 'image/jpg,image/jpeg,image/png'
188
                    }
189
                });
190
                uploader.on('fileQueued', function (file) {
191
                    var $li = $(
192
                            '<div id="' + file.id + '" class="file-item thumbnail">' +
193
                            '<img>' +
194
                            '</div>'
195
                        ),
196
                        $btns = $('<div class="file-panel">' +
197
                            '<span class="cancel icon-remove-sign">删除</span>' +
198
                            '</div>').appendTo($li),
199
                        $img = $li.find('img');
200
201
                    $list.html($li);
202
203
                    uploader.makeThumb(file, function (error, src) {
204
                        if (error) {
205
                            $img.replaceWith('<span>不能预览</span>');
206
                            return;
207
                        }
208
209
                        $img.attr('src', src);
210
                    }, thumbnailWidth, thumbnailHeight);
211
212
                });
213
                uploader.on('uploadSuccess', function (file, data) {
214
                    $('#' + file.id).addClass('upload-state-done');
215
                    var uri = data.data[0].uri;
216
                    form.val({logo: uri});
217
                });
218
                uploader.on('uploadComplete', function (file) {
219
                    $('#' + file.id).find('.progress').remove();
220
                });
221
                $list.on("click", ".cancel", function () {
222
                    $(this).parent().parent().remove();
223
                });
224
                uploader.on('beforeFileQueued', function (file) {
225
                    uploader.reset();
226
                });
227
228
                $.fn.citySelect();
229
                $(document).on("click", "#City li a", function () {
230
                    var aVal = $(this).text();
231
                    $(this).parent().parent().parent().find('.mr_show').text(aVal);
232
                    $(this).parent().parent().parent().find('input[name=cho_City]').val(aVal);
233
                    if ($("#ocity").text() == "请选择城市") {
234
                        $("#ocity").removeClass("mr_select");
235
                    } else {
236
                        $("#ocity").addClass("mr_select");
237
                    }
238
                    form.val({province: $("#oprovince").text(), city: $("#ocity").text()});
239
                });
240
                if (data.data.province) {
241
                    $("#oprovince").text(data.data.province);
242
                }
243
                if (data.data.city) {
244
                    $("#ocity").text(data.data.city);
245
                }
246
                if (data.data.logo) {
247
                    // $("#oimg").attr("src", "../data/images/org/" + data.data.id + ".jpg");
248
                    var $li = $(
249
                            // '<div class="file-item thumbnail">' +
250
                            // // '<img  src="../data/images/org/" id="oimg" />' +
251
                            // '<img  src=baseUrl+"/images/org/" id="oimg" />' +
252
                            // '</div>'
253
                        ),
254
                        $img = $li.find('img');
255
                    $list.html($li);
256
                    // $img.attr('src',  "../data/images/org/" + data.data.id + ".jpg");
257
                    $img.attr('src',  baseUrl+"/data/platform" + data.data.logo);
258
                }
259
                saveBtn.on("click", save);
260
            }
261
        }
262
    });
263
});

+ 76 - 0
js/model/sys/platform/edit.js

@ -0,0 +1,76 @@
1
/**
2
 * Created by TT on 2018/5/23.
3
 */
4
;
5
spa_define(function () {
6
    return $.use(["spa", "util", "form"], function (spa, util, fb) {
7
        return {
8
            modal: function (data) {
9
                var root = spa.findInModal(".sys_platform_new");
10
                $(".sys_platform_new .oname").addClass("readOnly");
11
                var form = fb.build(root.find(".newForm"));
12
                var trim = function (str) {
13
                    return str.replace(/(^\s*)|(\s*$)/g, "");
14
                };
15
                var saveBtn = root.find(".opt-save"),
16
                    save = function () {
17
                        if (form.val().email) {
18
                            var email = trim(form.val().email);
19
                            var gunf = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
20
                            if (!gunf.test(email)) {
21
                                util.alert("注册邮箱格式有误,请检查后重新填写");
22
                                return;
23
                            }
24
                        } else {
25
                            util.alert("请输入邮箱")
26
                            return;
27
                        }
28
                        if (form.val().name) {
29
                            var name = trim(form.val().name);
30
                            if (name.length > 50) {
31
                                util.alert("企业名称最长为50个字");
32
                                return;
33
                            }
34
                        } else {
35
                            util.alert("请填写企业名称");
36
                            return;
37
                        }
38
                        if (form.val().name && form.val().email) {
39
                            if (form.val().name != data.data.name || form.val().email != data.data.email) {
40
                                util.post(baseUrl+"/ajax/platformConsole/editCheck", {
41
                                    name: form.val().name,
42
                                    email: form.val().email,
43
                                    id:data.data.id
44
                                }, function (code) {
45
                                    if (code == 1) {
46
                                        form.doPost(baseUrl+"/ajax/platformConsole/updateAccount",closeThis,{});
47
                                    } else if (code == 2){
48
                                        util.alert("该邮箱已被注册");
49
                                    }else if (code == 3){
50
                                        util.alert("该企业名称已经注册");
51
                                    }
52
                                });
53
                            } else {
54
                                closeThis();
55
                            }
56
                        } else {
57
                            util.alert("邮箱和企业名称都必须输入");
58
                        }
59
                    };
60
61
                root.find(".modal-ctrl .icon-times").on("click", function () {
62
                    spa.closeModal();
63
                });
64
                var handler = data.hand;
65
                var closeThis = function () {
66
                    spa.closeModal();
67
                    if (handler) {
68
                        handler();
69
                    }
70
                };
71
                form.val(data.data);
72
                saveBtn.on("click", save);
73
            }
74
        };
75
    })
76
});

+ 125 - 0
js/model/sys/platform/index.js

@ -0,0 +1,125 @@
1
/**
2
 * Created by TT on 2018/5/23.
3
 */
4
;
5
spa_define(function () {
6
    return $.use(["spa", "pagedatagrid", "util"], function (spa, pdgf, util) {
7
        return {
8
            main: function () {
9
                var root = spa.findInMain(".sys_platform_index");
10
                var pdg = pdgf.build(root);
11
                pdg.code.shell("showDay", function (env) {
12
                    if (env.cd && env.cd[this.k]) {
13
                        var day = env.cd[this.k];
14
                        return day.substring(0, 4) + "年" + day.substring(4, 6) + "月" + day.substring(6, 8) + "日";
15
                    }
16
                    return "";
17
                });
18
                pdg.code.listen($.dict.doTransfer);
19
                pdg.code.listen(function () {
20
                    root.find(".table-opt a.name").on("click", function () {
21
                        var platformId = $(this).parent().attr("platformId");
22
                        //todo:点击名字跳转
23
                    });
24
                    root.find(".hand-state").each(function () {
25
                        var $e = $(this);
26
                        var platformId = $e.attr("platformId");
27
                        if (platformId) {
28
                            util.get(baseUrl+"/ajax/platformConsole/queryAccount/" + platformId, null, function (data) {
29
                                $e.text(data.state);
30
                            }, {});
31
                            $e.removeClass("hand-state");
32
                        }
33
                    })
34
                });
35
                root.find(".opt-query").on("click", function () {
36
                    pdg.load();
37
                });
38
                pdg.load();
39
                root.find(".dt-tpl").on("click", "th.opt-check>i.icon-st-check", function () {
40
                    var $this = $(this);
41
                    $this.toggleClass("checked");
42
                    if ($this.hasClass("checked")) {
43
                        root.find(".dt-tpl td.opt-check>i.icon-st-check").addClass("checked");
44
                    } else {
45
                        root.find(".dt-tpl td.opt-check>i.icon-st-check").removeClass("checked");
46
                    }
47
                });
48
                root.find(".dt-tpl").on("click", "td.opt-check>i.icon-st-check", function () {
49
                    var $this = $(this);
50
                    $this.toggleClass("checked");
51
                });
52
                root.find(".opt-new").on("click", function () {
53
                    spa.showModal("sys_platform_new", function () {
54
                        pdg.load()
55
                    });
56
                });
57
                root.find(".opt-edit").on("click", function () {
58
                    var $platform = root.find("td.opt-check>i.checked");
59
                    if ($platform.length) {
60
                        if ($platform.length > 1) {
61
                            util.alert("只能选择一个平台");
62
                        } else {
63
                            util.get(baseUrl+"/ajax/platformConsole/queryAccount/" + $platform.attr("platformId"), null, function (data) {
64
                                if (data) {
65
                                    spa.showModal("sys_platform_edit", {
66
                                        data: data,
67
                                        hand: function () {
68
                                            pdg.load()
69
                                        }
70
                                    })
71
                                } else {
72
                                    util.alert("平台不存在了", function () {
73
                                        pdg.load();
74
                                    });
75
                                }
76
                            }, {});
77
                        }
78
                    } else {
79
                        util.alert("请选择一个平台");
80
                    }
81
                });
82
                root.find(".opt-details").on("click", function () {
83
                    var $platform = root.find("td.opt-check>i.checked");
84
                    if ($platform.length) {
85
                        if ($platform.length > 1) {
86
                            util.alert("只能选择一个平台");
87
                        } else {
88
                            util.get(baseUrl+"/ajax/platform/info", {id: $platform.attr("platformId")}, function (data) {
89
                                if (data) {
90
                                    spa.showModal("sys_platform_details", {
91
                                        data: data, hand: function () {
92
                                            pdg.load()
93
                                        }
94
                                    })
95
                                } else {
96
                                    util.alert("平台不存在了", function () {
97
                                        pdg.load();
98
                                    });
99
                                }
100
                            }, {});
101
                        }
102
                    } else {
103
                        util.alert("请选择一个平台");
104
                    }
105
                });
106
                root.find(".opt-view").on("click", function () {
107
                    var $platform = root.find("td.opt-check>i.checked");
108
                    if ($platform.length) {
109
                        if ($platform.length > 1) {
110
                            util.alert("只能选择一个平台");
111
                        } else {
112
                            //todo:跳转平台
113
                            // window.open(baseUrl+'/cmpInforShow.html?platformId=' + $platform.attr("platformId"));
114
                        }
115
                    } else {
116
                        util.alert("请选择一个平台");
117
                    }
118
                });
119
120
            }, mainDestory: function () {
121
122
            }
123
        };
124
    });
125
});

+ 67 - 0
js/model/sys/platform/new.js

@ -0,0 +1,67 @@
1
/**
2
 * Created by TT on 2018/5/23.
3
 */
4
;
5
spa_define(function () {
6
    return $.use(["spa", "util", "form"], function (spa, util, fb) {
7
        return {
8
            modal: function (data) {
9
                var root = spa.findInModal(".sys_platform_new");
10
                var form = fb.build(root.find(".newForm"));
11
                var trim = function (str) { //删除左右两端的空格			  
12
                    return str.replace(/(^\s*)|(\s*$)/g, "");
13
                };
14
                var saveBtn = root.find(".opt-save"),
15
                    save = function () {
16
                        if (form.val().email) {
17
                            var email = trim(form.val().email);
18
                            var gunf = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
19
                            if (!gunf.test(email)) {
20
                                util.alert("注册邮箱格式有误,请检查后重新填写");
21
                                return;
22
                            }
23
                        } else {
24
                            util.alert("请输入邮箱");
25
                            return;
26
                        }
27
                        if (form.val().name) {
28
                            var name = trim(form.val().name);
29
                            if (name.length > 50) {
30
                                util.alert("平台名称最长为50个字");
31
                                return;
32
                            }
33
                        } else {
34
                            util.alert("请填写平台名称");
35
                            return;
36
                        }
37
                        if (form.val().name && form.val().email) {
38
                            util.get(baseUrl+"/ajax/platformConsole/createCheck", {
39
                                name: form.val().name,
40
                                email: form.val().email
41
                            }, function (code) {
42
                                if (code == 1) {
43
                                    form.doPost(baseUrl+"/ajax/platformConsole/createAccount", function () {
44
                                        spa.closeModal();
45
                                        if (data) {
46
                                            data();
47
                                        }
48
                                    }, {});
49
                                } else if (code == 2) {
50
                                    util.alert("该邮箱已被注册");
51
                                } else if (code == 3) {
52
                                    util.alert("该平台帐号已注册");
53
                                }
54
                            });
55
                        } else {
56
                            util.alert("邮箱和平台名称都必须输入");
57
                        }
58
                    };
59
60
                root.find(".modal-ctrl .icon-times").on("click", function () {
61
                    spa.closeModal();
62
                });
63
                saveBtn.on("click", save);
64
            }
65
        }
66
    });
67
});

+ 36 - 0
js/model/sys/platform/neworg.js

@ -0,0 +1,36 @@
1
/**
2
 * Created by TT on 2018/5/28.
3
 * 新增对接机构
4
 */
5
;
6
spa_define(function () {
7
    return $.use(["spa", "util", "form"], function (spa, util, fb) {
8
        return {
9
            modal: function (data) {
10
                var root = spa.findInModal(".sys_buttedorg_new");
11
                var form = fb.build(root.find(".newForm"));
12
                var trim = function (str) { //删除左右两端的空格			  
13
                    return str.replace(/(^\s*)|(\s*$)/g, "");
14
                };
15
                var saveBtn = root.find(".opt-save"),
16
                    save = function () {
17
                        if(trim(form.val().id).length!=32) {
18
                            util.alert("请输入32位ID");
19
                            return;
20
                        }
21
                        util.post(baseUrl + "/ajax/platform/buttedOrg", {pid: data.data, oid: form.val().id},function () {
22
                            spa.closeModal();
23
                            if (data) {
24
                                data.hand();
25
                            }
26
                        },{});
27
                    };
28
29
                root.find(".modal-ctrl .icon-times").on("click", function () {
30
                    spa.closeModal();
31
                });
32
                saveBtn.on("click", save);
33
            }
34
        }
35
    });
36
});

+ 35 - 0
js/model/sys/platform/newpro.js

@ -0,0 +1,35 @@
1
/**
2
 * Created by TT on 2018/5/25.
3
 */
4
;
5
spa_define(function () {
6
    return $.use(["spa", "util", "form"], function (spa, util, fb) {
7
        return {
8
            modal: function (data) {
9
                var root = spa.findInModal(".sys_buttedpro_new");
10
                var form = fb.build(root.find(".newForm"));
11
                var trim = function (str) { //删除左右两端的空格			  
12
                    return str.replace(/(^\s*)|(\s*$)/g, "");
13
                };
14
                var saveBtn = root.find(".opt-save"),
15
                    save = function () {
16
                        if(trim(form.val().id).length!=32) {
17
                            util.alert("请输入32位ID");
18
                            return;
19
                        }
20
                        util.post(baseUrl + "/ajax/platform/buttedProfessor", {pid: data.data, uid: form.val().id},function () {
21
                            spa.closeModal();
22
                            if (data) {
23
                                data.hand();
24
                            }
25
                        },{});
26
                    };
27
28
                root.find(".modal-ctrl .icon-times").on("click", function () {
29
                    spa.closeModal();
30
                });
31
                saveBtn.on("click", save);
32
            }
33
        }
34
    });
35
});

+ 36 - 0
js/model/sys/platform/newresident.js

@ -0,0 +1,36 @@
1
/**
2
 * Created by TT on 2018/5/28.
3
 * 新增入驻企业
4
 */
5
;
6
spa_define(function () {
7
    return $.use(["spa", "util", "form"], function (spa, util, fb) {
8
        return {
9
            modal: function (data) {
10
                var root = spa.findInModal(".sys_residentorg_new");
11
                var form = fb.build(root.find(".newForm"));
12
                var trim = function (str) { //删除左右两端的空格			  
13
                    return str.replace(/(^\s*)|(\s*$)/g, "");
14
                };
15
                var saveBtn = root.find(".opt-save"),
16
                    save = function () {
17
                        if(trim(form.val().id).length!=32) {
18
                            util.alert("请输入32位ID");
19
                            return;
20
                        }
21
                        util.post(baseUrl + "/ajax/platform/resident", {pid: data.data, oid: form.val().id},function () {
22
                            spa.closeModal();
23
                            if (data) {
24
                                data.hand();
25
                            }
26
                        },{});
27
                    };
28
29
                root.find(".modal-ctrl .icon-times").on("click", function () {
30
                    spa.closeModal();
31
                });
32
                saveBtn.on("click", save);
33
            }
34
        }
35
    });
36
});

+ 97 - 0
js/model/sys/platform/residentorg.js

@ -0,0 +1,97 @@
1
/**
2
 * Created by TT on 2018/5/28.
3
 * 平台入驻企业
4
 */
5
;
6
spa_define(function () {
7
    return $.use(["spa", "pagedatagrid", "util"], function (spa, pdgf, util) {
8
        return {
9
            main: function () {
10
                var root = spa.findInMain(".sys_residentorg_index");
11
                var pdg = pdgf.build(root);
12
                pdg.code.shell("showDay", function (env) {
13
                    if (env.cd && env.cd[this.k]) {
14
                        var day = env.cd[this.k];
15
                        return day.substring(0, 4) + "年" + day.substring(4, 6) + "月" + day.substring(6, 8) + "日  " + day.substring(8, 10) + ":" + day.substring(10, 12);
16
                    }
17
                    return "";
18
                });
19
                pdg.code.listen($.dict.doTransfer);
20
                root.find(".opt-query").on("click", function () {
21
                    if (pdg.form.val().pid == null) {
22
                        util.alert("请先选择一个平台");
23
                        return;
24
                    }
25
                    pdg.load();
26
                });
27
                if (pdg.form.val().pid == null) {
28
                    root.find(".ifempty").hide();
29
                }
30
                root.find(".dt-tpl").on("click", "th.opt-check>i.icon-st-check", function () {
31
                    var $this = $(this);
32
                    $this.toggleClass("checked");
33
                    if ($this.hasClass("checked")) {
34
                        root.find(".dt-tpl td.opt-check>i.icon-st-check").addClass("checked");
35
                    } else {
36
                        root.find(".dt-tpl td.opt-check>i.icon-st-check").removeClass("checked");
37
                    }
38
                });
39
                root.find(".dt-tpl").on("click", "td.opt-check>i.icon-st-check", function () {
40
                    var $this = $(this);
41
                    $this.toggleClass("checked");
42
                });
43
44
                root.find(".opt-new").on("click", function () {
45
                    var pid = pdg.form.val().pid;
46
                    if (pid == null) {
47
                        util.alert("请先选择一个平台");
48
                        return;
49
                    }
50
                    spa.showModal("sys_residentorg_new", {
51
                        data: pid,
52
                        hand: function () {
53
                            pdg.reload()
54
                        }
55
                    })
56
                });
57
58
                root.find(".opt-del").on("click", function () {
59
                    var $orgId = root.find("td.opt-check>i.checked");
60
                    if ($orgId.length) {
61
                        if ($orgId.length > 1) {
62
                            util.alert("只能选择一个企业");
63
                        } else {
64
                            var orgId = $orgId.attr("orgId");
65
                            var platformId = pdg.form.val().pid;
66
                            util.boxMsg({
67
                                title: "确认删除",
68
                                content: "您是否要删除选中的入驻企业?",
69
                                btns: [{
70
                                    caption: "删除",
71
                                    hand: function () {
72
                                        util.post(baseUrl + "/ajax/platform/resident/delete", {
73
                                            oid: orgId,
74
                                            pid: platformId
75
                                        }, function () {
76
                                            pdg.reload()
77
                                        }, {});
78
                                    }
79
                                },
80
                                    {caption: "取消"}
81
                                ]
82
                            });
83
                        }
84
                    } else {
85
                        util.alert("请选择一个企业");
86
                    }
87
                });
88
                root.on("click", "div .select-item", function () {
89
                    pdg.load();
90
                });
91
92
            }, mainDestory: function () {
93
94
            }
95
        };
96
    });
97
});

+ 5 - 0
js/model/sys/userInfo/review.js

@ -69,6 +69,11 @@ spa_define(function () {
69 69
                saveBtn.on("click", save);
70 70
                form.val(data.data);
71 71
                form.val({state: 3, authentication: 1, authStatus: 3, authStatusExpert: 3});
72
                $("body").keydown(function () {
73
                    if (event.keyCode == 13) {
74
                        saveBtn.click();
75
                    }
76
                })
72 77
            }
73 78
        }
74 79
    });

+ 8 - 0
js/static.js

@ -292,6 +292,14 @@
292 292
            code: "2", caption: "女", enabled: true
293 293
        }]);
294 294
295
        dict.set("demandSource", [{
296
            code: "ekexiuWeb", caption: "ekexiuWeb", enabled: true
297
        },{
298
            code: "ekexiuApp", caption: "ekexiuApp", enabled: true
299
        },{
300
            code: "xttjpt", caption: "xttjpt", enabled: true
301
        }]);
302
295 303
    });
296 304
297 305
})();