【修改】zengjia删除
This commit is contained in:
@@ -63,5 +63,13 @@ export default {
|
||||
method: 'GET',
|
||||
params: data
|
||||
})
|
||||
},
|
||||
// 删除草稿
|
||||
delDraf(data){
|
||||
return request({
|
||||
url: '/api/deleteDraft',
|
||||
method: 'GET',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
<el-button
|
||||
type="primary"
|
||||
size="large"
|
||||
class="common-button-primary submitColor"
|
||||
class="common-button-primary"
|
||||
@click="handleSubmit"
|
||||
:loading="submitLoading"
|
||||
v-if="showSubmit" round
|
||||
@@ -396,7 +396,7 @@ export default {
|
||||
border: none;
|
||||
}
|
||||
.submitColor{
|
||||
background-color:#8400ff;
|
||||
//background-color:#8400ff;
|
||||
border: none;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -32,6 +32,9 @@
|
||||
<el-button @click.native.prevent="handle(row)" type="text" size="small">
|
||||
办理
|
||||
</el-button>
|
||||
<el-button @click.native.prevent="classDel(row.id)" type="text" size="small" class="deleRed">
|
||||
删除
|
||||
</el-button>
|
||||
</template>
|
||||
</vxe-column>
|
||||
</vxe-table>
|
||||
@@ -77,6 +80,21 @@ export default {
|
||||
this.loadData()
|
||||
},
|
||||
methods: {
|
||||
classDel(row) {
|
||||
this.$confirm('确认删除该条数据?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning',
|
||||
confirmButtonClass: 'common-button-primary',
|
||||
|
||||
}).then(() => {
|
||||
this.$api.processCenter.delDraf({id:row}).then(()=>{
|
||||
this.$message.success('删除成功')
|
||||
this.q.current = 1
|
||||
this.loadData()
|
||||
})
|
||||
})
|
||||
},
|
||||
loadData() {
|
||||
let userId=this.$store.getters.userInfo.usid
|
||||
this.$api.processCenter.draftProcessPage({...this.q,...this.form,userId:userId}).then(res=>{
|
||||
@@ -126,4 +144,7 @@ export default {
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
}
|
||||
.deleRed{
|
||||
color: red !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user