|
|
@@ -34,11 +34,11 @@
|
|
|
<span v-if="scope.row.classify==null || scope.row.classify==1 ">企业</span>
|
|
|
<span v-else>个人</span>
|
|
|
</template>
|
|
|
- </el-table-column> -->
|
|
|
+</el-table-column> -->
|
|
|
<el-table-column prop="name" label="姓名" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
- <span style="color: #4f9dec;cursor: pointer;"
|
|
|
- @click="updates(scope.row)">{{scope.row.name ? scope.row.name : '未绑定'}}</span>
|
|
|
+ <span style="color: #4f9dec;cursor: pointer;" @click="updates(scope.row)">{{ scope.row.name ?
|
|
|
+ scope.row.name : '未绑定'}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="cardFront" label="头像" width="150">
|
|
|
@@ -48,22 +48,21 @@
|
|
|
</div>
|
|
|
<div v-if="scope.row.img" style="display:flex;flex-wrap: wrap;">
|
|
|
<el-popover placement="top-start" title="" trigger="hover">
|
|
|
- <img style="width: 50px; height: 50px" :src="scope.row.img" alt=""
|
|
|
- slot="reference">
|
|
|
+ <img style="width: 50px; height: 50px" :src="scope.row.img" alt="" slot="reference">
|
|
|
<img style="width: 200px; height: 200px" :src="scope.row.img" alt="">
|
|
|
</el-popover>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="age" label="年龄" >
|
|
|
+ <el-table-column prop="age" label="年龄">
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="phone" label="电话" >
|
|
|
+ <el-table-column prop="phone" label="电话">
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="city" label="城市" >
|
|
|
+ <el-table-column prop="city" label="城市">
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="createTime" label="创建时间" >
|
|
|
+ <el-table-column prop="createTime" label="创建时间">
|
|
|
</el-table-column>
|
|
|
- <!-- <el-table-column fixed='right' prop="status" label="状态" width="100">
|
|
|
+ <el-table-column fixed='right' prop="status" label="状态" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.status == 0">待审核</span>
|
|
|
<span v-if="scope.row.status == 1">审核成功</span>
|
|
|
@@ -82,7 +81,7 @@
|
|
|
@click="passClicks(scope.row)">通过
|
|
|
</el-button>
|
|
|
</template>
|
|
|
- </el-table-column> -->
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
|
<div style="text-align: center;margin-top: 10px;">
|
|
|
<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
|
|
|
@@ -110,193 +109,98 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- export default {
|
|
|
- data() {
|
|
|
- return {
|
|
|
- limit: 10,
|
|
|
- page: 1,
|
|
|
- content: '',
|
|
|
- status: '',
|
|
|
- statesnum: [{
|
|
|
- value: '',
|
|
|
- label: '全部'
|
|
|
- },
|
|
|
- {
|
|
|
- value: 0,
|
|
|
- label: '待审核'
|
|
|
- }, {
|
|
|
- value: 1,
|
|
|
- label: '审核成功'
|
|
|
- }, {
|
|
|
- value: 2,
|
|
|
- label: '拒绝'
|
|
|
- }
|
|
|
- ],
|
|
|
- classify: 1,
|
|
|
- classlyList: [{
|
|
|
- value: '',
|
|
|
- label: '全部'
|
|
|
- }, {
|
|
|
- value: 1,
|
|
|
- label: '个人'
|
|
|
- }, {
|
|
|
- value: 2,
|
|
|
- label: '企业'
|
|
|
- }],
|
|
|
- userName: '',
|
|
|
- activeName: 'first',
|
|
|
- tableDataLoading: false,
|
|
|
- dialogFormVisible: false,
|
|
|
- tableData: {},
|
|
|
- checkBoxData: [], //多选框选择的值
|
|
|
- ids:'',
|
|
|
- phone:'',
|
|
|
- }
|
|
|
- },
|
|
|
- methods: {
|
|
|
- handleClick(tab, event) {
|
|
|
- this.page = 1
|
|
|
- if (tab._props.label == '申请列表') {
|
|
|
- this.classify = 1
|
|
|
- this.dataSelect()
|
|
|
- }
|
|
|
- if (tab._props.label == '企业认证') {
|
|
|
- this.classify = 2
|
|
|
- this.dataSelect()
|
|
|
- }
|
|
|
- },
|
|
|
- // 多选
|
|
|
- changeFun(val) {
|
|
|
- this.checkBoxData = val;
|
|
|
- },
|
|
|
- // 详情跳转
|
|
|
- updates(row) {
|
|
|
- this.$router.push({
|
|
|
- path: '/userDetail',
|
|
|
- query: {
|
|
|
- userId: row.userId
|
|
|
- }
|
|
|
- })
|
|
|
+export default {
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ limit: 10,
|
|
|
+ page: 1,
|
|
|
+ content: '',
|
|
|
+ status: '',
|
|
|
+ statesnum: [{
|
|
|
+ value: '',
|
|
|
+ label: '全部'
|
|
|
},
|
|
|
- handleSizeChange(val) {
|
|
|
- this.limit = val;
|
|
|
+ {
|
|
|
+ value: 0,
|
|
|
+ label: '待审核'
|
|
|
+ }, {
|
|
|
+ value: 1,
|
|
|
+ label: '审核成功'
|
|
|
+ }, {
|
|
|
+ value: 2,
|
|
|
+ label: '拒绝'
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ classify: 1,
|
|
|
+ classlyList: [{
|
|
|
+ value: '',
|
|
|
+ label: '全部'
|
|
|
+ }, {
|
|
|
+ value: 1,
|
|
|
+ label: '个人'
|
|
|
+ }, {
|
|
|
+ value: 2,
|
|
|
+ label: '企业'
|
|
|
+ }],
|
|
|
+ userName: '',
|
|
|
+ activeName: 'first',
|
|
|
+ tableDataLoading: false,
|
|
|
+ dialogFormVisible: false,
|
|
|
+ tableData: {},
|
|
|
+ checkBoxData: [], //多选框选择的值
|
|
|
+ ids: '',
|
|
|
+ phone: '',
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ handleClick(tab, event) {
|
|
|
+ this.page = 1
|
|
|
+ if (tab._props.label == '申请列表') {
|
|
|
+ this.classify = 1
|
|
|
this.dataSelect()
|
|
|
- },
|
|
|
- handleCurrentChange(val) {
|
|
|
- this.page = val;
|
|
|
+ }
|
|
|
+ if (tab._props.label == '企业认证') {
|
|
|
+ this.classify = 2
|
|
|
this.dataSelect()
|
|
|
- },
|
|
|
- //任务通过
|
|
|
- passClick(id) {
|
|
|
- this.status = 1
|
|
|
- this.content = '同意'
|
|
|
- var ids = id ? [id] : this.checkBoxData.map(item => {
|
|
|
- return item.id
|
|
|
- })
|
|
|
- this.$http({
|
|
|
- url: this.$http.adornUrl(
|
|
|
- `student/auditStudentAuthentication/${ids}/${this.status}/${this.content}`),
|
|
|
- method: 'post',
|
|
|
- data: this.$http.adornData({})
|
|
|
- }).then(({
|
|
|
- data
|
|
|
- }) => {
|
|
|
- if (data.code == 0) {
|
|
|
- this.$message({
|
|
|
- message: '操作成功',
|
|
|
- type: 'success',
|
|
|
- duration: 1500,
|
|
|
- onClose: () => {
|
|
|
- this.content = ''
|
|
|
- this.status = ''
|
|
|
- this.dataSelect()
|
|
|
- }
|
|
|
- })
|
|
|
- } else {
|
|
|
- this.$message({
|
|
|
- message: data.msg,
|
|
|
- type: 'error',
|
|
|
- duration: 1500,
|
|
|
- onClose: () => {
|
|
|
- this.content = ''
|
|
|
- this.status = ''
|
|
|
- this.dataSelect()
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
- //单条任务通过
|
|
|
- passClicks(row) {
|
|
|
- this.status = 1
|
|
|
- this.content = '同意'
|
|
|
- this.$http({
|
|
|
- url: this.$http.adornUrl(`userCertification/auditorUserCertification`),
|
|
|
- method: 'post',
|
|
|
- params: this.$http.adornParams({
|
|
|
- 'status': this.status,
|
|
|
- 'id': row.id,
|
|
|
- 'remek': '通过'
|
|
|
- })
|
|
|
- }).then(({
|
|
|
- data
|
|
|
- }) => {
|
|
|
- if (data.code == 0) {
|
|
|
- this.$message({
|
|
|
- message: '操作成功',
|
|
|
- type: 'success',
|
|
|
- duration: 1500,
|
|
|
- onClose: () => {
|
|
|
- this.content = ''
|
|
|
- this.status = ''
|
|
|
- this.dataSelect()
|
|
|
- }
|
|
|
- })
|
|
|
- } else {
|
|
|
- this.$message({
|
|
|
- message: data.msg,
|
|
|
- type: 'error',
|
|
|
- duration: 1500,
|
|
|
- onClose: () => {
|
|
|
- this.content = ''
|
|
|
- this.status = ''
|
|
|
- this.dataSelect()
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
- })
|
|
|
- },
|
|
|
- //任务拒绝
|
|
|
- refuseClick(rows) {
|
|
|
- this.status = 2
|
|
|
- this.helpTakeId = rows.userId
|
|
|
- this.ids = rows.id
|
|
|
- this.content = ''
|
|
|
- this.dialogFormVisible = true
|
|
|
- },
|
|
|
- refuseto() {
|
|
|
- if (this.content == '') {
|
|
|
- this.$notify({
|
|
|
- title: '提示',
|
|
|
- duration: 1800,
|
|
|
- message: '请输入拒绝理由',
|
|
|
- type: 'warning'
|
|
|
- });
|
|
|
- return
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 多选
|
|
|
+ changeFun(val) {
|
|
|
+ this.checkBoxData = val;
|
|
|
+ },
|
|
|
+ // 详情跳转
|
|
|
+ updates(row) {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/userDetail',
|
|
|
+ query: {
|
|
|
+ userId: row.userId
|
|
|
}
|
|
|
- this.$http({
|
|
|
- url: this.$http.adornUrl(`userCertification/auditorUserCertification`),
|
|
|
- method: 'post',
|
|
|
- params: this.$http.adornParams({
|
|
|
- 'status': this.status,
|
|
|
- 'id': this.ids,
|
|
|
- 'remek': this.content
|
|
|
- })
|
|
|
- }).then(({
|
|
|
- data
|
|
|
- }) => {
|
|
|
- this.dialogFormVisible = false
|
|
|
+ })
|
|
|
+ },
|
|
|
+ handleSizeChange(val) {
|
|
|
+ this.limit = val;
|
|
|
+ this.dataSelect()
|
|
|
+ },
|
|
|
+ handleCurrentChange(val) {
|
|
|
+ this.page = val;
|
|
|
+ this.dataSelect()
|
|
|
+ },
|
|
|
+ //任务通过
|
|
|
+ passClick(id) {
|
|
|
+ this.status = 1
|
|
|
+ this.content = '同意'
|
|
|
+ var ids = id ? [id] : this.checkBoxData.map(item => {
|
|
|
+ return item.id
|
|
|
+ })
|
|
|
+ this.$http({
|
|
|
+ url: this.$http.adornUrl(
|
|
|
+ `student/auditStudentAuthentication/${ids}/${this.status}/${this.content}`),
|
|
|
+ method: 'post',
|
|
|
+ data: this.$http.adornData({})
|
|
|
+ }).then(({
|
|
|
+ data
|
|
|
+ }) => {
|
|
|
+ if (data.code == 0) {
|
|
|
this.$message({
|
|
|
message: '操作成功',
|
|
|
type: 'success',
|
|
|
@@ -307,50 +211,143 @@
|
|
|
this.dataSelect()
|
|
|
}
|
|
|
})
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ message: data.msg,
|
|
|
+ type: 'error',
|
|
|
+ duration: 1500,
|
|
|
+ onClose: () => {
|
|
|
+ this.content = ''
|
|
|
+ this.status = ''
|
|
|
+ this.dataSelect()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //单条任务通过
|
|
|
+ passClicks(row) {
|
|
|
+ this.status = 1
|
|
|
+ this.content = '同意'
|
|
|
+ this.$http({
|
|
|
+ url: this.$http.adornUrl(`userCertification/auditorUserCertification`),
|
|
|
+ method: 'post',
|
|
|
+ params: this.$http.adornParams({
|
|
|
+ 'status': this.status,
|
|
|
+ 'id': row.id,
|
|
|
+ 'remek': '通过'
|
|
|
})
|
|
|
- },
|
|
|
- // 查询
|
|
|
- select() {
|
|
|
- this.page = 1
|
|
|
- this.limit = 10
|
|
|
- this.dataSelect()
|
|
|
- },
|
|
|
- // 重置
|
|
|
- cleans() {
|
|
|
- this.status = ''
|
|
|
- this.userName = ''
|
|
|
- this.phone = ''
|
|
|
- this.dataSelect()
|
|
|
- },
|
|
|
- // 获取派单数据列表
|
|
|
- dataSelect() {
|
|
|
- this.tableDataLoading = true
|
|
|
- this.$http({
|
|
|
- url: this.$http.adornUrl('artificer/selectAgencyList'),
|
|
|
- method: 'get',
|
|
|
- params: this.$http.adornParams({
|
|
|
- 'page': this.page,
|
|
|
- 'limit': this.limit,
|
|
|
- 'status': this.status,
|
|
|
- 'userName': this.userName,
|
|
|
- 'phone': this.phone
|
|
|
+ }).then(({
|
|
|
+ data
|
|
|
+ }) => {
|
|
|
+ if (data.code == 0) {
|
|
|
+ this.$message({
|
|
|
+ message: '操作成功',
|
|
|
+ type: 'success',
|
|
|
+ duration: 1500,
|
|
|
+ onClose: () => {
|
|
|
+ this.content = ''
|
|
|
+ this.status = ''
|
|
|
+ this.dataSelect()
|
|
|
+ }
|
|
|
})
|
|
|
- }).then(({
|
|
|
- data
|
|
|
- }) => {
|
|
|
- this.tableDataLoading = false
|
|
|
- let returnData = data.data;
|
|
|
- this.tableData = returnData
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ message: data.msg,
|
|
|
+ type: 'error',
|
|
|
+ duration: 1500,
|
|
|
+ onClose: () => {
|
|
|
+ this.content = ''
|
|
|
+ this.status = ''
|
|
|
+ this.dataSelect()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
|
|
|
- })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //任务拒绝
|
|
|
+ refuseClick(rows) {
|
|
|
+ this.status = 2
|
|
|
+ this.helpTakeId = rows.userId
|
|
|
+ this.ids = rows.id
|
|
|
+ this.content = ''
|
|
|
+ this.dialogFormVisible = true
|
|
|
+ },
|
|
|
+ refuseto() {
|
|
|
+ if (this.content == '') {
|
|
|
+ this.$notify({
|
|
|
+ title: '提示',
|
|
|
+ duration: 1800,
|
|
|
+ message: '请输入拒绝理由',
|
|
|
+ type: 'warning'
|
|
|
+ });
|
|
|
+ return
|
|
|
}
|
|
|
+ this.$http({
|
|
|
+ url: this.$http.adornUrl(`userCertification/auditorUserCertification`),
|
|
|
+ method: 'post',
|
|
|
+ params: this.$http.adornParams({
|
|
|
+ 'status': this.status,
|
|
|
+ 'id': this.ids,
|
|
|
+ 'remek': this.content
|
|
|
+ })
|
|
|
+ }).then(({
|
|
|
+ data
|
|
|
+ }) => {
|
|
|
+ this.dialogFormVisible = false
|
|
|
+ this.$message({
|
|
|
+ message: '操作成功',
|
|
|
+ type: 'success',
|
|
|
+ duration: 1500,
|
|
|
+ onClose: () => {
|
|
|
+ this.content = ''
|
|
|
+ this.status = ''
|
|
|
+ this.dataSelect()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 查询
|
|
|
+ select() {
|
|
|
+ this.page = 1
|
|
|
+ this.limit = 10
|
|
|
+ this.dataSelect()
|
|
|
},
|
|
|
- mounted() {
|
|
|
+ // 重置
|
|
|
+ cleans() {
|
|
|
+ this.status = ''
|
|
|
+ this.userName = ''
|
|
|
+ this.phone = ''
|
|
|
this.dataSelect()
|
|
|
+ },
|
|
|
+ // 获取派单数据列表
|
|
|
+ dataSelect() {
|
|
|
+ this.tableDataLoading = true
|
|
|
+ this.$http({
|
|
|
+ url: this.$http.adornUrl('artificer/selectAgencyList'),
|
|
|
+ method: 'get',
|
|
|
+ params: this.$http.adornParams({
|
|
|
+ 'page': this.page,
|
|
|
+ 'limit': this.limit,
|
|
|
+ 'status': this.status,
|
|
|
+ 'userName': this.userName,
|
|
|
+ 'phone': this.phone
|
|
|
+ })
|
|
|
+ }).then(({
|
|
|
+ data
|
|
|
+ }) => {
|
|
|
+ this.tableDataLoading = false
|
|
|
+ let returnData = data.data;
|
|
|
+ this.tableData = returnData
|
|
|
+
|
|
|
+ })
|
|
|
}
|
|
|
- };
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ this.dataSelect()
|
|
|
+ }
|
|
|
+};
|
|
|
</script>
|
|
|
|
|
|
-<style>
|
|
|
-
|
|
|
-</style>
|
|
|
+<style></style>
|