16864148 by xiaomiao

批量删除功能

1 parent ccd1fde9
......@@ -178,4 +178,3 @@ export default {
background: none;
}
</style>
\ No newline at end of file
......
......@@ -3,11 +3,15 @@
<lb-table :column="columns" :data="formData.dataList" :maxHeight="460" :heightNumSetting="true" :pagination="false"
@selection-change="handleSelectionChange">
</lb-table>
<div class="text-center">
<el-button @click="$popupCacel">取消</el-button>
<el-button type="primary" @click="childFn" plain>确定</el-button>
</div>
</div>
</template>
<script>
import { deleteFlow } from "@/api/ywbl.js"
export default {
import { deleteFlow } from "@/api/ywbl.js"
export default {
components: {},
props: {
formData: {
......@@ -44,9 +48,12 @@ export default {
childFn () {
var formdata = new FormData();
formdata.append("bsmSldyList", this.selectBdcdy);
formdata.append("bsmSlsq",this.formData.bsmSlsq);
formdata.append("bsmSlsq", this.formData.bsmSlsq);
deleteFlow(formdata).then(res => {
if (res.code == 200) {
this.$popupCacel();
location.reload()
console.log("走i了");
this.$message.success("删除成功");
} else {
this.$message.error(res.message)
......@@ -60,8 +67,7 @@ export default {
})
}
}
}
}
</script>
<style scoped lang='scss'>
</style>
......
......@@ -167,7 +167,6 @@
},
// 下拉列表切换
handleSelect (val) {
this.taskCommentList = (this.formData.allCommentList || []).filter(item => {
return item.taskDefKey === val
})
......@@ -235,7 +234,6 @@
}
if (Array.isArray(finishedTaskSet)) {
finishedTaskSet.forEach(item => canvas.addMarker(item, 'success'))
console.log(finishedTaskSet, 'finishedTaskSet');
}
if (Array.isArray(unfinishedTaskSet)) {
unfinishedTaskSet.forEach(item => canvas.addMarker(item, 'primary'))
......
......@@ -361,18 +361,12 @@ export default {
},
//批量操作
handleBatchDel () {
let that = this;
this.$popup("批量删除", "workflow/components/batchDel", {
this.$popupDialog("批量删除", "workflow/components/batchDel", {
width: "50%",
btnShow: true,
height: "600px",
formData: {
btnShow: false,
bsmSlsq: this.bsmSlsq,
dataList: this.unitData,
},
confirm: function () {
that.loadBdcdylist();
}
})
},
handleChange (file) {
......