🌈 style: 代码样式更改
This commit is contained in:
parent
2bc47b5995
commit
47c42cc058
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<doc-alert title="流程表达式" url="https://doc.iocoder.cn/bpm/expression/" />
|
<!-- <doc-alert title="流程表达式" url="https://doc.iocoder.cn/bpm/expression/" /> -->
|
||||||
|
|
||||||
<ContentWrap>
|
<ContentWrap>
|
||||||
<!-- 搜索工作栏 -->
|
<!-- 搜索工作栏 -->
|
||||||
|
@ -122,7 +122,7 @@ const { t } = useI18n() // 国际化
|
||||||
const loading = ref(true) // 列表的加载中
|
const loading = ref(true) // 列表的加载中
|
||||||
const list = ref<ProcessExpressionVO[]>([]) // 列表的数据
|
const list = ref<ProcessExpressionVO[]>([]) // 列表的数据
|
||||||
const total = ref(0) // 列表的总页数
|
const total = ref(0) // 列表的总页数
|
||||||
const queryParams = reactive({
|
const queryParams: any = reactive({
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
name: undefined,
|
name: undefined,
|
||||||
|
@ -130,7 +130,7 @@ const queryParams = reactive({
|
||||||
createTime: []
|
createTime: []
|
||||||
})
|
})
|
||||||
const queryFormRef = ref() // 搜索的表单
|
const queryFormRef = ref() // 搜索的表单
|
||||||
const exportLoading = ref(false) // 导出的加载中
|
// const exportLoading = ref(false) // 导出的加载中
|
||||||
|
|
||||||
/** 查询列表 */
|
/** 查询列表 */
|
||||||
const getList = async () => {
|
const getList = async () => {
|
||||||
|
|
|
@ -110,7 +110,7 @@ const { push, currentRoute } = useRouter() // 路由
|
||||||
const message = useMessage() // 消息
|
const message = useMessage() // 消息
|
||||||
const { delView } = useTagsViewStore() // 视图操作
|
const { delView } = useTagsViewStore() // 视图操作
|
||||||
|
|
||||||
const processInstanceId = route.query.processInstanceId
|
const processInstanceId: any = route.query.processInstanceId
|
||||||
const loading = ref(true) // 加载中
|
const loading = ref(true) // 加载中
|
||||||
const categoryList:any = ref([]) // 分类的列表
|
const categoryList:any = ref([]) // 分类的列表
|
||||||
const categoryActive = ref('') // 选中的分类
|
const categoryActive = ref('') // 选中的分类
|
||||||
|
@ -138,7 +138,7 @@ const getList = async () => {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
const processDefinition = processDefinitionList.value.find(
|
const processDefinition = processDefinitionList.value.find(
|
||||||
(item) => item.key == processInstance.processDefinition?.key
|
(item: any) => item.key == processInstance.processDefinition?.key
|
||||||
)
|
)
|
||||||
if (!processDefinition) {
|
if (!processDefinition) {
|
||||||
message.error('重新发起流程失败,原因:流程定义不存在')
|
message.error('重新发起流程失败,原因:流程定义不存在')
|
||||||
|
@ -152,13 +152,13 @@ const getList = async () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 选中分类对应的流程定义列表 */
|
/** 选中分类对应的流程定义列表 */
|
||||||
const categoryProcessDefinitionList = computed(() => {
|
const categoryProcessDefinitionList: any = computed(() => {
|
||||||
return processDefinitionList.value.filter((item) => item.category == categoryActive.value)
|
return processDefinitionList.value.filter((item: any) => item.category == categoryActive.value)
|
||||||
})
|
})
|
||||||
|
|
||||||
// ========== 表单相关 ==========
|
// ========== 表单相关 ==========
|
||||||
const fApi = ref<ApiAttrs>()
|
const fApi = ref<ApiAttrs>()
|
||||||
const detailForm = ref({
|
const detailForm: any = ref({
|
||||||
rule: [],
|
rule: [],
|
||||||
option: {},
|
option: {},
|
||||||
value: {}
|
value: {}
|
||||||
|
|
|
@ -278,7 +278,7 @@ const { t } = useI18n() // 国际化
|
||||||
const loading = ref(true) // 列表的加载中
|
const loading = ref(true) // 列表的加载中
|
||||||
const total = ref(0) // 列表的总页数
|
const total = ref(0) // 列表的总页数
|
||||||
const list = ref([]) // 列表的数据
|
const list = ref([]) // 列表的数据
|
||||||
const queryParams = reactive({
|
const queryParams: any = reactive({
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
sceneType: '1', // 默认和 activeName 相等
|
sceneType: '1', // 默认和 activeName 相等
|
||||||
|
@ -294,7 +294,7 @@ const customerList = ref<CustomerApi.CustomerVO[]>([]) // 客户列表
|
||||||
|
|
||||||
/** tab 切换 */
|
/** tab 切换 */
|
||||||
const handleTabClick = (tab: TabsPaneContext) => {
|
const handleTabClick = (tab: TabsPaneContext) => {
|
||||||
queryParams.sceneType = tab.paneName
|
queryParams.sceneType = tab.paneName!.toString()
|
||||||
handleQuery()
|
handleQuery()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -185,7 +185,7 @@ const openForm = (type: string, id?: number) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 打开详情 */
|
/** 打开详情 */
|
||||||
const { currentRoute, push } = useRouter()
|
const { push } = useRouter()
|
||||||
const openDetail = (id: number) => {
|
const openDetail = (id: number) => {
|
||||||
push({ name: 'CrmProductDetail', params: { id } })
|
push({ name: 'CrmProductDetail', params: { id } })
|
||||||
}
|
}
|
||||||
|
|
|
@ -219,7 +219,7 @@ const message = useMessage() // 消息弹窗
|
||||||
const loading = ref(true) // 列表的加载中
|
const loading = ref(true) // 列表的加载中
|
||||||
const total = ref(0) // 列表的总页数
|
const total = ref(0) // 列表的总页数
|
||||||
const list = ref([]) // 列表的数据
|
const list = ref([]) // 列表的数据
|
||||||
const queryParams = reactive({
|
const queryParams: any = reactive({
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
nickname: null,
|
nickname: null,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user