xiongzhu пре 4 година
родитељ
комит
57665f1b6d
23 измењених фајлова са 2233 додато и 16 уклоњено
  1. 2 2
      src/main/java/com/izouma/awesomeAdmin/web/stat/BaseStatController.java
  2. 2 2
      src/main/java/com/izouma/awesomeAdmin/web/stat/CategoryController.java
  3. 2 2
      src/main/java/com/izouma/awesomeAdmin/web/stat/CityIndexStatController.java
  4. 2 2
      src/main/java/com/izouma/awesomeAdmin/web/stat/OrgNumStatController.java
  5. 2 2
      src/main/java/com/izouma/awesomeAdmin/web/stat/ProjectNumStatController.java
  6. 2 2
      src/main/java/com/izouma/awesomeAdmin/web/stat/TechTradeStatController.java
  7. 2 2
      src/main/java/com/izouma/awesomeAdmin/web/stat/ThresholdController.java
  8. 1 1
      src/main/resources/application.yaml
  9. 127 1
      src/main/vue/src/router.js
  10. 116 0
      src/main/vue/src/views/BaseStatEdit.vue
  11. 159 0
      src/main/vue/src/views/BaseStatList.vue
  12. 98 0
      src/main/vue/src/views/CategoryEdit.vue
  13. 159 0
      src/main/vue/src/views/CategoryList.vue
  14. 116 0
      src/main/vue/src/views/CityIndexStatEdit.vue
  15. 159 0
      src/main/vue/src/views/CityIndexStatList.vue
  16. 136 0
      src/main/vue/src/views/OrgNumStatEdit.vue
  17. 193 0
      src/main/vue/src/views/OrgNumStatList.vue
  18. 136 0
      src/main/vue/src/views/ProjectNumStatEdit.vue
  19. 193 0
      src/main/vue/src/views/ProjectNumStatList.vue
  20. 136 0
      src/main/vue/src/views/TechTradeStatEdit.vue
  21. 189 0
      src/main/vue/src/views/TechTradeStatList.vue
  22. 139 0
      src/main/vue/src/views/ThresholdEdit.vue
  23. 162 0
      src/main/vue/src/views/ThresholdList.vue

+ 2 - 2
src/main/java/com/izouma/awesomeAdmin/web/stat/BaseStatController.java

@@ -37,8 +37,8 @@ public class BaseStatController extends BaseController {
 
 
     //@PreAuthorize("hasRole('ADMIN')")
-    @GetMapping("/all")
-    public Page<BaseStat> all(PageQuery pageQuery) {
+    @PostMapping("/all")
+    public Page<BaseStat> all(@RequestBody PageQuery pageQuery) {
         return baseStatRepo.findAll(JpaUtils.toSpecification(pageQuery,BaseStat.class), JpaUtils.toPageRequest(pageQuery));
     }
 

+ 2 - 2
src/main/java/com/izouma/awesomeAdmin/web/stat/CategoryController.java

@@ -37,8 +37,8 @@ public class CategoryController extends BaseController {
 
 
     //@PreAuthorize("hasRole('ADMIN')")
-    @GetMapping("/all")
-    public Page<Category> all(PageQuery pageQuery) {
+    @PostMapping("/all")
+    public Page<Category> all(@RequestBody PageQuery pageQuery) {
         return categoryRepo.findAll(JpaUtils.toSpecification(pageQuery, Category.class), JpaUtils.toPageRequest(pageQuery));
     }
 

+ 2 - 2
src/main/java/com/izouma/awesomeAdmin/web/stat/CityIndexStatController.java

@@ -37,8 +37,8 @@ public class CityIndexStatController extends BaseController {
 
 
     //@PreAuthorize("hasRole('ADMIN')")
-    @GetMapping("/all")
-    public Page<CityIndexStat> all(PageQuery pageQuery) {
+    @PostMapping("/all")
+    public Page<CityIndexStat> all(@RequestBody PageQuery pageQuery) {
         return cityIndexStatRepo.findAll(JpaUtils.toSpecification(pageQuery, CityIndexStat.class), JpaUtils.toPageRequest(pageQuery));
     }
 

+ 2 - 2
src/main/java/com/izouma/awesomeAdmin/web/stat/OrgNumStatController.java

@@ -37,8 +37,8 @@ public class OrgNumStatController extends BaseController {
 
 
     //@PreAuthorize("hasRole('ADMIN')")
-    @GetMapping("/all")
-    public Page<OrgNumStat> all(PageQuery pageQuery) {
+    @PostMapping("/all")
+    public Page<OrgNumStat> all(@RequestBody PageQuery pageQuery) {
         return orgNumStatRepo.findAll(JpaUtils.toSpecification(pageQuery, OrgNumStat.class), JpaUtils.toPageRequest(pageQuery));
     }
 

+ 2 - 2
src/main/java/com/izouma/awesomeAdmin/web/stat/ProjectNumStatController.java

@@ -37,8 +37,8 @@ public class ProjectNumStatController extends BaseController {
 
 
     //@PreAuthorize("hasRole('ADMIN')")
-    @GetMapping("/all")
-    public Page<ProjectNumStat> all(PageQuery pageQuery) {
+    @PostMapping("/all")
+    public Page<ProjectNumStat> all(@RequestBody PageQuery pageQuery) {
         return projectNumStatRepo.findAll(JpaUtils.toSpecification(pageQuery, ProjectNumStat.class), JpaUtils.toPageRequest(pageQuery));
     }
 

+ 2 - 2
src/main/java/com/izouma/awesomeAdmin/web/stat/TechTradeStatController.java

@@ -37,8 +37,8 @@ public class TechTradeStatController extends BaseController {
 
 
     //@PreAuthorize("hasRole('ADMIN')")
-    @GetMapping("/all")
-    public Page<TechTradeStat> all(PageQuery pageQuery) {
+    @PostMapping("/all")
+    public Page<TechTradeStat> all(@RequestBody PageQuery pageQuery) {
         return techTradeStatRepo.findAll(JpaUtils.toSpecification(pageQuery, TechTradeStat.class), JpaUtils.toPageRequest(pageQuery));
     }
 

+ 2 - 2
src/main/java/com/izouma/awesomeAdmin/web/stat/ThresholdController.java

@@ -37,8 +37,8 @@ public class ThresholdController extends BaseController {
 
 
     //@PreAuthorize("hasRole('ADMIN')")
-    @GetMapping("/all")
-    public Page<Threshold> all(PageQuery pageQuery) {
+    @PostMapping("/all")
+    public Page<Threshold> all(@RequestBody PageQuery pageQuery) {
         return thresholdRepo.findAll(JpaUtils.toSpecification(pageQuery,Threshold.class), JpaUtils.toPageRequest(pageQuery));
     }
 

+ 1 - 1
src/main/resources/application.yaml

@@ -12,7 +12,7 @@ spring:
     profiles:
         active: dev
     datasource:
-        url: jdbc:mysql://frp.izouma.com/jmrh_local?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8
+        url: jdbc:mysql://192.168.50.10/jmrh_local?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8
         username: root
         password: 123456
         hikari:

+ 127 - 1
src/main/vue/src/router.js

@@ -234,7 +234,133 @@ const router = new Router({
                     meta: {
                         title: '数据分析'
                     }
-                }
+                },
+                {
+                    path: '/categoryEdit',
+                    name: 'CategoryEdit',
+                    component: () => import(/* webpackChunkName: "peakEdit" */ '@/views/CategoryEdit.vue'),
+                    meta: {
+                        title: '系统模块编辑'
+                    }
+                },
+                {
+                    path: '/categoryList',
+                    name: 'CategoryList',
+                    component: () => import(/* webpackChunkName: "peakList" */ '@/views/CategoryList.vue'),
+                    meta: {
+                        title: '系统模块列表'
+                    }
+                },
+                {
+                    path: '/categoryList',
+                    name: 'CategoryList',
+                    component: () => import(/* webpackChunkName: "peakList" */ '@/views/CategoryList.vue'),
+                    meta: {
+                        title: '系统模块列表'
+                    }
+                },
+                {
+                    path: '/thresholdEdit',
+                    name: 'ThresholdEdit',
+                    component: () => import(/* webpackChunkName: "thresholdEdit" */ '@/views/ThresholdEdit.vue'),
+                    meta: {
+                        title: '预警阀值编辑'
+                    }
+                },
+                {
+                    path: '/thresholdList',
+                    name: 'ThresholdList',
+                    component: () => import(/* webpackChunkName: "thresholdList" */ '@/views/ThresholdList.vue'),
+                    meta: {
+                        title: '预警阀值'
+                    }
+                },
+                {
+                    path: '/orgNumStatList',
+                    name: 'orgNumStatList',
+                    component: () => import(/* webpackChunkName: "orgNumStatList" */ './views/OrgNumStatList.vue'),
+                    meta: {
+                        title: '企业数量'
+                    }
+                },
+                {
+                    path: '/orgNumStatEdit',
+                    name: 'orgNumStatEdit',
+                    component: () => import(/* webpackChunkName: "orgNumStatEdit" */ './views/OrgNumStatEdit.vue'),
+                    meta: {
+                        title: '企业数量编辑'
+                    }
+                },
+                {
+                    path: '/projectNumStatList',
+                    name: 'projectNumStatList',
+                    component: () =>
+                        import(/* webpackChunkName: "projectNumStatList" */ './views/ProjectNumStatList.vue'),
+                    meta: {
+                        title: '项目数量'
+                    }
+                },
+                {
+                    path: '/projectNumStatEdit',
+                    name: 'projectNumStatEdit',
+                    component: () =>
+                        import(/* webpackChunkName: "projectNumStatEdit" */ './views/ProjectNumStatEdit.vue'),
+                    meta: {
+                        title: '项目数量编辑'
+                    }
+                },
+                {
+                    path: '/cityIndexStatList',
+                    name: 'cityIndexStatList',
+                    component: () =>
+                        import(/* webpackChunkName: "cityIndexStatList" */ './views/CityIndexStatList.vue'),
+                    meta: {
+                        title: '城市指数'
+                    }
+                },
+                {
+                    path: '/cityIndexStatEdit',
+                    name: 'cityIndexStatEdit',
+                    component: () =>
+                        import(/* webpackChunkName: "cityIndexStatEdit" */ './views/CityIndexStatEdit.vue'),
+                    meta: {
+                        title: '城市指数编辑'
+                    }
+                },
+                {
+                    path: '/baseStatList',
+                    name: 'baseStatList',
+                    component: () => import(/* webpackChunkName: "baseStatList" */ './views/BaseStatList.vue'),
+                    meta: {
+                        title: '基地分布'
+                    }
+                },
+                {
+                    path: '/baseStatEdit',
+                    name: 'baseStatEdit',
+                    component: () => import(/* webpackChunkName: "baseStatEdit" */ './views/BaseStatEdit.vue'),
+                    meta: {
+                        title: '基地分布编辑'
+                    }
+                },
+                {
+                    path: '/techTradeStatList',
+                    name: 'techTradeStatList',
+                    component: () =>
+                        import(/* webpackChunkName: "techTradeStatList" */ './views/TechTradeStatList.vue'),
+                    meta: {
+                        title: '技术交易'
+                    }
+                },
+                {
+                    path: '/techTradeStatEdit',
+                    name: 'techTradeStatEdit',
+                    component: () =>
+                        import(/* webpackChunkName: "techTradeStatEdit" */ './views/TechTradeStatEdit.vue'),
+                    meta: {
+                        title: '技术交易编辑'
+                    }
+                },
                 /**INSERT_LOCATION**/
             ]
         },

+ 116 - 0
src/main/vue/src/views/BaseStatEdit.vue

@@ -0,0 +1,116 @@
+<template>
+    <div class="edit-view">
+        <div class="edit-view__content-wrapper">
+            <div class="edit-view__content-section">
+                <el-form
+                    :model="formData"
+                    :rules="rules"
+                    ref="form"
+                    label-width="52px"
+                    label-position="right"
+                    size="small"
+                    style="max-width: 500px;"
+                >
+                    <el-form-item prop="city" label="城市">
+                        <el-input v-model="formData.city"></el-input>
+                    </el-form-item>
+                    <el-form-item prop="num" label="数量">
+                        <el-input-number type="number" v-model="formData.num"></el-input-number>
+                    </el-form-item>
+                    <el-form-item>
+                        <el-button @click="onSave" :loading="saving" type="primary">保存</el-button>
+                        <el-button @click="onDelete" :loading="saving" type="danger" v-if="formData.id"
+                            >删除
+                        </el-button>
+                        <el-button @click="$router.go(-1)">取消</el-button>
+                    </el-form-item>
+                </el-form>
+            </div>
+        </div>
+    </div>
+</template>
+<script>
+export default {
+    name: 'BaseStatEdit',
+    created() {
+        if (this.$route.query.id) {
+            this.$http
+                .get('baseStat/get/' + this.$route.query.id)
+                .then(res => {
+                    this.formData = res;
+                })
+                .catch(e => {
+                    console.log(e);
+                    this.$message.error(e.error);
+                });
+        }
+    },
+    data() {
+        return {
+            saving: false,
+            formData: {},
+            rules: {
+                city: [
+                    {
+                        required: true,
+                        message: '请输入城市',
+                        trigger: 'blur'
+                    }
+                ],
+                num: [
+                    {
+                        required: true,
+                        message: '请输入数量',
+                        trigger: 'blur'
+                    }
+                ]
+            }
+        };
+    },
+    methods: {
+        onSave() {
+            this.$refs.form.validate(valid => {
+                if (valid) {
+                    this.submit();
+                } else {
+                    return false;
+                }
+            });
+        },
+        submit() {
+            let data = { ...this.formData };
+
+            this.saving = true;
+            this.$http
+                .post('/baseStat/save', data, { body: 'json' })
+                .then(res => {
+                    this.saving = false;
+                    this.$message.success('成功');
+                    this.$router.go(-1);
+                })
+                .catch(e => {
+                    console.log(e);
+                    this.saving = false;
+                    this.$message.error(e.error);
+                });
+        },
+        onDelete() {
+            this.$alert('删除将无法恢复,确认要删除么?', '警告', { type: 'error' })
+                .then(() => {
+                    return this.$http.post(`/baseStat/del/${this.formData.id}`);
+                })
+                .then(() => {
+                    this.$message.success('删除成功');
+                    this.$router.go(-1);
+                })
+                .catch(e => {
+                    if (e !== 'cancel') {
+                        console.log(e);
+                        this.$message.error(e.error);
+                    }
+                });
+        }
+    }
+};
+</script>
+<style lang="less" scoped></style>

+ 159 - 0
src/main/vue/src/views/BaseStatList.vue

@@ -0,0 +1,159 @@
+<template>
+    <div class="list-view">
+        <div class="filters-container">
+            <el-input placeholder="输入关键字" v-model="search" clearable class="filter-item"></el-input>
+            <el-button @click="getData" type="primary" icon="el-icon-search" class="filter-item">搜索 </el-button>
+            <el-button @click="addRow" type="primary" icon="el-icon-plus" class="filter-item">添加 </el-button>
+            <el-button
+                @click="download"
+                type="primary"
+                icon="el-icon-download"
+                :loading="downloading"
+                class="filter-item"
+                >导出EXCEL
+            </el-button>
+        </div>
+        <el-table
+            :data="tableData"
+            row-key="id"
+            ref="table"
+            header-row-class-name="table-header-row"
+            header-cell-class-name="table-header-cell"
+            row-class-name="table-row"
+            cell-class-name="table-cell"
+            :height="tableHeight"
+        >
+            <el-table-column v-if="multipleMode" align="center" type="selection" width="50"> </el-table-column>
+            <el-table-column prop="id" label="ID" width="100"> </el-table-column>
+            <el-table-column prop="city" label="城市"> </el-table-column>
+            <el-table-column prop="num" label="数量"> </el-table-column>
+            <el-table-column label="操作" align="center" fixed="right" min-width="150">
+                <template slot-scope="{ row }">
+                    <el-button @click="editRow(row)" type="primary" size="mini" plain>编辑</el-button>
+                    <el-button @click="deleteRow(row)" type="danger" size="mini" plain>删除</el-button>
+                </template>
+            </el-table-column>
+        </el-table>
+        <div class="pagination-wrapper">
+            <!-- <div class="multiple-mode-wrapper">
+                <el-button v-if="!multipleMode" @click="toggleMultipleMode(true)">批量编辑</el-button>
+                <el-button-group v-else>
+                    <el-button @click="operation1">批量操作1</el-button>
+                    <el-button @click="operation2">批量操作2</el-button>
+                    <el-button @click="toggleMultipleMode(false)">取消</el-button>
+                </el-button-group>
+            </div> -->
+            <el-pagination
+                background
+                @size-change="onSizeChange"
+                @current-change="onCurrentChange"
+                :current-page="page"
+                :page-sizes="[10, 20, 30, 40, 50]"
+                :page-size="pageSize"
+                layout="total, sizes, prev, pager, next, jumper"
+                :total="totalElements"
+            >
+            </el-pagination>
+        </div>
+    </div>
+</template>
+<script>
+import { mapState } from 'vuex';
+import pageableTable from '@/mixins/pageableTable';
+
+export default {
+    name: 'BaseStatList',
+    mixins: [pageableTable],
+    data() {
+        return {
+            multipleMode: false,
+            search: '',
+            url: '/baseStat/all',
+            downloading: false
+        };
+    },
+    computed: {
+        selection() {
+            return this.$refs.table.selection.map(i => i.id);
+        }
+    },
+    methods: {
+        beforeGetData() {
+            if (this.search) {
+                return { search: this.search };
+            }
+        },
+        toggleMultipleMode(multipleMode) {
+            this.multipleMode = multipleMode;
+            if (!multipleMode) {
+                this.$refs.table.clearSelection();
+            }
+        },
+        addRow() {
+            this.$router.push({
+                path: '/baseStatEdit',
+                query: {
+                    ...this.$route.query
+                }
+            });
+        },
+        editRow(row) {
+            this.$router.push({
+                path: '/baseStatEdit',
+                query: {
+                    id: row.id
+                }
+            });
+        },
+        download() {
+            this.downloading = true;
+            this.$axios
+                .get('/baseStat/excel', {
+                    responseType: 'blob',
+                    params: { size: 10000 }
+                })
+                .then(res => {
+                    console.log(res);
+                    this.downloading = false;
+                    const downloadUrl = window.URL.createObjectURL(new Blob([res.data]));
+                    const link = document.createElement('a');
+                    link.href = downloadUrl;
+                    link.setAttribute('download', res.headers['content-disposition'].split('filename=')[1]);
+                    document.body.appendChild(link);
+                    link.click();
+                    link.remove();
+                })
+                .catch(e => {
+                    console.log(e);
+                    this.downloading = false;
+                    this.$message.error(e.error);
+                });
+        },
+        operation1() {
+            this.$notify({
+                title: '提示',
+                message: this.selection
+            });
+        },
+        operation2() {
+            this.$message('操作2');
+        },
+        deleteRow(row) {
+            this.$alert('删除将无法恢复,确认要删除么?', '警告', { type: 'error' })
+                .then(() => {
+                    return this.$http.post(`/baseStat/del/${row.id}`);
+                })
+                .then(() => {
+                    this.$message.success('删除成功');
+                    this.getData();
+                })
+                .catch(e => {
+                    if (e !== 'cancel') {
+                        this.$message.error(e.error);
+                    }
+                });
+        }
+    }
+};
+</script>
+<style lang="less" scoped></style>

+ 98 - 0
src/main/vue/src/views/CategoryEdit.vue

@@ -0,0 +1,98 @@
+<template>
+    <div class="edit-view">
+        <div class="edit-view__content-wrapper">
+            <div class="edit-view__content-section">
+                <el-form
+                    :model="formData"
+                    :rules="rules"
+                    ref="form"
+                    label-width="66px"
+                    label-position="right"
+                    size="small"
+                    style="max-width: 500px;"
+                >
+                    <el-form-item prop="name" label="分类名">
+                        <el-input v-model="formData.name"></el-input>
+                    </el-form-item>
+                    <el-form-item>
+                        <el-button @click="onSave" :loading="saving" type="primary">保存</el-button>
+                        <!-- <el-button @click="onDelete" :loading="saving" type="danger" v-if="formData.id"
+                            >删除
+                        </el-button> -->
+                        <el-button @click="$router.go(-1)">取消</el-button>
+                    </el-form-item>
+                </el-form>
+            </div>
+        </div>
+    </div>
+</template>
+<script>
+export default {
+    name: 'CategoryEdit',
+    created() {
+        if (this.$route.query.id) {
+            this.$http
+                .get('category/get/' + this.$route.query.id)
+                .then(res => {
+                    this.formData = res;
+                })
+                .catch(e => {
+                    console.log(e);
+                    this.$message.error(e.error);
+                });
+        }
+    },
+    data() {
+        return {
+            saving: false,
+            formData: {},
+            rules: {}
+        };
+    },
+    methods: {
+        onSave() {
+            this.$refs.form.validate(valid => {
+                if (valid) {
+                    this.submit();
+                } else {
+                    return false;
+                }
+            });
+        },
+        submit() {
+            let data = { ...this.formData };
+
+            this.saving = true;
+            this.$http
+                .post('/category/save', data, { body: 'json' })
+                .then(res => {
+                    this.saving = false;
+                    this.$message.success('成功');
+                    this.$router.go(-1);
+                })
+                .catch(e => {
+                    console.log(e);
+                    this.saving = false;
+                    this.$message.error(e.error);
+                });
+        },
+        onDelete() {
+            this.$alert('删除将无法恢复,确认要删除么?', '警告', { type: 'error' })
+                .then(() => {
+                    return this.$http.post(`/category/del/${this.formData.id}`);
+                })
+                .then(() => {
+                    this.$message.success('删除成功');
+                    this.$router.go(-1);
+                })
+                .catch(e => {
+                    if (e !== 'cancel') {
+                        console.log(e);
+                        this.$message.error(e.error);
+                    }
+                });
+        }
+    }
+};
+</script>
+<style lang="less" scoped></style>

+ 159 - 0
src/main/vue/src/views/CategoryList.vue

@@ -0,0 +1,159 @@
+<template>
+    <div class="list-view">
+        <div class="filters-container">
+            <el-input placeholder="输入关键字" v-model="search" clearable class="filter-item"></el-input>
+            <el-button @click="getData" type="primary" icon="el-icon-search" class="filter-item">搜索 </el-button>
+            <!-- <el-button @click="addRow" type="primary" icon="el-icon-plus" class="filter-item">添加 </el-button> -->
+            <el-button
+                @click="download"
+                type="primary"
+                icon="el-icon-download"
+                :loading="downloading"
+                class="filter-item"
+                >导出EXCEL
+            </el-button>
+        </div>
+        <el-table
+            :data="tableData"
+            row-key="id"
+            ref="table"
+            header-row-class-name="table-header-row"
+            header-cell-class-name="table-header-cell"
+            row-class-name="table-row"
+            cell-class-name="table-cell"
+            :height="tableHeight"
+        >
+            <el-table-column v-if="multipleMode" align="center" type="selection" width="50"> </el-table-column>
+            <!-- <el-table-column prop="id" label="ID" width="100"> </el-table-column> -->
+            <el-table-column type="index" align="center" width="80"> </el-table-column>
+            <el-table-column prop="name" label="分类名"> </el-table-column>
+            <el-table-column label="操作" align="center" fixed="right" min-width="150">
+                <template slot-scope="{ row }">
+                    <el-button @click="editRow(row)" type="primary" size="mini" plain>编辑</el-button>
+                    <!-- <el-button @click="deleteRow(row)" type="danger" size="mini" plain>删除</el-button> -->
+                </template>
+            </el-table-column>
+        </el-table>
+        <div class="pagination-wrapper">
+            <!-- <div class="multiple-mode-wrapper">
+                <el-button v-if="!multipleMode" @click="toggleMultipleMode(true)">批量编辑</el-button>
+                <el-button-group v-else>
+                    <el-button @click="operation1">批量操作1</el-button>
+                    <el-button @click="operation2">批量操作2</el-button>
+                    <el-button @click="toggleMultipleMode(false)">取消</el-button>
+                </el-button-group>
+            </div> -->
+            <el-pagination
+                background
+                @size-change="onSizeChange"
+                @current-change="onCurrentChange"
+                :current-page="page"
+                :page-sizes="[10, 20, 30, 40, 50]"
+                :page-size="pageSize"
+                layout="total, sizes, prev, pager, next, jumper"
+                :total="totalElements"
+            >
+            </el-pagination>
+        </div>
+    </div>
+</template>
+<script>
+import { mapState } from 'vuex';
+import pageableTable from '@/mixins/pageableTable';
+
+export default {
+    name: 'CategoryList',
+    mixins: [pageableTable],
+    data() {
+        return {
+            multipleMode: false,
+            search: '',
+            url: '/category/all',
+            downloading: false
+        };
+    },
+    computed: {
+        selection() {
+            return this.$refs.table.selection.map(i => i.id);
+        }
+    },
+    methods: {
+        beforeGetData() {
+            if (this.search) {
+                return { search: this.search };
+            }
+        },
+        toggleMultipleMode(multipleMode) {
+            this.multipleMode = multipleMode;
+            if (!multipleMode) {
+                this.$refs.table.clearSelection();
+            }
+        },
+        addRow() {
+            this.$router.push({
+                path: '/categoryEdit',
+                query: {
+                    ...this.$route.query
+                }
+            });
+        },
+        editRow(row) {
+            this.$router.push({
+                path: '/categoryEdit',
+                query: {
+                    id: row.id
+                }
+            });
+        },
+        download() {
+            this.downloading = true;
+            this.$axios
+                .get('/category/excel', {
+                    responseType: 'blob',
+                    params: { size: 10000 }
+                })
+                .then(res => {
+                    console.log(res);
+                    this.downloading = false;
+                    const downloadUrl = window.URL.createObjectURL(new Blob([res.data]));
+                    const link = document.createElement('a');
+                    link.href = downloadUrl;
+                    link.setAttribute('download', res.headers['content-disposition'].split('filename=')[1]);
+                    document.body.appendChild(link);
+                    link.click();
+                    link.remove();
+                })
+                .catch(e => {
+                    console.log(e);
+                    this.downloading = false;
+                    this.$message.error(e.error);
+                });
+        },
+        operation1() {
+            this.$notify({
+                title: '提示',
+                message: this.selection
+            });
+        },
+        operation2() {
+            this.$message('操作2');
+        },
+        deleteRow(row) {
+            this.$alert('删除将无法恢复,确认要删除么?', '警告', { type: 'error' })
+                .then(() => {
+                    return this.$http.post(`/category/del/${row.id}`);
+                })
+                .then(() => {
+                    this.$message.success('删除成功');
+                    this.getData();
+                })
+                .catch(e => {
+                    if (e !== 'cancel') {
+                        this.$message.error(e.error);
+                    }
+                });
+        }
+    }
+};
+</script>
+<style lang="less" scoped></style>

+ 116 - 0
src/main/vue/src/views/CityIndexStatEdit.vue

@@ -0,0 +1,116 @@
+<template>
+    <div class="edit-view">
+        <div class="edit-view__content-wrapper">
+            <div class="edit-view__content-section">
+                <el-form
+                    :model="formData"
+                    :rules="rules"
+                    ref="form"
+                    label-width="52px"
+                    label-position="right"
+                    size="small"
+                    style="max-width: 500px;"
+                >
+                    <el-form-item prop="city" label="城市">
+                        <el-input v-model="formData.city"></el-input>
+                    </el-form-item>
+                    <el-form-item prop="cityIndex" label="指数">
+                        <el-input-number type="number" v-model="formData.cityIndex"></el-input-number>
+                    </el-form-item>
+                    <el-form-item>
+                        <el-button @click="onSave" :loading="saving" type="primary">保存</el-button>
+                        <el-button @click="onDelete" :loading="saving" type="danger" v-if="formData.id"
+                            >删除
+                        </el-button>
+                        <el-button @click="$router.go(-1)">取消</el-button>
+                    </el-form-item>
+                </el-form>
+            </div>
+        </div>
+    </div>
+</template>
+<script>
+export default {
+    name: 'CityIndexStatEdit',
+    created() {
+        if (this.$route.query.id) {
+            this.$http
+                .get('cityIndexStat/get/' + this.$route.query.id)
+                .then(res => {
+                    this.formData = res;
+                })
+                .catch(e => {
+                    console.log(e);
+                    this.$message.error(e.error);
+                });
+        }
+    },
+    data() {
+        return {
+            saving: false,
+            formData: {},
+            rules: {
+                city: [
+                    {
+                        required: true,
+                        message: '请输入城市',
+                        trigger: 'blur'
+                    }
+                ],
+                cityIndex: [
+                    {
+                        required: true,
+                        message: '请输入指数',
+                        trigger: 'blur'
+                    }
+                ]
+            }
+        };
+    },
+    methods: {
+        onSave() {
+            this.$refs.form.validate(valid => {
+                if (valid) {
+                    this.submit();
+                } else {
+                    return false;
+                }
+            });
+        },
+        submit() {
+            let data = { ...this.formData };
+
+            this.saving = true;
+            this.$http
+                .post('/cityIndexStat/save', data, { body: 'json' })
+                .then(res => {
+                    this.saving = false;
+                    this.$message.success('成功');
+                    this.$router.go(-1);
+                })
+                .catch(e => {
+                    console.log(e);
+                    this.saving = false;
+                    this.$message.error(e.error);
+                });
+        },
+        onDelete() {
+            this.$alert('删除将无法恢复,确认要删除么?', '警告', { type: 'error' })
+                .then(() => {
+                    return this.$http.post(`/cityIndexStat/del/${this.formData.id}`);
+                })
+                .then(() => {
+                    this.$message.success('删除成功');
+                    this.$router.go(-1);
+                })
+                .catch(e => {
+                    if (e !== 'cancel') {
+                        console.log(e);
+                        this.$message.error(e.error);
+                    }
+                });
+        }
+    }
+};
+</script>
+<style lang="less" scoped></style>

+ 159 - 0
src/main/vue/src/views/CityIndexStatList.vue

@@ -0,0 +1,159 @@
+<template>
+    <div class="list-view">
+        <div class="filters-container">
+            <el-input placeholder="输入关键字" v-model="search" clearable class="filter-item"></el-input>
+            <el-button @click="getData" type="primary" icon="el-icon-search" class="filter-item">搜索 </el-button>
+            <el-button @click="addRow" type="primary" icon="el-icon-plus" class="filter-item">添加 </el-button>
+            <el-button
+                @click="download"
+                type="primary"
+                icon="el-icon-download"
+                :loading="downloading"
+                class="filter-item"
+                >导出EXCEL
+            </el-button>
+        </div>
+        <el-table
+            :data="tableData"
+            row-key="id"
+            ref="table"
+            header-row-class-name="table-header-row"
+            header-cell-class-name="table-header-cell"
+            row-class-name="table-row"
+            cell-class-name="table-cell"
+            :height="tableHeight"
+        >
+            <el-table-column v-if="multipleMode" align="center" type="selection" width="50"> </el-table-column>
+            <el-table-column prop="id" label="ID" width="100"> </el-table-column>
+            <el-table-column prop="city" label="城市"> </el-table-column>
+            <el-table-column prop="cityIndex" label="指数"> </el-table-column>
+            <el-table-column label="操作" align="center" fixed="right" min-width="150">
+                <template slot-scope="{ row }">
+                    <el-button @click="editRow(row)" type="primary" size="mini" plain>编辑</el-button>
+                    <el-button @click="deleteRow(row)" type="danger" size="mini" plain>删除</el-button>
+                </template>
+            </el-table-column>
+        </el-table>
+        <div class="pagination-wrapper">
+            <!-- <div class="multiple-mode-wrapper">
+                <el-button v-if="!multipleMode" @click="toggleMultipleMode(true)">批量编辑</el-button>
+                <el-button-group v-else>
+                    <el-button @click="operation1">批量操作1</el-button>
+                    <el-button @click="operation2">批量操作2</el-button>
+                    <el-button @click="toggleMultipleMode(false)">取消</el-button>
+                </el-button-group>
+            </div> -->
+            <el-pagination
+                background
+                @size-change="onSizeChange"
+                @current-change="onCurrentChange"
+                :current-page="page"
+                :page-sizes="[10, 20, 30, 40, 50]"
+                :page-size="pageSize"
+                layout="total, sizes, prev, pager, next, jumper"
+                :total="totalElements"
+            >
+            </el-pagination>
+        </div>
+    </div>
+</template>
+<script>
+import { mapState } from 'vuex';
+import pageableTable from '@/mixins/pageableTable';
+
+export default {
+    name: 'CityIndexStatList',
+    mixins: [pageableTable],
+    data() {
+        return {
+            multipleMode: false,
+            search: '',
+            url: '/cityIndexStat/all',
+            downloading: false
+        };
+    },
+    computed: {
+        selection() {
+            return this.$refs.table.selection.map(i => i.id);
+        }
+    },
+    methods: {
+        beforeGetData() {
+            if (this.search) {
+                return { search: this.search };
+            }
+        },
+        toggleMultipleMode(multipleMode) {
+            this.multipleMode = multipleMode;
+            if (!multipleMode) {
+                this.$refs.table.clearSelection();
+            }
+        },
+        addRow() {
+            this.$router.push({
+                path: '/cityIndexStatEdit',
+                query: {
+                    ...this.$route.query
+                }
+            });
+        },
+        editRow(row) {
+            this.$router.push({
+                path: '/cityIndexStatEdit',
+                query: {
+                    id: row.id
+                }
+            });
+        },
+        download() {
+            this.downloading = true;
+            this.$axios
+                .get('/cityIndexStat/excel', {
+                    responseType: 'blob',
+                    params: { size: 10000 }
+                })
+                .then(res => {
+                    console.log(res);
+                    this.downloading = false;
+                    const downloadUrl = window.URL.createObjectURL(new Blob([res.data]));
+                    const link = document.createElement('a');
+                    link.href = downloadUrl;
+                    link.setAttribute('download', res.headers['content-disposition'].split('filename=')[1]);
+                    document.body.appendChild(link);
+                    link.click();
+                    link.remove();
+                })
+                .catch(e => {
+                    console.log(e);
+                    this.downloading = false;
+                    this.$message.error(e.error);
+                });
+        },
+        operation1() {
+            this.$notify({
+                title: '提示',
+                message: this.selection
+            });
+        },
+        operation2() {
+            this.$message('操作2');
+        },
+        deleteRow(row) {
+            this.$alert('删除将无法恢复,确认要删除么?', '警告', { type: 'error' })
+                .then(() => {
+                    return this.$http.post(`/cityIndexStat/del/${row.id}`);
+                })
+                .then(() => {
+                    this.$message.success('删除成功');
+                    this.getData();
+                })
+                .catch(e => {
+                    if (e !== 'cancel') {
+                        this.$message.error(e.error);
+                    }
+                });
+        }
+    }
+};
+</script>
+<style lang="less" scoped></style>

+ 136 - 0
src/main/vue/src/views/OrgNumStatEdit.vue

@@ -0,0 +1,136 @@
+<template>
+    <div class="edit-view">
+        <div class="edit-view__content-wrapper">
+            <div class="edit-view__content-section">
+                <el-form
+                    :model="formData"
+                    :rules="rules"
+                    ref="form"
+                    label-width="52px"
+                    label-position="right"
+                    size="small"
+                    style="max-width: 500px;"
+                >
+                    <el-form-item prop="city" label="城市">
+                        <el-input v-model="formData.city"></el-input>
+                    </el-form-item>
+                    <el-form-item prop="num" label="数量">
+                        <el-input-number type="number" v-model="formData.num"></el-input-number>
+                    </el-form-item>
+                    <el-form-item prop="year" label="年">
+                        <el-input v-model="formData.year"></el-input>
+                    </el-form-item>
+                    <el-form-item prop="month" label="月">
+                        <el-input v-model="formData.month"></el-input>
+                    </el-form-item>
+                    <el-form-item>
+                        <el-button @click="onSave" :loading="saving" type="primary">保存</el-button>
+                        <el-button @click="onDelete" :loading="saving" type="danger" v-if="formData.id"
+                            >删除
+                        </el-button>
+                        <el-button @click="$router.go(-1)">取消</el-button>
+                    </el-form-item>
+                </el-form>
+            </div>
+        </div>
+    </div>
+</template>
+<script>
+export default {
+    name: 'OrgNumStatEdit',
+    created() {
+        if (this.$route.query.id) {
+            this.$http
+                .get('orgNumStat/get/' + this.$route.query.id)
+                .then(res => {
+                    this.formData = res;
+                })
+                .catch(e => {
+                    console.log(e);
+                    this.$message.error(e.error);
+                });
+        }
+    },
+    data() {
+        return {
+            saving: false,
+            formData: {},
+            rules: {
+                city: [
+                    {
+                        required: true,
+                        message: '请输入城市',
+                        trigger: 'blur'
+                    }
+                ],
+                num: [
+                    {
+                        required: true,
+                        message: '请输入数量',
+                        trigger: 'blur'
+                    }
+                ],
+                year: [
+                    {
+                        required: true,
+                        message: '请输入年',
+                        trigger: 'blur'
+                    }
+                ],
+                month: [
+                    {
+                        required: true,
+                        message: '请输入月',
+                        trigger: 'blur'
+                    }
+                ]
+            }
+        };
+    },
+    methods: {
+        onSave() {
+            this.$refs.form.validate(valid => {
+                if (valid) {
+                    this.submit();
+                } else {
+                    return false;
+                }
+            });
+        },
+        submit() {
+            let data = { ...this.formData };
+
+            this.saving = true;
+            this.$http
+                .post('/orgNumStat/save', data, { body: 'json' })
+                .then(res => {
+                    this.saving = false;
+                    this.$message.success('成功');
+                    this.$router.go(-1);
+                })
+                .catch(e => {
+                    console.log(e);
+                    this.saving = false;
+                    this.$message.error(e.error);
+                });
+        },
+        onDelete() {
+            this.$alert('删除将无法恢复,确认要删除么?', '警告', { type: 'error' })
+                .then(() => {
+                    return this.$http.post(`/orgNumStat/del/${this.formData.id}`);
+                })
+                .then(() => {
+                    this.$message.success('删除成功');
+                    this.$router.go(-1);
+                })
+                .catch(e => {
+                    if (e !== 'cancel') {
+                        console.log(e);
+                        this.$message.error(e.error);
+                    }
+                });
+        }
+    }
+};
+</script>
+<style lang="less" scoped></style>

+ 193 - 0
src/main/vue/src/views/OrgNumStatList.vue

@@ -0,0 +1,193 @@
+<template>
+    <div class="list-view">
+        <div class="filters-container">
+            <el-input placeholder="输入关键字" v-model="search" clearable class="filter-item"></el-input>
+            <el-select v-model="year" placeholder="年" clearable class="filter-item">
+                <el-option v-for="n in 10" :key="n" :label="nowYear + 1 - n" :value="nowYear + 1 - n"></el-option>
+            </el-select>
+            <el-select v-model="month" placeholder="月" clearable class="filter-item">
+                <el-option v-for="n in 12" :key="n" :label="n" :value="n"></el-option>
+            </el-select>
+            <el-select v-model="city" placeholder="城市" clearable class="filter-item">
+                <el-option v-for="item in cities" :key="item" :label="item" :value="item"></el-option>
+            </el-select>
+            <el-button @click="getData" type="primary" icon="el-icon-search" class="filter-item">搜索 </el-button>
+            <el-button @click="addRow" type="primary" icon="el-icon-plus" class="filter-item">添加 </el-button>
+            <el-button
+                @click="download"
+                type="primary"
+                icon="el-icon-download"
+                :loading="downloading"
+                class="filter-item"
+                >导出EXCEL
+            </el-button>
+        </div>
+        <el-table
+            :data="tableData"
+            row-key="id"
+            ref="table"
+            header-row-class-name="table-header-row"
+            header-cell-class-name="table-header-cell"
+            row-class-name="table-row"
+            cell-class-name="table-cell"
+            :height="tableHeight"
+        >
+            <el-table-column v-if="multipleMode" align="center" type="selection" width="50"> </el-table-column>
+            <el-table-column prop="id" label="ID" width="100"> </el-table-column>
+            <el-table-column prop="city" label="城市"> </el-table-column>
+            <el-table-column prop="num" label="数量"> </el-table-column>
+            <el-table-column prop="year" label="年"> </el-table-column>
+            <el-table-column prop="month" label="月"> </el-table-column>
+            <el-table-column label="操作" align="center" fixed="right" min-width="150">
+                <template slot-scope="{ row }">
+                    <el-button @click="editRow(row)" type="primary" size="mini" plain>编辑</el-button>
+                    <el-button @click="deleteRow(row)" type="danger" size="mini" plain>删除</el-button>
+                </template>
+            </el-table-column>
+        </el-table>
+        <div class="pagination-wrapper">
+            <!-- <div class="multiple-mode-wrapper">
+                <el-button v-if="!multipleMode" @click="toggleMultipleMode(true)">批量编辑</el-button>
+                <el-button-group v-else>
+                    <el-button @click="operation1">批量操作1</el-button>
+                    <el-button @click="operation2">批量操作2</el-button>
+                    <el-button @click="toggleMultipleMode(false)">取消</el-button>
+                </el-button-group>
+            </div> -->
+            <el-pagination
+                background
+                @size-change="onSizeChange"
+                @current-change="onCurrentChange"
+                :current-page="page"
+                :page-sizes="[10, 20, 30, 40, 50]"
+                :page-size="pageSize"
+                layout="total, sizes, prev, pager, next, jumper"
+                :total="totalElements"
+            >
+            </el-pagination>
+        </div>
+    </div>
+</template>
+<script>
+import { mapState } from 'vuex';
+import pageableTable from '@/mixins/pageableTable';
+import { format } from 'date-fns';
+
+export default {
+    name: 'OrgNumStatList',
+    mixins: [pageableTable],
+    data() {
+        return {
+            multipleMode: false,
+            search: '',
+            url: '/orgNumStat/all',
+            downloading: false,
+            year: null,
+            month: null,
+            city: null,
+            cities: [
+                '南昌市',
+                '景德镇市',
+                '萍乡市',
+                '九江市',
+                '新余市',
+                '鹰潭市',
+                '赣州市',
+                '吉安市',
+                '宜春市',
+                '抚州市',
+                '上饶市'
+            ],
+            nowYear: parseInt(format(new Date(), 'yyyy'))
+        };
+    },
+    computed: {
+        selection() {
+            return this.$refs.table.selection.map(i => i.id);
+        }
+    },
+    methods: {
+        beforeGetData() {
+            return {
+                search: this.search,
+                query: {
+                    city: this.city,
+                    year: this.year,
+                    month: this.month
+                }
+            };
+        },
+        toggleMultipleMode(multipleMode) {
+            this.multipleMode = multipleMode;
+            if (!multipleMode) {
+                this.$refs.table.clearSelection();
+            }
+        },
+        addRow() {
+            this.$router.push({
+                path: '/orgNumStatEdit',
+                query: {
+                    ...this.$route.query
+                }
+            });
+        },
+        editRow(row) {
+            this.$router.push({
+                path: '/orgNumStatEdit',
+                query: {
+                    id: row.id
+                }
+            });
+        },
+        download() {
+            this.downloading = true;
+            this.$axios
+                .get('/orgNumStat/excel', {
+                    responseType: 'blob',
+                    params: { size: 10000 }
+                })
+                .then(res => {
+                    console.log(res);
+                    this.downloading = false;
+                    const downloadUrl = window.URL.createObjectURL(new Blob([res.data]));
+                    const link = document.createElement('a');
+                    link.href = downloadUrl;
+                    link.setAttribute('download', res.headers['content-disposition'].split('filename=')[1]);
+                    document.body.appendChild(link);
+                    link.click();
+                    link.remove();
+                })
+                .catch(e => {
+                    console.log(e);
+                    this.downloading = false;
+                    this.$message.error(e.error);
+                });
+        },
+        operation1() {
+            this.$notify({
+                title: '提示',
+                message: this.selection
+            });
+        },
+        operation2() {
+            this.$message('操作2');
+        },
+        deleteRow(row) {
+            this.$alert('删除将无法恢复,确认要删除么?', '警告', { type: 'error' })
+                .then(() => {
+                    return this.$http.post(`/orgNumStat/del/${row.id}`);
+                })
+                .then(() => {
+                    this.$message.success('删除成功');
+                    this.getData();
+                })
+                .catch(e => {
+                    if (e !== 'cancel') {
+                        this.$message.error(e.error);
+                    }
+                });
+        }
+    }
+};
+</script>
+<style lang="less" scoped></style>

+ 136 - 0
src/main/vue/src/views/ProjectNumStatEdit.vue

@@ -0,0 +1,136 @@
+<template>
+    <div class="edit-view">
+        <div class="edit-view__content-wrapper">
+            <div class="edit-view__content-section">
+                <el-form
+                    :model="formData"
+                    :rules="rules"
+                    ref="form"
+                    label-width="52px"
+                    label-position="right"
+                    size="small"
+                    style="max-width: 500px;"
+                >
+                    <el-form-item prop="city" label="城市">
+                        <el-input v-model="formData.city"></el-input>
+                    </el-form-item>
+                    <el-form-item prop="num" label="数量">
+                        <el-input-number type="number" v-model="formData.num"></el-input-number>
+                    </el-form-item>
+                    <el-form-item prop="year" label="年">
+                        <el-input v-model="formData.year"></el-input>
+                    </el-form-item>
+                    <el-form-item prop="month" label="月">
+                        <el-input v-model="formData.month"></el-input>
+                    </el-form-item>
+                    <el-form-item>
+                        <el-button @click="onSave" :loading="saving" type="primary">保存</el-button>
+                        <el-button @click="onDelete" :loading="saving" type="danger" v-if="formData.id"
+                            >删除
+                        </el-button>
+                        <el-button @click="$router.go(-1)">取消</el-button>
+                    </el-form-item>
+                </el-form>
+            </div>
+        </div>
+    </div>
+</template>
+<script>
+export default {
+    name: 'ProjectNumStatEdit',
+    created() {
+        if (this.$route.query.id) {
+            this.$http
+                .get('projectNumStat/get/' + this.$route.query.id)
+                .then(res => {
+                    this.formData = res;
+                })
+                .catch(e => {
+                    console.log(e);
+                    this.$message.error(e.error);
+                });
+        }
+    },
+    data() {
+        return {
+            saving: false,
+            formData: {},
+            rules: {
+                city: [
+                    {
+                        required: true,
+                        message: '请输入城市',
+                        trigger: 'blur'
+                    }
+                ],
+                num: [
+                    {
+                        required: true,
+                        message: '请输入数量',
+                        trigger: 'blur'
+                    }
+                ],
+                year: [
+                    {
+                        required: true,
+                        message: '请输入年',
+                        trigger: 'blur'
+                    }
+                ],
+                month: [
+                    {
+                        required: true,
+                        message: '请输入月',
+                        trigger: 'blur'
+                    }
+                ]
+            }
+        };
+    },
+    methods: {
+        onSave() {
+            this.$refs.form.validate(valid => {
+                if (valid) {
+                    this.submit();
+                } else {
+                    return false;
+                }
+            });
+        },
+        submit() {
+            let data = { ...this.formData };
+
+            this.saving = true;
+            this.$http
+                .post('/projectNumStat/save', data, { body: 'json' })
+                .then(res => {
+                    this.saving = false;
+                    this.$message.success('成功');
+                    this.$router.go(-1);
+                })
+                .catch(e => {
+                    console.log(e);
+                    this.saving = false;
+                    this.$message.error(e.error);
+                });
+        },
+        onDelete() {
+            this.$alert('删除将无法恢复,确认要删除么?', '警告', { type: 'error' })
+                .then(() => {
+                    return this.$http.post(`/projectNumStat/del/${this.formData.id}`);
+                })
+                .then(() => {
+                    this.$message.success('删除成功');
+                    this.$router.go(-1);
+                })
+                .catch(e => {
+                    if (e !== 'cancel') {
+                        console.log(e);
+                        this.$message.error(e.error);
+                    }
+                });
+        }
+    }
+};
+</script>
+<style lang="less" scoped></style>

+ 193 - 0
src/main/vue/src/views/ProjectNumStatList.vue

@@ -0,0 +1,193 @@
+<template>
+    <div class="list-view">
+        <div class="filters-container">
+            <el-input placeholder="输入关键字" v-model="search" clearable class="filter-item"></el-input>
+            <el-select v-model="year" placeholder="年" clearable class="filter-item">
+                <el-option v-for="n in 10" :key="n" :label="nowYear + 1 - n" :value="nowYear + 1 - n"></el-option>
+            </el-select>
+            <el-select v-model="month" placeholder="月" clearable class="filter-item">
+                <el-option v-for="n in 12" :key="n" :label="n" :value="n"></el-option>
+            </el-select>
+            <el-select v-model="city" placeholder="城市" clearable class="filter-item">
+                <el-option v-for="item in cities" :key="item" :label="item" :value="item"></el-option>
+            </el-select>
+            <el-button @click="getData" type="primary" icon="el-icon-search" class="filter-item">搜索 </el-button>
+            <el-button @click="addRow" type="primary" icon="el-icon-plus" class="filter-item">添加 </el-button>
+            <el-button
+                @click="download"
+                type="primary"
+                icon="el-icon-download"
+                :loading="downloading"
+                class="filter-item"
+                >导出EXCEL
+            </el-button>
+        </div>
+        <el-table
+            :data="tableData"
+            row-key="id"
+            ref="table"
+            header-row-class-name="table-header-row"
+            header-cell-class-name="table-header-cell"
+            row-class-name="table-row"
+            cell-class-name="table-cell"
+            :height="tableHeight"
+        >
+            <el-table-column v-if="multipleMode" align="center" type="selection" width="50"> </el-table-column>
+            <el-table-column prop="id" label="ID" width="100"> </el-table-column>
+            <el-table-column prop="city" label="城市"> </el-table-column>
+            <el-table-column prop="num" label="数量"> </el-table-column>
+            <el-table-column prop="year" label="年"> </el-table-column>
+            <el-table-column prop="month" label="月"> </el-table-column>
+            <el-table-column label="操作" align="center" fixed="right" min-width="150">
+                <template slot-scope="{ row }">
+                    <el-button @click="editRow(row)" type="primary" size="mini" plain>编辑</el-button>
+                    <el-button @click="deleteRow(row)" type="danger" size="mini" plain>删除</el-button>
+                </template>
+            </el-table-column>
+        </el-table>
+        <div class="pagination-wrapper">
+            <!-- <div class="multiple-mode-wrapper">
+                <el-button v-if="!multipleMode" @click="toggleMultipleMode(true)">批量编辑</el-button>
+                <el-button-group v-else>
+                    <el-button @click="operation1">批量操作1</el-button>
+                    <el-button @click="operation2">批量操作2</el-button>
+                    <el-button @click="toggleMultipleMode(false)">取消</el-button>
+                </el-button-group>
+            </div> -->
+            <el-pagination
+                background
+                @size-change="onSizeChange"
+                @current-change="onCurrentChange"
+                :current-page="page"
+                :page-sizes="[10, 20, 30, 40, 50]"
+                :page-size="pageSize"
+                layout="total, sizes, prev, pager, next, jumper"
+                :total="totalElements"
+            >
+            </el-pagination>
+        </div>
+    </div>
+</template>
+<script>
+import { mapState } from 'vuex';
+import pageableTable from '@/mixins/pageableTable';
+import { format } from 'date-fns';
+
+export default {
+    name: 'ProjectNumStatList',
+    mixins: [pageableTable],
+    data() {
+        return {
+            multipleMode: false,
+            search: '',
+            url: '/projectNumStat/all',
+            downloading: false,
+            year: null,
+            month: null,
+            city: null,
+            cities: [
+                '南昌市',
+                '景德镇市',
+                '萍乡市',
+                '九江市',
+                '新余市',
+                '鹰潭市',
+                '赣州市',
+                '吉安市',
+                '宜春市',
+                '抚州市',
+                '上饶市'
+            ],
+            nowYear: parseInt(format(new Date(), 'yyyy'))
+        };
+    },
+    computed: {
+        selection() {
+            return this.$refs.table.selection.map(i => i.id);
+        }
+    },
+    methods: {
+        beforeGetData() {
+            return {
+                search: this.search,
+                query: {
+                    city: this.city,
+                    year: this.year,
+                    month: this.month
+                }
+            };
+        },
+        toggleMultipleMode(multipleMode) {
+            this.multipleMode = multipleMode;
+            if (!multipleMode) {
+                this.$refs.table.clearSelection();
+            }
+        },
+        addRow() {
+            this.$router.push({
+                path: '/projectNumStatEdit',
+                query: {
+                    ...this.$route.query
+                }
+            });
+        },
+        editRow(row) {
+            this.$router.push({
+                path: '/projectNumStatEdit',
+                query: {
+                    id: row.id
+                }
+            });
+        },
+        download() {
+            this.downloading = true;
+            this.$axios
+                .get('/projectNumStat/excel', {
+                    responseType: 'blob',
+                    params: { size: 10000 }
+                })
+                .then(res => {
+                    console.log(res);
+                    this.downloading = false;
+                    const downloadUrl = window.URL.createObjectURL(new Blob([res.data]));
+                    const link = document.createElement('a');
+                    link.href = downloadUrl;
+                    link.setAttribute('download', res.headers['content-disposition'].split('filename=')[1]);
+                    document.body.appendChild(link);
+                    link.click();
+                    link.remove();
+                })
+                .catch(e => {
+                    console.log(e);
+                    this.downloading = false;
+                    this.$message.error(e.error);
+                });
+        },
+        operation1() {
+            this.$notify({
+                title: '提示',
+                message: this.selection
+            });
+        },
+        operation2() {
+            this.$message('操作2');
+        },
+        deleteRow(row) {
+            this.$alert('删除将无法恢复,确认要删除么?', '警告', { type: 'error' })
+                .then(() => {
+                    return this.$http.post(`/projectNumStat/del/${row.id}`);
+                })
+                .then(() => {
+                    this.$message.success('删除成功');
+                    this.getData();
+                })
+                .catch(e => {
+                    if (e !== 'cancel') {
+                        this.$message.error(e.error);
+                    }
+                });
+        }
+    }
+};
+</script>
+<style lang="less" scoped></style>

+ 136 - 0
src/main/vue/src/views/TechTradeStatEdit.vue

@@ -0,0 +1,136 @@
+<template>
+    <div class="edit-view">
+        <div class="edit-view__content-wrapper">
+            <div class="edit-view__content-section">
+                <el-form
+                    :model="formData"
+                    :rules="rules"
+                    ref="form"
+                    label-width="52px"
+                    label-position="right"
+                    size="small"
+                    style="max-width: 500px;"
+                >
+                    <el-form-item prop="year" label="年">
+                        <el-input v-model="formData.year"></el-input>
+                    </el-form-item>
+                    <el-form-item prop="month" label="月">
+                        <el-input v-model="formData.month"></el-input>
+                    </el-form-item>
+                    <el-form-item prop="trade" label="交易">
+                        <el-input-number type="number" v-model="formData.trade"></el-input-number>
+                    </el-form-item>
+                    <el-form-item prop="consult" label="咨询">
+                        <el-input-number type="number" v-model="formData.consult"></el-input-number>
+                    </el-form-item>
+                    <el-form-item>
+                        <el-button @click="onSave" :loading="saving" type="primary">保存</el-button>
+                        <el-button @click="onDelete" :loading="saving" type="danger" v-if="formData.id"
+                            >删除
+                        </el-button>
+                        <el-button @click="$router.go(-1)">取消</el-button>
+                    </el-form-item>
+                </el-form>
+            </div>
+        </div>
+    </div>
+</template>
+<script>
+export default {
+    name: 'TechTradeStatEdit',
+    created() {
+        if (this.$route.query.id) {
+            this.$http
+                .get('techTradeStat/get/' + this.$route.query.id)
+                .then(res => {
+                    this.formData = res;
+                })
+                .catch(e => {
+                    console.log(e);
+                    this.$message.error(e.error);
+                });
+        }
+    },
+    data() {
+        return {
+            saving: false,
+            formData: {},
+            rules: {
+                year: [
+                    {
+                        required: true,
+                        message: '请输入年',
+                        trigger: 'blur'
+                    }
+                ],
+                month: [
+                    {
+                        required: true,
+                        message: '请输入月',
+                        trigger: 'blur'
+                    }
+                ],
+                trade: [
+                    {
+                        required: true,
+                        message: '请输入交易',
+                        trigger: 'blur'
+                    }
+                ],
+                consult: [
+                    {
+                        required: true,
+                        message: '请输入咨询',
+                        trigger: 'blur'
+                    }
+                ]
+            }
+        };
+    },
+    methods: {
+        onSave() {
+            this.$refs.form.validate(valid => {
+                if (valid) {
+                    this.submit();
+                } else {
+                    return false;
+                }
+            });
+        },
+        submit() {
+            let data = { ...this.formData };
+
+            this.saving = true;
+            this.$http
+                .post('/techTradeStat/save', data, { body: 'json' })
+                .then(res => {
+                    this.saving = false;
+                    this.$message.success('成功');
+                    this.$router.go(-1);
+                })
+                .catch(e => {
+                    console.log(e);
+                    this.saving = false;
+                    this.$message.error(e.error);
+                });
+        },
+        onDelete() {
+            this.$alert('删除将无法恢复,确认要删除么?', '警告', { type: 'error' })
+                .then(() => {
+                    return this.$http.post(`/techTradeStat/del/${this.formData.id}`);
+                })
+                .then(() => {
+                    this.$message.success('删除成功');
+                    this.$router.go(-1);
+                })
+                .catch(e => {
+                    if (e !== 'cancel') {
+                        console.log(e);
+                        this.$message.error(e.error);
+                    }
+                });
+        }
+    }
+};
+</script>
+<style lang="less" scoped></style>

+ 189 - 0
src/main/vue/src/views/TechTradeStatList.vue

@@ -0,0 +1,189 @@
+<template>
+    <div class="list-view">
+        <div class="filters-container">
+            <el-input placeholder="输入关键字" v-model="search" clearable class="filter-item"></el-input>
+            <el-select v-model="year" placeholder="年" clearable class="filter-item">
+                <el-option v-for="n in 10" :key="n" :label="nowYear + 1 - n" :value="nowYear + 1 - n"></el-option>
+            </el-select>
+            <el-select v-model="month" placeholder="月" clearable class="filter-item">
+                <el-option v-for="n in 12" :key="n" :label="n" :value="n"></el-option>
+            </el-select>
+            <el-button @click="getData" type="primary" icon="el-icon-search" class="filter-item">搜索 </el-button>
+            <el-button @click="addRow" type="primary" icon="el-icon-plus" class="filter-item">添加 </el-button>
+            <el-button
+                @click="download"
+                type="primary"
+                icon="el-icon-download"
+                :loading="downloading"
+                class="filter-item"
+                >导出EXCEL
+            </el-button>
+        </div>
+        <el-table
+            :data="tableData"
+            row-key="id"
+            ref="table"
+            header-row-class-name="table-header-row"
+            header-cell-class-name="table-header-cell"
+            row-class-name="table-row"
+            cell-class-name="table-cell"
+            :height="tableHeight"
+        >
+            <el-table-column v-if="multipleMode" align="center" type="selection" width="50"> </el-table-column>
+            <el-table-column prop="id" label="ID" width="100"> </el-table-column>
+            <el-table-column prop="year" label="年"> </el-table-column>
+            <el-table-column prop="month" label="月"> </el-table-column>
+            <el-table-column prop="trade" label="交易"> </el-table-column>
+            <el-table-column prop="consult" label="咨询"> </el-table-column>
+            <el-table-column label="操作" align="center" fixed="right" min-width="150">
+                <template slot-scope="{ row }">
+                    <el-button @click="editRow(row)" type="primary" size="mini" plain>编辑</el-button>
+                    <el-button @click="deleteRow(row)" type="danger" size="mini" plain>删除</el-button>
+                </template>
+            </el-table-column>
+        </el-table>
+        <div class="pagination-wrapper">
+            <!-- <div class="multiple-mode-wrapper">
+                <el-button v-if="!multipleMode" @click="toggleMultipleMode(true)">批量编辑</el-button>
+                <el-button-group v-else>
+                    <el-button @click="operation1">批量操作1</el-button>
+                    <el-button @click="operation2">批量操作2</el-button>
+                    <el-button @click="toggleMultipleMode(false)">取消</el-button>
+                </el-button-group>
+            </div> -->
+            <el-pagination
+                background
+                @size-change="onSizeChange"
+                @current-change="onCurrentChange"
+                :current-page="page"
+                :page-sizes="[10, 20, 30, 40, 50]"
+                :page-size="pageSize"
+                layout="total, sizes, prev, pager, next, jumper"
+                :total="totalElements"
+            >
+            </el-pagination>
+        </div>
+    </div>
+</template>
+<script>
+import { mapState } from 'vuex';
+import pageableTable from '@/mixins/pageableTable';
+import { format } from 'date-fns';
+
+export default {
+    name: 'TechTradeStatList',
+    mixins: [pageableTable],
+    data() {
+        return {
+            multipleMode: false,
+            search: '',
+            url: '/techTradeStat/all',
+            downloading: false,
+            year: null,
+            month: null,
+            city: null,
+            cities: [
+                '南昌市',
+                '景德镇市',
+                '萍乡市',
+                '九江市',
+                '新余市',
+                '鹰潭市',
+                '赣州市',
+                '吉安市',
+                '宜春市',
+                '抚州市',
+                '上饶市'
+            ],
+            nowYear: parseInt(format(new Date(), 'yyyy'))
+        };
+    },
+    computed: {
+        selection() {
+            return this.$refs.table.selection.map(i => i.id);
+        }
+    },
+    methods: {
+        beforeGetData() {
+            return {
+                search: this.search,
+                query: {
+                    year: this.year,
+                    month: this.month
+                }
+            };
+        },
+        toggleMultipleMode(multipleMode) {
+            this.multipleMode = multipleMode;
+            if (!multipleMode) {
+                this.$refs.table.clearSelection();
+            }
+        },
+        addRow() {
+            this.$router.push({
+                path: '/techTradeStatEdit',
+                query: {
+                    ...this.$route.query
+                }
+            });
+        },
+        editRow(row) {
+            this.$router.push({
+                path: '/techTradeStatEdit',
+                query: {
+                    id: row.id
+                }
+            });
+        },
+        download() {
+            this.downloading = true;
+            this.$axios
+                .get('/techTradeStat/excel', {
+                    responseType: 'blob',
+                    params: { size: 10000 }
+                })
+                .then(res => {
+                    console.log(res);
+                    this.downloading = false;
+                    const downloadUrl = window.URL.createObjectURL(new Blob([res.data]));
+                    const link = document.createElement('a');
+                    link.href = downloadUrl;
+                    link.setAttribute('download', res.headers['content-disposition'].split('filename=')[1]);
+                    document.body.appendChild(link);
+                    link.click();
+                    link.remove();
+                })
+                .catch(e => {
+                    console.log(e);
+                    this.downloading = false;
+                    this.$message.error(e.error);
+                });
+        },
+        operation1() {
+            this.$notify({
+                title: '提示',
+                message: this.selection
+            });
+        },
+        operation2() {
+            this.$message('操作2');
+        },
+        deleteRow(row) {
+            this.$alert('删除将无法恢复,确认要删除么?', '警告', { type: 'error' })
+                .then(() => {
+                    return this.$http.post(`/techTradeStat/del/${row.id}`);
+                })
+                .then(() => {
+                    this.$message.success('删除成功');
+                    this.getData();
+                })
+                .catch(e => {
+                    if (e !== 'cancel') {
+                        this.$message.error(e.error);
+                    }
+                });
+        }
+    }
+};
+</script>
+<style lang="less" scoped></style>

+ 139 - 0
src/main/vue/src/views/ThresholdEdit.vue

@@ -0,0 +1,139 @@
+<template>
+    <div class="edit-view">
+        <div class="edit-view__content-wrapper">
+            <div class="edit-view__content-section">
+                <el-form
+                    :model="formData"
+                    :rules="rules"
+                    ref="form"
+                    label-width="120px"
+                    label-position="right"
+                    size="small"
+                    style="max-width: 500px;"
+                >
+                    <el-form-item prop="maxValue" label="最大预警阀值">
+                        <el-input-number type="number" v-model="formData.maxValue"></el-input-number>
+                    </el-form-item>
+                    <el-form-item prop="minValue" label="最小预警阀值">
+                        <el-input-number type="number" v-model="formData.minValue"></el-input-number>
+                    </el-form-item>
+                    <el-form-item prop="increaseValue" label="增长预警阀值">
+                        <el-input-number type="number" v-model="formData.increaseValue"></el-input-number>
+                    </el-form-item>
+                    <el-form-item prop="decreaseValue" label="下降预警阀值">
+                        <el-input-number type="number" v-model="formData.decreaseValue"></el-input-number>
+                    </el-form-item>
+                    <el-form-item prop="categoryId" label="模块">
+                        <el-select v-model="formData.categoryId" disabled clearable filterable placeholder="请选择">
+                            <el-option
+                                v-for="item in categoryIdOptions"
+                                :key="item.value"
+                                :label="item.label"
+                                :value="item.value"
+                            >
+                            </el-option>
+                        </el-select>
+                    </el-form-item>
+                    <el-form-item>
+                        <el-button @click="onSave" :loading="saving" type="primary">保存</el-button>
+                        <!-- <el-button @click="onDelete" :loading="saving" type="danger" v-if="formData.id"
+                            >删除
+                        </el-button> -->
+                        <el-button @click="$router.go(-1)">取消</el-button>
+                    </el-form-item>
+                </el-form>
+            </div>
+        </div>
+    </div>
+</template>
+<script>
+export default {
+    name: 'ThresholdEdit',
+    created() {
+        if (this.$route.query.id) {
+            this.$http
+                .get('threshold/get/' + this.$route.query.id)
+                .then(res => {
+                    this.formData = res;
+                })
+                .catch(e => {
+                    console.log(e);
+                    this.$message.error(e.error);
+                });
+        }
+        this.$http
+            .get('/category/all')
+            .then(res => {
+                if (res.content.length > 0) {
+                    res.content.forEach(item => {
+                        this.categoryIdOptions.push({
+                            label: item.name,
+                            value: item.id
+                        });
+                    });
+                }
+            })
+            .catch(e => {
+                console.log(e);
+                this.$message.error(e.error);
+            });
+    },
+    data() {
+        return {
+            saving: false,
+            formData: {},
+            rules: {},
+            categoryIdOptions: []
+        };
+    },
+    methods: {
+        onSave() {
+            this.$refs.form.validate(valid => {
+                if (valid) {
+                    this.submit();
+                } else {
+                    return false;
+                }
+            });
+        },
+        submit() {
+            let data = { ...this.formData };
+            // data.maxValue = this.sum(300, 800);
+            // data.minValue = this.sum(30, 100);
+            // data.increaseValue = this.sum(50, 100);
+            // data.decreaseValue = this.sum(50, 100);
+
+            this.saving = true;
+            this.$http
+                .post('/threshold/save', data, { body: 'json' })
+                .then(res => {
+                    this.saving = false;
+                    this.$message.success('成功');
+                    this.$router.go(-1);
+                })
+                .catch(e => {
+                    console.log(e);
+                    this.saving = false;
+                    this.$message.error(e.error);
+                });
+        },
+        onDelete() {
+            this.$alert('删除将无法恢复,确认要删除么?', '警告', { type: 'error' })
+                .then(() => {
+                    return this.$http.post(`/threshold/del/${this.formData.id}`);
+                })
+                .then(() => {
+                    this.$message.success('删除成功');
+                    this.$router.go(-1);
+                })
+                .catch(e => {
+                    if (e !== 'cancel') {
+                        console.log(e);
+                        this.$message.error(e.error);
+                    }
+                });
+        }
+    }
+};
+</script>
+<style lang="less" scoped></style>

+ 162 - 0
src/main/vue/src/views/ThresholdList.vue

@@ -0,0 +1,162 @@
+<template>
+    <div class="list-view">
+        <div class="filters-container">
+            <el-input placeholder="输入关键字" v-model="search" clearable class="filter-item"></el-input>
+            <el-button @click="getData" type="primary" icon="el-icon-search" class="filter-item">搜索 </el-button>
+            <!-- <el-button @click="addRow" type="primary" icon="el-icon-plus" class="filter-item">添加 </el-button> -->
+            <el-button
+                @click="download"
+                type="primary"
+                icon="el-icon-download"
+                :loading="downloading"
+                class="filter-item"
+                >导出EXCEL
+            </el-button>
+        </div>
+        <el-table
+            :data="tableData"
+            row-key="id"
+            ref="table"
+            header-row-class-name="table-header-row"
+            header-cell-class-name="table-header-cell"
+            row-class-name="table-row"
+            cell-class-name="table-cell"
+            :height="tableHeight"
+        >
+            <el-table-column v-if="multipleMode" align="center" type="selection" width="50"> </el-table-column>
+            <el-table-column prop="id" label="ID" width="100"> </el-table-column>
+            <el-table-column prop="maxValue" label="最大预警阀值"> </el-table-column>
+            <el-table-column prop="minValue" label="最小预警阀值"> </el-table-column>
+            <el-table-column prop="increaseValue" label="增长预警阀值"> </el-table-column>
+            <el-table-column prop="decreaseValue" label="下降预警阀值"> </el-table-column>
+            <el-table-column prop="category.name" label="模块"> </el-table-column>
+            <el-table-column label="操作" align="center" fixed="right" min-width="150">
+                <template slot-scope="{ row }">
+                    <el-button @click="editRow(row)" type="primary" size="mini" plain>编辑</el-button>
+                    <!-- <el-button @click="deleteRow(row)" type="danger" size="mini" plain>删除</el-button> -->
+                </template>
+            </el-table-column>
+        </el-table>
+        <div class="pagination-wrapper">
+            <!-- <div class="multiple-mode-wrapper">
+                <el-button v-if="!multipleMode" @click="toggleMultipleMode(true)">批量编辑</el-button>
+                <el-button-group v-else>
+                    <el-button @click="operation1">批量操作1</el-button>
+                    <el-button @click="operation2">批量操作2</el-button>
+                    <el-button @click="toggleMultipleMode(false)">取消</el-button>
+                </el-button-group>
+            </div> -->
+            <el-pagination
+                background
+                @size-change="onSizeChange"
+                @current-change="onCurrentChange"
+                :current-page="page"
+                :page-sizes="[10, 20, 30, 40, 50]"
+                :page-size="pageSize"
+                layout="total, sizes, prev, pager, next, jumper"
+                :total="totalElements"
+            >
+            </el-pagination>
+        </div>
+    </div>
+</template>
+<script>
+import { mapState } from 'vuex';
+import pageableTable from '@/mixins/pageableTable';
+
+export default {
+    name: 'ThresholdList',
+    mixins: [pageableTable],
+    data() {
+        return {
+            multipleMode: false,
+            search: '',
+            url: '/threshold/all',
+            downloading: false
+        };
+    },
+    computed: {
+        selection() {
+            return this.$refs.table.selection.map(i => i.id);
+        }
+    },
+    methods: {
+        beforeGetData() {
+            if (this.search) {
+                return { search: this.search };
+            }
+        },
+        toggleMultipleMode(multipleMode) {
+            this.multipleMode = multipleMode;
+            if (!multipleMode) {
+                this.$refs.table.clearSelection();
+            }
+        },
+        addRow() {
+            this.$router.push({
+                path: '/thresholdEdit',
+                query: {
+                    ...this.$route.query
+                }
+            });
+        },
+        editRow(row) {
+            this.$router.push({
+                path: '/thresholdEdit',
+                query: {
+                    id: row.id
+                }
+            });
+        },
+        download() {
+            this.downloading = true;
+            this.$axios
+                .get('/threshold/excel', {
+                    responseType: 'blob',
+                    params: { size: 10000 }
+                })
+                .then(res => {
+                    console.log(res);
+                    this.downloading = false;
+                    const downloadUrl = window.URL.createObjectURL(new Blob([res.data]));
+                    const link = document.createElement('a');
+                    link.href = downloadUrl;
+                    link.setAttribute('download', res.headers['content-disposition'].split('filename=')[1]);
+                    document.body.appendChild(link);
+                    link.click();
+                    link.remove();
+                })
+                .catch(e => {
+                    console.log(e);
+                    this.downloading = false;
+                    this.$message.error(e.error);
+                });
+        },
+        operation1() {
+            this.$notify({
+                title: '提示',
+                message: this.selection
+            });
+        },
+        operation2() {
+            this.$message('操作2');
+        },
+        deleteRow(row) {
+            this.$alert('删除将无法恢复,确认要删除么?', '警告', { type: 'error' })
+                .then(() => {
+                    return this.$http.post(`/threshold/del/${row.id}`);
+                })
+                .then(() => {
+                    this.$message.success('删除成功');
+                    this.getData();
+                })
+                .catch(e => {
+                    if (e !== 'cancel') {
+                        this.$message.error(e.error);
+                    }
+                });
+        }
+    }
+};
+</script>
+<style lang="less" scoped></style>