Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-custom
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6b4a5845
authored
Jan 13, 2022
by
李长胜
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改标签
1 parent
22ab088e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
src/components/rule-form/index.vue
src/views/tagsManage/index.vue
src/components/rule-form/index.vue
View file @
6b4a584
...
...
@@ -5,7 +5,7 @@
<template
slot-scope=
"scope"
>
<template
v-if=
"item.type === 'input'"
>
<el-input
v-if=
"item.clickFunc"
:type=
"item.inputText || 'text'"
:readonly=
"item.readonly || false"
@
click
.
native=
"item.clickFunc"
:class=
"item.clickFunc ? 'pointer' : ''"
:ref=
"item.ref"
v-model=
"ruleForm[item.prop]"
@
input=
"update($event)"
></el-input>
<el-input
v-else
:type=
"item.inputText || 'text'"
:readonly=
"item.readonly || false"
:disabled=
"item.disabled || false"
v-model=
"ruleForm[item.prop]"
:maxlength=
"item.maxlength"
:minlength=
"item.minlength"
:placeholder=
"item.placeholder || '请输入'"
:show-password=
"item.showPassword || false"
:clearable=
"item.clearable"
:show-word-limit=
"item.showWordLimit || false"
></el-input>
<el-input
v-else
:type=
"item.inputText || 'text'"
:readonly=
"item.readonly || false"
:disabled=
"item.disabled || false"
v-model
.
trim
=
"ruleForm[item.prop]"
:maxlength=
"item.maxlength"
:minlength=
"item.minlength"
:placeholder=
"item.placeholder || '请输入'"
:show-password=
"item.showPassword || false"
:clearable=
"item.clearable"
:show-word-limit=
"item.showWordLimit || false"
></el-input>
</
template
>
<
template
v-else-if=
"item.type == 'select'"
>
<el-select
v-if=
"item.visibleFunc"
v-model=
"ruleForm[item.prop]"
:placeholder=
"item.placeholder || '请选择'"
:filterable=
"item.filterable || false"
@
change=
"selectChange"
@
visible-change=
"item.visibleFunc"
>
...
...
src/views/tagsManage/index.vue
View file @
6b4a584
...
...
@@ -618,6 +618,11 @@ export default {
if
(
this
.
tagForm
.
tagsList
.
length
>
0
)
{
this
.
$message
.
success
(
'添加成功'
)
}
if
(
this
.
tagDialogTitle
==
'编辑标签组'
){
this
.
tagForm
.
tagsName
=
''
this
.
tagForm
.
initTagsGroup
=
''
this
.
tagForm
.
tagsList
=
[]
}
this
.
handleClose
()
}
else
if
(
res
.
data
.
code
==
1
)
{
this
.
$message
.
error
(
`
${
res
.
data
.
message
}
`
)
...
...
@@ -650,9 +655,9 @@ export default {
}
this
.
$message
.
success
(
'修改成功'
)
this
.
tagForm
.
tagsName
=
''
this
.
tagForm
.
initTagsGroup
=
''
this
.
tagForm
.
tagsList
=
[]
//
this.tagForm.tagsName = ''
//
this.tagForm.initTagsGroup = ''
//
this.tagForm.tagsList = []
this
.
resetTable
()
//刷新下表格
})
...
...
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