页面修改

main
wanglei 6 months ago
parent 1111ff637a
commit 3ab12bf179

@ -52,3 +52,14 @@ export function getItemVote(query) {
params: query
})
}
// 批量添加账号接口
export function addsUser(data) {
return request({
url: '/system/user/adds',
method: 'post',
params: data
})
}

@ -50,7 +50,7 @@
@click="handleAdd"
>新增</el-button>
</el-col>
<el-col :span="1.5">
<!-- <el-col :span="1.5">
<el-button
type="success"
plain
@ -59,7 +59,7 @@
:disabled="single"
@click="handleUpdate"
>修改</el-button>
</el-col>
</el-col>-->
<el-col :span="1.5">
<el-button
type="danger"
@ -93,7 +93,7 @@
</template>
</el-table-column>
<el-table-column label="考核任务备注" align="center" prop="remark" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="300px">
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="240px">
<template slot-scope="scope">
<el-button
size="mini"
@ -117,12 +117,26 @@
>考核得分
</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-user-solid"
@click="handleAddsUser(scope.row)"
>生成评分账号
</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-view"
@click="viewUser(scope.row)"
>查看评分账号
</el-button>
<!-- <el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
>删除
</el-button>
</el-button>-->
</template>
</el-table-column>
</el-table>
@ -546,6 +560,8 @@
</template>
<script>
import { addsUser } from "@/api/kaohe/pingce.js"
export default {
name: "KaoHe",
dicts: ['kh_state', 'sys_user_sex'],
@ -3282,6 +3298,27 @@ export default {
goTotalScore(row){
this.khdf.open = true;
this.khdf.idRw = row.id;
},
//
handleAddsUser(row){
this.$prompt('请输入生成数量', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
inputPattern: /^([1-9][0-9]){1,3}$/,
inputErrorMessage: '生成数量格式不正确'
}).then(({ value }) => {
addsUser({
pcId: 1,
num: value
}).then(response => {
this.$modal.msgSuccess("生成成功")
})
}).catch(() => {
});
},
viewUser(){
this.$router.push({ path: '/system/user', query: { pcId: 1}});
}
}
}

@ -324,6 +324,10 @@ export default {
}
},
created() {
if(this.$route.query.pcId){
this.queryParams.pcId = this.$route.query.pcId
}
this.getList()
this.getDeptTree()
this.getConfigKey("sys.user.initPassword").then(response => {

Loading…
Cancel
Save