Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-4
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
office
haoban-4
Commits
c61dc63a
Commit
c61dc63a
authored
Sep 04, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改编辑标签
parent
5fc49dd8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
10 deletions
+37
-10
edit-tag-dialog.vue
src/components/app/my-customer/edit-tag-dialog.vue
+31
-6
limit-input.vue
src/components/limit-input.vue
+4
-3
crowd-scene.vue
src/views/apps/customer-app/crowd-scene.vue
+2
-1
No files found.
src/components/app/my-customer/edit-tag-dialog.vue
View file @
c61dc63a
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Author: 无尘
* @Date: 2020-09-01 17:16:25
* @Date: 2020-09-01 17:16:25
* @LastEditors: 无尘
* @LastEditors: 无尘
* @LastEditTime: 2020-09-04 1
0:32:31
* @LastEditTime: 2020-09-04 1
3:58:02
-->
-->
<!--
<!--
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<
template
>
<
template
>
<el-dialog
:title=
"form.tagId ? '编辑标签' : '新建标签'"
width=
"600px"
:visible
.
sync=
"editVisible"
:before-close=
"handleClose"
>
<el-dialog
:title=
"form.tagId ? '编辑标签' : '新建标签'"
width=
"600px"
:visible
.
sync=
"editVisible"
:before-close=
"handleClose"
>
<common-alert-tip
:width=
"'476px'"
:tip-content=
"tipContent"
></common-alert-tip>
<common-alert-tip
:width=
"'476px'"
:tip-content=
"tipContent"
></common-alert-tip>
<el-form
:model=
"form"
:rules=
"rules"
ref=
"tagForm"
label-width=
"110px"
>
<el-form
class=
"m-t-20"
:model=
"form"
:rules=
"rules"
ref=
"tagForm"
label-width=
"110px"
>
<el-form-item
label=
"标签名称"
prop=
"tagName"
>
<el-form-item
label=
"标签名称"
prop=
"tagName"
>
<limit-input
<limit-input
:input-width=
"440"
:input-width=
"440"
...
@@ -43,14 +43,17 @@
...
@@ -43,14 +43,17 @@
@
close=
"handleDel(index)"
>
@
close=
"handleDel(index)"
>
{{
item
.
tagValue
}}
{{
item
.
tagValue
}}
</el-tag>
</el-tag>
<div>
<div
class=
"m-t-5 input-tag-div"
>
<el-input
<el-input
class=
"input-new-tag"
class=
"input-new-tag"
v-model=
"inputValue"
v-model=
"inputValue"
ref=
"saveTagInput"
ref=
"saveTagInput"
size=
"small"
size=
"small"
maxlength=
"15"
placeholder=
"请输入标签值并回车添加多个"
@
keyup
.
enter
.
native=
"handleInputConfirm"
>
@
keyup
.
enter
.
native=
"handleInputConfirm"
>
</el-input>
</el-input>
<span
class=
"input-cell-tip top-40"
>
{{
inputValue
.
length
}}
/100
</span>
</div>
</div>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -143,7 +146,7 @@ export default {
...
@@ -143,7 +146,7 @@ export default {
if
(
inputValue
)
{
if
(
inputValue
)
{
that
.
form
.
childList
.
push
(
that
.
form
.
childList
.
push
(
{
{
tagValueId
:
that
.
form
.
tagId
,
tagValueId
:
''
,
tagValue
:
inputValue
tagValue
:
inputValue
}
}
);
);
...
@@ -229,6 +232,28 @@ export default {
...
@@ -229,6 +232,28 @@ export default {
};
};
</
script
>
</
script
>
<
style
lang=
'less'
scoped
>
<
style
lang=
'less'
scoped
>
.m-t-5
{
margin-top
:
5px
;
}
.el-form
{
.el-select
{
width
:
440px
;
}
.el-input
{
width
:
440px
;
}
.input-tag-div
{
.input-cell-tip
{
position
:
absolute
;
top
:
2px
;
right
:
30px
;
display
:
inline-block
;
line-height
:
32px
;
text-align
:
right
;
font-size
:
12px
;
color
:
#c0c4cc
;
font-weight
:
400
;
}
}
}
</
style
>
</
style
>
src/components/limit-input.vue
View file @
c61dc63a
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Author: 无尘
* @Date: 2018-12-06 13:44:22
* @Date: 2018-12-06 13:44:22
* @LastEditors: 无尘
* @LastEditors: 无尘
* @LastEditTime: 2020-09-0
3 18:07:2
7
* @LastEditTime: 2020-09-0
4 11:38:1
7
-->
-->
<!--
<!--
限制输入框组件
限制输入框组件
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
-->
-->
<
template
>
<
template
>
<div
:class=
"['input-line-cell', limitClass]"
:style=
"
{ width: inputWidth + 'px' }">
<div
:class=
"['input-line-cell', limitClass]"
:style=
"
{ width: inputWidth + 'px' }">
<el-input
:style=
"
{ width: inputWidth + 'px' }" v-model="itemValue" :disabled="disflag" :placeholder="holder" @blur="inputBlur()" @keyup.native="value => toInput(value)">
</el-input>
<el-input
:style=
"
{ width: inputWidth + 'px' }" v-model="itemValue" :disabled="disflag" :placeholder="holder"
:maxlength="inputLength"
@blur="inputBlur()" @keyup.native="value => toInput(value)">
</el-input>
<span
class=
"input-cell-tip"
><span
class=
"len_span"
>
{{
inputNum
}}
</span>
/
{{
limitLength
}}
</span>
<span
class=
"input-cell-tip"
><span
class=
"len_span"
>
{{
inputNum
}}
</span>
/
{{
limitLength
}}
</span>
</div>
</div>
</
template
>
</
template
>
...
@@ -72,7 +72,8 @@ export default {
...
@@ -72,7 +72,8 @@ export default {
return
{
return
{
inputNum
:
0
,
inputNum
:
0
,
limitLength
:
10
,
limitLength
:
10
,
itemValue
:
''
itemValue
:
''
,
inputLength
:
this
.
getByType
==
'normal'
?
this
.
maxLength
:
500
};
};
},
},
...
...
src/views/apps/customer-app/crowd-scene.vue
View file @
c61dc63a
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Author: 无尘
* @Date: 2020-08-27 10:16:37
* @Date: 2020-08-27 10:16:37
* @LastEditors: 无尘
* @LastEditors: 无尘
* @LastEditTime: 2020-09-04 10:
49:48
* @LastEditTime: 2020-09-04 10:
55:04
-->
-->
<
template
>
<
template
>
...
@@ -111,6 +111,7 @@ export default {
...
@@ -111,6 +111,7 @@ export default {
const
that
=
this
;
const
that
=
this
;
if
(
!!
that
.
brandId
)
{
if
(
!!
that
.
brandId
)
{
that
.
getGroupList
();
that
.
getGroupList
();
that
.
getGroupClassify
();
}
}
that
.
rowDrop
(
'memberCrowdData'
);
that
.
rowDrop
(
'memberCrowdData'
);
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment