Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-outbound
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 9673fb5a
authored
Oct 17, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
调查问卷需求
1 parent
e64f95c9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
320 additions
and
1 deletions
package-lock.json
package.json
src/views/questionnaire/add.vue
src/views/questionnaire/index.vue
src/views/redEnvelope/components/RedEnvelopeRecord/importRecord.vue
package-lock.json
View file @
9673fb5
...
...
@@ -1837,6 +1837,7 @@
"thread-loader"
:
"^2.1.3"
,
"url-loader"
:
"^2.2.0"
,
"vue-loader"
:
"^15.9.2"
,
"vue-loader-v16"
:
"npm:vue-loader@^16.1.0"
,
"vue-style-loader"
:
"^4.1.2"
,
"webpack"
:
"^4.0.0"
,
"webpack-bundle-analyzer"
:
"^3.8.0"
,
...
...
@@ -4754,6 +4755,11 @@
"integrity"
:
"sha512-YXQl1DSa4/PQyRfgrv6aoNjhasp/p4qs9FjJ4q4cQk+8m4r6k4ZSiEyytKG8f8W9gi8WsQtIObNmKd+tMzNTmA=="
,
"dev"
:
true
},
"downloadjs"
:
{
"version"
:
"1.4.7"
,
"resolved"
:
"https://registry.npmjs.org/downloadjs/-/downloadjs-1.4.7.tgz"
,
"integrity"
:
"sha512-LN1gO7+u9xjU5oEScGFKvXhYf7Y/empUIIEAGBs1LzUq/rg5duiDrkuH5A2lQGd5jfMOb9X9usDa2oVXwJ0U/Q=="
},
"duplexer"
:
{
"version"
:
"0.1.2"
,
"resolved"
:
"https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz"
,
...
...
@@ -12632,6 +12638,14 @@
"integrity"
:
"sha512-BXq3jwIagosjgNVae6tkHzzIk6a8MHFtzAdwhnV5VlvPTFxDCvIttgSiHWjdGoTJvXtmRu5HacExfdarRcFhog=="
,
"dev"
:
true
},
"vue-json-excel"
:
{
"version"
:
"0.3.0"
,
"resolved"
:
"https://registry.npmjs.org/vue-json-excel/-/vue-json-excel-0.3.0.tgz"
,
"integrity"
:
"sha512-FrSh0tVUpw4K+ilLO8g0Qp52eFJw/hkk3rZPTEKo9qVkJgVfQtZwzj3UWc5ACYxA3jLk9HtjK+f9xKHCN4Kgag=="
,
"requires"
:
{
"downloadjs"
:
"^1.4.7"
}
},
"vue-loader"
:
{
"version"
:
"15.10.0"
,
"resolved"
:
"https://registry.npmjs.org/vue-loader/-/vue-loader-15.10.0.tgz"
,
...
...
@@ -12673,6 +12687,75 @@
}
}
},
"vue-loader-v16"
:
{
"version"
:
"npm:vue-loader@16.8.3"
,
"resolved"
:
"https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz"
,
"integrity"
:
"sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"chalk"
:
"^4.1.0"
,
"hash-sum"
:
"^2.0.0"
,
"loader-utils"
:
"^2.0.0"
},
"dependencies"
:
{
"ansi-styles"
:
{
"version"
:
"4.3.0"
,
"resolved"
:
"https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz"
,
"integrity"
:
"sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"color-convert"
:
"^2.0.1"
}
},
"chalk"
:
{
"version"
:
"4.1.2"
,
"resolved"
:
"https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz"
,
"integrity"
:
"sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"ansi-styles"
:
"^4.1.0"
,
"supports-color"
:
"^7.1.0"
}
},
"color-convert"
:
{
"version"
:
"2.0.1"
,
"resolved"
:
"https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz"
,
"integrity"
:
"sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"color-name"
:
"~1.1.4"
}
},
"color-name"
:
{
"version"
:
"1.1.4"
,
"resolved"
:
"https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz"
,
"integrity"
:
"sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
,
"dev"
:
true
,
"optional"
:
true
},
"has-flag"
:
{
"version"
:
"4.0.0"
,
"resolved"
:
"https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz"
,
"integrity"
:
"sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="
,
"dev"
:
true
,
"optional"
:
true
},
"supports-color"
:
{
"version"
:
"7.2.0"
,
"resolved"
:
"https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz"
,
"integrity"
:
"sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"has-flag"
:
"^4.0.0"
}
}
}
},
"vue-router"
:
{
"version"
:
"3.5.4"
,
"resolved"
:
"https://registry.npmjs.org/vue-router/-/vue-router-3.5.4.tgz"
,
...
...
package.json
View file @
9673fb5
...
...
@@ -17,6 +17,7 @@
"glsx-components"
:
"^1.5.7"
,
"vue"
:
"^2.6.10"
,
"vue-draggable-resizable"
:
"^2.3.0"
,
"vue-json-excel"
:
"^0.3.0"
,
"vue-router"
:
"^3.1.3"
,
"vuedraggable"
:
"^2.24.3"
,
"vuex"
:
"^3.1.2"
,
...
...
src/views/questionnaire/add.vue
0 → 100644
View file @
9673fb5
<
template
>
<div>
新建
</div>
</
template
>
<
script
type=
'text/ecmascript-6'
>
export
default
{
name
:
''
,
data
()
{
return
{
}
},
mounted
()
{
},
methods
:
{
}
}
</
script
>
<
style
scoped
lang=
'scss'
>
</
style
>
\ No newline at end of file
src/views/questionnaire/index.vue
0 → 100644
View file @
9673fb5
<
template
>
<div
class=
"container"
>
<div
class=
"sticky"
>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<div
class=
"sticky-btns"
>
<div
class=
"btns"
>
<el-button
type=
"default"
plain
@
click=
"$router.push(
{
path: '/questionnaire/add'
})"
>新建问卷
</el-button>
</div>
</div>
</div>
<div
class=
"tabelList"
>
<div
class=
"table-title"
>
问卷列表
</div>
<GLTable
ref=
"listRef"
:getListApi=
"getListApi"
:searchForm=
"searchForm"
:noDataImg=
"url"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
>
<template
slot=
"qr"
slot-scope=
"scope"
>
<el-popover
placement=
"top"
trigger=
"hover"
>
<img
class=
"img-plus"
src=
"https://wx.glsx.com.cn/upload/biz/575c552b-d342-46d8-bbc2-813906187b50.jpg"
/>
<div
slot=
"reference"
class=
"qr"
>
<img
:src=
"scope.scope.qr||'https://wx.glsx.com.cn/upload/biz/575c552b-d342-46d8-bbc2-813906187b50.jpg'"
/>
</div>
</el-popover>
</
template
>
<span
slot=
"auth-button"
slot-scope=
"scope"
>
<GLTableButton
:buttonList=
"tableButtonList"
:buttonItem=
"scope.scope"
:buttonNum=
"3"
></GLTableButton>
</span>
</GLTable>
</div>
</div>
</template>
<
script
type=
'text/ecmascript-6'
>
import
url
from
'@/assets/empty.png'
import
*
as
dayjs
from
'dayjs'
export
default
{
name
:
'RedEnvelopeConfig'
,
data
()
{
return
{
url
,
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
searchForm
:
{
merchantName
:
''
,
merchantId
:
''
,
staffName
:
''
},
searchFormData
:
[
{
label
:
'问卷名称'
,
name
:
'activityName'
,
type
:
'input'
,
maxlength
:
100
},
{
label
:
'所属渠道'
,
name
:
'merchantName'
,
type
:
'input'
,
maxlength
:
100
},
],
getListApi
:
this
.
$apis
.
redenvelope
.
getRedEnvelopeRecordList
,
tableParams
:
{
listName
:
'list'
,
tableOption
:
{
width
:
'110px'
},
tableColumns
:
[
{
label
:
'问卷名称'
,
prop
:
'activityName'
,
minWidth
:
100
},
{
label
:
'所属渠道'
,
minWidth
:
100
,
formatter
:
cell
=>
`
${
cell
.
merchantId
}
/
${
cell
.
merchantName
}
`
},
{
label
:
'卡片标题'
,
prop
:
'activityName'
,
minWidth
:
100
},
{
label
:
'二维码'
,
minWidth
:
100
,
addHtml
:
'qr'
},
]
},
// 表格按钮
tableButtonList
:
[
{
type
:
'el-button'
,
name
:
'数据'
,
attrs
:
{
type
:
'text'
,
},
listeners
:
{
click
:
row
=>
this
.
jumpDetail
(
row
)
}
},
{
type
:
'el-button'
,
name
:
'结束'
,
attrs
:
{
type
:
'text'
,
},
listeners
:
{
click
:
row
=>
this
.
showEditFun
(
row
)
}
},
],
}
},
mounted
()
{
},
methods
:
{
handleSearch
()
{
this
.
$refs
.
listRef
.
refreshTable
()
},
handleReset
()
{
this
.
searchForm
=
this
.
$options
.
data
.
call
(
this
).
searchForm
this
.
handleSearch
()
},
}
}
</
script
>
<
style
scoped
lang=
'scss'
>
.container
{
height
:
100%
;
background-color
:
#fff
;
-webkit-box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding
:
20px
;
.table-title
{
font-weight
:
700
;
font-size
:
16px
;
color
:
#333333
;
padding-bottom
:
18px
;
}
.sticky
{
position
:
relative
;
z-index
:
2
;
&-btns
{
position
:
absolute
;
right
:
0
;
bottom
:
-23px
;
overflow
:
hidden
;
.el-button
+
.el-button
{
margin-left
:
8px
;
}
.btns
{
transition
:
all
0.25s
;
.el-button
{
padding
:
8px
15px
;
min-width
:
60px
;
}
}
}
}
.qr
{
width
:
36px
;
height
:
36px
;
img
{
width
:
100%
;
height
:
100%
;
vertical-align
:
top
;
}
}
}
.img-plus
{
width
:
200px
;
height
:
200px
;
}
</
style
>
\ No newline at end of file
src/views/redEnvelope/components/RedEnvelopeRecord/importRecord.vue
View file @
9673fb5
...
...
@@ -128,7 +128,7 @@ export default {
this
.
handleClose
()
this
.
$parent
.
handleSearch
()
}
else
throw
'导入
成功
'
else
throw
'导入
失败
'
}
catch
(
error
)
{
this
.
$message
.
error
(
error
)
}
...
...
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