批量到期权限修改中
This commit is contained in:
parent
be2f863aac
commit
76adf5928b
|
|
@ -142,4 +142,11 @@ export function getConsumerPermAll(query) {
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: query
|
params: query
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
export function updateendConsumers(data) {
|
||||||
|
return request({
|
||||||
|
url: `/crm/consumer/updateends/`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
@ -160,14 +160,16 @@
|
||||||
@click="exportConsumer"
|
@click="exportConsumer"
|
||||||
v-if="checkPermission(['consumer__export'])"
|
v-if="checkPermission(['consumer__export'])"
|
||||||
>导出Excel</el-button>
|
>导出Excel</el-button>
|
||||||
<el-button-group>
|
|
||||||
<el-button
|
<el-button
|
||||||
type="danger"
|
type="danger"
|
||||||
icon="el-icon-delete"
|
icon="el-icon-delete"
|
||||||
round
|
|
||||||
@click="handleDeletes"
|
@click="handleDeletes"
|
||||||
v-if="checkPermission(['consumer__deletes'])"
|
v-if="checkPermission(['consumer__deletes'])"
|
||||||
>批量删除</el-button>
|
>批量删除</el-button>
|
||||||
|
<el-button
|
||||||
|
@click="handleUpdateends"
|
||||||
|
v-if="checkPermission(['consumer__updateends'])"
|
||||||
|
>批量修改到期</el-button>
|
||||||
<!-- <el-button
|
<!-- <el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
icon="el-icon-search"
|
icon="el-icon-search"
|
||||||
|
|
@ -175,7 +177,6 @@
|
||||||
@click="handleCands"
|
@click="handleCands"
|
||||||
v-if="checkPermission(['consumer__candidates'])"
|
v-if="checkPermission(['consumer__candidates'])"
|
||||||
>批量查证</el-button> -->
|
>批量查证</el-button> -->
|
||||||
</el-button-group>
|
|
||||||
<el-checkbox
|
<el-checkbox
|
||||||
v-model="showCreate"
|
v-model="showCreate"
|
||||||
class="filter-item"
|
class="filter-item"
|
||||||
|
|
@ -219,11 +220,11 @@
|
||||||
<el-tag v-if="scope.row.workscope_name">{{ scope.row.workscope_name }}</el-tag>
|
<el-tag v-if="scope.row.workscope_name">{{ scope.row.workscope_name }}</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="证书信息">
|
<!-- <el-table-column label="证书信息">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<!-- <el-tag v-if="scope.row.workscope_name">{{ scope.row.workscope_name }}</el-tag> -->
|
<el-tag v-if="scope.row.workscope_name">{{ scope.row.workscope_name }}</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column> -->
|
||||||
<el-table-column label="创建信息" sortable="custom" prop="create_time" v-if="showCreate" >
|
<el-table-column label="创建信息" sortable="custom" prop="create_time" v-if="showCreate" >
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span v-if="scope.row.create_admin_">{{ scope.row.create_admin_.username }}/</span>
|
<span v-if="scope.row.create_admin_">{{ scope.row.create_admin_.username }}/</span>
|
||||||
|
|
@ -269,6 +270,17 @@
|
||||||
@pagination="getList"
|
@pagination="getList"
|
||||||
/>
|
/>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
<el-dialog :visible.sync="dateVisible" title='修改截止期限'>
|
||||||
|
<el-date-picker
|
||||||
|
v-model="exceed_date"
|
||||||
|
type="date"
|
||||||
|
placeholder="选择日期"
|
||||||
|
value-format="yyyy-MM-dd">
|
||||||
|
</el-date-picker>
|
||||||
|
<div style="text-align:right;">
|
||||||
|
<el-button type="primary" @click="confirmupdateend">确认</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
<el-dialog :visible.sync="dialogVisible" :title="dialogType==='edit'?'编辑用户':'新增用户'">
|
<el-dialog :visible.sync="dialogVisible" :title="dialogType==='edit'?'编辑用户':'新增用户'">
|
||||||
<el-form
|
<el-form
|
||||||
:model="consumer"
|
:model="consumer"
|
||||||
|
|
@ -377,6 +389,7 @@ import {
|
||||||
deleteConsumers,
|
deleteConsumers,
|
||||||
unbindConsumer,
|
unbindConsumer,
|
||||||
getConsumerRoleAll,
|
getConsumerRoleAll,
|
||||||
|
updateendConsumers
|
||||||
} from "@/api/crm";
|
} from "@/api/crm";
|
||||||
import { getSubjectAll } from "@/api/question";
|
import { getSubjectAll } from "@/api/question";
|
||||||
import { getWorkScopeAll } from "@/api/examtest";
|
import { getWorkScopeAll } from "@/api/examtest";
|
||||||
|
|
@ -412,6 +425,8 @@ export default {
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
dateVisible:false,
|
||||||
|
exceed_date:'',
|
||||||
dgVisiable: false,
|
dgVisiable: false,
|
||||||
tableKey: 0,
|
tableKey: 0,
|
||||||
showCreate: true,
|
showCreate: true,
|
||||||
|
|
@ -778,6 +793,23 @@ export default {
|
||||||
handleCompanyClick(row, column, event){
|
handleCompanyClick(row, column, event){
|
||||||
this.listQuery.company = row.id
|
this.listQuery.company = row.id
|
||||||
this.getList()
|
this.getList()
|
||||||
|
},
|
||||||
|
handleUpdateends() {
|
||||||
|
if (this.selects.length) {
|
||||||
|
this.dateVisible = true
|
||||||
|
} else {
|
||||||
|
this.$message({
|
||||||
|
message: "请先选择",
|
||||||
|
type: "warning",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
confirmupdateend(){
|
||||||
|
if(this.exceed_date.length()>0){
|
||||||
|
updateendConsumers({ ids: this.selects,exceed_date:this.exceed_date }).then(res=>{
|
||||||
|
this.$message.success('成功')
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue