Commit 45b767f16f42545cf0593ed8928a4f9d13de95da
1 parent
98e2221b
超哥加油
Showing
1 changed file
with
47 additions
and
4 deletions
src/views/user/userlist.vue
| @@ -27,9 +27,8 @@ | @@ -27,9 +27,8 @@ | ||
| 27 | <el-button type="success" @click="search">搜索</el-button> | 27 | <el-button type="success" @click="search">搜索</el-button> |
| 28 | <el-button type="success" @click="resetSearch">重置</el-button> | 28 | <el-button type="success" @click="resetSearch">重置</el-button> |
| 29 | <el-button | 29 | <el-button |
| 30 | - v-if="selectedList.length" | ||
| 31 | type="primary" | 30 | type="primary" |
| 32 | - @click="handleInviteInterview" | 31 | + @click="handleInviteInterview(scope.row)" |
| 33 | >邀请面试</el-button | 32 | >邀请面试</el-button |
| 34 | > | 33 | > |
| 35 | </el-form-item> | 34 | </el-form-item> |
| @@ -37,7 +36,10 @@ | @@ -37,7 +36,10 @@ | ||
| 37 | </div> | 36 | </div> |
| 38 | 37 | ||
| 39 | <div class="flex aligin-center"> | 38 | <div class="flex aligin-center"> |
| 40 | - <el-link :href="BASE_URL+'/temp/用户导入模板.xlsx'" target="_blank" type="primary" | 39 | + <el-link |
| 40 | + :href="BASE_URL + '/temp/用户导入模板.xlsx'" | ||
| 41 | + target="_blank" | ||
| 42 | + type="primary" | ||
| 41 | >下载模板</el-link | 43 | >下载模板</el-link |
| 42 | > | 44 | > |
| 43 | <el-upload | 45 | <el-upload |
| @@ -133,6 +135,16 @@ | @@ -133,6 +135,16 @@ | ||
| 133 | <span>{{ scope.row.fullName }}</span> | 135 | <span>{{ scope.row.fullName }}</span> |
| 134 | </template> | 136 | </template> |
| 135 | </el-table-column> | 137 | </el-table-column> |
| 138 | + <el-table-column prop="date" label="系统推荐" width="150px"> | ||
| 139 | + <template slot-scope="scope"> | ||
| 140 | + <el-rate | ||
| 141 | + v-model="scope.row.stars" | ||
| 142 | + disabled | ||
| 143 | + text-color="#ff9900" | ||
| 144 | + > | ||
| 145 | + </el-rate> | ||
| 146 | + </template> | ||
| 147 | + </el-table-column> | ||
| 136 | <el-table-column prop="date" label="电话号码"> | 148 | <el-table-column prop="date" label="电话号码"> |
| 137 | <template slot-scope="scope"> | 149 | <template slot-scope="scope"> |
| 138 | <el-tooltip | 150 | <el-tooltip |
| @@ -157,6 +169,8 @@ | @@ -157,6 +169,8 @@ | ||
| 157 | <span>{{ row.TestPaperTitle || "无" }}</span> | 169 | <span>{{ row.TestPaperTitle || "无" }}</span> |
| 158 | </template> | 170 | </template> |
| 159 | </el-table-column> | 171 | </el-table-column> |
| 172 | + <el-table-column prop="processName" label="面试进度"> | ||
| 173 | + </el-table-column> | ||
| 160 | <el-table-column prop="date" label="电话号码"> | 174 | <el-table-column prop="date" label="电话号码"> |
| 161 | <template slot-scope="scope"> | 175 | <template slot-scope="scope"> |
| 162 | <el-tooltip | 176 | <el-tooltip |
| @@ -187,7 +201,7 @@ | @@ -187,7 +201,7 @@ | ||
| 187 | </template> | 201 | </template> |
| 188 | </el-table-column> | 202 | </el-table-column> |
| 189 | 203 | ||
| 190 | - <el-table-column prop="date" label="操作" width="180"> | 204 | + <el-table-column prop="date" label="操作" width="220"> |
| 191 | <template slot-scope="scope"> | 205 | <template slot-scope="scope"> |
| 192 | <el-button | 206 | <el-button |
| 193 | type="text" | 207 | type="text" |
| @@ -198,6 +212,13 @@ | @@ -198,6 +212,13 @@ | ||
| 198 | > | 212 | > |
| 199 | <el-button | 213 | <el-button |
| 200 | type="text" | 214 | type="text" |
| 215 | + icon="el-icon-edit" | ||
| 216 | + @click="handleInviteInterviewOnsite(scope.row)" | ||
| 217 | + circle | ||
| 218 | + >邀请面试</el-button | ||
| 219 | + > | ||
| 220 | + <el-button | ||
| 221 | + type="text" | ||
| 201 | icon="el-icon-delete" | 222 | icon="el-icon-delete" |
| 202 | circle | 223 | circle |
| 203 | @click="handleDelete(scope.row, scope.$index)" | 224 | @click="handleDelete(scope.row, scope.$index)" |
| @@ -409,6 +430,15 @@ | @@ -409,6 +430,15 @@ | ||
| 409 | style="width: 40%" | 430 | style="width: 40%" |
| 410 | ></el-input> | 431 | ></el-input> |
| 411 | </el-form-item> | 432 | </el-form-item> |
| 433 | + <el-form-item label="系统推荐" style="margin-top: 40px" prop="stars"> | ||
| 434 | + <el-rate | ||
| 435 | + style="width: 40%" | ||
| 436 | + v-model="adminUserInfo.stars" | ||
| 437 | + :texts="['不推荐', '一般', '满意', '很满意', '极力推荐']" | ||
| 438 | + show-text | ||
| 439 | + > | ||
| 440 | + </el-rate> | ||
| 441 | + </el-form-item> | ||
| 412 | 442 | ||
| 413 | <!-- <el-form-item label="密码" prop="password" > | 443 | <!-- <el-form-item label="密码" prop="password" > |
| 414 | <el-input v-model="adminUserInfo.password " placeholder="请输入密码 不填默认不修改" show-password style="width: 40%;"></el-input> | 444 | <el-input v-model="adminUserInfo.password " placeholder="请输入密码 不填默认不修改" show-password style="width: 40%;"></el-input> |
| @@ -430,6 +460,7 @@ | @@ -430,6 +460,7 @@ | ||
| 430 | import { | 460 | import { |
| 431 | ImportUserByExcel, | 461 | ImportUserByExcel, |
| 432 | GetUserList, | 462 | GetUserList, |
| 463 | + UsersUpdate, | ||
| 433 | AddInvitationAnswerMultiple, | 464 | AddInvitationAnswerMultiple, |
| 434 | UsersDelete, | 465 | UsersDelete, |
| 435 | } from "@/api/user"; | 466 | } from "@/api/user"; |
| @@ -558,6 +589,14 @@ export default { | @@ -558,6 +589,14 @@ export default { | ||
| 558 | window.open(`/#/answerDetail?id=${item.id}`, "_blank"); | 589 | window.open(`/#/answerDetail?id=${item.id}`, "_blank"); |
| 559 | }, | 590 | }, |
| 560 | submitForm() { | 591 | submitForm() { |
| 592 | + let formData = { ...this.adminUserInfo }; | ||
| 593 | + console.log('submitForm',JSON.stringify(formData)); | ||
| 594 | + if (formData.id) { | ||
| 595 | + UsersUpdate(formData).then((res) => { | ||
| 596 | + this.GetUser(); | ||
| 597 | + console.log(res); | ||
| 598 | + }); | ||
| 599 | + } | ||
| 561 | this.dialogClassIVIsible = false; | 600 | this.dialogClassIVIsible = false; |
| 562 | }, | 601 | }, |
| 563 | handleEdit(data) { | 602 | handleEdit(data) { |
| @@ -634,6 +673,10 @@ export default { | @@ -634,6 +673,10 @@ export default { | ||
| 634 | handleInviteInterview() { | 673 | handleInviteInterview() { |
| 635 | this.dialogFormVisible = true; | 674 | this.dialogFormVisible = true; |
| 636 | }, | 675 | }, |
| 676 | + //邀请现场面试 | ||
| 677 | + handleInviteInterviewOnSite(item){ | ||
| 678 | + | ||
| 679 | + }, | ||
| 637 | handleSelectionChange(val) { | 680 | handleSelectionChange(val) { |
| 638 | console.log(val); | 681 | console.log(val); |
| 639 | this.selectedList = val; | 682 | this.selectedList = val; |