230320a303 1 рік тому
батько
коміт
d0f9d1b35b

Різницю між файлами не показано, бо вона завелика
+ 0 - 0
dist/index.html


Різницю між файлами не показано, бо вона завелика
+ 0 - 0
dist/static/css/chunk-0168461c.7ac35520.css


Різницю між файлами не показано, бо вона завелика
+ 0 - 0
dist/static/js/app.05359613.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 0
dist/static/js/chunk-0168461c.dd7d24c7.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 0
dist/static/js/chunk-4c27b056.a6dc1451.js


+ 1 - 0
src/views/activity/components/popup/IndexEdit.vue

@@ -53,6 +53,7 @@ export default {
           ]
         },
         { label: '截止时间', key: 'end_at', rules: 1, type: 'datePicker', type2: 'date' },
+        { label: '分类', key: 'activity_type', rules: 1, type: 'select', options: this.$dictData.activity_type},
         { label: '备注', key: 'remark', rules: 1, type: 'textarea'},
       ]
       this.setDefaultValue(params)

+ 1 - 0
src/views/activity/components/searchForm/Index.vue

@@ -16,6 +16,7 @@ export default {
     return {
       searchData: [
         { label: '备注', key: 'remark' },
+        { label: '分类', key: 'activity_type', type: 'select', options: this.$dictData.activity_type},
       ]
     }
   },

+ 44 - 32
src/views/activity/dtl.vue

@@ -55,39 +55,51 @@ export default {
     }
   },
   mounted () {
-    this.listConfig = {
-      rows: [
-        { label: '抖音名', prop: 'info1' },
-        { label: '抖音账号', prop: 'info2' },
-        { label: '姓名', prop: 'info3' },
-        { label: '电话', prop: 'info4' },
-        { label: '微信号', prop: 'info5' },
-        { label: '粉丝数量', prop: 'info6' },
-        { label: '获赞数量', prop: 'info7' },
-        // { label: '更新人', prop: 'update_by' },
-        { label: '更新时间', prop: 'update_at' },
-        // { label: '状态', prop: 'status', type: 'tag', tags: arrToObj(this.$dictData.dictStatus), tagTypeObj: {'1': 'success', '2': 'danger'} },
-        // { label: '操作', width: 200, type: 'handle2',
-        //   operations: [
-        //     // { labelFor: 'status', disabled: true, func: this.statusHandle, hide: 'nosys',
-        //     //   labelConfig: {
-        //     //     texts: {
-        //     //       1: '停用',
-        //     //       2: '启用'
-        //     //     },
-        //     //     btnTypes: {
-        //     //       1: 'danger',
-        //     //       2: 'success'
-        //     //     }
-        //     //   }
-        //     // },
-        //     { label: '编辑', func: this.openPopup, btnType: 'primary' },
-        //     { label: '删除', func: this.delHandle, btnType: 'danger', hide: 'nosys' },
-        //   ]
-        // }
-      ]
-    }
     const query = this.$route.query
+    if (query.t == 2) {
+      this.listConfig = {
+        rows: [
+          { label: '公司/门店', prop: 'info1' },
+          { label: '名字', prop: 'info2' },
+          { label: '电话', prop: 'info3' },
+          { label: '参加人数', prop: 'info4' },
+          { label: '办公区域', prop: 'info5' },
+        ]
+      }
+    } else {
+      this.listConfig = {
+        rows: [
+          { label: '抖音名', prop: 'info1' },
+          { label: '抖音账号', prop: 'info2' },
+          { label: '姓名', prop: 'info3' },
+          { label: '电话', prop: 'info4' },
+          { label: '微信号', prop: 'info5' },
+          { label: '粉丝数量', prop: 'info6' },
+          { label: '获赞数量', prop: 'info7' },
+          // { label: '更新人', prop: 'update_by' },
+          { label: '更新时间', prop: 'update_at' },
+          // { label: '状态', prop: 'status', type: 'tag', tags: arrToObj(this.$dictData.dictStatus), tagTypeObj: {'1': 'success', '2': 'danger'} },
+          // { label: '操作', width: 200, type: 'handle2',
+          //   operations: [
+          //     // { labelFor: 'status', disabled: true, func: this.statusHandle, hide: 'nosys',
+          //     //   labelConfig: {
+          //     //     texts: {
+          //     //       1: '停用',
+          //     //       2: '启用'
+          //     //     },
+          //     //     btnTypes: {
+          //     //       1: 'danger',
+          //     //       2: 'success'
+          //     //     }
+          //     //   }
+          //     // },
+          //     { label: '编辑', func: this.openPopup, btnType: 'primary' },
+          //     { label: '删除', func: this.delHandle, btnType: 'danger', hide: 'nosys' },
+          //   ]
+          // }
+        ]
+      }
+    }
     if (query.id) {
       this.searchForm = {
         activity_id: query.id

+ 2 - 1
src/views/activity/index.vue

@@ -61,6 +61,7 @@ export default {
       rows: [
         { label: '楼盘名称', prop: 'estate_name' },
         { label: '活动内容', prop: 'remark' }, 
+        { label: '分类', prop: 'activity_type', type: 'flag', flags: arrToObj(this.$dictData.activity_type	) },
         { label: '更新时间', prop: 'update_at' },
         { label: '操作', width: 200, type: 'handle2', operations:
           [
@@ -74,7 +75,7 @@ export default {
   },
   methods: {
     linkDtl (row) {
-      this.$router.push(`/activity/dtl?name=${row.estate_name}${row.remark}&id=${row.id}`)
+      this.$router.push(`/activity/dtl?name=${row.estate_name}${row.remark}&id=${row.id}&t=${row.activity_type}`)
     },
     delHandle(row) {
       this.$msg(`您确定要删除该活动吗?`, 'confirm', () => {

Деякі файли не було показано, через те що забагато файлів було змінено