✨ 已办和申请页面添加zcProcessQueryTask查询条件
This commit is contained in:
parent
944274011e
commit
fe4951260c
@ -42,13 +42,21 @@ export const getTodoList = (current, size, params) => {
|
|||||||
* 对应接口: GET /blade-zhaocai/zcProcess/getDonePageList
|
* 对应接口: GET /blade-zhaocai/zcProcess/getDonePageList
|
||||||
*/
|
*/
|
||||||
export const getDoneList = (current, size, params) => {
|
export const getDoneList = (current, size, params) => {
|
||||||
|
const { keyWord, processName, processId, userCode, ...rest } = params;
|
||||||
|
const zcProcessQueryTask = JSON.stringify({
|
||||||
|
keyWord: keyWord || '',
|
||||||
|
processName: processName || '',
|
||||||
|
processId: processId || '',
|
||||||
|
userCode: userCode || '',
|
||||||
|
});
|
||||||
return request({
|
return request({
|
||||||
url: '/blade-zhaocai/zcProcess/getDonePageList',
|
url: '/blade-zhaocai/zcProcess/getDonePageList',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: {
|
params: {
|
||||||
...params,
|
...rest,
|
||||||
pageNo: current,
|
pageNo: current,
|
||||||
pageSize: size,
|
pageSize: size,
|
||||||
|
zcProcessQueryTask,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
@ -58,13 +66,21 @@ export const getDoneList = (current, size, params) => {
|
|||||||
* 对应接口: GET /blade-zhaocai/zcProcess/getAppliedPageList
|
* 对应接口: GET /blade-zhaocai/zcProcess/getAppliedPageList
|
||||||
*/
|
*/
|
||||||
export const getMyList = (current, size, params) => {
|
export const getMyList = (current, size, params) => {
|
||||||
|
const { keyWord, processName, processId, userCode, ...rest } = params;
|
||||||
|
const zcProcessQueryTask = JSON.stringify({
|
||||||
|
keyWord: keyWord || '',
|
||||||
|
processName: processName || '',
|
||||||
|
processId: processId || '',
|
||||||
|
userCode: userCode || '',
|
||||||
|
});
|
||||||
return request({
|
return request({
|
||||||
url: '/blade-zhaocai/zcProcess/getAppliedPageList',
|
url: '/blade-zhaocai/zcProcess/getAppliedPageList',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: {
|
params: {
|
||||||
...params,
|
...rest,
|
||||||
pageNo: current,
|
pageNo: current,
|
||||||
pageSize: size,
|
pageSize: size,
|
||||||
|
zcProcessQueryTask,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
@ -90,7 +90,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getDoneList, getDetail } from '@/api/workflow';
|
import { getDoneList, getDetail, getProcessTypes } from '@/api/workflow';
|
||||||
|
import { mapGetters } from 'vuex';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@ -105,6 +106,7 @@ export default {
|
|||||||
},
|
},
|
||||||
query: {},
|
query: {},
|
||||||
data: [],
|
data: [],
|
||||||
|
processTypes: [],
|
||||||
// 流转弹窗
|
// 流转弹窗
|
||||||
transferDialogVisible: false,
|
transferDialogVisible: false,
|
||||||
currentProcessName: '',
|
currentProcessName: '',
|
||||||
@ -126,11 +128,25 @@ export default {
|
|||||||
menuWidth: 150,
|
menuWidth: 150,
|
||||||
dialogClickModal: false,
|
dialogClickModal: false,
|
||||||
column: [
|
column: [
|
||||||
|
{
|
||||||
|
label: '关键字',
|
||||||
|
prop: 'keyWord',
|
||||||
|
search: true,
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: '流程名称',
|
label: '流程名称',
|
||||||
prop: 'processName',
|
prop: 'processName',
|
||||||
overHidden: true,
|
overHidden: true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: '流程Key',
|
||||||
|
prop: 'processId',
|
||||||
|
type: 'select',
|
||||||
|
search: true,
|
||||||
|
hide: true,
|
||||||
|
dicData: [],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: '申请人',
|
label: '申请人',
|
||||||
prop: 'tCreateUser',
|
prop: 'tCreateUser',
|
||||||
@ -150,7 +166,26 @@ export default {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
...mapGetters(['userInfo']),
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.loadProcessTypes();
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
loadProcessTypes() {
|
||||||
|
getProcessTypes().then(res => {
|
||||||
|
const data = res.data.data;
|
||||||
|
this.processTypes = data.map(item => ({
|
||||||
|
label: item.processName,
|
||||||
|
value: item.processId,
|
||||||
|
}));
|
||||||
|
const processIdColumn = this.option.column.find(item => item.prop === 'processId');
|
||||||
|
if (processIdColumn) {
|
||||||
|
processIdColumn.dicData = this.processTypes;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
searchReset() {
|
searchReset() {
|
||||||
this.query = {};
|
this.query = {};
|
||||||
this.onLoad(this.page);
|
this.onLoad(this.page);
|
||||||
@ -175,6 +210,8 @@ export default {
|
|||||||
const query = {
|
const query = {
|
||||||
...this.query,
|
...this.query,
|
||||||
...params,
|
...params,
|
||||||
|
userCode: this.userInfo.account,
|
||||||
|
processName: '',
|
||||||
};
|
};
|
||||||
getDoneList(page.currentPage, page.pageSize, query).then(res => {
|
getDoneList(page.currentPage, page.pageSize, query).then(res => {
|
||||||
const data = res.data.data;
|
const data = res.data.data;
|
||||||
|
|||||||
@ -97,6 +97,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getMyList, getProcessTypes } from '@/api/workflow';
|
import { getMyList, getProcessTypes } from '@/api/workflow';
|
||||||
|
import { mapGetters } from 'vuex';
|
||||||
import { Document } from '@element-plus/icons-vue';
|
import { Document } from '@element-plus/icons-vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -122,7 +123,7 @@ export default {
|
|||||||
height: 'auto',
|
height: 'auto',
|
||||||
calcHeight: 32,
|
calcHeight: 32,
|
||||||
tip: false,
|
tip: false,
|
||||||
searchShow: false,
|
searchShow: true,
|
||||||
searchMenuSpan: 6,
|
searchMenuSpan: 6,
|
||||||
border: true,
|
border: true,
|
||||||
index: true,
|
index: true,
|
||||||
@ -134,12 +135,25 @@ export default {
|
|||||||
menuWidth: 200,
|
menuWidth: 200,
|
||||||
dialogClickModal: false,
|
dialogClickModal: false,
|
||||||
column: [
|
column: [
|
||||||
|
{
|
||||||
|
label: '关键字',
|
||||||
|
prop: 'keyWord',
|
||||||
|
search: true,
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: '流程名称',
|
label: '流程名称',
|
||||||
prop: 'processName',
|
prop: 'processName',
|
||||||
search: true,
|
|
||||||
overHidden: true,
|
overHidden: true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: '流程Key',
|
||||||
|
prop: 'processId',
|
||||||
|
type: 'select',
|
||||||
|
search: true,
|
||||||
|
hide: true,
|
||||||
|
dicData: [],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: '状态',
|
label: '状态',
|
||||||
prop: 'status',
|
prop: 'status',
|
||||||
@ -173,6 +187,9 @@ export default {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
...mapGetters(['userInfo']),
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.loadProcessTypes();
|
this.loadProcessTypes();
|
||||||
},
|
},
|
||||||
@ -184,6 +201,10 @@ export default {
|
|||||||
label: item.processName,
|
label: item.processName,
|
||||||
value: item.processId,
|
value: item.processId,
|
||||||
}));
|
}));
|
||||||
|
const processIdColumn = this.option.column.find(item => item.prop === 'processId');
|
||||||
|
if (processIdColumn) {
|
||||||
|
processIdColumn.dicData = this.processTypes;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
searchReset() {
|
searchReset() {
|
||||||
@ -210,6 +231,8 @@ export default {
|
|||||||
const query = {
|
const query = {
|
||||||
...this.query,
|
...this.query,
|
||||||
...params,
|
...params,
|
||||||
|
userCode: this.userInfo.account,
|
||||||
|
processName: '',
|
||||||
};
|
};
|
||||||
getMyList(page.currentPage, page.pageSize, query).then(res => {
|
getMyList(page.currentPage, page.pageSize, query).then(res => {
|
||||||
const data = res.data.data;
|
const data = res.data.data;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user