Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
7283fef7
Commit
7283fef7
authored
Apr 20, 2022
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
def99056
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
325 additions
and
377 deletions
+325
-377
QuesActivityList.vue
src/pages/activity/QuesActivityList.vue
+11
-3
configurationstudentsList.vue
src/pages/activity/configurationstudentsList.vue
+139
-188
questionnaireList.vue
src/pages/activity/questionnaireList.vue
+175
-186
No files found.
src/pages/activity/QuesActivityList.vue
View file @
7283fef7
...
@@ -58,12 +58,14 @@
...
@@ -58,12 +58,14 @@
</
template
>
</
template
>
<
template
v-slot:body-cell-optioned=
"props"
>
<
template
v-slot:body-cell-optioned=
"props"
>
<q-td
:props=
"props"
>
<q-td
:props=
"props"
>
<q-btn
flat
size=
"xs"
icon=
"iconfont icon-view"
color=
"accent"
style=
"font-weight:400"
label=
"配置学员"
@
click=
"Gochild(props.row)"
/>
<q-btn
flat
size=
"xs"
icon=
"iconfont icon-view"
color=
"accent"
style=
"font-weight:400"
label=
"配置"
<q-btn
flat
size=
"xs"
icon=
"iconfont icon-view"
color=
"accent"
style=
"font-weight:400"
label=
"配置"
@
click=
"GoYijian(props.row)"
/>
@
click=
"GoYijian(props.row)"
/>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"编辑"
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"编辑"
@
click=
"addObj(props.row)"
/>
@
click=
"addObj(props.row)"
/>
<q-btn
flat
size=
"xs"
icon=
"delete"
color=
"negative"
style=
"font-weight:400"
label=
"删除"
<q-btn
flat
size=
"xs"
icon=
"delete"
color=
"negative"
style=
"font-weight:400"
label=
"删除"
@
click=
"delQuestion(props.row)"
/>
@
click=
"delQuestion(props.row)"
/>
</q-td>
</q-td>
</
template
>
</
template
>
</q-table>
</q-table>
...
@@ -248,6 +250,12 @@
...
@@ -248,6 +250,12 @@
this
.
msg
.
pageIndex
=
val
;
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
this
.
getList
();
},
},
// 跳转到配置学员详情页
Gochild
(
row
){
this
.
OpenNewUrl
(
'/activity/configurationstudentsList'
,{
ID
:
row
.
ID
});
},
//跳转到意见调查表
//跳转到意见调查表
GoYijian
(
row
)
{
GoYijian
(
row
)
{
this
.
OpenNewUrl
(
'/activity/questionnaireList'
,
{
this
.
OpenNewUrl
(
'/activity/questionnaireList'
,
{
...
...
src/pages/activity/configurationstudentsList.vue
View file @
7283fef7
...
@@ -12,23 +12,23 @@
...
@@ -12,23 +12,23 @@
<!-- @click="addObj(null)" -->
<!-- @click="addObj(null)" -->
</div>
</div>
</
template
>
</
template
>
<
template
v-slot:body-cell-IsRequired=
"props"
>
<
template
v-slot:body-cell-IsRequired=
"props"
>
<q-td
:props=
"props"
>
<q-td
:props=
"props"
>
<span
v-if=
"props.row.IsRequired==0"
>
否
</span>
<span
v-if=
"props.row.IsRequired==0"
>
否
</span>
<span
v-if=
"props.row.IsRequired==1"
>
是
</span>
<span
v-if=
"props.row.IsRequired==1"
>
是
</span>
</q-td>
</q-td>
</
template
>
</
template
>
<
template
v-slot:body-cell-IsShow=
"props"
>
<
template
v-slot:body-cell-IsShow=
"props"
>
<q-td
:props=
"props"
>
<q-td
:props=
"props"
>
<span
v-if=
"props.row.IsShow==0"
>
是
</span>
<span
v-if=
"props.row.IsShow==0"
>
是
</span>
<span
v-if=
"props.row.IsShow==1"
>
否
</span>
<span
v-if=
"props.row.IsShow==1"
>
否
</span>
</q-td>
</q-td>
</
template
>
</
template
>
<
template
v-slot:bottom
>
<
template
v-slot:bottom
>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
:input=
"true"
@
input=
"changePage"
/>
:input=
"true"
@
input=
"changePage"
/>
</
template
>
</
template
>
<
template
v-slot:body-cell-optioned=
"props"
>
<
template
v-slot:body-cell-optioned=
"props"
>
<q-td
:props=
"props"
>
<q-td
:props=
"props"
>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"编辑"
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"编辑"
@
click=
"addObj(props.row)"
/>
@
click=
"addObj(props.row)"
/>
...
@@ -36,196 +36,147 @@
...
@@ -36,196 +36,147 @@
@
click=
"delQuestion(props.row)"
/>
@
click=
"delQuestion(props.row)"
/>
</q-td>
</q-td>
</
template
>
</
template
>
</q-table>
</q-table>
<wenjuan-form
v-if=
"isShowWenjuan"
:save-obj=
"objOption"
:ID=
"msg.ActivitySurveyId"
@
close=
"closeSaveForm"
@
success=
"resetSearch"
></wenjuan
-form>
<student-form
v-if=
"isShowWenjuan"
:save-obj=
"objOption"
:ID=
"msg.ActivitySurveyId"
@
close=
"closeSaveForm"
@
success=
"resetSearch"
></student
-form>
</div>
</div>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
wenjuanForm
from
'../../components/activity/wenjuan-form'
import
studentForm
from
'../../components/activity/student-from'
export
default
{
import
{
meta
:
{
getActivitySurveyGuestPage
,
title
:
"意见调查表"
removeActivitySurveyGuest
},
}
from
'../../api/studentmsg/index'
components
:
{
export
default
{
wenjuanForm
meta
:
{
},
title
:
"意见调查表"
data
()
{
},
return
{
components
:
{
columns
:
[
studentForm
{
},
name
:
'ID'
,
data
()
{
label
:
'ID'
,
return
{
align
:
'left'
,
columns
:
[{
field
:
'ID'
name
:
'Id'
,
},
label
:
'ID'
,
{
align
:
'left'
,
name
:
'Title'
,
field
:
'Id'
label
:
'问题名称'
,
},
{
field
:
'Title'
,
name
:
'GuestName'
,
align
:
'left'
label
:
'学员名称'
,
},
field
:
'GuestName'
,
{
align
:
'left'
name
:
'FormTypeStr'
,
},
label
:
'问卷类型'
,
field
:
'FormTypeStr'
,
{
align
:
'left'
name
:
'optioned'
,
},
label
:
'操作'
,
{
field
:
'TId'
name
:
'IsRequired'
,
}
label
:
'是否必填'
,
],
field
:
'IsRequired'
,
dataList
:
[],
align
:
'left'
loading
:
true
,
},
msg
:
{
{
pageIndex
:
1
,
name
:
'IsShow'
,
pageSize
:
12
,
label
:
'是否显示'
,
rowsPerPage
:
12
,
field
:
'IsShow'
,
SurveyId
:
1
,
align
:
'left'
},
},
{
pageCount
:
0
,
name
:
'Sort'
,
isShowWenjuan
:
false
,
label
:
'排序'
,
objOption
:
null
,
field
:
'Sort'
,
align
:
'left'
},
{
name
:
'optioned'
,
label
:
'操作'
,
field
:
'TId'
}
],
dataList
:
[],
loading
:
true
,
ShowOpts
:
[{
label
:
'不限'
,
value
:
'-1'
},
{
label
:
'是'
,
value
:
'0'
},
{
label
:
'否'
,
value
:
'1'
}
],
msg
:{
pageIndex
:
1
,
pageSize
:
15
,
rowsPerPage
:
15
,
PrizeType
:
0
,
Title
:
''
,
IsShow
:
'-1'
,
SurveyType
:
0
,
ActivitySurveyId
:
1
,
//活动id
},
platList
:[],
pageCount
:
0
,
isShowWenjuan
:
false
,
objOption
:
null
,
}
},
created
()
{
},
mounted
()
{
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
ID
){
this
.
msg
.
ActivitySurveyId
=
this
.
$route
.
query
.
ID
;
}
this
.
getPlat
();
this
.
getList
();
},
methods
:
{
getPlat
(){
this
.
apipostDS
(
"/api/Survey/GetActivitySurveyGuestPage"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
this
.
platList
=
res
.
data
.
data
;
let
obj
=
{
Id
:
0
,
Name
:
'不限'
}
}
this
.
platList
.
unshift
(
obj
);
},
}
else
{
created
()
{
this
.
Info
(
res
.
data
.
message
);
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
ID
)
{
}
this
.
msg
.
ActivitySurveyId
=
this
.
$route
.
query
.
ID
;
console
.
log
(
'数据信息'
+
res
.
data
)
}
})
},
},
mounted
()
{
resetSearch
()
{
this
.
msg
.
pageIndex
=
1
;
this
.
getList
();
this
.
getList
();
},
},
methods
:
{
getList
(){
this
.
loading
=
true
;
resetSearch
()
{
this
.
apipostDS
(
"/api/Survey/GetPageList"
,
this
.
msg
,
res
=>
{
this
.
msg
.
pageIndex
=
1
;
this
.
loading
=
false
;
this
.
getList
();
if
(
res
.
data
.
resultCode
==
1
){
},
this
.
dataList
=
res
.
data
.
data
.
pageData
;
getList
()
{
this
.
pageCount
=
res
.
data
.
data
.
pageCount
;
this
.
loading
=
true
;
}
else
{
getActivitySurveyGuestPage
(
this
.
msg
).
then
(
res
=>
{
this
.
Info
(
res
.
data
.
message
);
this
.
loading
=
false
;
}
if
(
res
.
Code
==
1
)
{
})
this
.
dataList
=
res
.
Data
.
PageData
;
},
this
.
pageCount
=
res
.
Data
.
Count
addObj
(
obj
)
{
}
if
(
obj
)
{
console
.
log
(
"res"
,
res
);
this
.
objOption
=
obj
});
}
else
{
this
.
objOption
=
null
},
}
addObj
(
obj
)
{
this
.
isShowWenjuan
=
true
;
if
(
obj
)
{
},
this
.
objOption
=
obj
//删除问卷
}
else
{
delQuestion
(
row
){
this
.
objOption
=
null
let
that
=
this
;
}
this
.
$q
.
dialog
({
this
.
isShowWenjuan
=
true
;
title
:
"提示"
,
},
message
:
'是否删除该活动信息?'
,
//删除当前行信息
cancel
:
{
delQuestion
(
row
)
{
label
:
"取消"
,
let
that
=
this
;
flat
:
true
this
.
$q
.
dialog
({
},
title
:
"提示"
,
ok
:
{
message
:
'是否删除该活动信息?'
,
label
:
"确认"
,
cancel
:
{
flat
:
true
,
label
:
"取消"
,
focus
:
true
flat
:
true
}
},
}).
onOk
(()
=>
{
ok
:
{
that
.
apipostDS
(
label
:
"确认"
,
"/api/Survey/DelSurvey"
,
flat
:
true
,
{
SurveyID
:
row
.
ID
},
focus
:
true
res
=>
{
}
if
(
res
.
data
.
resultCode
==
1
)
{
}).
onOk
(()
=>
{
that
.
$q
.
notify
({
removeActivitySurveyGuest
({
icon
:
'iconfont icon-chenggong'
,
Id
:
row
.
Id
color
:
'accent'
,
}).
then
(
res
=>
{
timeout
:
2000
,
this
.
dataList
=
''
;
message
:
'数据删除成功!'
,
this
.
pageCount
=
''
;
position
:
'top'
console
.
log
(
res
+
'111111'
)
})
if
(
res
.
Code
==
1
)
{
that
.
getList
();
that
.
$q
.
notify
({
}
else
{
icon
:
'iconfont icon-chenggong'
,
that
.
$q
.
notify
({
color
:
'accent'
,
type
:
'negative'
,
timeout
:
2000
,
position
:
"top"
,
message
:
'数据删除成功!'
,
message
:
res
.
data
.
message
position
:
'top'
})
that
.
getList
();
}
else
{
that
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
// message: res.data.message
message
:
'失败啦!'
})
}
})
})
})
}
},
},
);
});
closeSaveForm
()
{
},
this
.
isShowWenjuan
=
false
;
closeSaveForm
(){
},
this
.
isShowWenjuan
=
false
;
changePage
(
val
)
{
},
this
.
msg
.
pageIndex
=
val
;
changePage
(
val
)
{
this
.
getList
();
this
.
msg
.
pageIndex
=
val
;
},
this
.
getList
();
},
},
}
},
}
</
script
>
</
script
>
<
style
lang=
"sass"
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass')
@import
url('~assets/css/table.sass')
</
style
>
</
style
>
\ No newline at end of file
src/pages/activity/questionnaireList.vue
View file @
7283fef7
...
@@ -28,23 +28,23 @@
...
@@ -28,23 +28,23 @@
<q-btn
color=
"accent"
size=
"sm"
icon=
"add"
label=
"新增"
@
click=
"addObj(null)"
/>
<q-btn
color=
"accent"
size=
"sm"
icon=
"add"
label=
"新增"
@
click=
"addObj(null)"
/>
</div>
</div>
</
template
>
</
template
>
<
template
v-slot:body-cell-IsRequired=
"props"
>
<
template
v-slot:body-cell-IsRequired=
"props"
>
<q-td
:props=
"props"
>
<q-td
:props=
"props"
>
<span
v-if=
"props.row.IsRequired==0"
>
否
</span>
<span
v-if=
"props.row.IsRequired==0"
>
否
</span>
<span
v-if=
"props.row.IsRequired==1"
>
是
</span>
<span
v-if=
"props.row.IsRequired==1"
>
是
</span>
</q-td>
</q-td>
</
template
>
</
template
>
<
template
v-slot:body-cell-IsShow=
"props"
>
<
template
v-slot:body-cell-IsShow=
"props"
>
<q-td
:props=
"props"
>
<q-td
:props=
"props"
>
<span
v-if=
"props.row.IsShow==0"
>
是
</span>
<span
v-if=
"props.row.IsShow==0"
>
是
</span>
<span
v-if=
"props.row.IsShow==1"
>
否
</span>
<span
v-if=
"props.row.IsShow==1"
>
否
</span>
</q-td>
</q-td>
</
template
>
</
template
>
<
template
v-slot:bottom
>
<
template
v-slot:bottom
>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
:input=
"true"
@
input=
"changePage"
/>
:input=
"true"
@
input=
"changePage"
/>
</
template
>
</
template
>
<
template
v-slot:body-cell-optioned=
"props"
>
<
template
v-slot:body-cell-optioned=
"props"
>
<q-td
:props=
"props"
>
<q-td
:props=
"props"
>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"编辑"
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"编辑"
@
click=
"addObj(props.row)"
/>
@
click=
"addObj(props.row)"
/>
...
@@ -52,195 +52,184 @@
...
@@ -52,195 +52,184 @@
@
click=
"delQuestion(props.row)"
/>
@
click=
"delQuestion(props.row)"
/>
</q-td>
</q-td>
</
template
>
</
template
>
</q-table>
</q-table>
<wenjuan-form
v-if=
"isShowWenjuan"
:save-obj=
"objOption"
:ID=
"msg.ActivitySurveyId"
@
close=
"closeSaveForm"
@
success=
"resetSearch"
></wenjuan-form>
<wenjuan-form
v-if=
"isShowWenjuan"
:save-obj=
"objOption"
:ID=
"msg.ActivitySurveyId"
@
close=
"closeSaveForm"
@
success=
"resetSearch"
></wenjuan-form>
</div>
</div>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
wenjuanForm
from
'../../components/activity/wenjuan-form'
import
wenjuanForm
from
'../../components/activity/wenjuan-form'
export
default
{
export
default
{
meta
:
{
meta
:
{
title
:
"问卷调查"
title
:
"问卷调查"
},
},
components
:
{
components
:
{
wenjuanForm
wenjuanForm
},
},
data
()
{
data
()
{
return
{
return
{
columns
:
[
columns
:
[{
{
name
:
'ID'
,
name
:
'ID'
,
label
:
'ID'
,
label
:
'ID'
,
align
:
'left'
,
align
:
'left'
,
field
:
'ID'
field
:
'ID'
},
{
},
name
:
'Title'
,
{
label
:
'问题名称'
,
name
:
'Title'
,
field
:
'Title'
,
label
:
'问题名称'
,
align
:
'left'
field
:
'Title'
,
},
{
align
:
'left'
name
:
'FormTypeStr'
,
},
label
:
'问卷类型'
,
{
field
:
'FormTypeStr'
,
name
:
'FormTypeStr'
,
align
:
'left'
label
:
'问卷类型'
,
},
{
field
:
'FormTypeStr'
,
name
:
'IsRequired'
,
align
:
'left'
label
:
'是否必填'
,
},
field
:
'IsRequired'
,
{
align
:
'left'
name
:
'IsRequired'
,
},
{
label
:
'是否必填'
,
name
:
'IsShow'
,
field
:
'IsRequired'
,
label
:
'是否显示'
,
align
:
'left'
field
:
'IsShow'
,
},
align
:
'left'
{
},
{
name
:
'IsShow'
,
name
:
'Sort'
,
label
:
'是否显示'
,
label
:
'排序'
,
field
:
'IsShow'
,
field
:
'Sort'
,
align
:
'left'
align
:
'left'
},
},
{
{
name
:
'optioned'
,
name
:
'Sort'
,
label
:
'操作'
,
label
:
'排序'
,
field
:
'TId'
field
:
'Sort'
,
}],
align
:
'left'
dataList
:
[],
},
loading
:
true
,
{
ShowOpts
:
[{
name
:
'optioned'
,
label
:
'不限'
,
label
:
'操作'
,
value
:
'-1'
field
:
'TId'
},
{
}
label
:
'是'
,
],
value
:
'0'
dataList
:
[],
},
{
loading
:
true
,
label
:
'否'
,
ShowOpts
:
[{
value
:
'1'
label
:
'不限'
,
}],
value
:
'-1'
msg
:
{
},
pageIndex
:
1
,
{
pageSize
:
15
,
label
:
'是'
,
rowsPerPage
:
15
,
value
:
'0'
PrizeType
:
0
,
},
Title
:
''
,
{
IsShow
:
'-1'
,
label
:
'否'
,
SurveyType
:
0
,
value
:
'1'
ActivitySurveyId
:
0
,
//活动id
}
},
],
platList
:
[],
msg
:{
pageCount
:
0
,
pageIndex
:
1
,
isShowWenjuan
:
false
,
pageSize
:
15
,
objOption
:
null
,
rowsPerPage
:
15
,
}
PrizeType
:
0
,
},
Title
:
''
,
created
()
{},
IsShow
:
'-1'
,
mounted
()
{
SurveyType
:
0
,
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
ID
)
{
ActivitySurveyId
:
0
,
//活动id
this
.
msg
.
ActivitySurveyId
=
this
.
$route
.
query
.
ID
;
},
platList
:[],
pageCount
:
0
,
isShowWenjuan
:
false
,
objOption
:
null
,
}
},
created
()
{
},
mounted
()
{
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
ID
){
this
.
msg
.
ActivitySurveyId
=
this
.
$route
.
query
.
ID
;
}
this
.
getPlat
();
this
.
getList
();
},
methods
:
{
getPlat
(){
this
.
apipostDS
(
"/api/Survey/GetSurveyTypeEnumList"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
this
.
platList
=
res
.
data
.
data
;
let
obj
=
{
Id
:
0
,
Name
:
'不限'
}
}
this
.
platList
.
unshift
(
obj
);
this
.
getPlat
();
}
else
{
this
.
getList
();
this
.
Info
(
res
.
data
.
message
);
},
}
methods
:
{
})
getPlat
()
{
},
this
.
apipostDS
(
"/api/Survey/GetSurveyTypeEnumList"
,
{},
res
=>
{
resetSearch
()
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
msg
.
pageIndex
=
1
;
this
.
platList
=
res
.
data
.
data
;
this
.
getList
();
let
obj
=
{
},
Id
:
0
,
getList
(){
Name
:
'不限'
this
.
loading
=
true
;
}
this
.
apipostDS
(
"/api/Survey/GetPageList"
,
this
.
msg
,
res
=>
{
this
.
platList
.
unshift
(
obj
);
this
.
loading
=
false
;
}
else
{
if
(
res
.
data
.
resultCode
==
1
){
this
.
Info
(
res
.
data
.
message
);
this
.
dataList
=
res
.
data
.
data
.
pageData
;
}
this
.
pageCount
=
res
.
data
.
data
.
pageCount
;
}
else
{
this
.
Info
(
res
.
data
.
message
);
}
})
},
addObj
(
obj
)
{
if
(
obj
)
{
this
.
objOption
=
obj
}
else
{
this
.
objOption
=
null
}
this
.
isShowWenjuan
=
true
;
},
//删除问卷
delQuestion
(
row
){
let
that
=
this
;
this
.
$q
.
dialog
({
title
:
"提示"
,
message
:
'是否删除该活动信息?'
,
cancel
:
{
label
:
"取消"
,
flat
:
true
},
ok
:
{
label
:
"确认"
,
flat
:
true
,
focus
:
true
}
}).
onOk
(()
=>
{
that
.
apipostDS
(
"/api/Survey/DelSurvey"
,
{
SurveyID
:
row
.
ID
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
that
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'数据删除成功!'
,
position
:
'top'
})
})
that
.
getList
();
},
}
else
{
resetSearch
()
{
that
.
$q
.
notify
({
this
.
msg
.
pageIndex
=
1
;
type
:
'negative'
,
this
.
getList
();
position
:
"top"
,
},
message
:
res
.
data
.
message
getList
()
{
this
.
loading
=
true
;
this
.
apipostDS
(
"/api/Survey/GetPageList"
,
this
.
msg
,
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
dataList
=
res
.
data
.
data
.
pageData
;
this
.
pageCount
=
res
.
data
.
data
.
pageCount
;
}
else
{
this
.
Info
(
res
.
data
.
message
);
}
})
})
}
},
},
);
addObj
(
obj
)
{
});
if
(
obj
)
{
},
this
.
objOption
=
obj
closeSaveForm
(){
}
else
{
this
.
isShowWenjuan
=
false
;
this
.
objOption
=
null
},
}
changePage
(
val
)
{
this
.
isShowWenjuan
=
true
;
this
.
msg
.
pageIndex
=
val
;
},
this
.
getList
();
//删除问卷
},
delQuestion
(
row
)
{
},
let
that
=
this
;
}
this
.
$q
.
dialog
({
title
:
"提示"
,
message
:
'是否删除该活动信息?'
,
cancel
:
{
label
:
"取消"
,
flat
:
true
},
ok
:
{
label
:
"确认"
,
flat
:
true
,
focus
:
true
}
}).
onOk
(()
=>
{
that
.
apipostDS
(
"/api/Survey/DelSurvey"
,
{
SurveyID
:
row
.
ID
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
that
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'数据删除成功!'
,
position
:
'top'
})
that
.
getList
();
}
else
{
that
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
res
.
data
.
message
})
}
},
);
});
},
closeSaveForm
()
{
this
.
isShowWenjuan
=
false
;
},
changePage
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
},
},
}
</
script
>
</
script
>
<
style
lang=
"sass"
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass')
@import
url('~assets/css/table.sass')
</
style
>
</
style
>
\ No newline at end of file
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