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
894d7d6b
Commit
894d7d6b
authored
Sep 07, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改输入限制
parent
7ce77c54
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
9 deletions
+13
-9
limit-input.vue
src/components/limit-input.vue
+5
-1
clerk-tag.vue
src/views/apps/customer-app/clerk-tag.vue
+8
-8
No files found.
src/components/limit-input.vue
View file @
894d7d6b
...
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2018-12-06 13:44:22
* @LastEditors: 无尘
* @LastEditTime: 2020-09-0
4 11:38:17
* @LastEditTime: 2020-09-0
7 17:17:18
-->
<!--
限制输入框组件
...
...
@@ -132,6 +132,10 @@ export default {
inputValue
:
function
(
newData
,
oldData
)
{
let
that
=
this
;
that
.
itemValue
=
newData
||
''
;
if
(
that
.
getByType
==
'normal'
)
{
that
.
inputNum
=
String
(
that
.
itemValue
).
trim
().
length
;
return
false
;
}
if
(
that
.
getByType
==
'word'
)
{
that
.
inputNum
=
strLength
.
getZhLen
(
that
.
itemValue
);
}
else
{
...
...
src/views/apps/customer-app/clerk-tag.vue
View file @
894d7d6b
...
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-08-28 16:51:22
* @LastEditors: 无尘
* @LastEditTime: 2020-09-07 1
6:56:30
* @LastEditTime: 2020-09-07 1
7:23:57
-->
<
template
>
...
...
@@ -19,17 +19,17 @@
<div
class=
"clerk-tag-right p-20 border-box"
>
<div
class=
"clerk-tag-search"
>
<div
class=
"flex flex-space-between"
>
<div><el-input
placeholder=
"请输入标签名称"
maxlength=
"50"
v-model=
"searchVal"
style=
"width: 298px;"
prefix-icon=
"el-icon-search"
@
keyup
.
native=
"value => toInput(value)"
clearable
@
clear=
"clearInput"
></el-input></div>
<div><el-input
placeholder=
"请输入标签名称"
maxlength=
"50"
v-model=
"searchVal"
style=
"width: 298px;"
prefix-icon=
"el-icon-search"
@
keyup
.
native=
"value => toInput(value
, searchVal
)"
clearable
@
clear=
"clearInput"
></el-input></div>
<div><el-button
type=
"primary"
@
click=
"toAddTag"
>
新建标签
</el-button></div>
</div>
</div>
<div
class=
"m-t-20"
>
<el-table
:data=
"tagsData"
row-key=
"memberTagId"
v-loading=
"loading"
ref=
"tagsData"
style=
"width: 100%"
>
:data=
"tagsData"
row-key=
"memberTagId"
v-loading=
"loading"
ref=
"tagsData"
style=
"width: 100%"
>
<el-table-column
prop=
""
label=
""
width=
"56"
class-name=
"move-row-cell"
>
<template>
<span
class=
"font-22 iconfont icontuozhuaiopen color-c0c4cc"
style=
"cursor: move;"
></span>
...
...
@@ -312,7 +312,7 @@ export default {
toInput
:
_debounce
(
function
()
{
const
that
=
this
;
that
.
getTableList
();
},
3
00
),
},
5
00
),
/**
* @description: 搜索清除
* @author: 无尘
...
...
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