@@ -141,7 +141,7 @@ export default {
answerType: undefined,
beginDate: '',
endDate: '',
- questionnaireInsertTopicDTOList: [],
+ questionnaireUpdateTopicDTOList: [],
isRelease: 0,
imgUrls: [],
deleteTopicIds: [],
@@ -173,7 +173,7 @@ export default {
this.form.endDate = data.endDate;
this.form.isRelease = data.isRelease;
this.form.imgUrls = [];
- // this.form.questionnaireInsertTopicDTOList = data.questionnaireFBITopicVoList;
+ // this.form.questionnaireUpdateTopicDTOList = data.questionnaireFBITopicVoList;
if (res.data.imgList.length > 0) {
const pic = [];
this.form.imgUrls.push(res.data.imgList[0].url);
@@ -199,11 +199,11 @@ export default {
type: ele.type,
topic: ele.topic,
deleteTopicChoiceIds: [],
- questionnaireInsertTopicChoiceDTOList: ele.questionnaireFBITopicChoiceVoList
+ questionnaireUpdateTopicChoiceDTOList: ele.questionnaireFBITopicChoiceVoList
};
arr.push(obj)
});
- this.form.questionnaireInsertTopicDTOList = arr
+ this.form.questionnaireUpdateTopicDTOList = arr
})
}
},
@@ -216,7 +216,7 @@ export default {
type: type,
topic: '',
id: null,
- questionnaireInsertTopicChoiceDTOList: [],
+ questionnaireUpdateTopicChoiceDTOList: [],
deleteTopicChoiceIds:[]
};
this.questionCard = obj
@@ -232,19 +232,19 @@ export default {
type: this.questionCard.type,
topic: this.questionCard.topic,
id: null,
- questionnaireInsertTopicChoiceDTOList: this.questionChoice,
+ questionnaireUpdateTopicChoiceDTOList: this.questionChoice,
deleteTopicChoiceIds: [],
};
- this.form.questionnaireInsertTopicDTOList.push(obj)
+ this.form.questionnaireUpdateTopicDTOList.push(obj)
} else {
let obj = {
type: this.questionCard.type,
topic: this.questionCard.topic,
id: null,
- questionnaireInsertTopicChoiceDTOList: [],
+ questionnaireUpdateTopicChoiceDTOList: [],
deleteTopicChoiceIds: []
};
- this.form.questionnaireInsertTopicDTOList.push(obj)
+ this.form.questionnaireUpdateTopicDTOList.push(obj)
}
} else if (this.isEdit == true) {
if(type == 1 || type == 2 || type == 3) {
@@ -255,19 +255,19 @@ export default {
type: this.questionCard.type,
topic: this.questionCard.topic,
id: this.questionCard.id,
- questionnaireInsertTopicChoiceDTOList: this.questionChoice,
+ questionnaireUpdateTopicChoiceDTOList: this.questionChoice,
deleteTopicChoiceIds: deleteId
};
- this.form.questionnaireInsertTopicDTOList[this.activeIndex] = obj
+ this.form.questionnaireUpdateTopicDTOList[this.activeIndex] = obj
} else {
let obj = {
type: this.questionCard.type,
topic: this.questionCard.topic,
id: this.questionCard.id,
- questionnaireInsertTopicChoiceDTOList: [],
+ questionnaireUpdateTopicChoiceDTOList: [],
deleteTopicChoiceIds: []
};
- this.form.questionnaireInsertTopicDTOList[this.activeIndex] = obj
+ this.form.questionnaireUpdateTopicDTOList[this.activeIndex] = obj
}
}
this.questionCancel()
@@ -304,14 +304,14 @@ export default {
this.questionCard.type = item.type;
this.questionCard.topic = item.topic;
this.questionCard.id = item.id;
- if(item.questionnaireInsertTopicChoiceDTOList) {
- this.questionChoice = item.questionnaireInsertTopicChoiceDTOList
+ if(item.questionnaireUpdateTopicChoiceDTOList) {
+ this.questionChoice = item.questionnaireUpdateTopicChoiceDTOList
}
},
//删除已经添加的问题
deleteQuestionItem(item,index) {
this.form.deleteTopicIds.push(item.id)
- this.form.questionnaireInsertTopicDTOList.splice(index,1)
+ this.form.questionnaireUpdateTopicDTOList.splice(index,1)
},
//保存
save() {
diff --git a/src/views/Operation/clientSet/depend/table.vue b/src/views/Operation/clientSet/depend/table.vue
index dcdd384..98793f0 100644
--- a/src/views/Operation/clientSet/depend/table.vue
+++ b/src/views/Operation/clientSet/depend/table.vue
@@ -24,6 +24,14 @@
}
"
>
+
+
+
+ {{record.content}}
+
+ {{doStr(record.content,21)}}
+
+
@@ -53,6 +61,30 @@ export default {
};
},
methods: {
+ getData() {
+ let obj = {pageNum: this.pagination.current, size: this.pagination.pageSize}
+ if(this.typeMean == 'shop') {
+ shopPushList(obj).then((res) => {
+ this.tableData = res.data.rows;
+ this.pagination.total = res.data.total;
+ });
+ } else if (this.typeMean == 'news') {
+ newsList(obj).then((res) => {
+ this.tableData = res.data.rows;
+ this.pagination.total = res.data.total;
+ });
+ } else if (this.typeMean == 'announcement') {
+ announcementList(obj).then((res) => {
+ this.tableData = res.data.rows;
+ this.pagination.total = res.data.total;
+ });
+ } else if (this.typeMean == 'activity') {
+ activityList(obj).then((res) => {
+ this.tableData = res.data.rows;
+ this.pagination.total = res.data.total;
+ });
+ }
+ },
selectionChoosed(data) {
this.selectedRowKeys = data;
},
@@ -91,6 +123,14 @@ export default {
this.selectedRowKeys = []
}
},
+ //截取内容
+ doStr(str, number) {
+ if(str.length >= number) {
+ return str.substr(0,number-1) + '...'
+ } else {
+ return str
+ }
+ }
},
watch: {
type: {
diff --git a/src/views/Operation/clientSet/depend/tableConfig.js b/src/views/Operation/clientSet/depend/tableConfig.js
index cbc879a..d7a8197 100644
--- a/src/views/Operation/clientSet/depend/tableConfig.js
+++ b/src/views/Operation/clientSet/depend/tableConfig.js
@@ -158,6 +158,7 @@ export const columns = {
title: "内容",
dataIndex: "content",
width: "13%",
+ scopedSlots: { customRender: "content"}
},
{
title: "阅读量",
diff --git a/src/views/Payment/PayPlan/autoBillDrawer.vue b/src/views/Payment/PayPlan/autoBillDrawer.vue
index e1793b7..a897805 100644
--- a/src/views/Payment/PayPlan/autoBillDrawer.vue
+++ b/src/views/Payment/PayPlan/autoBillDrawer.vue
@@ -39,7 +39,7 @@