回库删除用户

This commit is contained in:
@fawn-nine
2023-06-26 17:36:25 +08:00
parent 8a91600612
commit f60e0f4b8a
2 changed files with 32 additions and 4 deletions

View File

@@ -83,6 +83,9 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item label="Begin Page Number:" prop="beginPage">
<el-input-number :min="1" :max="Math.ceil(userListNum/EmailData.pagesize)" v-model="EmailData.beginPage" label="Page Number"></el-input-number>
</el-form-item>
<el-form-item label="Scheduled Tasks :" prop="frequency">
<el-radio-group v-model="EmailData.frequency">
<el-radio label="day" style="display: block;margin: 10px 0 0 0;">
@@ -98,7 +101,7 @@
<span style="margin: 0 0 0 5px;">(explanatory note: 1st - 5th)</span>
</el-radio>
</el-radio-group>
</el-form-item>
</el-form-item>
</div>
<div class="d_rol">
<h3>
@@ -299,6 +302,7 @@
substance_bom: '',
substanceOld: '',
frequency: 'day',
beginPage:1 // 开始页数
},
keyValue: 0,
userListNum: 0,
@@ -864,8 +868,6 @@
// artHtml)
// }
this.$api
.post('api/Promotion/addPromotion', this.EmailData)
.then(res => {

View File

@@ -77,11 +77,14 @@
<el-table-column prop="company" label="Affiliation"></el-table-column>
<el-table-column prop="field" label="Field"></el-table-column>
<el-table-column prop="remark" label="Remark" width="160"></el-table-column>
<el-table-column label="" width="100" align="center">
<el-table-column label="" width="200" align="center">
<template slot-scope="scope">
<el-button plain type="primary" icon="el-icon-edit" @click="handleEdit(scope.row)">
Edit
</el-button>
<el-button plain type="danger" icon="el-icon-edit" @click="handleDelete(scope.row)">
Delete
</el-button>
<!-- <div style="margin-top: 12px;">
<el-button plain type="warning" @click="handleSend(scope.row)">
PROMOTION
@@ -545,6 +548,29 @@
this.initMajor()
},
methods: {
// 删除灰库用户
handleDelete(row){
this.$confirm(`'Do you want to delete the user? Name: '${row.name}'`, 'prompt', {
confirmButtonText: 'Yes',
cancelButtonText: 'Cancel',
type: 'warning'
}).then(() => {
this.$api
.post('api/User/delAshUser',{'ash_id': row.ash_id})
.then(res => {
if(res.code == 0){
this.$message.success('successed!')
this.getDate()
}
})
.catch(err => {
console.log(err);
});
}).catch(() => { });
},
// 获取国家列表
getCountry() {
this.$api