|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<template-page ref="pageRef" :get-list="getList" :exportList="exportList" :table-attributes="tableAttributes"
|
|
|
:table-events="tableEvents" :options-evens-group="optionsEvensGroup" :column-parsing="columnParsing"
|
|
|
- :operation="operation()" :operationColumnWidth="200" :moreParameters="moreParameters">
|
|
|
+ :operation="operation()" :operationColumnWidth="250" :moreParameters="moreParameters">
|
|
|
<div class="cartographer">
|
|
|
<el-dialog :title="formData.id ? '详情' : '新增'" width="100%" :modal="false" :visible.sync="formDialog"
|
|
|
:before-close="formCancel">
|
|
@@ -26,7 +26,7 @@
|
|
|
import TemplatePage from '@/components/template/template-page-1.vue'
|
|
|
import import_mixin from '@/components/template/import_mixin.js'
|
|
|
import operation_mixin from '@/components/template/operation_mixin.js'
|
|
|
-import { promotionQuestionnaireList, promotionQuestionnaireExport, promotionQuestionnaireAdd, promotionQuestionnaireStop, promotionQuestionnaireDetail } from "@/api/setActivity.js"
|
|
|
+import { promotionQuestionnaireList, promotionQuestionnaireExport, promotionQuestionnaireAdd, promotionQuestionnaireStop, promotionQuestionnaireDetail, promotionQuestionnaireShow } from "@/api/setActivity.js"
|
|
|
import answer from "./answer.vue"
|
|
|
import ImageUpload from '@/components/file-upload'
|
|
|
import quillEditor from '@/components/v-quill-editor'
|
|
@@ -616,6 +616,29 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
+ isView: {
|
|
|
+ name: ({ row, index, column }) => {
|
|
|
+ return row.isShow ? "隐藏" : "显示"
|
|
|
+ },
|
|
|
+ click: ({ row, index, column }) => {
|
|
|
+ this.$confirm(`是否确定${row.isShow ? "隐藏" : "显示"}?`, '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ promotionQuestionnaireShow({
|
|
|
+ id: row.id,
|
|
|
+ isShow: !row.isShow
|
|
|
+ }).then(res => {
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: `设置成功!`,
|
|
|
+ })
|
|
|
+ this.$refs.pageRef.refreshList()
|
|
|
+ })
|
|
|
+ }).catch(() => {});
|
|
|
+ }
|
|
|
+ },
|
|
|
})
|
|
|
},
|
|
|
// 新增
|