Blame view

src/views/user/userlist.vue 41.1 KB
b89c8760   wangming   项目初始化
1
  <template>
f48efd0b   wangming   志哥欠我四批红牛了
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
  	<div class="app-container" style="clear: both;">
  
  		<div class="seetingsDiv" style="">
  			<div class="flex" style="width: 85%">
  				<el-form :inline="true" class="demo-form-inline">
  					<el-form-item label="关键字">
  						<el-input placeholder="输入关键字搜索" v-model="query.keyword"></el-input>
  					</el-form-item>
  					<el-form-item label="最高学历">
  						<el-select v-model="query.xueli" placeholder="最高学历">
  							<el-option label="大专" value="shanghai"></el-option>
  							<el-option label="本科" value="beijing"></el-option>
  						</el-select>
  					</el-form-item>
  
  					<el-form-item label="性别">
  						<el-select v-model="query.sex" placeholder="性别">
  							<el-option label="男" value="1"></el-option>
  							<el-option label="女" value="0"></el-option>
  						</el-select>
  					</el-form-item>
  					<el-form-item label="面试进度">
  						<el-select v-model="query.process" placeholder="进度">
  							<el-option label="全部" value="-1"></el-option>
  							<el-option v-for="item in processlist" :key="item.value" :label="item.label"
  								:value="item.value">
  							</el-option>
  						</el-select>
  					</el-form-item>
  
  					<el-form-item label="推荐指数">
  						<el-rate v-model="query.stars" text-color="#ff9900" style="margin-top:10px;" show-score
  							:allow-half="true" :max="7" :score-template="query.stars <0?'无':query.stars+' 星' ">
  						</el-rate>
  					</el-form-item>
  
  
  					<el-form-item>
  						<el-button type="success" @click="search">搜索</el-button>
6963d762   周超   拉取志哥最新的
41
42
43
  						<el-button type="success" @click="handleEdit(-1)">添加</el-button>
  						<el-button type="danger" @click="handleChangeCat">批量修改分类</el-button>
  						<el-button type="success" @click="resetSearch">重置</el-button>
f48efd0b   wangming   志哥欠我四批红牛了
44
45
46
47
48
49
50
51
52
  						<el-button type="primary" @click="handleInviteInterview()">邀请面试(线上)</el-button>
  
  						<el-button type="primary" @click="handleCompanyInterview()">邀请面试(现场)</el-button>
  					</el-form-item>
  				</el-form>
  			</div>
  
  			<div class="flex aligin-center">
  				<el-link :href="BASE_URL + '/temp/用户导入模板.xlsx'" target="_blank" type="primary">下载模板</el-link>
6963d762   周超   拉取志哥最新的
53
54
  				<el-upload class="upload-demo"
  					:action="'/api/Account/importUsers?UserClassId='+ (query.userClassId || 0)" multiple :limit="1"
f48efd0b   wangming   志哥欠我四批红牛了
55
56
  					:show-file-list="false" :on-exceed="handleExceed" :on-success="handleSuccess" :file-list="fileList">
  					<el-button size="small" type="primary">导入用户</el-button>
6963d762   周超   拉取志哥最新的
57
  
f48efd0b   wangming   志哥欠我四批红牛了
58
59
60
61
62
  				</el-upload>
  			</div>
  		</div>
  		<el-container style="border: 1px solid #eee">
  			<el-aside width="255px" style="
e6276ef2   yangzhi   超哥牛批
63
64
65
66
            width: 255px;
            background-color: #fff;
            padding: 10px;
            border-right: 1px solid #dcdfe6;
876011a8   周超   给志哥
67
          ">
f48efd0b   wangming   志哥欠我四批红牛了
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
  				<div style="float: left">所属分类</div>
  				<div style="text-align: right">
  					<el-button size="mini" type="primary" icon="el-icon-plus" circle @click="addcat"></el-button>
  					<el-button size="mini" type="warning" icon="el-icon-edit" circle @click="editcat"></el-button>
  					<el-button size="mini" type="danger" icon="el-icon-delete" @click="delcat" circle></el-button>
  				</div>
  				<el-input size="small " placeholder="分类筛选" v-model="filterText"
  					style="margin-bottom: 10px; margin-top: 10px">
  				</el-input>
  				<el-tree :data="data" :props="props" ref="tree" :filter-node-method="filterNode"
  					@node-click="handleNodeClick">
  				</el-tree>
  			</el-aside>
  
  			<el-main>
  				<div class="filter-container">
  					<el-table ref="userList" :data="userList" id="QuestionTable" border style="
e6276ef2   yangzhi   超哥牛批
85
86
87
88
                width: 100%;
                border-radius: 5px;
                box-shadow: 0 0 10px #efefef;
                margin-top: 10px;
876011a8   周超   给志哥
89
              " @selection-change="handleSelectionChange" :stripe="true">
f48efd0b   wangming   志哥欠我四批红牛了
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
  						<el-table-column type="selection" width="55"> </el-table-column>
  						<el-table-column type="index" prop="date" width="50" align="center"></el-table-column>
  						<el-table-column prop="date" label="姓名" width="200">
  							<template slot-scope="scope">
  								<el-tooltip class="item" effect="dark" :content="scope.row.processName"
  									placement="top-start">
  									<span>
  										{{scope.row.fullName || '无' }}
  									</span>
  								</el-tooltip>
  								<el-tag v-if="scope.row.abilityRecommend" size="mini" style="margin-right:5px"
  									type="success">推荐</el-tag>
  								<el-tag v-for="item in scope.row.taglist" size="mini" style="margin-right:5px" closable
  									:disable-transitions="false" @close="handleClose(item,scope.row)">{{item}}</el-tag>
  								<el-tag size="mini" @click="addtag(scope.row)" style="cursor:pointer">+</el-tag>
  								<el-button style="margin-left:10px;" size="mini" type="text"
  									@click="handleToResume(scope.row)">简历分析</el-button>
  							</template>
  						</el-table-column>
  						<el-table-column prop="date" label="系统推荐" width="220px" sortable>
  							<template slot-scope="scope">
  
  								<el-tooltip class="item" effect="dark" :content="scope.row.stars+' 星'"
  									placement="top-start">
  									<el-rate v-model="scope.row.stars" show-score :allow-half="true" :max="7" disabled
  										text-color="#ff9900" size="mini">
  									</el-rate>
  								</el-tooltip>
  
  							</template>
  						</el-table-column>
  						<el-table-column prop="date" label="电话号码" width="100">
  							<template slot-scope="scope">
  								<el-tooltip class="item" effect="dark" :content="scope.row.phone" placement="top-start">
  									<span>{{ scope.row.phone1 }}</span>
  								</el-tooltip>
  							</template>
  						</el-table-column>
  
  						<el-table-column prop="date" label="近期测试">
  							<template slot-scope="{ row }">
f356d795   周超   11
131
132
133
  								<span title="查看面试记录" v-if="row.TestPaperTitle || 1 == 1" @click="handleTestHitory(row)"
  									class="el-icon-star-off"
  									style="font-size:24px;color:#409EFF;cursor:pointer;"></span>
f48efd0b   wangming   志哥欠我四批红牛了
134
135
136
137
138
139
140
141
  								<span>{{ row.TestPaperTitle || "无" }}</span>
  							</template>
  						</el-table-column>
  						<el-table-column prop="processName" label="面试进度">
  
  							<template slot-scope="{ row }">
  
  								<span style="cursor: pointer;
876011a8   周超   给志哥
142
143
                      border-color: #c2e7b0;
                      " @click="processEvent(row)">
f48efd0b   wangming   志哥欠我四批红牛了
144
145
  									{{row.processName}}
  								</span>
876011a8   周超   给志哥
146
  
f48efd0b   wangming   志哥欠我四批红牛了
147
148
  							</template>
  						</el-table-column>
f0b7a6c2   周超   志哥王哥牛批
149
  
f48efd0b   wangming   志哥欠我四批红牛了
150
  						<!-- <el-table-column prop="tags" label="标签" width="166">
876011a8   周超   给志哥
151
152
153
154
155
156
157
  
                <template slot-scope="{ row }">
  
                  <el-tag v-for="item in row.taglist" size="mini" style="margin-right:5px;">{{item}}</el-tag>
  
                </template>
              </el-table-column> -->
f48efd0b   wangming   志哥欠我四批红牛了
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
  						<el-table-column prop="sex" label="性别" sortable>
  							<template slot-scope="scope">
  								<span>{{ scope.row.sex==1?'男':'女' }}</span>
  							</template>
  						</el-table-column>
  						<el-table-column prop="minzu" label="民族" sortable>
  						</el-table-column>
  						<el-table-column prop="zhuanye" label="专业" sortable>
  						</el-table-column>
  						<el-table-column prop="byyx" label="毕业院校" sortable>
  						</el-table-column>
  						<el-table-column prop="xueli" label="最高学历" sortable>
  						</el-table-column>
  
  						<el-table-column prop="addTime" label="录入时间" sortable width="100">
  							<template slot-scope="scope">
  								<el-tooltip class="item" effect="dark" :content=" scope.row.addTime.replace('T',' ')"
  									placement="top-start">
  									<span>{{ scope.row.addTime.split('T')[0] }}</span>
  								</el-tooltip>
  
  							</template>
  						</el-table-column>
  
  						<el-table-column prop="date" label="操作" width="220" fixed="right">
  							<template slot-scope="scope">
  								<el-button type="text" icon="el-icon-edit" @click="handleEdit(scope.row)" circle
  									size="mini" style="margin-left:0px;">编辑</el-button>
  								<el-button type="text" icon="el-icon-user" @click="handleCompanyInterview(scope.row)"
  									circle size="mini" style="margin-left:0px;">邀请面试
  								</el-button>
  								<el-button type="text" icon="el-icon-delete" circle
  									@click="handleDelete(scope.row, scope.$index)" size="mini" style="margin-left:0px;">
  									删除
  								</el-button>
  							</template>
  						</el-table-column>
  					</el-table>
  					<el-pagination background @current-change="currentchange" style="
e6276ef2   yangzhi   超哥牛批
197
198
199
200
                position: static;
                bottom: 3px;
                text-align: center;
                margin-top: 5px;
876011a8   周超   给志哥
201
              " :page-size="this.query.PageSize" layout="total,prev, pager, next" :total="Count">
f48efd0b   wangming   志哥欠我四批红牛了
202
203
204
205
206
207
208
209
210
211
  					</el-pagination>
  				</div>
  			</el-main>
  		</el-container>
  
  		<el-dialog title="邀请面试-试卷选择" :visible.sync="dialogFormVisible">
  			<el-form :model="form">
  				<el-form-item label="试卷">
  					<el-select v-model="form.TestPaperId" placeholder="请选择试卷" style="width: 80%">
  						<el-option :value="item.id" :label="'['+item.id+']'+item.TestPaperTitle"
f981679f   yangzhi   邀请面试(线上)时如果试卷超过有效...
212
213
  							:disabled="testPaperDisabled(item)"
  							:key="item.id"
f48efd0b   wangming   志哥欠我四批红牛了
214
  							v-for="item in testpaperlist">{{
f981679f   yangzhi   邀请面试(线上)时如果试卷超过有效...
215
  							"[" + item.id + "] " + (item.TestPaperTitle || "未命名") + (testPaperDisabled(item)?' (不在有效期)':'')
6963d762   周超   拉取志哥最新的
216
  							}}</el-option>
f48efd0b   wangming   志哥欠我四批红牛了
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
  					</el-select>
  				</el-form-item>
  				<el-form-item label="允许测评次数">
  					<el-input v-model="form.NumberOfAnswers" type="number" placeholder="请输入允许测评次数" style="width: 30%" />
  				</el-form-item>
  			</el-form>
  			<div slot="footer" class="dialog-footer">
  				<el-button @click="dialogFormVisible = false">取 消</el-button>
  				<el-button type="primary" @click="handleShareSend">确认发送</el-button>
  			</div>
  		</el-dialog>
  
  		<el-dialog title="测试历史记录" :visible.sync="dialogTableVisible" @close="gridData = []" height="800" width="80%">
  			<el-table :data="gridData" height="400">
  				<el-table-column property="TestPaperTitle" label="试卷" sortable></el-table-column>
  				<el-table-column property="AnswerTime" label="测试时间" width="180" sortable>
  					<template slot-scope="scope">
  						<span>{{ scope.row.AnswerTime.replace("T", " ") }}</span>
  					</template>
  				</el-table-column>
  				<el-table-column property="StartTime" label="开始时间" width="180" sortable>
  					<template slot-scope="scope">
  						<span>{{ scope.row.StartTime.replace("T", " ") }}</span>
  					</template>
  				</el-table-column>
  				<el-table-column property="address" label="结束时间" width="180" sortable>
  					<template slot-scope="scope">
  						<span>{{ scope.row.EndTime.replace("T", " ") }}</span>
  					</template>
  				</el-table-column>
  				<el-table-column property="Achievement" label="成绩" sortable></el-table-column>
  				<el-table-column label="操作">
  					<template slot-scope="scope">
3ed08fe3   周超   欲盖弥彰
250
251
  						<el-button type="success" :disabled="scope.row.IsOver || scope.row.AnswerId  <=0" @click="handleWatchLive(scope.row)">观看直播</el-button>
  						<el-button type="primary" :disabled="!scope.row.IsOver" @click="handleAnswerDetail(scope.row)">答题详情</el-button>
f48efd0b   wangming   志哥欠我四批红牛了
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
  					</template>
  				</el-table-column>
  			</el-table>
  
  			<div style="text-align: right; margin-top: 20px">
  				<el-button type="primary" @click="dialogTableVisible = false">
  					确定
  				</el-button>
  			</div>
  		</el-dialog>
  
  		<el-dialog :visible.sync="dialogVisiblecat" :title="dialogTypecat === 'update' ? '修改' : '新增'" width="455px">
  			<el-form ref="dataForm" :model="temp" label-width="120px" label-position="right">
  				<el-form-item label="分类名称">
  					<el-input v-model="temp.ClassTitle" placeholder="请输入名称" />
  				</el-form-item>
  			</el-form>
  			<div style="text-align: right">
  				<el-button type="danger" @click="dialogVisiblecat = false">
  					取消
  				</el-button>
  				<el-button type="primary" @click="submitcat" :disabled="loading">
  					确定
  				</el-button>
  			</div>
  		</el-dialog>
  
c5b61549   周超   111
279
  		<el-dialog title="人才用户信息" :visible.sync="dialogClassIVIsible" width="80%">
f48efd0b   wangming   志哥欠我四批红牛了
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
  			<el-form ref="adminUserInfo" label-width="120px">
  				<el-form-item class="el-form-itemByWang" label="名称" prop="fullName">
  					<el-input v-model="adminUserInfo.fullName" placeholder="请输入姓名" style="width: 70%"></el-input>
  				</el-form-item>
  				<el-form-item class="el-form-itemByWang" label="电话号码">
  					<el-input v-model="adminUserInfo.phone" placeholder="请输入电话号码" style="width: 70%" maxlength="11">
  					</el-input>
  				</el-form-item>
  				<el-form-item class="el-form-itemByWang" label="最高学历">
  					<el-select v-model="adminUserInfo.xueli" placeholder="最高学历">
  						<el-option label="大专" value="大专"></el-option>
  						<el-option label="本科" value="本科"></el-option>
  						<el-option label="博士" value="博士"></el-option>
  						<el-option label="博士后" value="博士后"></el-option>
  					</el-select>
  				</el-form-item>
  
  				<el-form-item label="民族" class="el-form-itemByWang">
  					<el-select v-model="adminUserInfo.minzu" placeholder="民族">
  						<el-option v-for="item in mzlist" :label="item" :value="item"></el-option>
  					</el-select>
  				</el-form-item>
  				<el-form-item label="性别" class="el-form-itemByWang">
  					<el-select v-model="adminUserInfo.sex" placeholder="性别">
  						<el-option label="男" value="1"></el-option>
  						<el-option label="女" value="0"></el-option>
  					</el-select>
  				</el-form-item>
  				<el-form-item label="专业" prop="username" class="el-form-itemByWang">
  					<el-input v-model="adminUserInfo.zhuanye" placeholder="请输入专业" style="width: 70%"></el-input>
  				</el-form-item>
  				<el-form-item label="毕业院校" class="el-form-itemByWang" prop="username">
  					<el-input v-model="adminUserInfo.byyx" placeholder="请输入毕业院校" style="width: 70%"></el-input>
  				</el-form-item>
  				<el-form-item label="系统推荐" class="el-form-itemByWang" prop="stars">
  					<el-rate style="width: 70%" v-model="adminUserInfo.stars" show-score :allow-half="true" :max="7"
  						:texts="['0星', '半星', '1星', '1星半', '2星', '2星半', '3星', '2星半', '4星', '4星半', '5星', '5星半', '6星', '6星半', '7星']"
  						show-text :score-template="adminUserInfo.stars+' 星'">
  					</el-rate>
  				</el-form-item>
  				<el-form-item label="面试进度" class="el-form-itemByWang">
  					<el-select v-model="adminUserInfo.process" placeholder="进度">
  						<el-option v-for="item in processlist" :key="item.value" :label="item.label"
  							:value="item.value">
  						</el-option>
  					</el-select>
  				</el-form-item>
  				<el-form-item label="身份证ID" class="el-form-itemByWang" prop="IDNumber">
  					<el-input v-model="adminUserInfo.IDNumber" placeholder="请输入身份证ID" style="width: 70%"></el-input>
  				</el-form-item>
  				<el-form-item label="婚否" class="el-form-itemByWang" prop="Marriage">
  					<el-input v-model="adminUserInfo.Marriage" placeholder="请输入婚否" style="width: 70%"></el-input>
  				</el-form-item>
  				<el-form-item label="政治面貌" class="el-form-itemByWang" prop="PoliticalOutlook">
  					<el-input v-model="adminUserInfo.PoliticalOutlook" placeholder="请输入政治面貌" style="width: 70%">
  					</el-input>
  				</el-form-item>
  				<el-form-item label="身高" class="el-form-itemByWang" prop="Height">
  					<el-input v-model="adminUserInfo.Height" placeholder="请输入身高" style="width: 70%"></el-input>
  				</el-form-item>
  				<el-form-item label="体重" class="el-form-itemByWang" prop="Weight">
  					<el-input v-model="adminUserInfo.Weight" placeholder="请输入体重" style="width: 70%"></el-input>
  				</el-form-item>
  				<el-form-item label="毕业专业" class="el-form-itemByWang" prop="GraduationMajor">
6963d762   周超   拉取志哥最新的
344
345
  					<el-input v-model="adminUserInfo.GraduationMajor" placeholder="请输入毕业专业" style="width: 70%">
  					</el-input>
f48efd0b   wangming   志哥欠我四批红牛了
346
347
348
349
350
351
352
353
354
355
356
357
358
  				</el-form-item>
  				<el-form-item label="毕业院校" class="el-form-itemByWang" prop="GraduationSchool">
  					<el-input v-model="adminUserInfo.GraduationSchool" placeholder="请输入毕业院校" style="width: 70%">
  					</el-input>
  				</el-form-item>
  				<el-form-item label="学历" class="el-form-itemByWang" prop="Education">
  					<el-input v-model="adminUserInfo.Education" placeholder="请输入学历" style="width: 70%"></el-input>
  				</el-form-item>
  				<el-form-item label="外语水平及分数" class="el-form-itemByWang" prop="ForeignLanguageLevel">
  					<el-input v-model="adminUserInfo.ForeignLanguageLevel" placeholder="请输入外语水平及分数" style="width: 70%">
  					</el-input>
  				</el-form-item>
  				<el-form-item label="毕业时间" class="el-form-itemByWang" prop="GraduationTime">
6963d762   周超   拉取志哥最新的
359
360
  					<el-input v-model="adminUserInfo.GraduationTime" placeholder="请输入毕业时间" style="width: 70%">
  					</el-input>
f48efd0b   wangming   志哥欠我四批红牛了
361
362
  				</el-form-item>
  				<el-form-item label="计算机等级" class="el-form-itemByWang" prop="ComputerGrade">
6963d762   周超   拉取志哥最新的
363
364
  					<el-input v-model="adminUserInfo.ComputerGrade" placeholder="请输入计算机等级" style="width: 70%">
  					</el-input>
f48efd0b   wangming   志哥欠我四批红牛了
365
366
367
368
369
370
371
372
  				</el-form-item>
  				<el-form-item label="血型" class="el-form-itemByWang" prop="BloodType">
  					<el-input v-model="adminUserInfo.BloodType" placeholder="请输入血型" style="width: 70%"></el-input>
  				</el-form-item>
  				<el-form-item label="资格证书" class="el-form-itemByWang" prop="Qualification">
  					<el-input v-model="adminUserInfo.Qualification" placeholder="请输入资格证书" style="width: 70%"></el-input>
  				</el-form-item>
  				<el-form-item label="就业意向城市" class="el-form-itemByWang" prop="IntendedCity">
6963d762   周超   拉取志哥最新的
373
374
  					<el-input v-model="adminUserInfo.IntendedCity" placeholder="请输入就业意向城市" style="width: 70%">
  					</el-input>
f48efd0b   wangming   志哥欠我四批红牛了
375
376
377
378
379
  				</el-form-item>
  				<el-form-item label="户籍所在地" class="el-form-itemByWang" prop="RegisteredResidence">
  					<el-input v-model="adminUserInfo.RegisteredResidence" placeholder="请输入户籍所在地" style="width: 70%">
  					</el-input>
  				</el-form-item>
f356d795   周超   11
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
  
  		 
   
  			 
  				  
   
  				<el-form-item label="技能优势" prop="skillAdvantages" style="width:100%;clear:both"> 
  					<el-card class="box-card" v-for="(saitem,index) in adminUserInfo.skillAdvantages" >
  				
  						<el-row  style="margin-bottom:0px;display:flex;justify-content: space-between;">
  							<el-col style="width:20px">
  								<el-tag size="mini"  effect="plain"  >{{index+1}}.</el-tag>
  							</el-col>
  							<el-col :span="10"  >
  								<el-input v-model="saitem.title" placeholder="技能名称"  >
  								</el-input>
  							</el-col>
  							<el-col :span="11"  >
  								<el-input v-model="saitem.desc" placeholder="技能描述"></el-input>
  							</el-col>
  	
  						 
  							<el-button @click.prevent="removeInfo('skillAdvantages',saitem)"
  							style="margin-left:10px;">删除</el-button>
  							<el-button v-if="index == (adminUserInfo.skillAdvantages.length-1)" @click="addInfo('skillAdvantages')">新增</el-button>
  							
  					
  						</el-row>
  
  
  					  </el-card>
  				
   
  				</el-form-item>
  
  
  				<el-form-item label="教育经历" prop="RegisteredResidence" style="width:100%">
  					<el-card class="box-card" v-for="(saitem,index) in adminUserInfo.educationalExperience" >
  						 
  						<el-row  style="margin-bottom:0px;display:flex;justify-content: space-between;">
  							<el-col style="width:20px">
  								<el-tag size="mini"  effect="plain"  >{{index+1}}.</el-tag>
  							</el-col>
  							<el-col :span="6"  >
  								<el-input v-model="saitem.school" placeholder="学校" >
  								</el-input>
  							</el-col>
  							<el-col :span="5"  >
  								<el-input v-model="saitem.date" placeholder="时间"></el-input>
  							</el-col>
  	
  							<el-col :span="4"  >
  								<el-input v-model="saitem.major" placeholder="专业"></el-input>
  							</el-col>
  	
  							<el-col :span="6"  >
  								<el-input v-model="saitem.degree" placeholder="学历"></el-input>
  							</el-col>
  	 
  							<el-button @click.prevent="removeInfo('educationalExperience',saitem)"
  							style="margin-left:10px;">删除</el-button>
  							<el-button v-if="index == (adminUserInfo.educationalExperience.length-1)" @click="addInfo('educationalExperience')">新增</el-button>
  							
  					
  						</el-row>
  
  
  					  </el-card>
  				
   
  				</el-form-item>
  	 
  
  				<el-form-item label="工作经历" prop="RegisteredResidence" style="width:100%">
  					<el-card class="box-card"v-for="(saitem,index) in adminUserInfo.workExperience"  >
  						
  					<el-row style="margin-bottom:0px;display:flex;justify-content: space-between;">
  						<el-col style="width:20px">
  							<el-tag size="mini"  effect="plain"  >{{index+1}}.</el-tag>
  						</el-col>
  						<el-col :span="5" class="padding">
  							<el-input v-model="saitem.company" placeholder="公司">
  							</el-input>
  						</el-col>
  						<el-col :span="5">
  							<el-input v-model="saitem.position" placeholder="岗位"></el-input>
  						</el-col>
  						<el-col :span="5">
  							<el-input v-model="saitem.date" placeholder="时间"></el-input>
  						</el-col>
  				 
  						<el-col :span="5">
  							<el-input v-model="saitem.desc" placeholder="概述"></el-input>
  						</el-col>
  						<el-button @click.prevent="removeInfo('workExperience',saitem)">删除</el-button>
  						<el-button v-if="index == (adminUserInfo.workExperience.length-1)" @click="addInfo('workExperience')">新增</el-button>
  						
  					</el-row>
  					</el-card>
  				</el-form-item>
  
  
f48efd0b   wangming   志哥欠我四批红牛了
482
  				<!-- <el-form-item label="密码" prop="password" >
f0b7a6c2   周超   志哥王哥牛批
483
484
            <el-input v-model="adminUserInfo.password " placeholder="请输入密码 不填默认不修改" show-password style="width: 40%;"></el-input>
          </el-form-item> -->
f48efd0b   wangming   志哥欠我四批红牛了
485
486
487
488
489
  				<div style="clear: both;"></div>
  				<div style="text-align: right;">
  					<el-button @click="dialogClassIVIsible = false">取消</el-button>
  					<el-button type="primary" @click="submitForm('adminUserInfo')">提交</el-button>
  				</div>
f48efd0b   wangming   志哥欠我四批红牛了
490
491
492
493
494
495
  			</el-form>
  
  			<div style="clear: both"></div>
  		</el-dialog>
  
  
6963d762   周超   拉取志哥最新的
496
497
  		<el-dialog title="邀请线下面试" :visible.sync="dialogCompany">
  			<el-form ref="dynamicValidateForm" :rules="rules" label-width="100px" class="demo-dynamic">
8c2dc865   yangzhi   超哥牛批
498
  				<div v-for="(user, index) in sendUserList" :key="index" style="margin-bottom:20px;padding:10px;border:1px solid #f1f1f1;border-radius: 10rpx;box-shadow: 0 0 10px rgba(0,0,0,.1);">
f48efd0b   wangming   志哥欠我四批红牛了
499
500
501
502
503
504
505
506
507
508
509
510
  
  					<el-descriptions class="margin-top" :title="(index+1)" :column="2" border>
  						<template slot="extra">
  							<el-button type="primary" size="small" @click="removeSendUser(user)"> <i
  									class="el-icon-delete"></i>移除
  							</el-button>
  						</template>
  						<el-descriptions-item>
  							<template slot="label">
  								<i class="el-icon-user"></i>
  								姓名
  							</template>
8c2dc865   yangzhi   超哥牛批
511
512
513
514
  							<div style="display:flex;align-items:center;margin-bottom: 10px;">
  								<span>{{user.fullName || ''}}</span>
  								<span>(手机号:{{user.phone}})</span>
  								<el-rate v-model="user.stars || 0" disabled show-score text-color="#ff9900">
f48efd0b   wangming   志哥欠我四批红牛了
515
  							</el-rate>
8c2dc865   yangzhi   超哥牛批
516
  							</div>
f48efd0b   wangming   志哥欠我四批红牛了
517
518
519
  						</el-descriptions-item>
  						<el-descriptions-item>
  							<template slot="label">
6963d762   周超   拉取志哥最新的
520
  								<label style="color:#F56C6C">*</label> 面试时间范围
f48efd0b   wangming   志哥欠我四批红牛了
521
  							</template>
f48efd0b   wangming   志哥欠我四批红牛了
522
523
524
  							<el-date-picker v-model="user.startTime" type="datetime" placeholder="选择日期时间"
  								:picker-options="pickerOptions">
  							</el-date-picker>
6963d762   周超   拉取志哥最新的
525
  
f48efd0b   wangming   志哥欠我四批红牛了
526
527
528
529
530
  						</el-descriptions-item>
  						<el-descriptions-item>
  							<template slot="label">
  								消息内容
  							</template>
8c2dc865   yangzhi   超哥牛批
531
  							<el-input v-model="user.msgBody" placeholder="请输入公司地址" style="margin-top:10px;">
f48efd0b   wangming   志哥欠我四批红牛了
532
533
534
535
  
  							</el-input>
  
  						</el-descriptions-item>
8c2dc865   yangzhi   超哥牛批
536
  						<!-- <el-descriptions-item>
f48efd0b   wangming   志哥欠我四批红牛了
537
538
539
540
541
542
543
544
  							<template slot="label">
  
  								备注
  							</template>
  							<el-input v-model="user.remark" type="textarea">
  
  							</el-input>
  
8c2dc865   yangzhi   超哥牛批
545
  						</el-descriptions-item> -->
f48efd0b   wangming   志哥欠我四批红牛了
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
  					</el-descriptions>
  				</div>
  
  			</el-form>
  
  			<div slot="footer" class="dialog-footer">
  				<el-button @click="dialogCompany = false">取 消</el-button>
  				<el-button type="primary" @click="SubmitSendUser">确 定</el-button>
  			</div>
  		</el-dialog>
  		<el-dialog title="新增标签" :visible.sync="dialogFormVisibleTag" width="355px">
  			<el-form>
  				<el-form-item label="标签">
  					<el-input v-model="tagform.name" autocomplete="off"></el-input>
  				</el-form-item>
  
  			</el-form>
  			<div slot="footer" class="dialog-footer">
  				<el-button @click="dialogFormVisibleTag = false">取 消</el-button>
  				<el-button type="primary" @click="handleTagConfirm">确 定</el-button>
  			</div>
  		</el-dialog>
  
6963d762   周超   拉取志哥最新的
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
  		<el-dialog title="批量设置分类" :visible.sync="dialogsubjectlVisibleSetCat" @close="closeDialogCat" width="800px"
  			:close-on-click-modal="false">
  			<el-form ref="Dataform" :model="Dataform" label-width="60px">
  
  				<el-form-item label="分类" style="padding-top: 5px">
  					<el-select v-model="QuestionClassId" placeholder="请选择">
  						<el-option :key="0" :value="0" label="请选择"></el-option>
  						<el-option v-for="item in data" :key="item.id" :label="item.ClassTitle" :value="item.id"
  							v-if="item.id !=0">
  						</el-option>
  					</el-select>
  				</el-form-item>
  
  			</el-form>
  			<el-button @click="handleSetClass" style="margin: 10px 0 0 0; float: right" type="primary">确定
  			</el-button>
  			<div style="clear: both"></div>
  		</el-dialog>
f48efd0b   wangming   志哥欠我四批红牛了
587
588
  
  	</div>
b89c8760   wangming   项目初始化
589
590
591
  </template>
  
  <script>
f48efd0b   wangming   志哥欠我四批红牛了
592
593
594
595
  	import {
  		ImportUserByExcel,
  		GetUserList,
  		UsersUpdate,
6963d762   周超   拉取志哥最新的
596
  		UsersCreate,
f48efd0b   wangming   志哥欠我四批红牛了
597
598
599
600
  		AddInvitationAnswerMultiple,
  		AddInvitationCompanyMultiple,
  		UsersDelete,
  		ChangeTags,
6963d762   周超   拉取志哥最新的
601
602
  		SelectPhoneBool,
  		ChangeClass
f48efd0b   wangming   志哥欠我四批红牛了
603
  	} from "@/api/user";
f48efd0b   wangming   志哥欠我四批红牛了
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
  	import {
  		GetUserClassList,
  		UserClassCreate,
  		UserClassUpdate,
  		UserClassDelete,
  	} from "@/api/userclass";
  	import {
  		GetHistoryList
  	} from "@/api/HistoryAnswer";
  
  	import {
  		getTestPaperList
  	} from "@/api/TestPaper";
  	import {
  		formatTime
  	} from '@/utils/util.js'
  	export default {
  		data() {
  			return {
  				pickerOptions: {
  					disabledDate(time) {
  						return time.getTime() < Date.now() - 8.64e7;
  					}
  				},
6963d762   周超   拉取志哥最新的
628
629
  				QuestionClassId: 0,
  				dialogsubjectlVisibleSetCat: false,
f48efd0b   wangming   志哥欠我四批红牛了
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
  				loading: false,
  				dialogFormVisible: false,
  				dialogTableVisible: false,
  				dialogFormVisibleTag: false,
  				dialogCompany: false,
  				dialogTypecat: "create",
  				testpaperlist: [],
  				tagform: {},
  				form: {
  					NumberOfAnswers: 3,
  				},
  				userList: [],
  				data: [],
  				dialogVisiblecat: false,
  				filterText: "",
  				gridData: [],
f356d795   周超   11
646
  				Dataform:{},
f48efd0b   wangming   志哥欠我四批红牛了
647
  				Count: 0,
f356d795   周超   11
648
649
650
651
652
  				adminUserInfo: {
  					skillAdvantages: [{}],//  技能优势
  					workExperience: [{}],// 工作经历
  					educationalExperience: [{}],// 教育经历
  				},
f48efd0b   wangming   志哥欠我四批红牛了
653
654
655
  				temp: {
  					ParentId: 0,
  				},
6963d762   周超   拉取志哥最新的
656
657
658
659
660
661
662
  				rules: {
  					startTime: [
  						{ type: 'date', required: true, message: '请选择日期', trigger: 'change' }
  					],
  
  				}
  				,
f48efd0b   wangming   志哥欠我四批红牛了
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
  				mzlist: [
  					"汉族",
  					"蒙古族 ",
  					"羌族 ",
  					"僳僳族 ",
  					"哈尼族",
  					"回族",
  					"布朗族",
  					"佤族",
  					"哈萨克族",
  					"藏族",
  					"撒拉族",
  					"畲族",
  					"傣族",
  					"维吾尔族",
  					"毛南族",
  					"高山族",
  					"德昂族",
  					"苗族",
  					"仡佬族",
  					"拉祜族",
  					"保安族",
  					"彝族",
  					"锡伯族",
  					"水族",
  					"裕固族",
  					"壮族",
  					"阿昌族",
  					"东乡族",
  					"京族",
  					"布依族",
  					"普米族",
  					"纳西族",
  					"独龙族",
  					"朝鲜族",
  					"塔吉克族",
  					"景颇族",
  					"鄂伦春族",
  					"满族",
  					"怒族",
  					"柯尔克孜族",
  					"赫哲族",
  					"侗族",
  					"乌孜别克族",
  					"土族",
  					"门巴族",
  					"瑶族",
  					"俄罗斯族",
  					"达斡尔族",
  					"珞巴族",
  					"白族",
  					"鄂温克族",
  					"塔塔尔族",
  					"基诺族",
  				],
  				processlist: [{
6963d762   周超   拉取志哥最新的
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
  					label: '入库',
  					value: 0
  				},
  				{
  					label: '面试邀请',
  					value: 1
  				},
  				{
  					label: '正在面试',
  					value: 2
  				},
  				{
  					label: '面试完成',
  					value: 3
  				},
  				{
  					label: '线下面试',
  					value: 4
  				},
  				{
  					label: '已录用',
  					value: 5
  				},
  				{
  					label: '未录用',
  					value: 9
  				},
  				{
eb117b73   yangzhi   禁用改成不符合条件
747
  					label: '不符合条件',
6963d762   周超   拉取志哥最新的
748
749
  					value: 11
  				},
f48efd0b   wangming   志哥欠我四批红牛了
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
  				],
  				type: "1",
  				dialogClassIVIsible: false,
  				query: {
  					UserTypeEnum: 1, //0:管理员,1普通用户
  					PageIndex: 1,
  					PageSize: 10,
  					keyword: "",
  					stars: -1
  				},
  				fileList: [],
  				selectedList: [],
  				props: {
  					label: "ClassTitle",
  					children: "children",
  				},
  
  				sendUserList: []
  			};
  		},
f981679f   yangzhi   邀请面试(线上)时如果试卷超过有效...
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
  		computed:{
  			testPaperDisabled(){
  				return (item)=>{
  					try {
  						let startTime = new Date(item.EffectiveStartTime);
  						let endTime = new Date(item.EffectiveEndTime);
  						let now = new Date();
  						return startTime>now || endTime<now;
  					} catch (error) {
  						console.log('error',error);
  						return false;
  					}
  				}
  			}
  		},
f48efd0b   wangming   志哥欠我四批红牛了
785
786
787
788
789
790
791
  		watch: {
  			filterText(val) {
  				this.$refs.tree.filter(val);
  			},
  		},
  
  		created() {
64ef8e7e   yangzhi   首页右侧的侧边栏箭头按钮不可点击
792
793
794
795
796
797
798
799
800
801
  			let query = this.$route.query;
  			let process = query && query.process;
  			if(process){
  				try {
  					let processVal = this.processlist.find(t=>t.label == process).value;
  					this.query.process = processVal;
  				} catch (error) {
  					
  				}
  			}
f48efd0b   wangming   志哥欠我四批红牛了
802
803
804
  			this.GetUser();
  			this.forceTestPaper();
  			this.loadTree();
64ef8e7e   yangzhi   首页右侧的侧边栏箭头按钮不可点击
805
  
f48efd0b   wangming   志哥欠我四批红牛了
806
807
  		},
  		methods: {
f356d795   周超   11
808
809
810
811
812
813
814
815
816
  			removeInfo(type, item) {
  				var index = this.adminUserInfo[type].indexOf(item)
  				if (index !== -1) {
  					this.adminUserInfo[type].splice(index, 1)
  				}
  			},
  			addInfo(type) {
  				this.adminUserInfo[type].push({});
  			},
6963d762   周超   拉取志哥最新的
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
  			handleChangeCat() {
  				var rows = this.$refs.userList.selection;
  				if (!rows || rows.length < 1) {
  					this.$message.warning('至少选择一项进行操作!');
  					return;
  				}
  				this.dialogsubjectlVisibleSetCat = true;
  			},
  
  			closeDialogCat() {
  				this.QuestionClassId = 0;
  				this.dialogsubjectlVisibleSetCat = false;
  			},
  			handleSetClass() {
  				var rows = this.$refs.userList.selection;
  				if (!this.QuestionClassId || this.QuestionClassId < 1) {
  					this.$message.warning('至少选择一个分类进行操作!');
  					return;
  				}
  				this.$confirm("确认批量修改分类吗?", "提示", {
  					confirmButtonText: "确定",
  					cancelButtonText: "取消",
  					type: "warning",
  				}).then(() => {
  					ChangeClass(rows.map(o => o.id).join(','), this.QuestionClassId).then((o) => {
  						this.$message.success("修改成功");
  						this.GetUser();
  						this.dialogsubjectlVisibleSetCat = false;
  					});
  				});
  			},
f48efd0b   wangming   志哥欠我四批红牛了
848
849
  			handleToResume(item) {
  				window.open(
12260143   yangzhi   超哥说得对
850
  					`${location.origin}${location.pathname}#/resume/${item.sex == 1 ? 'malestaff' : 'femalestaff'}?id=${item.id}`,
f48efd0b   wangming   志哥欠我四批红牛了
851
852
853
  					'_blank');
  			},
  			handleClose(tag, row) {
f48efd0b   wangming   志哥欠我四批红牛了
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
  				this.$confirm('确定删除该标签吗?', '消息', {
  					confirmButtonText: '确认',
  					cancelButtonText: '取消',
  					callback: (action) => {
  						if (action == "confirm") {
  							var d = row.taglist.splice(row.taglist.indexOf(tag), 1);
  							ChangeTags({
  								ids: row.id,
  								tags: row.taglist.join(',')
  							});
  						}
  					},
  				})
  
  
  
  			},
  			addtag(row) {
  				this.tagform = {
  					ids: row.id,
  					taglist: row.taglist,
  					name: ''
  				};
  				this.dialogFormVisibleTag = true;
  			},
  			handleTagConfirm(row) {
  				if (!this.tagform.name) {
  					this.$message.warning('请填写名字!');
  					return;
  				}
  				if (!this.tagform.ids) {
  					this.$message.warning('添加失败!');
  					return;
  				}
  				var temp = this.tagform.taglist || [];
  				temp.push(this.tagform.name);
  				ChangeTags({
  					ids: this.tagform.ids,
  					tags: temp.join(',')
  				}).then(res => {
  					if (res.data.code == 200) {
  						this.$message.success('操作成功!');
  						this.GetUser();
  						this.dialogFormVisibleTag = false;
  						this.$forceUpdate();
  					}
  				});
  			},
  			//点击进度
  			processEvent(row) {
6963d762   周超   拉取志哥最新的
904
  				// if(row.procesName == '线下面试')
f48efd0b   wangming   志哥欠我四批红牛了
905
906
907
908
909
910
911
912
913
  				// {
  				//   this.
  				// }
  			},
  			SubmitSendUser() {
  				if (!this.sendUserList || this.sendUserList.length < 1) {
  					this.$message.success("没有邀请对象!");
  					return;
  				}
6963d762   周超   拉取志哥最新的
914
  				var isrequire = true;
f48efd0b   wangming   志哥欠我四批红牛了
915
916
917
918
919
920
921
922
923
924
925
926
  				var senddata = [];
  				this.sendUserList.forEach(o => {
  					//  var item = Object.assign({},o);
  					// item.startTime = item.date[0];
  					// item.endTime = item.date[0]; 
  					// delete item['date'];
  					// var start = null;
  					// var end = null;
  					// if(o.date){
  					//   start = o.date[0];
  					//   end = o.date[1];
  					// } 
6963d762   周超   拉取志哥最新的
927
  					if (!o.startTime) isrequire = false;
f48efd0b   wangming   志哥欠我四批红牛了
928
929
930
931
932
933
934
935
936
  					senddata.push({
  						userId: o.id,
  						startTime: formatTime(o.startTime),
  						// endTime: end,
  						remark: o.remark || '',
  						phone: o.phone,
  						msgBody: o.msgBody || ''
  					});
  				});
6963d762   周超   拉取志哥最新的
937
938
939
940
941
  				if (!isrequire) {
  					this.$message.warning("请选择面试时间范围!");
  					return;
  				}
  
f48efd0b   wangming   志哥欠我四批红牛了
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
  				AddInvitationCompanyMultiple(senddata).then(res => {
  					if (res.data.code == 200) {
  						this.$message.success("邀请成功");
  						this.sendUserList = [];
  						this.dialogCompany = false;
  						this.GetUser();
  					} else {
  						this.$message.error("邀请失败");
  					}
  
  				});
  			},
  			removeSendUser(item) {
  				var index = this.sendUserList.indexOf(item)
  				if (index !== -1) {
  					this.sendUserList.splice(index, 1)
  				}
  			},
  
  
  			handleDelete(item, index) {
6963d762   周超   拉取志哥最新的
963
964
965
966
967
968
969
970
971
972
  				this.$confirm("确认删除该人才信息吗?", "提示", {
  					confirmButtonText: "确定",
  					cancelButtonText: "取消",
  					type: "warning",
  				}).then(() => {
  
  					this.userList.splice(index, 1);
  					UsersDelete({
  						ids: item.id
  					});
f48efd0b   wangming   志哥欠我四批红牛了
973
  				});
6963d762   周超   拉取志哥最新的
974
975
976
  
  
  
f48efd0b   wangming   志哥欠我四批红牛了
977
978
979
980
981
982
  			},
  			handleWatchLive(item) {
  				console.log("handleWatchLive", item);
  				this.$router.push(`/live?id=${item.StreamName}`);
  			},
  			handleAnswerDetail(item) {
8a0be2f3   yangzhi   回看跳转
983
  				window.open(`/index.html#/answerDetail?id=${item.id}`, "_blank");
f48efd0b   wangming   志哥欠我四批红牛了
984
985
986
987
988
  			},
  			submitForm() {
  				let formData = {
  					...this.adminUserInfo
  				};
f356d795   周超   11
989
990
991
992
993
994
995
996
997
  				if(formData.skillAdvantages) formData.skillAdvantages = JSON.stringify(formData.skillAdvantages);
  				if(formData.workExperience) formData.workExperience = JSON.stringify(formData.workExperience);
  				if(formData.educationalExperience) formData.educationalExperience = JSON.stringify(formData.educationalExperience);
  		 
  
  // 				  技能优势
  //  工作经历
  //  教育经历
  			 
f48efd0b   wangming   志哥欠我四批红牛了
998
999
1000
1001
1002
1003
1004
1005
  				if (formData.id) {
  
  					SelectPhoneBool(formData.id, formData.phone).then(res => {
  						if (res.data == true) {
  							this.$message.error("电话号码已存在!");
  						} else {
  							UsersUpdate(formData).then((res) => {
  								this.GetUser();
6963d762   周超   拉取志哥最新的
1006
1007
  
  								this.dialogClassIVIsible = false;
f48efd0b   wangming   志哥欠我四批红牛了
1008
1009
1010
1011
1012
  								console.log(res);
  							});
  						}
  					});
  				}
6963d762   周超   拉取志哥最新的
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
  				else {
  					UsersCreate(formData).then(res => {
  						if (res.data.success) {
  							this.GetUser();
  							this.$message.success("添加成功");
  
  							this.dialogClassIVIsible = false;
  						}
  						else
  							this.$message.error(res.data.message || "添加失败!");
  
  					});
  				}
f48efd0b   wangming   志哥欠我四批红牛了
1026
1027
  			},
  			handleEdit(data) {
f356d795   周超   11
1028
  				debugger;
f48efd0b   wangming   志哥欠我四批红牛了
1029
  				this.dialogClassIVIsible = true;
c5b61549   周超   111
1030
  				console.log(" -_- ", data);
6963d762   周超   拉取志哥最新的
1031
  				if (data == -1) {
f356d795   周超   11
1032
1033
1034
1035
1036
1037
  					this.adminUserInfo = {
  						userClassId: (this.query.userClassId || 0),
  						skillAdvantages: [{}],//  技能优势
  						workExperience: [{}],// 工作经历
  						educationalExperience: [{}],// 教育经历
  					};
6963d762   周超   拉取志哥最新的
1038
  				}
f356d795   周超   11
1039
1040
1041
1042
1043
1044
1045
1046
  				else {
  					if (!data.skillAdvantages) data.skillAdvantages = [{}];
  					else if(typeof(data.skillAdvantages)=='string')data.skillAdvantages = JSON.parse(data.skillAdvantages);;
  					if (!data.workExperience) data.workExperience = [{}];
  					else if(typeof(data.workExperience)=='string')data.workExperience = JSON.parse(data.workExperience);;
  					if (!data.educationalExperience) data.educationalExperience = [{}];
  					else if(typeof(data.educationalExperience)=='string')data.educationalExperience = JSON.parse(data.educationalExperience);;
  
6963d762   周超   拉取志哥最新的
1047
  					this.adminUserInfo = data;
f356d795   周超   11
1048
1049
1050
  
  				}
  
f48efd0b   wangming   志哥欠我四批红牛了
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
  			},
  			handleTestHitory(row) {
  				GetHistoryList({
  					UserId: row.id
  				}).then((res) => {
  					this.gridData = res.data.data;
  					this.dialogTableVisible = true;
  				});
  			},
  			handleShareSend() {
  				var rows = this.$refs.userList.selection;
  				var ids =
  					rows.map((o) => {
  						return {
  							UserId: o.id
  						};
  					}) || [];
  				var postData = {
  					TestPaperId: this.form.TestPaperId,
  					NumberOfAnswers: this.form.NumberOfAnswers || 1,
  					Users: ids,
  				};
  				if (!ids || ids.length < 1) {
  					this.$message.warning("请至少选择一个用户进行发送!");
  					return;
  				}
  				if (!this.form.TestPaperId) {
  					this.$message.warning("请选择试卷后再发送!");
  					return;
  				}
  				this.$confirm(
  					"确认向选择的" + ids.length + "个用户发送试卷连接进行测试吗?",
  					"提示消息", {
6963d762   周超   拉取志哥最新的
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
  					confirmButtonText: "确认",
  					cancelButtonText: "取消",
  					callback: (action) => {
  						if (action == "confirm") {
  							AddInvitationAnswerMultiple(postData).then((res) => {
  								if (res.data.code == 200) {
  									this.$message.success("发送成功");
  									this.form = {};
  									this.dialogFormVisible = false;
  									this.GetUser();
  								} else {
  									this.$message.error("发送失败");
  								}
  							});
  						}
  					},
  				}
f48efd0b   wangming   志哥欠我四批红牛了
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
  				);
  			},
  			forceTestPaper() {
  				let parameter = {
  					pageIndex: 1,
  					pageSize: 10000,
  					sort: "id",
  					sortOrder: 1,
  					keyword: "",
  				};
  				getTestPaperList(parameter).then((res) => {
  					this.testpaperlist = res.data.data;
  				});
  			},
  			search() {
  				this.GetUser();
  			},
  			handleSuccess() {
  				this.$message.success("导入完成!");
  				this.GetUser();
  			},
  			handleInviteInterview() {
  				var rows = this.$refs.userList.selection;
  
  				if (!rows || rows.length < 1) {
  					this.$message.warning("请至少选择一个用户进行发送!");
  					return;
  				}
  
  				this.dialogFormVisible = true;
  			},
  			//邀请现场面试 
  			handleCompanyInterview(user) {
  				var rows = this.$refs.userList.selection;
  				if (user) {
  					this.sendUserList = [user];
  					this.dialogCompany = true;
  				} else if (rows && rows.length > 0) {
  					this.sendUserList = rows;
  					this.dialogCompany = true;
  				} else
  					this.$message.warning('至少选择一个用户进行操作!');
  			},
  
  			handleSelectionChange(val) {
  				console.log(val);
  				this.selectedList = val;
  			},
6963d762   周超   拉取志哥最新的
1149
1150
  			handleExceed() { },
  			ImportUser() { },
f48efd0b   wangming   志哥欠我四批红牛了
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
  
  			showcontent(c, row) {
  				this.showbody = c;
  				this.dialogVisible_content = true;
  			},
  			submitcat() {
  				// this.$loading({lock:true,text:'保存中...'});
  				if (this.loading) {
  					return;
  				}
  				this.loading = true;
  				var postData = this.temp;
  				if (this.dialogTypecat == "update") {
  					if (postData.AddTime == "0001-01-01T00:00:00")
  						postData.AddTime = new Date();
  					UserClassUpdate(postData).then((o) => {
  						this.$message({
  							message: "提交成功",
  							type: "success",
  						});
  						this.dialogVisiblecat = false;
  						setTimeout(() => {
  							this.loading = false;
  						}, 1000);
  					});
  				} else {
  					UserClassCreate(postData).then((o) => {
  						this.$message({
  							message: "提交成功",
  							type: "success",
  						});
  
  						this.dialogVisiblecat = false;
  
  						this.loadTree();
  						setTimeout(() => {
  							this.loading = false;
  						}, 1000);
d1837e7a   wangming   测试
1189
1190
  					});
  				}
f48efd0b   wangming   志哥欠我四批红牛了
1191
1192
1193
1194
1195
1196
1197
1198
1199
  			},
  			editclose(data) {
  				// this.dialogVisible_step = false;
  				this.fetchData();
  			},
  			loadTree() {
  				GetUserClassList({
  					ParentId: 0
  				}).then((res) => {
6963d762   周超   拉取志哥最新的
1200
1201
1202
1203
1204
  					var list = [{ id: 0, ClassTitle: '全部' }];
  
  					list.push(...res.data.data || []);
  
  					this.data = list;
f48efd0b   wangming   志哥欠我四批红牛了
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
  				});
  			},
  			filterNode(value, data) {
  				if (!value) return true;
  				return data.ClassTitle.indexOf(value) !== -1;
  			},
  			addcat() {
  				this.temp = {
  					AddTime: new Date()
  				};
  				this.dialogVisiblecat = true;
  			},
  			editcat() {
  				this.dialogTypecat = "update";
  				if (!this.temp.id) {
  					this.$message({
  						message: "请选择一个分类进行操作!",
  						type: "warning",
  					});
  					return;
  				}
  				this.dialogVisiblecat = true;
  			},
  			delcat() {
  				if (!this.temp.id) {
  					this.$message({
  						message: "请选择一个分类进行操作!",
  						type: "warning",
  					});
  					return;
  				}
  				this.$confirm("确认删除该分类吗?", "提示", {
  					confirmButtonText: "确定",
  					cancelButtonText: "取消",
  					type: "warning",
  				}).then(() => {
  					UserClassDelete({
  						ids: this.temp.id
  					}).then((o) => {
  						this.loadTree();
  						this.$message({
  							message: "删除成功",
  							type: "success",
  						});
  					});
  				});
  			},
  			handleNodeClick(data, checked, indeterminate) {
  				this.query.userClassId = data.id;
6963d762   周超   拉取志哥最新的
1254
  
f48efd0b   wangming   志哥欠我四批红牛了
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
  				this.temp = data;
  				this.GetUser();
  			},
  
  			resetSearch() {
  				this.query = {
  					UserTypeEnum: 1, //0:管理员,1普通用户
  					PageIndex: 1,
  					PageSize: 10,
  					keyword: "",
  				};
  				this.GetUser();
  			},
  			GetUser() {
  				GetUserList(this.query).then((res) => {
  					this.userList = res.data.data.rows.map((t) => {
  						if (t.phone) {
  							t.phone1 = t.phone.replace(t.phone.substring(3, 7), "****");
  						}
  						return t;
  					});
  					this.Count = res.data.data.total;
  				});
  			},
  			currentchange(page) {
  				this.query.PageIndex = page;
  				this.GetUser();
  			},
  		},
  	};
b89c8760   wangming   项目初始化
1285
1286
  </script>
  
f6d2db76   yangzhi   超哥牛皮皮
1287
  <style lang="scss" scoped>
f48efd0b   wangming   志哥欠我四批红牛了
1288
1289
1290
1291
1292
1293
  	.seetingsDiv {
  		display: flex;
  		align-items: center;
  		width: 100%;
  		padding-top: 10px;
  		padding-left: 10px;
97bf7b2f   yangzhi   样式优化适配不同分辨率
1294
  		min-height: 126px;
f48efd0b   wangming   志哥欠我四批红牛了
1295
1296
1297
1298
1299
1300
  		background: #efefef;
  		line-height: initial !important;
  		border-radius: 5px;
  		box-shadow: 0 0 5px #cdcdcd;
  		justify-content: space-between;
  	}
6963d762   周超   拉取志哥最新的
1301
  
f48efd0b   wangming   志哥欠我四批红牛了
1302
1303
1304
1305
1306
1307
1308
1309
1310
  	.seetingsDiv button {
  		height: 40px;
  		background-color: #304156;
  		border: 0px;
  		margin-left: 10px;
  		box-shadow: 0 0 5px #cdcdcd;
  		float: none;
  		margin-right: 10px;
  	}
6963d762   周超   拉取志哥最新的
1311
  
f48efd0b   wangming   志哥欠我四批红牛了
1312
1313
1314
  	.el-tag+.el-tag {
  		margin-left: 10px;
  	}
6963d762   周超   拉取志哥最新的
1315
  
f48efd0b   wangming   志哥欠我四批红牛了
1316
1317
1318
1319
1320
1321
1322
  	.button-new-tag {
  		margin-left: 10px;
  		height: 32px;
  		line-height: 30px;
  		padding-top: 0;
  		padding-bottom: 0;
  	}
6963d762   周超   拉取志哥最新的
1323
  
f48efd0b   wangming   志哥欠我四批红牛了
1324
1325
1326
1327
1328
  	.input-new-tag {
  		width: 90px;
  		margin-left: 10px;
  		vertical-align: bottom;
  	}
6963d762   周超   拉取志哥最新的
1329
  
f48efd0b   wangming   志哥欠我四批红牛了
1330
1331
1332
1333
  	.el-form-itemByWang {
  		width: 33% !important;
  		float: left !important;
  	}
6963d762   周超   拉取志哥最新的
1334
  </style>