feat:电子钱包用户查询bug
This commit is contained in:
1 parent
a7ea3cdf83
commit
a2d8ce7ad3
5 files changed
+76
-112
No files matched your search
@@ -17,9 +17,9 @@
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button icon="search" type="primary" @click="getDataList">
|
||||
{{ $t('common.queryBtn') }}
|
||||
{{ $t("common.queryBtn") }}
|
||||
</el-button>
|
||||
<el-button icon="Refresh" @click="resetQuery">{{ $t('common.resetBtn') }}</el-button>
|
||||
<el-button icon="Refresh" @click="resetQuery">{{ $t("common.resetBtn") }}</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-row>
|
||||
@@ -59,7 +59,7 @@
|
||||
|
||||
<pagination @current-change="currentChangeHandle" @size-change="sizeChangeHandle" v-bind="state.pagination"></pagination>
|
||||
|
||||
<!-- 右侧抽屉-->
|
||||
<!--右侧抽屉-->
|
||||
<el-drawer v-model="rightDrawerVisible" direction="rtl" size="400px">
|
||||
<template #header>
|
||||
<h3>{{ currentData?.processName }}</h3>
|
||||
@@ -104,108 +104,108 @@
|
||||
</div>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import FormRender from '/@/views/flow/form/render/FormRender.vue';
|
||||
import AgreeHandle from './handler/agree.vue';
|
||||
import RefuseHandle from './handler/refuse.vue';
|
||||
import TransferHandle from './handler/transfer.vue';
|
||||
import FlowNodeFormat from '/@/views/flow/form/tools/FlowNodeFormatData.vue';
|
||||
import other from '/@/utils/other';
|
||||
import { queryMineTask, queryTask } from '/@/api/flow/task';
|
||||
import { BasicTableProps, useTable } from '/@/hooks/table';
|
||||
import FormRender from "/@/views/flow/form/render/FormRender.vue"
|
||||
import AgreeHandle from "./handler/agree.vue"
|
||||
import RefuseHandle from "./handler/refuse.vue"
|
||||
import TransferHandle from "./handler/transfer.vue"
|
||||
import FlowNodeFormat from "/@/views/flow/form/tools/FlowNodeFormatData.vue"
|
||||
import other from "/@/utils/other"
|
||||
import { queryMineTask, queryTask } from "/@/api/flow/task"
|
||||
import { BasicTableProps, useTable } from "/@/hooks/table"
|
||||
|
||||
const rightDrawerVisible = ref(false);
|
||||
const showSearch = ref(true);
|
||||
const loading = ref(false);
|
||||
const queryRef = ref();
|
||||
const rightDrawerVisible = ref(false)
|
||||
const showSearch = ref(true)
|
||||
const loading = ref(false)
|
||||
const queryRef = ref()
|
||||
|
||||
const currentData = ref();
|
||||
const currentData = ref()
|
||||
const state: BasicTableProps = reactive<BasicTableProps>({
|
||||
pageList: queryMineTask,
|
||||
queryForm: {
|
||||
processName: '',
|
||||
processName: "",
|
||||
taskTime: undefined,
|
||||
},
|
||||
});
|
||||
})
|
||||
|
||||
const { tableStyle, getDataList, currentChangeHandle, sizeChangeHandle } = useTable(state);
|
||||
const { tableStyle, getDataList, currentChangeHandle, sizeChangeHandle } = useTable(state)
|
||||
|
||||
/**
|
||||
* 点击开始处理
|
||||
* @param row
|
||||
*/
|
||||
const deal = (row: any) => {
|
||||
currentData.value = row;
|
||||
currentData.value = row
|
||||
queryTask(row.taskId, false).then((res) => {
|
||||
currentOpenFlowForm.value = res.data.formItems;
|
||||
rightDrawerVisible.value = true;
|
||||
});
|
||||
};
|
||||
const currentOpenFlowForm = ref();
|
||||
currentOpenFlowForm.value = res.data.formItems
|
||||
rightDrawerVisible.value = true
|
||||
})
|
||||
}
|
||||
const currentOpenFlowForm = ref()
|
||||
const addLayoutOneItem = (id: Number) => {
|
||||
for (const item of currentOpenFlowForm.value) {
|
||||
if (item.id !== id) {
|
||||
continue;
|
||||
continue
|
||||
}
|
||||
let value = item.props.value;
|
||||
let oriForm = item.props.oriForm;
|
||||
value.push(other.deepClone(oriForm));
|
||||
item.props.value = value;
|
||||
let value = item.props.value
|
||||
let oriForm = item.props.oriForm
|
||||
value.push(other.deepClone(oriForm))
|
||||
item.props.value = value
|
||||
}
|
||||
};
|
||||
}
|
||||
const deleteLayoutOneItem = (id, index) => {
|
||||
for (const item of currentOpenFlowForm.value) {
|
||||
if (item.id !== id) {
|
||||
continue;
|
||||
continue
|
||||
}
|
||||
item.props.value.splice(index, 1);
|
||||
item.props.value.splice(index, 1)
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
const agreeHandler = ref();
|
||||
const refuseHandler = ref();
|
||||
const transferHandler = ref();
|
||||
const agreeHandler = ref()
|
||||
const refuseHandler = ref()
|
||||
const transferHandler = ref()
|
||||
|
||||
// 清空搜索条件
|
||||
const resetQuery = () => {
|
||||
queryRef.value.resetFields();
|
||||
getDataList();
|
||||
};
|
||||
queryRef.value.resetFields()
|
||||
getDataList()
|
||||
}
|
||||
|
||||
const taskSubmitEvent = () => {
|
||||
rightDrawerVisible.value = false;
|
||||
getDataList();
|
||||
};
|
||||
rightDrawerVisible.value = false
|
||||
getDataList()
|
||||
}
|
||||
|
||||
/**
|
||||
* 提交任务
|
||||
*/
|
||||
const submitTask = () => {
|
||||
agreeHandler.value.handle(currentData.value, currentOpenFlowForm.value);
|
||||
};
|
||||
agreeHandler.value.handle(currentData.value, currentOpenFlowForm.value)
|
||||
}
|
||||
/**
|
||||
* 拒绝任务
|
||||
*/
|
||||
const refuseTask = () => {
|
||||
refuseHandler.value.handle(currentData.value, currentOpenFlowForm.value);
|
||||
};
|
||||
refuseHandler.value.handle(currentData.value, currentOpenFlowForm.value)
|
||||
}
|
||||
|
||||
/**
|
||||
* 转办任务
|
||||
*/
|
||||
const transferTask = () => {
|
||||
transferHandler.value.handle(currentData.value, currentOpenFlowForm.value);
|
||||
};
|
||||
transferHandler.value.handle(currentData.value, currentOpenFlowForm.value)
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
getDataList();
|
||||
});
|
||||
getDataList()
|
||||
})
|
||||
|
||||
const formValue = computed(() => {
|
||||
const obj = {};
|
||||
const obj = {}
|
||||
|
||||
for (var item of currentOpenFlowForm.value) {
|
||||
obj[item.id] = item.props.value;
|
||||
obj[item.id] = item.props.value
|
||||
}
|
||||
return obj;
|
||||
});
|
||||
return obj
|
||||
})
|
||||
</script>
|
||||
@@ -68,11 +68,7 @@
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
@current-change="currentChangeHandle"
|
||||
@size-change="sizeChangeHandle"
|
||||
v-bind="state.pagination"
|
||||
></pagination>
|
||||
<pagination @current-change="currentChangeHandle" @size-change="sizeChangeHandle" v-bind="state.pagination"></pagination>
|
||||
<!-- 右侧抽屉-->
|
||||
<el-drawer v-model="rightDrawerVisible" direction="rtl" size="400px">
|
||||
<template #header>
|
||||
|
||||
Reference in new issue
Block a user