b89c8760
wangming
项目初始化
|
1
|
<template>
|
1de913cf
ren
sdf
|
2
|
<div class="app-container">
|
f6d2db76
yangzhi
超哥牛皮皮
|
3
|
<div class="seetingsDiv" style="">
|
876011a8
周超
给志哥
|
4
|
<div class="flex" style="width: 85%">
|
cac28d75
周超
问卷 用户 维度
|
5
6
|
<el-form :inline="true" class="demo-form-inline">
<el-form-item label="关键字">
|
876011a8
周超
给志哥
|
7
|
<el-input placeholder="输入关键字搜索" v-model="query.keyword"></el-input>
|
cac28d75
周超
问卷 用户 维度
|
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
</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>
|
876011a8
周超
给志哥
|
22
23
24
25
26
27
28
29
30
|
<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="推荐指数">
|
04aebc72
周超
11
|
31
|
<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+' 星' ">
|
876011a8
周超
给志哥
|
32
33
|
</el-rate>
</el-form-item>
|
04aebc72
周超
11
|
34
|
|
cac28d75
周超
问卷 用户 维度
|
35
|
|
cac28d75
周超
问卷 用户 维度
|
36
37
|
<el-form-item>
<el-button type="success" @click="search">搜索</el-button>
|
f0b7a6c2
周超
志哥王哥牛批
|
38
|
<el-button type="success" @click="resetSearch">重置</el-button>
|
876011a8
周超
给志哥
|
39
40
41
|
<el-button type="primary" @click="handleInviteInterview()">邀请面试(线上)</el-button>
<el-button type="primary" @click="handleCompanyInterview()">邀请面试(现场)</el-button>
|
cac28d75
周超
问卷 用户 维度
|
42
43
|
</el-form-item>
</el-form>
|
f6d2db76
yangzhi
超哥牛皮皮
|
44
|
</div>
|
f0b7a6c2
周超
志哥王哥牛批
|
45
|
|
e6276ef2
yangzhi
超哥牛批
|
46
|
<div class="flex aligin-center">
|
876011a8
周超
给志哥
|
47
48
49
|
<el-link :href="BASE_URL + '/temp/用户导入模板.xlsx'" target="_blank" type="primary">下载模板</el-link>
<el-upload class="upload-demo" action="/api/Account/importUsers?UserClassId=0" multiple :limit="1"
:show-file-list="false" :on-exceed="handleExceed" :on-success="handleSuccess" :file-list="fileList">
|
e6276ef2
yangzhi
超哥牛批
|
50
51
52
|
<el-button size="small" type="primary">导入用户</el-button>
</el-upload>
</div>
|
f6d2db76
yangzhi
超哥牛皮皮
|
53
|
</div>
|
e6276ef2
yangzhi
超哥牛批
|
54
|
<el-container style="border: 1px solid #eee">
|
876011a8
周超
给志哥
|
55
|
<el-aside width="255px" style="
|
e6276ef2
yangzhi
超哥牛批
|
56
57
58
59
|
width: 255px;
background-color: #fff;
padding: 10px;
border-right: 1px solid #dcdfe6;
|
876011a8
周超
给志哥
|
60
|
">
|
e6276ef2
yangzhi
超哥牛批
|
61
62
|
<div style="float: left">所属分类</div>
<div style="text-align: right">
|
876011a8
周超
给志哥
|
63
64
65
|
<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>
|
f0b7a6c2
周超
志哥王哥牛批
|
66
|
</div>
|
876011a8
周超
给志哥
|
67
|
<el-input size="small " placeholder="分类筛选" v-model="filterText" style="margin-bottom: 10px; margin-top: 10px">
|
f0b7a6c2
周超
志哥王哥牛批
|
68
|
</el-input>
|
876011a8
周超
给志哥
|
69
|
<el-tree :data="data" :props="props" ref="tree" :filter-node-method="filterNode" @node-click="handleNodeClick">
|
f0b7a6c2
周超
志哥王哥牛批
|
70
|
</el-tree>
|
f0b7a6c2
周超
志哥王哥牛批
|
71
72
73
|
</el-aside>
<el-main>
|
f0b7a6c2
周超
志哥王哥牛批
|
74
|
<div class="filter-container">
|
876011a8
周超
给志哥
|
75
|
<el-table ref="userList" :data="userList" id="QuestionTable" border style="
|
e6276ef2
yangzhi
超哥牛批
|
76
77
78
79
|
width: 100%;
border-radius: 5px;
box-shadow: 0 0 10px #efefef;
margin-top: 10px;
|
876011a8
周超
给志哥
|
80
|
" @selection-change="handleSelectionChange" :stripe="true">
|
f0b7a6c2
周超
志哥王哥牛批
|
81
|
<el-table-column type="selection" width="55"> </el-table-column>
|
876011a8
周超
给志哥
|
82
83
|
<el-table-column type="index" prop="date" width="50" align="center"></el-table-column>
<el-table-column prop="date" label="姓名" width="200">
|
f0b7a6c2
周超
志哥王哥牛批
|
84
|
<template slot-scope="scope">
|
876011a8
周超
给志哥
|
85
86
87
88
89
90
91
92
93
|
<el-tooltip class="item" effect="dark" :content="scope.row.processName" placement="top-start">
<span>
{{scope.row.fullName || '无' }}
</span>
</el-tooltip>
<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>
|
f0b7a6c2
周超
志哥王哥牛批
|
94
95
|
</template>
</el-table-column>
|
04aebc72
周超
11
|
96
|
<el-table-column prop="date" label="系统推荐" width="220px" sortable>
|
45b767f1
yangzhi
超哥加油
|
97
|
<template slot-scope="scope">
|
04aebc72
周超
11
|
98
99
100
101
102
103
|
<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>
|
45b767f1
yangzhi
超哥加油
|
104
105
|
</template>
</el-table-column>
|
876011a8
周超
给志哥
|
106
|
<el-table-column prop="date" label="电话号码" width="100">
|
f0b7a6c2
周超
志哥王哥牛批
|
107
|
<template slot-scope="scope">
|
876011a8
周超
给志哥
|
108
|
<el-tooltip class="item" effect="dark" :content="scope.row.phone" placement="top-start">
|
f0b7a6c2
周超
志哥王哥牛批
|
109
110
111
112
113
114
|
<span>{{ scope.row.phone1 }}</span>
</el-tooltip>
</template>
</el-table-column>
<el-table-column prop="date" label="近期测试">
|
e6276ef2
yangzhi
超哥牛批
|
115
|
<template slot-scope="{ row }">
|
876011a8
周超
给志哥
|
116
117
|
<el-button v-if="row.TestPaperTitle || 1 == 1" type="text" icon="el-icon-star-off"
@click="handleTestHitory(row)"></el-button>
|
e6276ef2
yangzhi
超哥牛批
|
118
|
<span>{{ row.TestPaperTitle || "无" }}</span>
|
f0b7a6c2
周超
志哥王哥牛批
|
119
120
|
</template>
</el-table-column>
|
45b767f1
yangzhi
超哥加油
|
121
|
<el-table-column prop="processName" label="面试进度">
|
876011a8
周超
给志哥
|
122
123
124
125
126
127
128
129
130
|
<template slot-scope="{ row }">
<span style="cursor: pointer;
border-color: #c2e7b0;
" @click="processEvent(row)">
{{row.processName}}
</span>
|
f0b7a6c2
周超
志哥王哥牛批
|
131
132
133
|
</template>
</el-table-column>
|
876011a8
周超
给志哥
|
134
135
136
137
138
139
140
141
142
143
144
145
|
<!-- <el-table-column prop="tags" label="标签" width="166">
<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> -->
<el-table-column prop="sex" label="性别" sortable>
<template slot-scope="scope">
<span>{{ scope.row.sex==1?'男':'女' }}</span>
</template>
|
e6276ef2
yangzhi
超哥牛批
|
146
|
</el-table-column>
|
876011a8
周超
给志哥
|
147
|
<el-table-column prop="minzu" label="民族" sortable>
|
e6276ef2
yangzhi
超哥牛批
|
148
|
</el-table-column>
|
876011a8
周超
给志哥
|
149
|
<el-table-column prop="zhuanye" label="专业" sortable>
|
e6276ef2
yangzhi
超哥牛批
|
150
|
</el-table-column>
|
876011a8
周超
给志哥
|
151
|
<el-table-column prop="byyx" label="毕业院校" sortable>
|
e6276ef2
yangzhi
超哥牛批
|
152
|
</el-table-column>
|
876011a8
周超
给志哥
|
153
|
<el-table-column prop="xueli" label="最高学历" sortable>
|
e6276ef2
yangzhi
超哥牛批
|
154
|
</el-table-column>
|
f0b7a6c2
周超
志哥王哥牛批
|
155
|
|
876011a8
周超
给志哥
|
156
|
<el-table-column prop="addTime" label="录入时间" sortable width="100">
|
f0b7a6c2
周超
志哥王哥牛批
|
157
|
<template slot-scope="scope">
|
876011a8
周超
给志哥
|
158
159
160
161
162
|
<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>
|
f0b7a6c2
周超
志哥王哥牛批
|
163
164
165
|
</template>
</el-table-column>
|
876011a8
周超
给志哥
|
166
|
<el-table-column prop="date" label="操作" width="220" fixed="right">
|
f0b7a6c2
周超
志哥王哥牛批
|
167
|
<template slot-scope="scope">
|
876011a8
周超
给志哥
|
168
169
170
171
172
173
174
175
|
<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>
|
f0b7a6c2
周超
志哥王哥牛批
|
176
177
178
|
</template>
</el-table-column>
</el-table>
|
876011a8
周超
给志哥
|
179
|
<el-pagination background @current-change="currentchange" style="
|
e6276ef2
yangzhi
超哥牛批
|
180
181
182
183
|
position: static;
bottom: 3px;
text-align: center;
margin-top: 5px;
|
876011a8
周超
给志哥
|
184
|
" :page-size="this.query.PageSize" layout="total,prev, pager, next" :total="Count">
|
f0b7a6c2
周超
志哥王哥牛批
|
185
186
|
</el-pagination>
</div>
|
f0b7a6c2
周超
志哥王哥牛批
|
187
|
</el-main>
|
f0b7a6c2
周超
志哥王哥牛批
|
188
189
190
191
192
193
194
195
|
</el-container>
<el-dialog title="邀请面试-试卷选择" :visible.sync="dialogFormVisible">
<el-form :model="form">
<!-- <el-form-item label="活动名称" :label-width="formLabelWidth">
<el-input v-model="form.name" autocomplete="off"></el-input>
</el-form-item> -->
<el-form-item label="试卷">
|
876011a8
周超
给志哥
|
196
|
<el-select v-model="form.TestPaperId" placeholder="请选择试卷" style="width: 80%">
|
e6276ef2
yangzhi
超哥牛批
|
197
198
|
<el-option :value="item.id" v-for="item in testpaperlist">{{
"[" + item.id + "] " + (item.TestPaperTitle || "未命名")
|
876011a8
周超
给志哥
|
199
|
}}</el-option>
|
f0b7a6c2
周超
志哥王哥牛批
|
200
201
|
</el-select>
</el-form-item>
|
e011bf15
周超
我先走一步
|
202
|
<el-form-item label="允许测评次数">
|
876011a8
周超
给志哥
|
203
|
<el-input v-model="form.NumberOfAnswers" type="number" placeholder="请输入允许测评次数" style="width: 30%" />
|
e011bf15
周超
我先走一步
|
204
|
</el-form-item>
|
f0b7a6c2
周超
志哥王哥牛批
|
205
206
207
208
209
210
211
|
</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>
|
876011a8
周超
给志哥
|
212
|
<el-dialog title="测试历史记录" :visible.sync="dialogTableVisible" @close="gridData = []" height="800" width="80%">
|
f0b7a6c2
周超
志哥王哥牛批
|
213
|
<el-table :data="gridData" height="400">
|
876011a8
周超
给志哥
|
214
215
|
<el-table-column property="TestPaperTitle" label="试卷" sortable></el-table-column>
<el-table-column property="AnswerTime" label="测试时间" width="180" sortable>
|
f0b7a6c2
周超
志哥王哥牛批
|
216
217
218
|
<template slot-scope="scope">
<span>{{ scope.row.AnswerTime.replace("T", " ") }}</span>
</template>
|
f0b7a6c2
周超
志哥王哥牛批
|
219
|
</el-table-column>
|
876011a8
周超
给志哥
|
220
|
<el-table-column property="StartTime" label="开始时间" width="180" sortable>
|
f0b7a6c2
周超
志哥王哥牛批
|
221
222
223
224
|
<template slot-scope="scope">
<span>{{ scope.row.StartTime.replace("T", " ") }}</span>
</template>
</el-table-column>
|
876011a8
周超
给志哥
|
225
|
<el-table-column property="address" label="结束时间" width="180" sortable>
|
f0b7a6c2
周超
志哥王哥牛批
|
226
227
228
229
|
<template slot-scope="scope">
<span>{{ scope.row.EndTime.replace("T", " ") }}</span>
</template>
</el-table-column>
|
876011a8
周超
给志哥
|
230
|
<el-table-column property="Achievement" label="成绩" sortable></el-table-column>
|
e6276ef2
yangzhi
超哥牛批
|
231
|
<el-table-column label="操作">
|
1096394b
yangzhi
超哥牛批
|
232
|
<template slot-scope="scope">
|
876011a8
周超
给志哥
|
233
234
|
<el-button type="success" @click="handleWatchLive(scope.row)">观看直播</el-button>
<el-button type="primary" @click="handleAnswerDetail(scope.row)">答题详情</el-button>
|
1096394b
yangzhi
超哥牛批
|
235
236
|
</template>
</el-table-column>
|
f0b7a6c2
周超
志哥王哥牛批
|
237
238
|
</el-table>
|
e6276ef2
yangzhi
超哥牛批
|
239
|
<div style="text-align: right; margin-top: 20px">
|
f0b7a6c2
周超
志哥王哥牛批
|
240
241
242
243
244
245
|
<el-button type="primary" @click="dialogTableVisible = false">
确定
</el-button>
</div>
</el-dialog>
|
876011a8
周超
给志哥
|
246
247
|
<el-dialog :visible.sync="dialogVisiblecat" :title="dialogTypecat === 'update' ? '修改' : '新增'" width="455px">
<el-form ref="dataForm" :model="temp" label-width="120px" label-position="right">
|
f0b7a6c2
周超
志哥王哥牛批
|
248
249
250
|
<el-form-item label="分类名称">
<el-input v-model="temp.ClassTitle" placeholder="请输入名称" />
</el-form-item>
|
f0b7a6c2
周超
志哥王哥牛批
|
251
|
</el-form>
|
e6276ef2
yangzhi
超哥牛批
|
252
|
<div style="text-align: right">
|
f0b7a6c2
周超
志哥王哥牛批
|
253
254
255
|
<el-button type="danger" @click="dialogVisiblecat = false">
取消
</el-button>
|
e011bf15
周超
我先走一步
|
256
|
<el-button type="primary" @click="submitcat" :disabled="loading">
|
f0b7a6c2
周超
志哥王哥牛批
|
257
258
259
260
261
|
确定
</el-button>
</div>
</el-dialog>
|
876011a8
周超
给志哥
|
262
263
|
<el-dialog title="人才用户信息" :visible.sync="dialogClassIVIsible" width="450">
<el-form ref="adminUserInfo" :model="adminUserInfo" label-width="90px" style="margin-left: 40px">
|
f0b7a6c2
周超
志哥王哥牛批
|
264
|
<el-form-item label="名称" prop="fullName">
|
876011a8
周超
给志哥
|
265
|
<el-input v-model="adminUserInfo.fullName" placeholder="请输入姓名" style="width: 40%"></el-input>
|
f0b7a6c2
周超
志哥王哥牛批
|
266
267
|
</el-form-item>
<el-form-item label="电话号码">
|
876011a8
周超
给志哥
|
268
|
<el-input v-model="adminUserInfo.phone" placeholder="请输入电话号码" style="width: 40%" maxlength="11"></el-input>
|
f0b7a6c2
周超
志哥王哥牛批
|
269
270
271
|
</el-form-item>
<el-form-item label="最高学历">
<el-select v-model="adminUserInfo.xueli" placeholder="最高学历">
|
876011a8
周超
给志哥
|
272
273
274
275
|
<el-option label="大专" value="大专"></el-option>
<el-option label="本科" value="本科"></el-option>
<el-option label="博士" value="博士"></el-option>
<el-option label="博士后" value="博士后"></el-option>
|
f0b7a6c2
周超
志哥王哥牛批
|
276
277
278
279
280
|
</el-select>
</el-form-item>
<el-form-item label="民族">
<el-select v-model="adminUserInfo.minzu" placeholder="民族">
|
876011a8
周超
给志哥
|
281
|
<el-option v-for="item in mzlist" :label="item" :value="item"></el-option>
|
f0b7a6c2
周超
志哥王哥牛批
|
282
283
284
285
286
287
288
289
|
</el-select>
</el-form-item>
<el-form-item label="性别">
<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>
|
e6276ef2
yangzhi
超哥牛批
|
290
|
<el-form-item label="专业" style="margin-top: 40px" prop="username">
|
876011a8
周超
给志哥
|
291
|
<el-input v-model="adminUserInfo.zhuanye" placeholder="请输入专业" style="width: 40%"></el-input>
|
f0b7a6c2
周超
志哥王哥牛批
|
292
|
</el-form-item>
|
e6276ef2
yangzhi
超哥牛批
|
293
|
<el-form-item label="毕业院校" style="margin-top: 40px" prop="username">
|
876011a8
周超
给志哥
|
294
|
<el-input v-model="adminUserInfo.byyx" placeholder="请输入毕业院校" style="width: 40%"></el-input>
|
f0b7a6c2
周超
志哥王哥牛批
|
295
|
</el-form-item>
|
45b767f1
yangzhi
超哥加油
|
296
|
<el-form-item label="系统推荐" style="margin-top: 40px" prop="stars">
|
04aebc72
周超
11
|
297
298
299
|
<el-rate style="width: 40%" 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>
|
45b767f1
yangzhi
超哥加油
|
300
|
</el-form-item>
|
876011a8
周超
给志哥
|
301
302
303
304
305
306
|
<el-form-item label="面试进度">
<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>
|
f0b7a6c2
周超
志哥王哥牛批
|
307
308
309
|
<!-- <el-form-item label="密码" prop="password" >
<el-input v-model="adminUserInfo.password " placeholder="请输入密码 不填默认不修改" show-password style="width: 40%;"></el-input>
</el-form-item> -->
|
e6276ef2
yangzhi
超哥牛批
|
310
311
|
<el-form-item style="text-align: right">
<el-button @click="dialogClassIVIsible = false">取消</el-button>
|
876011a8
周超
给志哥
|
312
|
<el-button type="primary" @click="submitForm('adminUserInfo')">提交</el-button>
|
f0b7a6c2
周超
志哥王哥牛批
|
313
314
315
|
</el-form-item>
</el-form>
|
e6276ef2
yangzhi
超哥牛批
|
316
|
<div style="clear: both"></div>
|
f0b7a6c2
周超
志哥王哥牛批
|
317
|
</el-dialog>
|
876011a8
周超
给志哥
|
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
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
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
|
<el-dialog title="邀请公司面试" :visible.sync="dialogCompany">
<el-form ref="dynamicValidateForm" label-width="100px" class="demo-dynamic">
<div v-for="(user, index) in sendUserList">
<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>
{{user.fullName || ''}}
<el-rate v-model="user.stars || 0" disabled show-score text-color="#ff9900">
</el-rate>
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-tickets"></i>
标签
</template>
<el-tag v-for="item in user.taglist" size="mini" style="margin-right:5px" :disable-transitions="false">
{{item}}</el-tag>
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-location-outline"></i>
城市
</template>
-
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-office-building"></i>
联系地址
</template>
{{user.address || ''}}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
<i class="el-icon-mobile-phone"></i>
手机号
</template>
{{user.phone || ''}}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
面试时间范围
</template>
<!-- <el-date-picker v-model="user.date" type="datetimerange" range-separator="至" start-placeholder="开始日期"
end-placeholder="最后日期">
</el-date-picker> -->
<el-date-picker v-model="user.startTime" type="datetime" placeholder="选择日期时间">
</el-date-picker>
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
消息内容
</template>
<el-input v-model="user.msgBody">
</el-input>
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
备注
</template>
<el-input v-model="user.remark" type="textarea">
</el-input>
</el-descriptions-item>
</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>
|
1de913cf
ren
sdf
|
424
|
</div>
|
b89c8760
wangming
项目初始化
|
425
426
427
|
</template>
<script>
|
876011a8
周超
给志哥
|
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
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
|
import {
ImportUserByExcel,
GetUserList,
UsersUpdate,
AddInvitationAnswerMultiple,
AddInvitationCompanyMultiple,
UsersDelete,
ChangeTags
} from "@/api/user";
import {
GetUserClassList,
UserClassCreate,
UserClassUpdate,
UserClassDelete,
} from "@/api/userclass";
import { GetHistoryList } from "@/api/HistoryAnswer";
import { getTestPaperList } from "@/api/TestPaper";
export default {
data() {
return {
loading: false,
dialogFormVisible: false,
dialogTableVisible: false,
dialogFormVisibleTag: false,
dialogCompany: false,
dialogTypecat: "create",
testpaperlist: [],
tagform: {},
form: {
NumberOfAnswers: 3,
},
userList: [],
data: [],
dialogVisiblecat: false,
filterText: "",
gridData: [],
Count: 0,
adminUserInfo: {},
temp: {
ParentId: 0,
},
mzlist: [
"汉族",
"蒙古族 ",
"羌族 ",
"僳僳族 ",
"哈尼族",
"回族",
"布朗族",
"佤族",
"哈萨克族",
"藏族",
"撒拉族",
"畲族",
"傣族",
"维吾尔族",
"毛南族",
"高山族",
"德昂族",
"苗族",
"仡佬族",
"拉祜族",
"保安族",
"彝族",
"锡伯族",
"水族",
"裕固族",
"壮族",
"阿昌族",
"东乡族",
"京族",
"布依族",
"普米族",
"纳西族",
"独龙族",
"朝鲜族",
"塔吉克族",
"景颇族",
"鄂伦春族",
"满族",
"怒族",
"柯尔克孜族",
"赫哲族",
"侗族",
"乌孜别克族",
"土族",
"门巴族",
"瑶族",
"俄罗斯族",
"达斡尔族",
"珞巴族",
"白族",
"鄂温克族",
"塔塔尔族",
"基诺族",
],
processlist: [
{ label: '入库', value: 0 },
{ label: '面试邀请', value: 1 },
{ label: '正在面试', value: 2 },
{ label: '面试完成', value: 3 },
{ label: '公司面试', value: 4 },
{ label: '已录用', value: 5 },
{ label: '未录用', value: 9 },
{ label: '禁用', value: 11 },
],
type: "1",
dialogClassIVIsible: false,
query: {
UserTypeEnum: 1, //0:管理员,1普通用户
PageIndex: 1,
PageSize: 10,
keyword: "",
stars: -1
},
fileList: [],
selectedList: [],
props: {
label: "ClassTitle",
children: "children",
},
sendUserList: []
};
|
e6276ef2
yangzhi
超哥牛批
|
553
|
},
|
876011a8
周超
给志哥
|
554
555
556
557
|
watch: {
filterText(val) {
this.$refs.tree.filter(val);
},
|
e6276ef2
yangzhi
超哥牛批
|
558
|
},
|
876011a8
周超
给志哥
|
559
560
561
562
563
|
created() {
this.GetUser();
this.forceTestPaper();
this.loadTree();
|
e6276ef2
yangzhi
超哥牛批
|
564
|
},
|
876011a8
周超
给志哥
|
565
566
567
568
569
570
571
|
methods: {
handleClose(tag, row) {
this.$confirm('确定删除该标签吗?', '消息', {
confirmButtonText: '确认',
cancelButtonText: '取消',
|
f0b7a6c2
周超
志哥王哥牛批
|
572
573
|
callback: (action) => {
if (action == "confirm") {
|
876011a8
周超
给志哥
|
574
575
576
577
|
var d = row.taglist.splice(row.taglist.indexOf(tag), 1);
ChangeTags({
ids: row.id,
tags: row.taglist.join(',')
|
f0b7a6c2
周超
志哥王哥牛批
|
578
579
580
|
});
}
},
|
876011a8
周超
给志哥
|
581
|
})
|
45b767f1
yangzhi
超哥加油
|
582
|
|
e011bf15
周超
我先走一步
|
583
|
|
876011a8
周超
给志哥
|
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
|
},
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();
}
});
|
e6276ef2
yangzhi
超哥牛批
|
616
|
}
|
876011a8
周超
给志哥
|
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
|
,
//点击进度
processEvent(row) {
// if(row.procesName == '公司面试')
// {
// this.
// }
},
SubmitSendUser() {
if (!this.sendUserList || this.sendUserList.length < 1) {
this.$message.success("没有邀请对象!");
return;
}
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];
// }
senddata.push({
userId: o.id,
startTime: o.startTime,
// endTime: end,
remark: o.remark || '',
phone: o.phone,
msgBody: o.msgBody || ''
|
e6276ef2
yangzhi
超哥牛批
|
650
|
});
|
e6276ef2
yangzhi
超哥牛批
|
651
|
});
|
876011a8
周超
给志哥
|
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
|
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)
}
},
|
f0b7a6c2
周超
志哥王哥牛批
|
670
|
|
f0b7a6c2
周超
志哥王哥牛批
|
671
|
|
876011a8
周超
给志哥
|
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
|
handleDelete(item, index) {
this.userList.splice(index, 1);
UsersDelete({ ids: item.id });
},
handleWatchLive(item) {
console.log("handleWatchLive", item);
this.$router.push(`/live?id=${item.StreamName}`);
},
handleAnswerDetail(item) {
window.open(`/#/answerDetail?id=${item.id}`, "_blank");
},
submitForm() {
let formData = { ...this.adminUserInfo };
console.log('submitForm', JSON.stringify(formData));
if (formData.id) {
UsersUpdate(formData).then((res) => {
this.GetUser();
console.log(res);
});
}
this.dialogClassIVIsible = false;
},
handleEdit(data) {
this.dialogClassIVIsible = true;
this.adminUserInfo = data;
},
handleTestHitory(row) {
GetHistoryList({ UserId: row.id }).then((res) => {
this.gridData = res.data.data;
this.dialogTableVisible = true;
|
e6276ef2
yangzhi
超哥牛批
|
702
|
});
|
876011a8
周超
给志哥
|
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
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
747
748
749
750
751
752
753
754
755
|
},
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 + "个用户发送试卷连接进行测试吗?",
"提示消息",
{
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("发送失败");
}
});
}
},
}
);
},
forceTestPaper() {
let parameter = {
pageIndex: 1,
pageSize: 10000,
sort: "id",
sortOrder: 1,
keyword: "",
};
getTestPaperList(parameter).then((res) => {
this.testpaperlist = res.data.data;
|
e6276ef2
yangzhi
超哥牛批
|
756
|
});
|
876011a8
周超
给志哥
|
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
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
|
},
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;
},
handleExceed() { },
ImportUser() { },
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);
});
}
},
editclose(data) {
// this.dialogVisible_step = false;
this.fetchData();
},
loadTree() {
GetUserClassList({ ParentId: 0 }).then((res) => {
this.data = res.data.data;
|
e6276ef2
yangzhi
超哥牛批
|
843
|
});
|
876011a8
周超
给志哥
|
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
|
},
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) {
|
e6276ef2
yangzhi
超哥牛批
|
866
|
this.$message({
|
876011a8
周超
给志哥
|
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
|
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",
});
|
f0b7a6c2
周超
志哥王哥牛批
|
883
|
});
|
f0b7a6c2
周超
志哥王哥牛批
|
884
|
});
|
876011a8
周超
给志哥
|
885
886
887
888
889
890
|
},
handleNodeClick(data, checked, indeterminate) {
this.query.userClassId = data.id;
this.temp = data;
this.GetUser();
},
|
e6276ef2
yangzhi
超哥牛批
|
891
|
|
876011a8
周超
给志哥
|
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
|
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;
|
e6276ef2
yangzhi
超哥牛批
|
910
|
});
|
876011a8
周超
给志哥
|
911
912
913
914
915
|
},
currentchange(page) {
this.query.PageIndex = page;
this.GetUser();
},
|
f6d2db76
yangzhi
超哥牛皮皮
|
916
|
},
|
876011a8
周超
给志哥
|
917
|
};
|
b89c8760
wangming
项目初始化
|
918
919
|
</script>
|
f6d2db76
yangzhi
超哥牛皮皮
|
920
|
<style lang="scss" scoped>
|
876011a8
周超
给志哥
|
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
|
.seetingsDiv {
display: flex;
align-items: center;
width: 100%;
padding-top: 10px;
padding-left: 10px;
/* height: 60px; */
background: #efefef;
/* line-height: 60px; */
border-radius: 5px;
box-shadow: 0 0 5px #cdcdcd;
justify-content: space-between;
}
.seetingsDiv button {
height: 40px;
background-color: #304156;
border: 0px;
margin-left: 10px;
box-shadow: 0 0 5px #cdcdcd;
float: none;
margin-right: 10px;
}
.el-tag+.el-tag {
margin-left: 10px;
}
.button-new-tag {
margin-left: 10px;
height: 32px;
line-height: 30px;
padding-top: 0;
padding-bottom: 0;
}
.input-new-tag {
width: 90px;
margin-left: 10px;
vertical-align: bottom;
}
|
f0b7a6c2
周超
志哥王哥牛批
|
962
|
</style>
|