|
|
|
@ -56,7 +56,7 @@
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-button type="warning" icon="Download" :disabled="single" @click="handleExportDef">导出</el-button>
|
|
|
|
<el-button type="warning" icon="Download" :disabled="single" @click="handleExportDef">导出</el-button>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<right-toolbar v-model:show-search="showSearch" @query-table="getList"></right-toolbar>
|
|
|
|
<right-toolbar v-model:show-search="showSearch" @query-table="handleQuery"></right-toolbar>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
|
|
|
|
<el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
|
|
|
|
@ -116,7 +116,7 @@
|
|
|
|
v-model:page="queryParams.pageNum"
|
|
|
|
v-model:page="queryParams.pageNum"
|
|
|
|
v-model:limit="queryParams.pageSize"
|
|
|
|
v-model:limit="queryParams.pageSize"
|
|
|
|
:total="total"
|
|
|
|
:total="total"
|
|
|
|
@pagination="handleQuery"
|
|
|
|
@pagination="getPageList"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-tabs>
|
|
|
|
</el-tabs>
|
|
|
|
</el-card>
|
|
|
|
</el-card>
|
|
|
|
@ -261,7 +261,7 @@ const form = ref<FlowDefinitionForm>({
|
|
|
|
formPath: ''
|
|
|
|
formPath: ''
|
|
|
|
});
|
|
|
|
});
|
|
|
|
onMounted(() => {
|
|
|
|
onMounted(() => {
|
|
|
|
handleQuery();
|
|
|
|
getPageList();
|
|
|
|
getTreeselect();
|
|
|
|
getTreeselect();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
@ -323,6 +323,18 @@ const handleSelectionChange = (selection: any) => {
|
|
|
|
multiple.value = !selection.length;
|
|
|
|
multiple.value = !selection.length;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
//分页
|
|
|
|
//分页
|
|
|
|
|
|
|
|
const getPageList = async () => {
|
|
|
|
|
|
|
|
console.log(proxy.$route.query.activeName)
|
|
|
|
|
|
|
|
if (proxy.$route.query.activeName) {
|
|
|
|
|
|
|
|
activeName.value = proxy.$route.query.activeName;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (activeName.value === '0') {
|
|
|
|
|
|
|
|
getList();
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
getUnPublishList();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
//分页
|
|
|
|
const getList = async () => {
|
|
|
|
const getList = async () => {
|
|
|
|
loading.value = true;
|
|
|
|
loading.value = true;
|
|
|
|
const resp = await listDefinition(queryParams.value);
|
|
|
|
const resp = await listDefinition(queryParams.value);
|
|
|
|
@ -422,7 +434,8 @@ const design = async (row: FlowDefinitionVo) => {
|
|
|
|
path: `/workflow/design/index`,
|
|
|
|
path: `/workflow/design/index`,
|
|
|
|
query: {
|
|
|
|
query: {
|
|
|
|
definitionId: row.id,
|
|
|
|
definitionId: row.id,
|
|
|
|
disabled: false
|
|
|
|
disabled: false,
|
|
|
|
|
|
|
|
activeName: activeName.value
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
@ -436,7 +449,8 @@ const designView = async (row: FlowDefinitionVo) => {
|
|
|
|
path: `/workflow/design/index`,
|
|
|
|
path: `/workflow/design/index`,
|
|
|
|
query: {
|
|
|
|
query: {
|
|
|
|
definitionId: row.id,
|
|
|
|
definitionId: row.id,
|
|
|
|
disabled: true
|
|
|
|
disabled: true,
|
|
|
|
|
|
|
|
activeName: activeName.value
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|