...
|
...
|
@@ -38,7 +38,6 @@ export default { |
|
|
}
|
|
|
$.get(proxy.domainName + proxy.apiUrl + '?access_token=' + localStorage.getItem('access_token'), params, function (res) {
|
|
|
if (res) {
|
|
|
console.log("res", res)
|
|
|
proxy.totalCount = res.count;
|
|
|
proxy.tableData = res.data;
|
|
|
proxy.tableData.map((item, index) => {
|
...
|
...
|
@@ -67,14 +66,31 @@ export default { |
|
|
this.$refs.multipleTable.clearSelection()
|
|
|
}
|
|
|
}
|
|
|
let multipleSelection=Vue.ref([]);
|
|
|
const handleSelectionChange = (val) => {
|
|
|
this.multipleSelection = val
|
|
|
multipleSelection.value = val
|
|
|
}
|
|
|
//单个删除
|
|
|
const handleDelete = (item) => {
|
|
|
|
|
|
//lsq 增加批量删除 2022-08-29
|
|
|
let idList='';
|
|
|
if(item){
|
|
|
idList=item.id
|
|
|
}else{
|
|
|
if(multipleSelection.value && multipleSelection.value.length>0){
|
|
|
let idArr=[];
|
|
|
multipleSelection.value.map(item=>{
|
|
|
idArr.push(item.id)
|
|
|
})
|
|
|
if(idArr.length>0){
|
|
|
idList=idArr.join(',')
|
|
|
}
|
|
|
}else{
|
|
|
proxy.$global.showMsg("请选择数据", "warning");
|
|
|
}
|
|
|
}
|
|
|
let params = {
|
|
|
id: item.id
|
|
|
id: idList
|
|
|
}
|
|
|
|
|
|
proxy.$global.confirm("确认删除数据吗?", function () {
|
...
|
...
|
@@ -90,7 +106,6 @@ export default { |
|
|
}
|
|
|
})
|
|
|
|
|
|
|
|
|
// $.get(proxy.domainName +proxy.apiUrl1+'?access_token='+localStorage.getItem('access_token'),params,function (res) {
|
|
|
// if(res){
|
|
|
// proxy.$global.confirm("确认删除数据吗?", function () {
|
...
|
...
|
|