Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
horse
Project
Project
Details
Activity
Releases
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
向伟
horse
Commits
724571e4
Commit
724571e4
authored
Nov 24, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
6b2da078
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
11 deletions
+49
-11
drainage.ts
src/api/drainage.ts
+34
-0
addfield.vue
src/components/customer/addfield.vue
+4
-4
customerlabel.vue
src/pages/customer/components/customerlabel.vue
+11
-7
No files found.
src/api/drainage.ts
0 → 100644
View file @
724571e4
/**
* 所有跟用户相关的接口(TODO:DEMO USER)
*/
import
{
HttpResponse
}
from
'@/@types'
import
Axios
from
'./axios'
/**
* @interface loginParams -登录参数
* @property {string} grant_type -授权类型
* @property {string} email -邮箱
* @property {string} password -用户密码
*/
interface
pageMsg
{
pageIndex
:
number
,
pageSize
:
number
,
rowsPerPage
:
number
,
}
interface
IdName
{
Id
:
number
Name
:
string
}
class
drainageApi
{
// 获取客户字段列表
static
async
getCustomerFiledList
(
data
:
pageMsg
|
IdName
):
Promise
<
HttpResponse
>
{
return
Axios
(
'/QYWeChat/GetWeChatMediumGroupPageList'
,
{
method
:
'post'
,
responseType
:
'json'
,
data
})
}
}
export
default
drainageApi
\ No newline at end of file
src/components/customer/addfield.vue
View file @
724571e4
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<div
style=
"height: 100%; width: 100%;padding: 16px"
>
<div
style=
"height: 100%; width: 100%;padding: 16px"
>
<div
class=
"rightrow"
style=
"margin-top: 0px;"
>
<div
class=
"rightrow"
style=
"margin-top: 0px;"
>
<div
class=
"leftwidth"
>
字段名称:
</div>
<div
class=
"leftwidth"
>
字段名称:
</div>
<q-input
clearable
outlined
v-model=
"addMsg.Name"
counter
maxlength=
"8"
<q-input
clearable
outlined
v-model=
"addMsg.Name"
counter
maxlength=
"8"
placeholder=
"请输入字段名称"
:rules=
"[val => !!val || '请输入字段名称']"
dense
style=
"width: 400px;"
/>
:rules=
"[val => !!val || '请输入字段名称']"
dense
style=
"width: 400px;"
/>
</div>
</div>
<div
class=
"rightrow"
style=
"margin-top: 0px;"
>
<div
class=
"rightrow"
style=
"margin-top: 0px;"
>
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
<div
class=
"rightrow"
v-if=
'tab==1'
>
<div
class=
"rightrow"
v-if=
'tab==1'
>
<div
class=
"leftwidth"
>
字数限制:
</div>
<div
class=
"leftwidth"
>
字数限制:
</div>
<q-input
v-model
.
number=
"addMsg.WordNum"
outlined
dense
type=
"number"
:max=
'50'
<q-input
v-model
.
number=
"addMsg.WordNum"
outlined
dense
type=
"number"
:max=
'50'
placeholder=
"请输入"
:min=
'0'
maxlength=
"8"
style=
"width: 400px"
/>
:min=
'0'
maxlength=
"8"
style=
"width: 400px"
/>
</div>
</div>
<div
class=
"rightrow"
v-if=
'tab==1'
>
<div
class=
"rightrow"
v-if=
'tab==1'
>
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
</div>
</div>
<div
class=
"rightrow"
v-if=
'tab==2'
>
<div
class=
"rightrow"
v-if=
'tab==2'
>
<div
class=
"leftwidth"
>
文字字数:
</div>
<div
class=
"leftwidth"
>
文字字数:
</div>
<q-input
v-model
.
number=
"addMsg.WordNum"
outlined
dense
type=
"number"
:max=
'2000'
<q-input
v-model
.
number=
"addMsg.WordNum"
outlined
dense
type=
"number"
:max=
'2000'
placeholder=
"请输入"
:min=
'0'
maxlength=
"2000"
style=
"width: 400px"
/>
:min=
'0'
maxlength=
"2000"
style=
"width: 400px"
/>
</div>
</div>
<div
class=
"rightrow"
v-if=
'tab==3|| tab==4'
>
<div
class=
"rightrow"
v-if=
'tab==3|| tab==4'
>
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
<div
style=
"display: flex;margin-bottom: 10px;"
>
<div
style=
"display: flex;margin-bottom: 10px;"
>
<i
class=
"iconfont icon-drag"
<i
class=
"iconfont icon-drag"
style=
"font-size: 26px;color: #777;margin-right: 10px;"
></i>
style=
"font-size: 26px;color: #777;margin-right: 10px;"
></i>
<q-input
v-model
.
number=
"element.Name"
outlined
dense
clearable
<q-input
v-model
.
number=
"element.Name"
outlined
dense
clearable
placeholder=
"请输入"
style=
"width: 250px"
/>
style=
"width: 250px"
/>
<div
<div
style=
"display: flex;align-items: center;margin-top: 8px;margin-left: 10px;height: 26px;"
>
style=
"display: flex;align-items: center;margin-top: 8px;margin-left: 10px;height: 26px;"
>
...
...
src/pages/customer/components/customerlabel.vue
View file @
724571e4
...
@@ -107,7 +107,7 @@
...
@@ -107,7 +107,7 @@
clearable
clearable
standout=
"bg-primary text-white"
standout=
"bg-primary text-white"
v-model=
"data.addMsg.Name"
v-model=
"data.addMsg.Name"
label
=
"标签组名称"
placeholder
=
"标签组名称"
:rules=
"[val => !!val || '请输入分组名称']"
:rules=
"[val => !!val || '请输入分组名称']"
ref=
"Name"
ref=
"Name"
/>
/>
...
@@ -117,7 +117,7 @@
...
@@ -117,7 +117,7 @@
type=
"number"
type=
"number"
standout=
"bg-primary text-white"
standout=
"bg-primary text-white"
v-model=
"data.addMsg.Sort"
v-model=
"data.addMsg.Sort"
label
=
"标签组排序"
placeholder
=
"标签组排序"
:rules=
"[val => !!val || '请输入分组排序']"
:rules=
"[val => !!val || '请输入分组排序']"
ref=
"Sort"
ref=
"Sort"
/>
/>
...
@@ -140,7 +140,7 @@
...
@@ -140,7 +140,7 @@
clearable
clearable
standout=
"bg-primary text-white"
standout=
"bg-primary text-white"
v-model=
"x.Name"
v-model=
"x.Name"
label
=
"输入标签名称"
placeholder
=
"输入标签名称"
/>
/>
</div>
</div>
<div
class=
"col-3"
>
<div
class=
"col-3"
>
...
@@ -148,7 +148,8 @@
...
@@ -148,7 +148,8 @@
filled
filled
standout=
"bg-primary text-white"
standout=
"bg-primary text-white"
v-model=
"x.Sort"
v-model=
"x.Sort"
label=
"输入排序"
placeholder=
"输入排序"
maxlength=
"20"
maxlength=
"20"
type=
"number"
type=
"number"
/>
/>
...
@@ -171,6 +172,8 @@
...
@@ -171,6 +172,8 @@
icon=
"add"
icon=
"add"
style=
"font-weight:400;color: #3FC4FF;margin-top: 10px;"
style=
"font-weight:400;color: #3FC4FF;margin-top: 10px;"
label=
"添加标签"
label=
"添加标签"
@
click=
"addbiaoqian()"
@
click=
"addbiaoqian()"
/>
/>
</q-card-section>
</q-card-section>
...
@@ -205,7 +208,7 @@
...
@@ -205,7 +208,7 @@
clearable
clearable
standout=
"bg-primary text-white"
standout=
"bg-primary text-white"
v-model=
"data.addMsg.Name"
v-model=
"data.addMsg.Name"
label
=
"标签组名称"
placeholder
=
"标签组名称"
:rules=
"[val => !!val || '请输入分组名称']"
:rules=
"[val => !!val || '请输入分组名称']"
ref=
"eName"
ref=
"eName"
/>
/>
...
@@ -217,7 +220,7 @@
...
@@ -217,7 +220,7 @@
clearable
clearable
standout=
"bg-primary text-white"
standout=
"bg-primary text-white"
v-model=
"data.addMsg.Name"
v-model=
"data.addMsg.Name"
label
=
"标签名称"
placeholder
=
"标签名称"
:rules=
"[val => !!val || '请输入标签名称']"
:rules=
"[val => !!val || '请输入标签名称']"
ref=
"eName"
ref=
"eName"
/>
/>
...
@@ -226,7 +229,8 @@
...
@@ -226,7 +229,8 @@
clearable
clearable
standout=
"bg-primary text-white"
standout=
"bg-primary text-white"
v-model=
"data.addMsg.Sort"
v-model=
"data.addMsg.Sort"
label=
"标签组排序"
placeholder=
"标签组排序"
:rules=
"[val => !!val || '请输入分组排序']"
:rules=
"[val => !!val || '请输入分组排序']"
ref=
"eSort"
ref=
"eSort"
/>
/>
...
...
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