Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-presale
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 f1e5ee86
authored
Aug 18, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
ui修改
1 parent
fc90098d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
25 deletions
src/views/addCards/index.vue
src/views/appointment/index.vue
src/views/worryFree/index.vue
src/views/addCards/index.vue
View file @
f1e5ee8
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
</GLTable>
</GLTable>
<!-- 生成弹窗 -->
<!-- 生成弹窗 -->
<GLDialog
title=
"生成无忧卡"
mode=
"mid"
v-if=
"addDialog"
:visible
.
sync=
"addDialog"
:before-close=
"handleClose"
@
onOk=
"submitForm('detailForm')"
@
onCancel=
"cancelDetailDialog"
>
<GLDialog
title=
"生成无忧卡"
mode=
"mid"
v-if=
"addDialog"
:visible
.
sync=
"addDialog"
:before-close=
"handleClose"
@
onOk=
"submitForm('detailForm')"
@
onCancel=
"cancelDetailDialog"
>
<glsx-combi-form
ref=
"product"
labelWidth=
"154px"
defaultWidth=
"360px"
formRef=
"detailForm"
:formObj=
"addDialogForm"
:formData=
"addDialogFormData"
:formRules=
"addDialogRules"
></glsx-combi-form>
<glsx-combi-form
ref=
"product
Card
"
labelWidth=
"154px"
defaultWidth=
"360px"
formRef=
"detailForm"
:formObj=
"addDialogForm"
:formData=
"addDialogFormData"
:formRules=
"addDialogRules"
></glsx-combi-form>
</GLDialog>
</GLDialog>
</div>
</div>
</div>
</div>
...
@@ -281,7 +281,7 @@ export default {
...
@@ -281,7 +281,7 @@ export default {
}
}
},
},
submitForm
(
formName
)
{
submitForm
(
formName
)
{
this
.
$refs
.
product
.
$refs
[
formName
].
validate
(
valid
=>
{
this
.
$refs
.
product
Card
.
$refs
[
formName
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
$apis
.
addWorryFree
.
addCards
(
this
.
addDialogForm
).
then
(
res
=>
{
this
.
$apis
.
addWorryFree
.
addCards
(
this
.
addDialogForm
).
then
(
res
=>
{
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
...
...
src/views/appointment/index.vue
View file @
f1e5ee8
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
class=
"equity-wrap"
>
<div
class=
"equity-wrap"
>
<el-button
type=
"primary"
icon=
"el-icon-plus"
size=
"small"
@
click=
"showDialog('add')"
><span
style=
"margin-left: 5px"
>
新增特别约定
</span></el-button>
<el-button
type=
"primary"
icon=
"el-icon-plus"
size=
"small"
@
click=
"showDialog('add')"
><span
style=
"margin-left: 5px"
>
新增特别约定
</span></el-button>
<div
class=
"equity-wrap contain"
style=
"margin-top: 10px"
>
<div
class=
"equity-wrap contain"
style=
"margin-top: 10px"
>
<GLCombiForm
:rowNumber=
"1"
ref=
"showSearch"
:formObj=
"appointmentForm"
:formData=
"searchFormData"
@
handleOk=
"s
ubmitForm('modifyForm
')"
@
handleRest=
"seletTable('reset')"
></GLCombiForm>
<GLCombiForm
:rowNumber=
"1"
ref=
"showSearch"
:formObj=
"appointmentForm"
:formData=
"searchFormData"
@
handleOk=
"s
eletTable('select
')"
@
handleRest=
"seletTable('reset')"
></GLCombiForm>
<el-button
style=
"float:right;margin-bottom:10px;"
size=
"small"
@
click=
"exportTable"
class=
"selectBtn"
>
导出
</el-button>
<el-button
style=
"float:right;margin-bottom:10px;"
size=
"small"
@
click=
"exportTable"
class=
"selectBtn"
>
导出
</el-button>
<GLTable
ref=
"appointmentTable"
:searchForm=
"appointmentForm"
:tableParams=
"tableParams"
:pageConf=
"tablePageConf"
:getListApi=
"getAppointmentList"
>
<GLTable
ref=
"appointmentTable"
:searchForm=
"appointmentForm"
:tableParams=
"tableParams"
:pageConf=
"tablePageConf"
:getListApi=
"getAppointmentList"
>
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
...
@@ -14,30 +14,14 @@
...
@@ -14,30 +14,14 @@
</GLTable>
</GLTable>
<!-- 修改界面弹窗 -->
<!-- 修改界面弹窗 -->
<GLDialog
:title=
"dialogTitle"
mode=
"mid"
class=
"detailDialog"
v-if=
"modifyDialog"
:visible
.
sync=
"modifyDialog"
:before-close=
"handleClose"
@
onOk=
"submitForm('modifyForm')"
@
onCancel=
"cancelDialog"
>
<GLDialog
:title=
"dialogTitle"
mode=
"mid"
class=
"detailDialog"
v-if=
"modifyDialog"
:visible
.
sync=
"modifyDialog"
:before-close=
"handleClose"
@
onOk=
"submitForm('modifyForm')"
@
onCancel=
"cancelDialog"
>
<el-form
:inline=
"true"
:model=
"modifyDialogForm"
:rules=
"modifyDialogRules"
ref=
"modifyForm"
label-width=
"120px"
class=
"detailForm"
>
<glsx-combi-form
ref=
"spaRef"
labelWidth=
"154px"
defaultWidth=
"360px"
formRef=
"modifyForm"
:formObj=
"modifyDialogForm"
:formData=
"modifyDialogData"
:formRules=
"modifyDialogRules"
></glsx-combi-form>
<div
class=
"form"
>
<el-row>
<el-form-item
label=
"名称:"
prop=
"spaName"
>
<el-input
v-model=
"modifyDialogForm.spaName"
placeholder=
"请输入"
size=
"small"
></el-input>
</el-form-item>
</el-row>
<el-row>
<el-form-item
label=
"特约内容"
prop=
"spaContent"
style=
"margin-top: 24px"
>
<el-input
type=
"textarea"
v-model=
"modifyDialogForm.spaContent"
maxlength=
"200"
placeholder=
"请输入"
></el-input>
</el-form-item>
</el-row>
</div>
</el-form>
<!--
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"cancelDialog"
>
取 消
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"submitForm('modifyForm')"
>
确 定
</el-button>
</span>
-->
</GLDialog>
</GLDialog>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
type=
"text/ecmascript-6"
>
<
script
type=
"text/ecmascript-6"
>
import
glsxCombiForm
from
'@/components/glsx-combi-form'
function
date_format
(
date
)
{
function
date_format
(
date
)
{
var
date2
=
new
Date
(
date
)
var
date2
=
new
Date
(
date
)
var
YY
=
date2
.
getFullYear
()
+
'-'
var
YY
=
date2
.
getFullYear
()
+
'-'
...
@@ -51,6 +35,9 @@ function date_format(date) {
...
@@ -51,6 +35,9 @@ function date_format(date) {
import
utils
from
'../../util/util'
import
utils
from
'../../util/util'
export
default
{
export
default
{
name
:
''
,
name
:
''
,
components
:{
glsxCombiForm
},
data
()
{
data
()
{
return
{
return
{
date_format
,
date_format
,
...
@@ -92,6 +79,22 @@ export default {
...
@@ -92,6 +79,22 @@ export default {
type
:
'input'
type
:
'input'
}
}
],
],
modifyDialogData
:
[
{
type
:
'input'
,
label
:
'特约名称'
,
name
:
'spaName'
,
isClear
:
true
,
},
{
type
:
'input'
,
label
:
'特约内容'
,
name
:
'spaContent'
,
isClear
:
true
,
maxlength
:
200
,
inputType
:
'textarea'
,
}
],
isAdd
:
false
,
isAdd
:
false
,
getAppointmentList
:
this
.
$apis
.
appointmentApi
.
getAppointmentList
,
getAppointmentList
:
this
.
$apis
.
appointmentApi
.
getAppointmentList
,
dialogTitle
:
''
,
dialogTitle
:
''
,
...
@@ -119,7 +122,6 @@ export default {
...
@@ -119,7 +122,6 @@ export default {
{
{
label
:
'特约内容'
,
label
:
'特约内容'
,
prop
:
'spaContent'
,
prop
:
'spaContent'
,
line
:
2
,
width
:
400
width
:
400
},
},
...
@@ -164,7 +166,7 @@ export default {
...
@@ -164,7 +166,7 @@ export default {
this
.
modifyDialogForm
=
{}
this
.
modifyDialogForm
=
{}
},
},
submitForm
(
formName
)
{
submitForm
(
formName
)
{
this
.
$refs
[
formName
].
validate
(
valid
=>
{
this
.
$refs
.
spaRef
.
$refs
[
formName
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
$apis
.
appointmentApi
.
modifyAppointment
(
this
.
modifyDialogForm
).
then
(
res
=>
{
this
.
$apis
.
appointmentApi
.
modifyAppointment
(
this
.
modifyDialogForm
).
then
(
res
=>
{
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
...
@@ -174,7 +176,7 @@ export default {
...
@@ -174,7 +176,7 @@ export default {
})
})
this
.
modifyDialog
=
false
this
.
modifyDialog
=
false
this
.
modifyDialogForm
=
{}
this
.
modifyDialogForm
=
{}
this
.
$refs
.
modifyForm
.
clearValidate
()
this
.
$refs
.
spaRef
.
$refs
.
modifyForm
.
clearValidate
()
this
.
$refs
.
appointmentTable
.
refreshTable
()
this
.
$refs
.
appointmentTable
.
refreshTable
()
}
else
{
}
else
{
this
.
$message
({
this
.
$message
({
...
...
src/views/worryFree/index.vue
View file @
f1e5ee8
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
</div>
</div>
<!-- 详情弹窗 -->
<!-- 详情弹窗 -->
<GLDialog
title=
"修改无忧卡"
v-if=
"detailDialog"
:visible
.
sync=
"detailDialog"
mode=
"mid"
:before-close=
"handleClose"
@
onOk=
"submitForm('detailForm')"
@
onCancel=
"cancelDetailDialog"
>
<GLDialog
title=
"修改无忧卡"
v-if=
"detailDialog"
:visible
.
sync=
"detailDialog"
mode=
"mid"
:before-close=
"handleClose"
@
onOk=
"submitForm('detailForm')"
@
onCancel=
"cancelDetailDialog"
>
<glsx-combi-form
ref=
"product"
labelWidth=
"154px"
defaultWidth=
"360px"
formRef=
"detailForm"
:formObj=
"detailDialogForm"
:formData=
"addDialogFormData"
:formRules=
"
add
DialogRules"
></glsx-combi-form>
<glsx-combi-form
ref=
"product"
labelWidth=
"154px"
defaultWidth=
"360px"
formRef=
"detailForm"
:formObj=
"detailDialogForm"
:formData=
"addDialogFormData"
:formRules=
"
detail
DialogRules"
></glsx-combi-form>
</GLDialog>
</GLDialog>
</div>
</div>
</
template
>
</
template
>
...
...
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