ae291472 by renchao@pashanhoo.com
2 parents e87bf67f 6aa657ab
/*
* @Description: api请求配置文件
* @Autor: renchao
* @LastEditTime: 2023-04-18 14:14:07
* 这个文件不需要,谁提交谁记得改回来,不改回来,就是脑残。
* 这个文件不需要,谁提交谁记得改回来,不改回来,就是脑残。
* 这个文件不需要,谁提交谁记得改回来,不改回来,就是脑残。
* 这个文件不需要,谁提交谁记得改回来,不改回来,就是脑残。
* 这个文件不需要,谁提交谁记得改回来,不改回来,就是脑残。
*/
export default {
SERVERAPI: 'bdcdj'
}
\ No newline at end of file
......@@ -178,4 +178,3 @@ export default {
background: none;
}
</style>
\ No newline at end of file
......
......@@ -8,65 +8,71 @@
<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 {
components: {},
props: {
formData: {
type: Object,
default: {}
}
},
data () {
return {
columns: [
{
type: 'selection',
label: '全选'
},
{
label: '序号',
type: 'index',
width: '50',
},
{
prop: "bdcdyh",
label: "不动产单元号",
},
{
prop: "zl",
label: "坐落",
},
],
dataList: [],
selectBdcdy: [],
}
},
methods: {
childFn () {
var formdata = new FormData();
formdata.append("bsmSldyList", this.selectBdcdy);
formdata.append("bsmSlsq",this.formData.bsmSlsq);
deleteFlow(formdata).then(res => {
if (res.code == 200) {
this.$message.success("删除成功");
} else {
this.$message.error(res.message)
}
})
import { deleteFlow } from "@/api/ywbl.js"
import store from '@/store/index.js'
export default {
components: {},
props: {
formData: {
type: Object,
default: {}
}
},
data () {
return {
columns: [
{
type: 'selection',
label: '全选'
},
{
label: '序号',
type: 'index',
width: '50',
},
{
prop: "bdcdyh",
label: "不动产单元号",
},
{
prop: "zl",
label: "坐落",
},
],
dataList: [],
selectBdcdy: [],
}
},
handleSelectionChange (e) {
this.selectBdcdy = [];
e.forEach((item, index) => {
this.selectBdcdy.push(item.bsmSldy)
})
methods: {
childFn () {
var formdata = new FormData();
formdata.append("bsmSldyList", this.selectBdcdy);
formdata.append("bsmSlsq", this.formData.bsmSlsq);
deleteFlow(formdata).then(res => {
if (res.code == 200) {
this.$popupCacel();
store.dispatch('user/refreshPage', true);
this.$message.success("删除成功");
} else {
this.$message.error(res.message)
}
})
},
handleSelectionChange (e) {
this.selectBdcdy = [];
e.forEach((item, index) => {
this.selectBdcdy.push(item.bsmSldy)
})
}
}
}
}
</script>
<style scoped lang='scss'>
</style>
\ No newline at end of file
</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'))
......
......@@ -11,6 +11,7 @@ import {
completeTask,
getNextLinkInfo,
} from "@/api/fqsq.js";
import { mapGetters } from 'vuex'
import { log } from "bpmn-js-token-simulation";
export default {
data () {
......@@ -29,6 +30,16 @@ export default {
batchButtonName: '',
}
},
computed: {
...mapGetters(['isRefresh'])
},
watch: {
isRefresh: {
handler (newVal, oldVal) {
if (newVal) this.loadBdcdylist()
}
}
},
mounted () {
this.flowInitParam();
this.loadBdcdylist();
......@@ -361,18 +372,12 @@ export default {
},
//批量操作
handleBatchDel () {
let that = this;
this.$popup("批量删除", "workflow/components/batchDel", {
this.$popupDialog("批量删除", "workflow/components/batchDel", {
width: "50%",
btnShow: true,
height: "600px",
formData: {
bsmSlsq: this.bsmSlsq,
dataList: this.unitData,
},
confirm: function () {
that.loadBdcdylist();
}
btnShow: false,
bsmSlsq: this.bsmSlsq,
dataList: this.unitData,
})
},
handleChange (file) {
......