Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
陆宇天
/
config-center-front
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8683adb4
authored
Sep 19, 2023
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
名称修改
1 parent
c8dbb17f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
src/views/publicConfig/AddConfig.vue
src/views/publicConfig/index.vue
src/views/publicConfig/AddConfig.vue
View file @
8683adb
...
@@ -71,7 +71,7 @@ watch(
...
@@ -71,7 +71,7 @@ watch(
const
rules
=
reactive
<
FormRules
>
({
const
rules
=
reactive
<
FormRules
>
({
uniqueName
:
{
uniqueName
:
{
required
:
true
,
required
:
true
,
message
:
"请输入公共配置项
标识
"
,
message
:
"请输入公共配置项
名称
"
,
trigger
:
"blur"
,
trigger
:
"blur"
,
},
},
content
:
{
required
:
true
,
message
:
"请输入公共配置项内容"
,
trigger
:
"blur"
},
content
:
{
required
:
true
,
message
:
"请输入公共配置项内容"
,
trigger
:
"blur"
},
...
@@ -188,7 +188,7 @@ const isUniqueName = async () => {
...
@@ -188,7 +188,7 @@ const isUniqueName = async () => {
label-width=
"140px"
label-width=
"140px"
class=
"demo-ruleForm"
class=
"demo-ruleForm"
>
>
<el-form-item
label=
"配置项
标识
"
prop=
"uniqueName"
>
<el-form-item
label=
"配置项
名称
"
prop=
"uniqueName"
>
<el-input
v-model=
"ruleForm.uniqueName"
:disabled=
"isEdit"
@
blur=
"isUniqueName"
maxlength=
"20"
>
<el-input
v-model=
"ruleForm.uniqueName"
:disabled=
"isEdit"
@
blur=
"isUniqueName"
maxlength=
"20"
>
<template
#
prepend
>
@
</
template
>
<template
#
prepend
>
@
</
template
>
</el-input>
</el-input>
...
...
src/views/publicConfig/index.vue
View file @
8683adb
...
@@ -18,7 +18,7 @@ type Comp = Pick<tabType, "tabComp">;
...
@@ -18,7 +18,7 @@ type Comp = Pick<tabType, "tabComp">;
const
tabData
=
reactive
<
tabType
[]
>
([
const
tabData
=
reactive
<
tabType
[]
>
([
{
{
label
:
"公共
标识
"
,
label
:
"公共
配置项
"
,
// proxy会代理reactive中的所有内容
// proxy会代理reactive中的所有内容
// 无需对组件进行proxy代理
// 无需对组件进行proxy代理
// 必须使用markRaw跳过对组件的代理,否则vue会给警告
// 必须使用markRaw跳过对组件的代理,否则vue会给警告
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment