lrf402788946 3 lat temu
rodzic
commit
d6566de60f

+ 1 - 0
src/views/admin/live/achieve/interview.vue

@@ -91,6 +91,7 @@ export default {
         { label: '发布时间', model: 'publish_time', type: 'date' },
         { label: '图片', model: 'picture', custom: true },
         { label: '视频', model: 'filepath', custom: true },
+        { label: '正文内容', model: 'content', type: 'textarea' },
       ],
       list: [],
       total: 0,

+ 64 - 64
src/views/admin/live/achieve/statistics.vue

@@ -1,64 +1,64 @@
-<template>
-  <div id="aStatistics">
-    <el-row>
-      <el-col :span="24">
-        <el-col :span="24" class="leftTop"> <span>|</span> <span>统计报表</span> </el-col>
-        <el-col :span="24" class="info">
-          <el-tabs v-model="activeName" type="card">
-            <el-tab-pane label="科技需求" name="first">
-              <achieve></achieve>
-            </el-tab-pane>
-            <el-tab-pane label="技术成果" name="second">
-              <requirement></requirement>
-            </el-tab-pane>
-          </el-tabs>
-        </el-col>
-      </el-col>
-    </el-row>
-  </div>
-</template>
-
-<script>
-import achieve from './statistics/achieve.vue';
-import requirement from './statistics/requirement.vue';
-import { mapState, createNamespacedHelpers } from 'vuex';
-export default {
-  name: 'aStatistics',
-  props: {},
-  components: { requirement, achieve },
-  data: function() {
-    return {
-      activeName: 'first',
-    };
-  },
-  created() {},
-  methods: {},
-  computed: {
-    ...mapState(['user', 'menuParams']),
-    pageTitle() {
-      return `${this.$route.meta.title}`;
-    },
-  },
-  metaInfo() {
-    return { title: this.$route.meta.title };
-  },
-};
-</script>
-
-<style lang="less" scoped>
-.leftTop {
-  font-size: 18px;
-  width: 96%;
-  height: 41px;
-  line-height: 35px;
-  border-bottom: 1px solid #e5e5e5;
-  position: relative;
-  bottom: 1px;
-  margin: 10px;
-  font-weight: 600;
-  color: #22529a;
-}
-.info {
-  padding: 0 38px 0 10px;
-}
-</style>
+<template>
+  <div id="aStatistics">
+    <el-row>
+      <el-col :span="24">
+        <el-col :span="24" class="leftTop"> <span>|</span> <span>统计报表</span> </el-col>
+        <el-col :span="24" class="info">
+          <el-tabs v-model="activeName" type="card">
+            <el-tab-pane label="科技需求" name="first">
+              <achieve></achieve>
+            </el-tab-pane>
+            <el-tab-pane label="技术成果" name="second">
+              <requirement></requirement>
+            </el-tab-pane>
+          </el-tabs>
+        </el-col>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+import achieve from './statistics/achieve.vue';
+import requirement from './statistics/requirement.vue';
+import { mapState, createNamespacedHelpers } from 'vuex';
+export default {
+  name: 'aStatistics',
+  props: {},
+  components: { requirement, achieve },
+  data: function() {
+    return {
+      activeName: 'first',
+    };
+  },
+  created() {},
+  methods: {},
+  computed: {
+    ...mapState(['user']),
+    pageTitle() {
+      return `${this.$route.meta.title}`;
+    },
+  },
+  metaInfo() {
+    return { title: this.$route.meta.title };
+  },
+};
+</script>
+
+<style lang="less" scoped>
+.leftTop {
+  font-size: 18px;
+  width: 96%;
+  height: 41px;
+  line-height: 35px;
+  border-bottom: 1px solid #e5e5e5;
+  position: relative;
+  bottom: 1px;
+  margin: 10px;
+  font-weight: 600;
+  color: #22529a;
+}
+.info {
+  padding: 0 38px 0 10px;
+}
+</style>

+ 3 - 3
src/views/admin/live/achieve/statistics/achieve.vue

@@ -20,7 +20,7 @@
 <script>
 import dataTable from '@common/src/components/frame/filter-page-table.vue';
 import { mapState, createNamespacedHelpers } from 'vuex';
-const { mapActions: dock } = createNamespacedHelpers('dock');
+const { mapActions: statistics } = createNamespacedHelpers('statistics');
 const { mapActions: code } = createNamespacedHelpers('code');
 export default {
   name: 'achieve',
@@ -48,9 +48,9 @@ export default {
   },
   methods: {
     ...code(['query']),
-    ...dock(['productQuery']),
+    ...statistics(['dockProduct']),
     async search({ skip = 0, limit = 10, ...info } = {}) {
-      const res = await this.productQuery({ skip, limit, ...info, dock_id: this.user.id, type: '0', ...this.form });
+      const res = await this.dockProduct({ skip, limit, ...info, dock_id: this.user.id, type: '0', ...this.form });
       if (this.$checkRes(res)) {
         this.$set(this, `list`, res.data);
         this.$set(this, `total`, res.total);

+ 3 - 3
src/views/admin/live/achieve/statistics/requirement.vue

@@ -20,7 +20,7 @@
 <script>
 import dataTable from '@common/src/components/frame/filter-page-table.vue';
 import { mapState, createNamespacedHelpers } from 'vuex';
-const { mapActions: dock } = createNamespacedHelpers('dock');
+const { mapActions: statistics } = createNamespacedHelpers('statistics');
 const { mapActions: code } = createNamespacedHelpers('code');
 export default {
   name: 'requirement',
@@ -48,9 +48,9 @@ export default {
   },
   methods: {
     ...code(['query']),
-    ...dock(['productQuery']),
+    ...statistics(['dockProduct']),
     async search({ skip = 0, limit = 10, ...info } = {}) {
-      const res = await this.productQuery({ skip, limit, ...info, dock_id: this.user.id, type: '1', ...this.form });
+      const res = await this.dockProduct({ skip, limit, ...info, dock_id: this.user.id, type: '1', ...this.form });
       if (this.$checkRes(res)) {
         this.$set(this, `list`, res.data);
         this.$set(this, `total`, res.total);