Skip to content

Commit 0e53c5b

Browse files
committed
feat/model-driven
1 parent 0d67ed0 commit 0e53c5b

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

packages/builtinComponent/src/components/BasePage.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ const insertApi = (data = addFormData.value) => {
305305
return getMetaApi(META_SERVICE.Http)
306306
.post(apiInfo.url, { nameEn: pageModel.value.nameEn, params: data })
307307
.then((res) => {
308+
console.log(res)
308309
Notify({
309310
type: 'success',
310311
message: '新增成功',
@@ -331,6 +332,7 @@ const updateApi = (data = addFormData.value) => {
331332
params: { id }
332333
})
333334
.then((res) => {
335+
console.log(res)
334336
Notify({
335337
type: 'success',
336338
message: '修改成功',
@@ -357,6 +359,7 @@ const queryApi = ({ currentPage, pageSize, data } = {}) => {
357359
params: data
358360
})
359361
.then((res) => {
362+
console.log(res)
360363
tableData.value = res.list
361364
pagerState.total = res.total
362365
emit('update:tableData', tableData.value)
@@ -375,6 +378,7 @@ const deleteApi = (evidence) => {
375378
return getMetaApi(META_SERVICE.Http)
376379
.post(apiInfo.url, { ...evidence, nameEn: pageModel.value.nameEn })
377380
.then((res) => {
381+
console.log(res)
378382
Notify({
379383
type: 'success',
380384
message: '已删除',

packages/plugins/model-manager/src/components/FieldManager.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="section">
3-
<tiny-button size="mini" @click="$emit('add-field')"> <svg-icon name="add"></svg-icon> 添加字段 </tiny-button>
3+
<tiny-button class="add-field-btn" size="mini" @click="$emit('add-field')"> <svg-icon name="add"></svg-icon> 添加字段 </tiny-button>
44
<div class="field-table">
55
<tiny-grid
66
:data="model.parameters"

packages/plugins/model-manager/src/components/ModelSetting.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ import ModelBasicForm from './ModelBasicForm.vue'
4545
import FieldManager from './FieldManager.vue'
4646
import { createModel, updateModel } from '../composable/useModelManager'
4747
48-
const isShow = ref(false)
48+
const isShow = ref(false)
4949
5050
export const openModelSettingPanel = () => {
5151
isShow.value = true
@@ -207,7 +207,7 @@ export default {
207207
}
208208
</script>
209209
<style lang="less" scoped>
210-
:deep(.plugin-setting) {
211-
width: fit-content !important;
210+
.modelmanager-plugin-setting {
211+
width: fit-content;
212212
}
213213
</style>

0 commit comments

Comments
 (0)