|
@@ -711,6 +711,37 @@ export default {
|
|
// 操作按钮
|
|
// 操作按钮
|
|
operation() {
|
|
operation() {
|
|
return this.operationBtn({
|
|
return this.operationBtn({
|
|
|
|
+ kelong: {
|
|
|
|
+ click: ({ row, index, column }) => {
|
|
|
|
+ promotionQuestionnaireDetail({
|
|
|
|
+ id: row.id
|
|
|
|
+ }).then(res => {
|
|
|
|
+ console.log(res.data)
|
|
|
|
+
|
|
|
|
+ this.formData = {
|
|
|
|
+ ...res.data,
|
|
|
|
+ submitLimitBool: res.data.submitLimit == -1 ? 0 : 1,
|
|
|
|
+ promotionQuestionnaireItems: res.data.promotionQuestionnaireItems.map(item => {
|
|
|
|
+ return {
|
|
|
|
+ ...item,
|
|
|
|
+ answer: JSON.parse(item?.answer || '[]')
|
|
|
|
+ }
|
|
|
|
+ }),
|
|
|
|
+ banner: res.data?.banner?.split(',').map(url => ({ url })),
|
|
|
|
+ detailImgs: res.data?.detailImgs?.split(',').map(url => ({ url })),
|
|
|
|
+ endTime: '',
|
|
|
|
+ startTime: ''
|
|
|
|
+ }
|
|
|
|
+ delete this.formData.createBy
|
|
|
|
+ delete this.formData.createTime
|
|
|
|
+ delete this.formData.id
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.typeView = 1
|
|
|
|
+ this.formDialog = true
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ },
|
|
detail: {
|
|
detail: {
|
|
click: ({ row, index, column }) => {
|
|
click: ({ row, index, column }) => {
|
|
promotionQuestionnaireDetail({
|
|
promotionQuestionnaireDetail({
|