点位 :
@@ -104,6 +115,7 @@
form: {
activity_list_id: '',
name: "",
+ sort:0,
pointer_list:[],
image_id: "",
content: "",
diff --git a/src/views/PartyshistoryRecoder/components/addQuestions.vue b/src/views/PartyshistoryRecoder/components/addQuestions.vue
index ae747dd..cbe5330 100644
--- a/src/views/PartyshistoryRecoder/components/addQuestions.vue
+++ b/src/views/PartyshistoryRecoder/components/addQuestions.vue
@@ -283,14 +283,22 @@
writable: true,
});
}
+ console.log("for",this.form)
let saveForm = []
- this.form.pointer_list.map(item=>{
- this.form.point_id = item
+ if(this.form.pointer_list&&this.form.pointer_list.length>0){
+ this.form.pointer_list.map(item=>{
+ this.form.point_id = item
+ saveForm.push({
+ ...this.form,
+ point_id:item
+ })
+ })
+ }else{
saveForm.push({
- ...this.form,
- point_id:item
+ ...this.form
})
- })
+ }
+
console.log(saveForm)
// return
saveForm.map((item,index)=>{
diff --git a/src/views/PartyshistoryRecoder/line.vue b/src/views/PartyshistoryRecoder/line.vue
index aec3326..495da3b 100644
--- a/src/views/PartyshistoryRecoder/line.vue
+++ b/src/views/PartyshistoryRecoder/line.vue
@@ -101,7 +101,10 @@ export default {
table_name: "circuits",
with_relations: ['image'],
activity_list_id: '',
+ keyword:'',
filter: [],
+ sort_name:'sort',
+ sort_type:'ASC'
},
sysInfo:false,
listActivity: [],
@@ -125,6 +128,12 @@ export default {
)
}
},
+ {
+ prop: "sort",
+ label: "排序",
+ minWidth: 80,
+ align: "center",
+ },
{
prop: "content",
label: "简介",
@@ -187,7 +196,14 @@ export default {
})
return
}
- const res = await index(this.select);
+ const res = await index({
+ ...this.select,
+ filter:[{
+ key:'name',
+ op:'like',
+ value:this.select.keyword
+ }]
+ });
this.total = res.total;
this.list = res.data;
},
diff --git a/vue.config.js b/vue.config.js
index 721d71d..e89c258 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -25,7 +25,7 @@ module.exports = {
* Detail: https://cli.vuejs.org/config/#publicpath
*/
publicPath: '/admin/',
- outputDir: './dist',
+ outputDir: '/Users/mac/Documents/朗业/0-朗业基础库/h5/public/admin',
assetsDir: 'static',
css: {
loaderOptions: { // 向 CSS 相关的 loader 传递选项