|
@@ -143,6 +143,7 @@ import { queryFlowPathSelectList, runFlowPathPass1 } from '@api/api'
|
|
|
import { Modal } from 'ant-design-vue'
|
|
|
import ItdmRunFlowPathShenhel from './modules/ItdmRunFlowPathShenhel.vue'
|
|
|
import ItdmRunFlowPathShenhel1 from './modules/ItdmRunFlowPathShenhel1.vue'
|
|
|
+import { deleteAction, getAction,downFile,getFileAccessHttpUrl } from '@/api/manage'
|
|
|
|
|
|
export default {
|
|
|
name: 'ItdmRunFlowPathList',
|
|
@@ -225,8 +226,45 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 搜索
|
|
|
+ loadData(arg) {
|
|
|
+ if(!this.url.list){
|
|
|
+ this.$message.error("请设置url.list属性!")
|
|
|
+ return
|
|
|
+ }
|
|
|
+ //加载数据 若传入参数1则加载第一页的内容
|
|
|
+ if (arg === 1) {
|
|
|
+ this.ipagination.current = 1;
|
|
|
+ }
|
|
|
+ var params = this.getQueryParams();//查询条件
|
|
|
+ this.loading = true;
|
|
|
+ getAction(this.url.list, params).then((res) => {
|
|
|
+ if (res.success) {
|
|
|
+ //update-begin---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------
|
|
|
+ this.dataSource = res.result.records||res.result;
|
|
|
+ this.options = res.result.records.map(item => {
|
|
|
+ return {
|
|
|
+ label: item.weituoClient,
|
|
|
+ value: item.id,
|
|
|
+ };
|
|
|
+ });
|
|
|
+ if(res.result.total)
|
|
|
+ {
|
|
|
+ this.ipagination.total = res.result.total;
|
|
|
+ }else{
|
|
|
+ this.ipagination.total = 0;
|
|
|
+ }
|
|
|
+ //update-end---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------
|
|
|
+ }else{
|
|
|
+ this.$message.warning(res.message)
|
|
|
+ }
|
|
|
+ }).finally(() => {
|
|
|
+ this.loading = false
|
|
|
+ })
|
|
|
+ },
|
|
|
|
|
|
tongguo: function(record) {
|
|
|
+ let that = this
|
|
|
|
|
|
Modal.confirm({
|
|
|
title: '是否通过',
|
|
@@ -234,7 +272,7 @@ export default {
|
|
|
onOk() {
|
|
|
var data = { 'runFlowPath': record.id }
|
|
|
runFlowPathPass1(data).then(response => {
|
|
|
- this.searchQuery();
|
|
|
+ that.loadData(1);
|
|
|
})
|
|
|
},
|
|
|
onCancel() {},
|