Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
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
黄媛媛
ElectricitySheep
Commits
1ffd1c17
Commit
1ffd1c17
authored
May 21, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/huangyuanyuan/electricitysheep
parents
da206835
68ab550f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
81 additions
and
3 deletions
+81
-3
choiceModule.vue
src/components/common/choiceModule.vue
+59
-0
UE.vue
src/components/global/UE.vue
+1
-1
CustomPage.vue
src/components/sallCenter/CustomPage.vue
+21
-2
No files found.
src/components/common/choiceModule.vue
0 → 100644
View file @
1ffd1c17
<
template
>
<div>
<el-table
:data=
"dataList"
style=
"width: 100%"
>
<el-table-column
prop=
"Id"
label=
"ID"
width=
"100"
>
</el-table-column>
<el-table-column
prop=
"TemplateName"
label=
"模板名称"
>
</el-table-column>
<el-table-column
prop=
"address"
label=
"操作"
width=
"100"
>
<template
slot-scope=
"scope"
>
<el-button
@
click=
"getModel(scope.row)"
size=
"mini"
>
选择
</el-button>
</
template
>
</el-table-column>
</el-table>
<el-pagination
background
@
current-change=
"handleCurrentChange"
:page-size=
"qMsg.pageSize"
layout=
"prev, pager, next"
:total=
"total"
>
</el-pagination>
</div>
</template>
<
script
>
export
default
{
data
()
{
return
{
dataList
:
[],
total
:
0
,
qMsg
:
{
pageIndex
:
1
,
pageSize
:
20
,
}
}
},
methods
:
{
handleCurrentChange
(
val
)
{
this
.
qMsg
.
pageIndex
=
val
;
this
.
getList
();
},
//获取数据
getList
()
{
this
.
apipost
(
"/api/Template/GetMiniTemplatePageList"
,
this
.
qMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
dataList
=
res
.
data
.
data
.
pageData
;
this
.
total
=
res
.
data
.
data
.
count
;
}
else
{
this
.
Info
(
res
.
data
.
message
);
}
})
},
//选择
getModel
(
item
){
let
str
=
''
;
str
=
'#'
+
item
.
Id
+
':'
+
item
.
TemplateName
;
this
.
$emit
(
'getCustom'
,
str
)
},
},
mounted
()
{
this
.
getList
();
}
}
</
script
>
src/components/global/UE.vue
View file @
1ffd1c17
...
...
@@ -38,7 +38,7 @@
defaultMsg
(
newVal
,
oldVal
)
{
if
(
!
this
.
isInputChange
&&
newVal
)
{
if
(
this
.
editor
&&
this
.
editor
.
isReady
===
1
)
{
this
.
editor
.
setContent
(
newVal
);
//
this.editor.setContent(newVal);
}
else
{
this
.
tempContent
=
newVal
;
}
...
...
src/components/sallCenter/CustomPage.vue
View file @
1ffd1c17
...
...
@@ -83,7 +83,7 @@
</el-form-item>
<el-form-item
label=
"对应模板"
>
<el-input
type=
"text"
size=
"small"
v-model=
"item.TemplateId"
>
<el-button
slot=
"append"
>
选择模板
</el-button>
<el-button
slot=
"append"
@
click=
"isShowModule=true,commonIndex=index"
>
选择模板
</el-button>
</el-input>
</el-form-item>
</el-form>
...
...
@@ -107,14 +107,26 @@
<el-button
size=
"small"
style=
"margin-top:20px;padding:9px 25px;"
type=
"primary"
@
click=
"submitform('addMsg')"
>
保存
</el-button>
</
template
>
<!-- 选择模板 -->
<el-dialog
title=
"选择模板"
:visible
.
sync=
"isShowModule"
width=
"910px"
>
<choiceModule
ref=
"choiceModule"
@
getCustom=
"getCustom"
></choiceModule>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"isShowModule = false"
>
取 消
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"choiceModule()"
>
确 定
</el-button>
</span>
</el-dialog>
</div>
</template>
<
script
>
import
choiceModule
from
"../common/choiceModule.vue"
;
export
default
{
data
()
{
return
{
commonIndex
:
-
1
,
loading
:
false
,
CustomIsShowAdd
:
true
,
//模板弹窗
isShowModule
:
false
,
dataList
:
[],
msg
:
{
pageIndex
:
1
,
...
...
@@ -132,12 +144,19 @@
};
},
components
:
{
choiceModule
},
created
()
{
},
methods
:
{
//选择模板
getCustom
(
e
){
if
(
this
.
commonIndex
>
-
1
)
{
this
.
addMsg
.
DetailsList
[
this
.
commonIndex
].
TemplateId
=
e
;
}
this
.
isShowModule
=
false
;
},
//更新是否禁用
updateIsUse
(
item
)
{
this
.
apipost
(
"/api/Template/SetMiniprogramPageTemplIsUse"
,
{
...
...
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