清除评分账号功能添加

main
wanglei 2 months ago
parent 2b3a720b51
commit 8332ddd5a8

@ -134,3 +134,12 @@ export function deptTreeSelect() {
method: 'get'
})
}
// 清除评分账号
export function delUserPingfen(pcIds) {
return request({
url: '/system/user/pcIds/' + pcIds,
method: 'delete'
})
}

@ -76,6 +76,17 @@
v-hasPermi="['kaohe:pingce:export']"
>导出</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDeleteUsers"
v-hasPermi="['system:user:remove']"
>清除评分账号</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
@ -532,6 +543,7 @@ import { listVote_items } from "@/api/kaohe/vote_items"
import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
import TableColumn from '@/components/TableColumn'
import {delUserPingfen} from "../../../api/system/user";
export default {
name: "Pingce",
@ -1268,7 +1280,17 @@ export default {
//
scpfzhCancel(){
this.scpfzh.open = false;
}
},
/** 清除评分账号 */
handleDeleteUsers(row) {
const ids = row.id || this.ids
this.$modal.confirm('是否确认删除考核任务编号为"' + ids + '"的评分账号数据项?').then(function() {
return delUserPingfen(ids)
}).then(() => {
this.getList()
this.$modal.msgSuccess("删除成功")
}).catch(() => {})
},
}
}
</script>

Loading…
Cancel
Save