Skip to content

Commit f25a4d7

Browse files
committed
Merge remote-tracking branch 'yudao/dev' into dev
2 parents 3536077 + 1a1bfe0 commit f25a4d7

File tree

23 files changed

+69
-368
lines changed

23 files changed

+69
-368
lines changed

build/vite/optimize.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ const include = [
7575
'element-plus/es/components/dropdown-item/style/css',
7676
'element-plus/es/components/badge/style/css',
7777
'element-plus/es/components/breadcrumb/style/css',
78-
'element-plus/es/components/breadcrumb-item/style/css'
78+
'element-plus/es/components/breadcrumb-item/style/css',
79+
'element-plus/es/components/image/style/css'
7980
]
8081

8182
const exclude = ['@iconify/json']

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
"steady-xml": "^0.1.0",
6464
"url": "^0.11.0",
6565
"video.js": "^8.0.4",
66-
"vite-plugin-vue-setup-extend-plus": "^0.1.0",
6766
"vue": "3.2.47",
6867
"vue-i18n": "9.2.2",
6968
"vue-router": "^4.1.6",

src/components/Icon/src/IconSelect.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ watch(
9595
return props.modelValue
9696
},
9797
() => {
98-
if (props.modelValue) {
98+
if (props.modelValue && props.modelValue.indexOf(':') >= 0) {
9999
currentActiveType.value = props.modelValue.substring(0, props.modelValue.indexOf(':') + 1)
100100
icon.value = props.modelValue.substring(props.modelValue.indexOf(':') + 1)
101101
}

src/utils/dict.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export interface DictDataType {
2121
}
2222

2323
export const getDictOptions = (dictType: string) => {
24-
return dictStore.getDictByType(dictType)
24+
return dictStore.getDictByType(dictType) || []
2525
}
2626

2727
export const getIntDictOptions = (dictType: string) => {
@@ -117,6 +117,7 @@ export enum DICT_TYPE {
117117
INFRA_API_ERROR_LOG_PROCESS_STATUS = 'infra_api_error_log_process_status',
118118
INFRA_CONFIG_TYPE = 'infra_config_type',
119119
INFRA_CODEGEN_TEMPLATE_TYPE = 'infra_codegen_template_type',
120+
INFRA_CODEGEN_FRONT_TYPE = 'infra_codegen_front_type',
120121
INFRA_CODEGEN_SCENE = 'infra_codegen_scene',
121122
INFRA_FILE_STORAGE = 'infra_file_storage',
122123

src/views/infra/codegen/EditTable.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const { query } = useRoute() // 查询参数
3030
const { delView } = useTagsViewStore() // 视图操作
3131
3232
const formLoading = ref(false) // 表单的加载中:1)修改时的数据加载;2)提交的按钮禁用
33-
const activeName = ref('basicInfo') // Tag 激活的窗口
33+
const activeName = ref('colum') // Tag 激活的窗口
3434
const basicInfoRef = ref<ComponentRef<typeof BasicInfoForm>>()
3535
const columInfoRef = ref<ComponentRef<typeof ColumInfoForm>>()
3636
const generateInfoRef = ref<ComponentRef<typeof GenerateInfoForm>>()

src/views/infra/codegen/PreviewCode.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
v-loading="loading"
1616
element-loading-text="生成文件目录中..."
1717
>
18-
<el-scrollbar height="calc(100vh - 88px - 40px - 50px)">
18+
<el-scrollbar height="calc(100vh - 88px - 40px)">
1919
<el-tree
2020
ref="treeRef"
2121
node-key="id"

src/views/infra/codegen/components/GenerateInfoForm.vue

Lines changed: 35 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,19 @@
1313
</el-select>
1414
</el-form-item>
1515
</el-col>
16+
<el-col :span="12">
17+
<el-form-item prop="frontType" label="前端类型">
18+
<el-select v-model="formData.frontType">
19+
<el-option
20+
v-for="dict in getIntDictOptions(DICT_TYPE.INFRA_CODEGEN_FRONT_TYPE)"
21+
:key="dict.value"
22+
:label="dict.label"
23+
:value="dict.value"
24+
/>
25+
</el-select>
26+
</el-form-item>
27+
</el-col>
28+
1629
<el-col :span="12">
1730
<el-form-item prop="scene" label="生成场景">
1831
<el-select v-model="formData.scene">
@@ -25,6 +38,26 @@
2538
</el-select>
2639
</el-form-item>
2740
</el-col>
41+
<el-col :span="12">
42+
<el-form-item>
43+
<template #label>
44+
<span>
45+
上级菜单
46+
<el-tooltip content="分配到指定菜单下,例如 系统管理" placement="top">
47+
<Icon icon="ep:question-filled" />
48+
</el-tooltip>
49+
</span>
50+
</template>
51+
<el-tree-select
52+
v-model="formData.parentMenuId"
53+
placeholder="请选择系统菜单"
54+
node-key="id"
55+
check-strictly
56+
:data="menus"
57+
:props="menuTreeProps"
58+
/>
59+
</el-form-item>
60+
</el-col>
2861

2962
<!-- <el-col :span="12">-->
3063
<!-- <el-form-item prop="packageName">-->
@@ -115,27 +148,6 @@
115148
</el-form-item>
116149
</el-col>
117150

118-
<el-col :span="12">
119-
<el-form-item>
120-
<template #label>
121-
<span>
122-
上级菜单
123-
<el-tooltip content="分配到指定菜单下,例如 系统管理" placement="top">
124-
<Icon icon="ep:question-filled" />
125-
</el-tooltip>
126-
</span>
127-
</template>
128-
<el-tree-select
129-
v-model="formData.parentMenuId"
130-
placeholder="请选择系统菜单"
131-
node-key="id"
132-
check-strictly
133-
:data="menus"
134-
:props="menuTreeProps"
135-
/>
136-
</el-form-item>
137-
</el-col>
138-
139151
<el-col :span="24" v-if="formData.genType === '1'">
140152
<el-form-item prop="genPath">
141153
<template #label>
@@ -297,6 +309,7 @@ const props = defineProps({
297309
const formRef = ref()
298310
const formData = ref({
299311
templateType: null,
312+
frontType: null,
300313
scene: null,
301314
moduleName: '',
302315
businessName: '',
@@ -315,6 +328,7 @@ const formData = ref({
315328
316329
const rules = reactive({
317330
templateType: [required],
331+
frontType: [required],
318332
scene: [required],
319333
moduleName: [required],
320334
businessName: [required],

src/views/mp/components/WxMpSelect.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<el-option v-for="item in accountList" :key="item.id" :label="item.name" :value="item.id" />
44
</el-select>
55
</template>
6-
6+
<!-- TODO @芋艿:WxMpSelect 改成 WxAccountSelect,然后挪到现有的 wx-account-select 包下 -->
77
<script lang="ts" setup name="WxMpSelect">
88
import * as MpAccountApi from '@/api/mp/account'
99

src/views/mp/components/wx-editor/WxEditor.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,5 +102,3 @@ const uploadError = () => {
102102
</div>
103103
</div>
104104
</template>
105-
106-
<style></style>

src/views/mp/draft/index.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,6 @@ import * as MpFreePublishApi from '@/api/mp/freePublish'
252252
import type { UploadFiles, UploadProps, UploadRawFile } from 'element-plus'
253253
// 可以用改本地数据模拟,避免API调用超限
254254
// import drafts from './mock'
255-
256255
const message = useMessage() // 消息
257256
258257
const loading = ref(true) // 列表的加载中
@@ -362,7 +361,7 @@ const submitForm = async () => {
362361
} finally {
363362
dialogNewsVisible.value = false
364363
addMaterialLoading.value = false
365-
getList()
364+
await getList()
366365
}
367366
}
368367

0 commit comments

Comments
 (0)