Prechádzať zdrojové kódy

助力记录添加活动

彬彬 4 rokov pred
rodič
commit
4138e27a70

+ 26 - 1
src/views/sing_active/activehelprecord.vue

@@ -96,7 +96,31 @@
                 trigger: "blur"
               }]
             },
-
+            {
+              label: "活动",
+              prop: "activeId",
+              search: true,
+              searchslot: true,
+              /*control:(val,form)=>{
+                return this.controlActiveField(val,form);
+              },*/
+              searchSpan: 12,
+              searchOrder: 0,
+              type: "select",
+              dicUrl: "/api/sing_active/activerecord/list?current=1&size=999",
+              props: {
+                label: 'title',
+                value: 'id',
+                //desc: 'id',
+                res: "data.records"
+              },
+              dicMethod: 'get',
+              rules: [{
+                required: true,
+                message: "请输入活动Id",
+                trigger: "blur"
+              }]
+            },
             // {
             //   label: "作品ID",
             //   prop: "productId",
@@ -196,6 +220,7 @@
       }
     },
     methods: {
+
       handleDownload(){
         recordExport(this.query).then(res => {
           let list = res.data.data;

+ 19 - 0
src/views/wel/index.vue

@@ -34,6 +34,25 @@ export default {
     name: "wel",
     data() {
       return {
+        option:{
+          xAxis: {
+            type: 'category',
+            data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
+          },
+          yAxis: {
+            type: 'value'
+          },
+          series: [
+            {
+              data: [120, 200, 150, 80, 70, 110, 130],
+              type: 'bar',
+              showBackground: true,
+              backgroundStyle: {
+                color: 'rgba(180, 180, 180, 0.2)'
+              }
+            }
+          ]
+        },
         // 数据的key属性对应后台数据key,用来循环匹配数据
         dataSummaryData: [
           {