commit
f1da757a4c
|
@ -67,7 +67,7 @@
|
||||||
"vue-router": "^4.3.0",
|
"vue-router": "^4.3.0",
|
||||||
"vue-types": "^5.1.1",
|
"vue-types": "^5.1.1",
|
||||||
"vuedraggable": "^4.1.0",
|
"vuedraggable": "^4.1.0",
|
||||||
"vxe-table": "^4.5.21",
|
"vxe-table": "4.5.21",
|
||||||
"web-storage-cache": "^1.1.1",
|
"web-storage-cache": "^1.1.1",
|
||||||
"xe-utils": "^3.5.22",
|
"xe-utils": "^3.5.22",
|
||||||
"xml-js": "^1.6.11"
|
"xml-js": "^1.6.11"
|
||||||
|
@ -125,7 +125,7 @@
|
||||||
"vite-plugin-progress": "^0.0.7",
|
"vite-plugin-progress": "^0.0.7",
|
||||||
"vite-plugin-purge-icons": "^0.10.0",
|
"vite-plugin-purge-icons": "^0.10.0",
|
||||||
"vite-plugin-svg-icons": "^2.0.1",
|
"vite-plugin-svg-icons": "^2.0.1",
|
||||||
"vite-plugin-top-level-await": "^1.3.1",
|
"vite-plugin-top-level-await": "1.3.1",
|
||||||
"vue-eslint-parser": "^9.3.2",
|
"vue-eslint-parser": "^9.3.2",
|
||||||
"vue-tsc": "^1.8.27"
|
"vue-tsc": "^1.8.27"
|
||||||
},
|
},
|
||||||
|
|
|
@ -68,13 +68,11 @@ const resetBaseInfo = () => {
|
||||||
console.log(bpmnElement.value, 'bpmnElement')
|
console.log(bpmnElement.value, 'bpmnElement')
|
||||||
|
|
||||||
bpmnElement.value = bpmnInstances()?.bpmnElement
|
bpmnElement.value = bpmnInstances()?.bpmnElement
|
||||||
console.log(bpmnElement.value, 'resetBaseInfo11111111111')
|
|
||||||
elementBaseInfo.value = bpmnElement.value.businessObject
|
elementBaseInfo.value = bpmnElement.value.businessObject
|
||||||
needProps.value['type'] = bpmnElement.value.businessObject.$type
|
needProps.value['type'] = bpmnElement.value.businessObject.$type
|
||||||
// elementBaseInfo.value['typess'] = bpmnElement.value.businessObject.$type
|
// elementBaseInfo.value['typess'] = bpmnElement.value.businessObject.$type
|
||||||
|
|
||||||
// elementBaseInfo.value = JSON.parse(JSON.stringify(bpmnElement.value.businessObject))
|
// elementBaseInfo.value = JSON.parse(JSON.stringify(bpmnElement.value.businessObject))
|
||||||
console.log(elementBaseInfo.value, 'elementBaseInfo22222222222')
|
|
||||||
}
|
}
|
||||||
const handleKeyUpdate = (value) => {
|
const handleKeyUpdate = (value) => {
|
||||||
// 校验 value 的值,只有 XML NCName 通过的情况下,才进行赋值。否则,会导致流程图报错,无法绘制的问题
|
// 校验 value 的值,只有 XML NCName 通过的情况下,才进行赋值。否则,会导致流程图报错,无法绘制的问题
|
||||||
|
@ -121,7 +119,6 @@ const updateBaseInfo = (key) => {
|
||||||
// id: elementBaseInfo.value[key]
|
// id: elementBaseInfo.value[key]
|
||||||
// // di: { id: `${elementBaseInfo.value[key]}_di` }
|
// // di: { id: `${elementBaseInfo.value[key]}_di` }
|
||||||
// }
|
// }
|
||||||
console.log(elementBaseInfo, 'elementBaseInfo11111111111')
|
|
||||||
needProps.value = { ...elementBaseInfo.value, ...needProps.value }
|
needProps.value = { ...elementBaseInfo.value, ...needProps.value }
|
||||||
|
|
||||||
if (key === 'id') {
|
if (key === 'id') {
|
||||||
|
@ -144,14 +141,12 @@ onMounted(() => {
|
||||||
console.log(props.model, 'props.model')
|
console.log(props.model, 'props.model')
|
||||||
handleKeyUpdate(props.model.key)
|
handleKeyUpdate(props.model.key)
|
||||||
handleNameUpdate(props.model.name)
|
handleNameUpdate(props.model.name)
|
||||||
console.log(props, 'propsssssssssssssssssssss')
|
|
||||||
}, 1000)
|
}, 1000)
|
||||||
})
|
})
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => props.businessObject,
|
() => props.businessObject,
|
||||||
(val) => {
|
(val) => {
|
||||||
console.log(val, 'val11111111111111111111')
|
|
||||||
if (val) {
|
if (val) {
|
||||||
// nextTick(() => {
|
// nextTick(() => {
|
||||||
resetBaseInfo()
|
resetBaseInfo()
|
||||||
|
|
|
@ -77,7 +77,6 @@ const attributeFormRef = ref()
|
||||||
const bpmnInstances = () => (window as any)?.bpmnInstances
|
const bpmnInstances = () => (window as any)?.bpmnInstances
|
||||||
|
|
||||||
const resetAttributesList = () => {
|
const resetAttributesList = () => {
|
||||||
console.log(window, 'windowwindowwindowwindowwindowwindowwindow')
|
|
||||||
bpmnElement.value = bpmnInstances().bpmnElement
|
bpmnElement.value = bpmnInstances().bpmnElement
|
||||||
otherExtensionList.value = [] // 其他扩展配置
|
otherExtensionList.value = [] // 其他扩展配置
|
||||||
bpmnElementProperties.value =
|
bpmnElementProperties.value =
|
||||||
|
|
|
@ -7,7 +7,7 @@ export const filterAffixTags = (routes: AppRouteRecordRaw[], parentPath = '') =>
|
||||||
const meta = route.meta as RouteMeta
|
const meta = route.meta as RouteMeta
|
||||||
const tagPath = pathResolve(parentPath, route.path)
|
const tagPath = pathResolve(parentPath, route.path)
|
||||||
if (meta?.affix) {
|
if (meta?.affix) {
|
||||||
tags.push({ ...route, path: tagPath, fullPath: tagPath } as RouteLocationNormalizedLoaded)
|
tags.push({ ...route, path: tagPath, fullPath: tagPath, matched: [ {}, { meta } ] } as RouteLocationNormalizedLoaded)
|
||||||
}
|
}
|
||||||
if (route.children) {
|
if (route.children) {
|
||||||
const tempTags: RouteLocationNormalizedLoaded[] = filterAffixTags(route.children, tagPath)
|
const tempTags: RouteLocationNormalizedLoaded[] = filterAffixTags(route.children, tagPath)
|
||||||
|
|
|
@ -21,7 +21,8 @@ const props = defineProps({
|
||||||
})
|
})
|
||||||
|
|
||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
const avatar = computed(() => userStore.user.avatar ?? avatarImg)
|
const avatar = computed(() => (userStore.user?.avatar != null && userStore.user?.avatar != '') ?
|
||||||
|
userStore.user?.avatar : avatarImg)
|
||||||
const userName = computed(() => userStore.user.nickname ?? 'Admin')
|
const userName = computed(() => userStore.user.nickname ?? 'Admin')
|
||||||
|
|
||||||
const emit = defineEmits(['update:modelValue'])
|
const emit = defineEmits(['update:modelValue'])
|
||||||
|
|
|
@ -22,7 +22,8 @@ const showDate = ref(true)
|
||||||
const { getPrefixCls } = useDesign()
|
const { getPrefixCls } = useDesign()
|
||||||
const prefixCls = getPrefixCls('lock-page')
|
const prefixCls = getPrefixCls('lock-page')
|
||||||
|
|
||||||
const avatar = computed(() => userStore.user.avatar ?? avatarImg)
|
const avatar = computed(() => (userStore.user?.avatar != null && userStore.user?.avatar != '') ?
|
||||||
|
userStore.user?.avatar : avatarImg)
|
||||||
const userName = computed(() => userStore.user.nickname ?? 'Admin')
|
const userName = computed(() => userStore.user.nickname ?? 'Admin')
|
||||||
|
|
||||||
const lockStore = useLockStore()
|
const lockStore = useLockStore()
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
<template>
|
<template>
|
||||||
<doc-alert title="数据库文档" url="https://doc.iocoder.cn/db-doc/" />
|
|
||||||
|
|
||||||
<ContentWrap title="数据库文档">
|
<ContentWrap title="数据库文档">
|
||||||
<div class="mb-10px">
|
<div class="mb-10px">
|
||||||
<el-button type="primary" plain @click="handleExport('HTML')">
|
<el-button type="primary" plain @click="handleExport('HTML')">
|
||||||
|
|
|
@ -5,7 +5,8 @@ const { t } = useI18n()
|
||||||
export const rules = reactive({
|
export const rules = reactive({
|
||||||
name: [required],
|
name: [required],
|
||||||
code: [required],
|
code: [required],
|
||||||
sort: [required]
|
sort: [required],
|
||||||
|
status: [required]
|
||||||
})
|
})
|
||||||
// CrudSchema
|
// CrudSchema
|
||||||
const crudSchemas = reactive<VxeCrudSchema>({
|
const crudSchemas = reactive<VxeCrudSchema>({
|
||||||
|
|
|
@ -4,7 +4,6 @@ const { t } = useI18n() // 国际化
|
||||||
const tenantPackageOption = []
|
const tenantPackageOption = []
|
||||||
const getTenantPackageOptions = async () => {
|
const getTenantPackageOptions = async () => {
|
||||||
const res = await smsApi.getSimpleSmsChannels()
|
const res = await smsApi.getSimpleSmsChannels()
|
||||||
console.log(res, 'resresres')
|
|
||||||
res.forEach((tenantPackage: TenantPackageVO) => {
|
res.forEach((tenantPackage: TenantPackageVO) => {
|
||||||
tenantPackageOption.push({
|
tenantPackageOption.push({
|
||||||
key: tenantPackage.id,
|
key: tenantPackage.id,
|
||||||
|
|
|
@ -29,7 +29,7 @@ const validateName = (rule: any, value: any, callback: any) => {
|
||||||
if (value === '') {
|
if (value === '') {
|
||||||
callback(new Error('请输入用户名称'))
|
callback(new Error('请输入用户名称'))
|
||||||
} else {
|
} else {
|
||||||
console.log(reg.test(rule), 'reg.test(rule)')
|
// console.log(reg.test(rule), 'reg.test(rule)')
|
||||||
if (!reg.test(value)) {
|
if (!reg.test(value)) {
|
||||||
callback(new Error('用户名称由 数字、字母 组成'))
|
callback(new Error('用户名称由 数字、字母 组成'))
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue