Ver código fonte

:tada: :tada: :tada: tag 3.0.0

lishangbu 6 anos atrás
pai
commit
e22722e616

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "pigx-ui",
-  "version": "2.8.0",
+  "version": "3.0.0",
   "private": true,
   "scripts": {
     "pre": "yarn --registry https://registry.npm.taobao.org || npm install --registry https://registry.npm.taobao.org ",

+ 56 - 0
src/api/admin/sys-public-param.js

@@ -0,0 +1,56 @@
+/*
+ *    Copyright (c) 2018-2025, lengleng All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * Neither the name of the pig4cloud.com developer nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ * Author: lengleng (wangiegie@gmail.com)
+ */
+
+import request from '@/router/axios'
+
+export function fetchList(query) {
+  return request({
+    url: '/admin/param/page',
+    method: 'get',
+    params: query
+  })
+}
+
+export function addObj(obj) {
+  return request({
+    url: '/admin/param',
+    method: 'post',
+    data: obj
+  })
+}
+
+export function getObj(id) {
+  return request({
+    url: '/admin/param/' + id,
+    method: 'get'
+  })
+}
+
+export function delObj(id) {
+  return request({
+    url: '/admin/param/' + id,
+    method: 'delete'
+  })
+}
+
+export function putObj(obj) {
+  return request({
+    url: '/admin/param',
+    method: 'put',
+    data: obj
+  })
+}

+ 1 - 1
src/config/env.js

@@ -3,7 +3,7 @@
 const env = process.env
 let baseUrl = ''
 // 图表库为avue和pig2套地址
-let iconfontVersion = ['567566_qo5lxgtishg', '667895_yslsidqtk6s']
+let iconfontVersion = ['567566_qo5lxgtishg', '667895_92fjyfrcqpr']
 let iconfontUrl = `//at.alicdn.com/t/font_$key.css`
 let codeUrl = `${window.location.origin}/code`
 let actUrl = `${window.location.origin}/act/modeler.html?modelId=`

+ 97 - 0
src/const/crud/admin/sys-public-param.js

@@ -0,0 +1,97 @@
+/*
+ *    Copyright (c) 2018-2025, lengleng All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * Neither the name of the pig4cloud.com developer nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ * Author: lengleng (wangiegie@gmail.com)
+ */
+
+export const tableOption = {
+  border: true,
+  index: true,
+  indexLabel: '序号',
+  stripe: true,
+  menuAlign: 'center',
+  menuWidth: 150,
+  align: 'center',
+  refreshBtn: true,
+  showClomnuBtn: false,
+  searchSize: 'mini',
+  editBtn: true,
+  delBtn: true,
+  addBtn: true,
+  props: {
+    label: 'label',
+    value: 'value'
+  },
+  column: [
+    {
+      label: '名称',
+      search: true,
+      prop: 'publicName',
+      rules: [
+        {min: 6, max: 30, message: '长度在 6 到 30 个字符', trigger: 'blur'},
+        {pattern: /^[\u4E00-\u9FA5A-Za-z0-9_]+$/, message: '请输入中文、英文、数字包括下划线', trigger: 'blur'}
+      ]
+    },
+    {
+      label: '键',
+      prop: 'publicKey',
+      rules: [
+        {required: true, message: '请输入键', trigger: 'blur'},
+        {pattern: /^[A-Z_]+$/, message: '请输入大写英文、下划线', trigger: 'blur'}
+      ],
+
+    },
+    {
+      label: '值',
+      overHidden: true,
+      prop: 'publicValue',
+      rules: [
+        {required: true, message: '请输入值', trigger: 'blur'}
+      ]
+    },
+    {
+      label: '编码',
+      prop: 'validateCode',
+    },
+    {
+      width: 150,
+      label: '创建时间',
+      prop: 'createTime',
+      type: 'datetime',
+      addVisdiplay: false,
+      editDisabled: true,
+      format: 'yyyy-MM-dd HH:mm',
+      valueFormat: 'yyyy-MM-dd HH:mm:ss'
+    },
+    {
+      label: '状态',
+      prop: 'delFlag',
+      width: 80,
+      type: 'select',
+      dicUrl: '/admin/dict/type/log_type'
+    },
+    {
+      label: '类型',
+      prop: 'publicType',
+      width: 80,
+      type: 'select',
+      dicUrl: '/admin/dict/type/param_type',
+      rules: [{
+        required: true,
+        message: '请选择类型',
+        trigger: 'blur'
+      }]
+    },
+  ]
+}

+ 2 - 1
src/const/iconList.js

@@ -28,7 +28,8 @@ export default [
       "icon-anniu_weixincaidanlianjie",
       "icon-weixincaidan",
       "icon-xiaoxiguanli",
-      "icon-zhexiantu"
+      "icon-zhexiantu",
+      "icon-canshu"
     ]
   }
 ]

+ 1 - 1
src/page/index/index.vue

@@ -125,7 +125,7 @@
       },
       connection() {
         let token = store.getters.access_token
-        let TENANT_ID = getStore({name: 'tenantId'})
+        let TENANT_ID = getStore({name: 'tenantId'}) ? getStore({name: 'tenantId'}) : '1'
         let headers = {
           'Authorization': 'Bearer ' + token
         }

+ 1 - 1
src/page/index/top/top-setting.vue

@@ -7,7 +7,7 @@
          :class="{'setting__content--show':box}">
       <div class="setting__header">版权信息</div>
       <div class="setting__body setting__about">
-        <p>Version:PigX 2.8.0</p>
+        <p>Version:PigX 3.0.0</p>
         <p>Copyright: Pig4Cloud ©2018-2025</p>
       </div>
       <div class="setting__header">设置

+ 2 - 2
src/page/login/authredirect.vue

@@ -45,7 +45,7 @@
           }).then(() => {
             this.$alert('社交账号绑定成功', '成功', {
               confirmButtonText: '确定',
-              callback: action => {
+              callback: () => {
                 window.close()
               }
             })
@@ -71,7 +71,7 @@
         }).then(() => {
           this.$alert('社交账号绑定成功', '成功', {
             confirmButtonText: '确定',
-            callback: action => {
+            callback: () => {
               window.close()
             }
           })

+ 1 - 1
src/page/login/index.vue

@@ -11,7 +11,7 @@
              src="/img/logo.png"
              alt="">
         <p class="title">{{website.infoTitle}}</p>
-        <p>v 2.8.0</p>
+        <p>v 3.0.0</p>
       </div>
       <div class="login-border">
         <div class="login-main">

+ 0 - 1
src/permission.js

@@ -4,7 +4,6 @@
  */
 import router from './router/router'
 import store from '@/store'
-import {getStore} from '@/util/store'
 import {validatenull} from '@/util/validate'
 import NProgress from 'nprogress' // progress bar
 import 'nprogress/nprogress.css' // progress bar style

+ 1 - 1
src/store/modules/user.js

@@ -104,7 +104,7 @@ const user = {
           commit('SET_ROLES', data.roles || [])
           commit('SET_PERMISSIONS', data.permissions || [])
           resolve(data)
-        }).catch((err) => {
+        }).catch(() => {
           reject()
         })
       })

+ 8 - 8
src/views/activiti/index.vue

@@ -88,7 +88,7 @@
           this.tableLoading = false
         })
       },
-      handleView(row, index) {
+      handleView(row) {
         const name = `模型id为${row.id}的${row.name}流程图`,
           src = `/activti/detail/${row.id}`;
         this.$router.push({
@@ -101,7 +101,7 @@
       handleDel(row, index) {
         this.$refs.crud.rowDel(row, index)
       },
-      handleDeploy: function (row, index) {
+      handleDeploy: function (row) {
         var _this = this
         this.$confirm('是否确认部署ID为"' + row.id + '"的模型?', '警告', {
           confirmButtonText: '确定',
@@ -109,17 +109,17 @@
           type: 'warning'
         }).then(function () {
           return deploy(row.id)
-        }).then(data => {
+        }).then(() => {
           this.getList(this.page)
           _this.$message({
             showClose: true,
             message: '部署成功',
             type: 'success'
           })
-        }).catch(function (err) {
+        }).catch(function () {
         })
       },
-      rowDel: function (row, index) {
+      rowDel: function (row) {
         var _this = this
         this.$confirm('是否确认删除ID为"' + row.id + '"的模型?', '警告', {
           confirmButtonText: '确定',
@@ -127,14 +127,14 @@
           type: 'warning'
         }).then(function () {
           return delObj(row.id)
-        }).then(data => {
+        }).then(() => {
           this.getList(this.page)
           _this.$message({
             showClose: true,
             message: '删除成功',
             type: 'success'
           })
-        }).catch(function (err) {
+        }).catch(function () {
         })
       },
       /**
@@ -144,7 +144,7 @@
        *
        **/
       handleSave: function (row, done) {
-        addObj(row).then(data => {
+        addObj(row).then(() => {
           this.tableData.push(Object.assign({}, row))
           this.$message({
             showClose: true,

+ 5 - 5
src/views/activiti/leave.vue

@@ -58,7 +58,7 @@
 </template>
 
 <script>
-  import {addObj, delObj, fetchList, getObj, putObj, submit} from '@/api/activiti/leave-bill'
+  import {addObj, delObj, fetchList, putObj, submit} from '@/api/activiti/leave-bill'
   import {tableOption} from '@/const/crud/activiti/leave-bill'
   import {mapGetters} from 'vuex'
 
@@ -118,7 +118,7 @@
           type: 'warning'
         }).then(function () {
           return delObj(row.leaveId)
-        }).then(data => {
+        }).then(() => {
           _this.tableData.splice(index, 1)
           _this.$message({
             showClose: true,
@@ -135,7 +135,7 @@
           type: 'warning'
         }).then(function () {
           return submit(row.leaveId)
-        }).then(data => {
+        }).then(() => {
           _this.tableData.splice(index, 1)
           _this.$message({
             showClose: true,
@@ -153,7 +153,7 @@
        *
        **/
       handleUpdate: function (row, index, done) {
-        putObj(row).then(data => {
+        putObj(row).then(() => {
           this.tableData.splice(index, 1, Object.assign({}, row))
           this.$message({
             showClose: true,
@@ -171,7 +171,7 @@
        *
        **/
       handleSave: function (row, done) {
-        addObj(row).then(data => {
+        addObj(row).then(() => {
           this.tableData.push(Object.assign({}, row))
           this.$message({
             showClose: true,

+ 6 - 6
src/views/activiti/process.vue

@@ -66,7 +66,7 @@
 </template>
 
 <script>
-  import {addObj, delObj, fetchList, status} from "@/api/activiti/process";
+  import {delObj, fetchList, status} from "@/api/activiti/process";
   import {tableOption} from "@/const/crud/activiti/process";
   import {mapGetters} from "vuex";
 
@@ -111,7 +111,7 @@
           this.tableLoading = false;
         });
       },
-      handlePic(row, index) {
+      handlePic(row) {
         this.actPicUrl =
           `/act/process/resource/` +
           row.deploymentId +
@@ -132,7 +132,7 @@
           }
         ).then(function () {
           return status(row.processonDefinitionId, type);
-        }).then(data => {
+        }).then(() => {
           this.getList(this.page);
           _this.$message({
             showClose: true,
@@ -145,7 +145,7 @@
       handleDel(row, index) {
         this.$refs.crud.rowDel(row, index);
       },
-      rowDel: function (row, index) {
+      rowDel: function (row) {
         var _this = this;
         this.$confirm(
           '是否确认删除ID为"' + row.deploymentId + '"的模型?',
@@ -157,7 +157,7 @@
           }
         ).then(function () {
           return delObj(row.deploymentId);
-        }).then(data => {
+        }).then(() => {
           this.getList(this.page);
           _this.$message({
             showClose: true,
@@ -165,7 +165,7 @@
             type: "success"
           });
           this.getList(this.page);
-        }).catch(function (err) {
+        }).catch(function () {
         });
       },
       /**

+ 4 - 23
src/views/activiti/task.vue

@@ -112,8 +112,7 @@
           this.tableLoading = false
         })
       },
-
-      audit: function (row, index) {
+      audit: function (row) {
         fetchDetail(row.taskId).then(response => {
           this.obj = response.data.data
           // 根据连线判断下次的流程
@@ -122,33 +121,15 @@
         })
         this.obj = row
       },
-      comment: function (row, index) {
+      comment: function (row) {
         fetchComment(row.taskId).then(response => {
           this.taskTableData = response.data.data
         })
         this.showComment = true
       },
-      handleSubmit: function (row, index) {
-        var _this = this
-        this.$confirm('是否确认提交ID为' + row.leaveId, '提示', {
-          confirmButtonText: '确定',
-          cancelButtonText: '取消',
-          type: 'warning'
-        }).then(function () {
-          return submit(row.leaveId)
-        }).then(data => {
-          _this.tableData.splice(index, 1)
-          _this.$message({
-            showClose: true,
-            message: '提交成功',
-            type: 'success'
-          })
-        }).catch(function (err) {
-        })
-      },
       handleTask: function (row, result) {
         this.obj.taskFlag = result
-        doTask(this.obj).then(response => {
+        doTask(this.obj).then(() => {
           this.$message({
             showClose: true,
             message: '提交成功',
@@ -158,7 +139,7 @@
           this.getList(this.page)
         })
       },
-      viewPic: function (row, index) {
+      viewPic: function (row) {
         this.actPicUrl = `/act/task/view/` + row.taskId
         this.showPicDialog = true
       },

+ 4 - 4
src/views/admin/client/index.vue

@@ -92,7 +92,7 @@
           type: 'warning'
         }).then(function () {
           return delObj(row.clientId)
-        }).then(data => {
+        }).then(() => {
           _this.tableData.splice(index, 1)
           _this.$message({
             showClose: true,
@@ -100,7 +100,7 @@
             type: 'success'
           })
           this.refreshChange()
-        }).catch(function (err) {
+        }).catch(function () {
         })
       },
       /**
@@ -111,7 +111,7 @@
        *
        **/
       handleUpdate: function (row, index, done) {
-        putObj(row).then(data => {
+        putObj(row).then(() => {
           this.tableData.splice(index, 1, Object.assign({}, row))
           this.$message({
             showClose: true,
@@ -129,7 +129,7 @@
        *
        **/
       handleSave: function (row, done) {
-        addObj(row).then(data => {
+        addObj(row).then(() => {
           this.tableData.push(Object.assign({}, row))
           this.$message({
             showClose: true,

+ 2 - 3
src/views/admin/dict/index.vue

@@ -121,7 +121,6 @@
           size: this.page.pageSize
         }, {dictId: dictId})).then(response => {
           this.tableDictItemData = response.data.data.records
-          this.page.total = response.data.data.total
           this.tableLoading = false
         })
       },
@@ -174,7 +173,7 @@
        *
        **/
       handleSave: function (row, done) {
-        addObj(row).then(data => {
+        addObj(row).then(() => {
           this.tableData.push(Object.assign({}, row))
           this.$message({
             showClose: true,
@@ -186,7 +185,7 @@
         })
       },
       handleItemSave: function (row, done) {
-        addItemObj(row).then(data => {
+        addItemObj(row).then(() => {
           this.tableDictItemData.push(Object.assign({}, row))
           this.$message({
             showClose: true,

+ 3 - 3
src/views/admin/log/index.vue

@@ -77,7 +77,7 @@
           this.tableLoading = false
         })
       },
-      handleDel: function (row, index) {
+      handleDel: function (row) {
         var _this = this
         this.$confirm('是否确认删除ID为"' + row.id + '"的日志?', '警告', {
           confirmButtonText: '确定',
@@ -85,14 +85,14 @@
           type: 'warning'
         }).then(function () {
           return delObj(row.id)
-        }).then(data => {
+        }).then(() => {
           this.getList(this.page)
           _this.$message({
             showClose: true,
             message: '删除成功',
             type: 'success'
           })
-        }).catch(function (err) {
+        }).catch(function () {
         })
       },
       /**

+ 165 - 0
src/views/admin/param/index.vue

@@ -0,0 +1,165 @@
+<!--
+  -    Copyright (c) 2018-2025, lengleng All rights reserved.
+  -
+  - Redistribution and use in source and binary forms, with or without
+  - modification, are permitted provided that the following conditions are met:
+  -
+  - Redistributions of source code must retain the above copyright notice,
+  - this list of conditions and the following disclaimer.
+  - Redistributions in binary form must reproduce the above copyright
+  - notice, this list of conditions and the following disclaimer in the
+  - documentation and/or other materials provided with the distribution.
+  - Neither the name of the pig4cloud.com developer nor the names of its
+  - contributors may be used to endorse or promote products derived from
+  - this software without specific prior written permission.
+  - Author: lengleng (wangiegie@gmail.com)
+  -->
+<template>
+    <div class="execution">
+        <basic-container>
+            <avue-crud ref="crud"
+                       :page="page"
+                       :data="tableData"
+                       :permission="permissionList"
+                       :table-loading="tableLoading"
+                       :option="tableOption"
+                       @on-load="getList"
+                       @search-change="searchChange"
+                       @refresh-change="refreshChange"
+                       @row-update="handleUpdate"
+                       @row-save="handleSave"
+                       @row-del="rowDel">
+            </avue-crud>
+        </basic-container>
+    </div>
+</template>
+
+<script>
+    import {
+        fetchList,
+        getObj,
+        addObj,
+        putObj,
+        delObj
+    } from '@/api/admin/sys-public-param'
+    import {
+        tableOption
+    } from '@/const/crud/admin/sys-public-param'
+    import {
+        mapGetters
+    } from 'vuex'
+
+    export default {
+        name: 'syspublicparam',
+        data() {
+            return {
+                tableData: [],
+                page: {
+                    total: 0, // 总页数
+                    currentPage: 1, // 当前页数
+                    pageSize: 20 // 每页显示多少条
+                },
+                tableLoading: false,
+                tableOption: tableOption
+            }
+        },
+    created() {
+    },
+    mounted: function () {
+    },
+        computed: {
+            ...mapGetters(['permissions']),
+            permissionList() {
+                return {
+                    addBtn: this.vaildData(this.permissions.admin_syspublicparam_add, false),
+                    delBtn: this.vaildData(this.permissions.admin_syspublicparam_del, false),
+                    editBtn: this.vaildData(this.permissions.admin_syspublicparam_edit, false)
+                };
+            }
+        },
+        methods: {
+            getList(page, params) {
+                this.tableLoading = true
+                fetchList(Object.assign({
+          descs: 'create_time',
+                    current: page.currentPage,
+                    size: page.pageSize
+                }, params)).then(response => {
+                    this.tableData = response.data.data.records
+                    this.page.total = response.data.data.total
+                    this.tableLoading = false
+                })
+      },
+      rowDel: function(row, index) {
+        var _this = this
+        this.$confirm('是否确认删除ID为' + row.publicId, '提示', {
+          confirmButtonText: '确定',
+          cancelButtonText: '取消',
+          type: 'warning'
+        }).then(function() {
+            return delObj(row.publicId)
+          }).then(data => {
+          this.getList(this.page)
+          _this.$message({
+            showClose: true,
+            message: '删除成功',
+            type: 'success'
+          })
+        }).catch(function(err) { })
+      },
+      /**
+       * @title 数据更新
+       * @param row 为当前的数据
+       * @param index 为当前更新数据的行数
+       * @param done 为表单关闭函数
+       *
+       **/
+      handleUpdate: function(row, index, done) {
+        putObj(row).then(data => {
+          this.tableData.splice(index, 1, Object.assign({}, row))
+          this.$message({
+            showClose: true,
+            message: '修改成功',
+            type: 'success'
+          })
+          done()
+          this.getList(this.page)
+        })
+      },
+      /**
+       * @title 数据添加
+       * @param row 为当前的数据
+       * @param done 为表单关闭函数
+       *
+       **/
+      handleSave: function(row, done) {
+        addObj(row).then(data => {
+          this.tableData.push(Object.assign({}, row))
+          this.$message({
+            showClose: true,
+            message: '添加成功',
+            type: 'success'
+          })
+          done()
+          this.getList(this.page)
+        })
+      },
+      /**
+       * 搜索回调
+       */
+      searchChange(form) {
+        this.getList(this.page, this.filterForm(form))
+      },
+      /**
+       * 刷新回调
+       */
+      refreshChange() {
+        this.getList(this.page)
+      }
+    }
+  }
+</script>
+
+<style lang="scss" scoped>
+</style>
+

+ 4 - 4
src/views/admin/role/index.vue

@@ -95,7 +95,7 @@
       <div slot="footer"
            class="dialog-footer">
         <el-button type="primary"
-                   @click="updatePermession(roleId, roleCode)">更 新
+                   @click="updatePermession(roleId)">更 新
         </el-button>
       </div>
     </el-dialog>
@@ -103,7 +103,7 @@
 </template>
 
 <script>
-  import {addObj, delObj, fetchList, fetchRoleTree, getObj, permissionUpd, putObj} from '@/api/admin/role'
+  import {addObj, delObj, fetchList, fetchRoleTree, permissionUpd, putObj} from '@/api/admin/role'
   import {tableOption} from '@/const/crud/admin/role'
   import {fetchTree} from '@/api/admin/dept'
   import {fetchMenuTree} from '@/api/admin/menu'
@@ -172,7 +172,7 @@
       handleCreate() {
         this.$refs.crud.rowAdd();
       },
-      handleOpenBefore(show, type) {
+      handleOpenBefore(show) {
         fetchTree().then(response => {
           this.dsScopeData = response.data.data;
           if (this.form.dsScope) {
@@ -281,7 +281,7 @@
           loading();
         });
       },
-      updatePermession(roleId, roleCode) {
+      updatePermession(roleId) {
         this.menuIds = ''
         this.menuIds = this.$refs.menuTree.getCheckedKeys().join(',').concat(',').concat(this.$refs.menuTree.getHalfCheckedKeys().join(','))
         permissionUpd(roleId, this.menuIds).then(() => {

+ 2 - 2
src/views/admin/route/index.vue

@@ -31,7 +31,7 @@
 </template>
 <script>
   import vueJsonEditor from 'vue-json-editor'
-  import {fallback, fetchList, putObj} from '@/api/admin/route'
+  import {fetchList, putObj} from '@/api/admin/route'
 
   export default {
     data() {
@@ -69,7 +69,7 @@
       },
 
       edit() {
-        putObj(this.json).then(response => {
+        putObj(this.json).then(() => {
           this.$notify({
             title: '成功',
             message: '更新成功',

+ 4 - 4
src/views/admin/social/index.vue

@@ -36,7 +36,7 @@
 </template>
 
 <script>
-  import {addObj, delObj, fetchList, getObj, putObj} from '@/api/admin/sys-social-details'
+  import {addObj, delObj, fetchList, putObj} from '@/api/admin/sys-social-details'
   import {tableOption} from '@/const/crud/admin/sys-social-details'
   import {mapGetters} from 'vuex'
 
@@ -88,7 +88,7 @@
           type: 'warning'
         }).then(function () {
           return delObj(row.id)
-        }).then(data => {
+        }).then(() => {
           _this.tableData.splice(index, 1)
           _this.$message({
             showClose: true,
@@ -96,7 +96,7 @@
             type: 'success'
           })
           this.refreshChange()
-        }).catch(function (err) {
+        }).catch(function () {
         })
       },
       /**
@@ -107,7 +107,7 @@
        *
        **/
       handleUpdate: function (row, index, done) {
-        putObj(row).then(data => {
+        putObj(row).then(() => {
           this.tableData.splice(index, 1, Object.assign({}, row))
           this.$message({
             showClose: true,

+ 2 - 2
src/views/admin/token/index.vue

@@ -83,14 +83,14 @@
           type: 'warning'
         }).then(function () {
           return delObj(row.access_token)
-        }).then(data => {
+        }).then(() => {
           _this.tableData.splice(index, 1)
           _this.$message({
             showClose: true,
             message: '删除成功',
             type: 'success'
           })
-        }).catch(function (err) {
+        }).catch(function () {
         })
       },
       /**

+ 7 - 9
src/views/admin/user/index.vue

@@ -113,16 +113,14 @@
 </template>
 
 <script>
-  import {addObj, delObj, fetchList, getObj, putObj} from "@/api/admin/user";
-  import {deptRoleList} from "@/api/admin/role";
-  import {fetchTree} from "@/api/admin/dept";
-  import {tableOption} from '@/const/crud/admin/user';
-  import {mapGetters} from "vuex";
-  import {constants} from 'fs';
-  import {connect} from 'tls';
+  import {addObj, delObj, fetchList, putObj} from '@/api/admin/user'
+  import {deptRoleList} from '@/api/admin/role'
+  import {fetchTree} from '@/api/admin/dept'
+  import {tableOption} from '@/const/crud/admin/user'
+  import {mapGetters} from 'vuex'
 
   export default {
-    name: "table_user",
+    name: "sys_user",
     data() {
       return {
         treeOption: {
@@ -194,7 +192,7 @@
           this.listLoading = false;
         });
       },
-      getNodeData(data) {
+      getNodeData() {
         deptRoleList().then(response => {
           this.rolesOptions = response.data.data;
         });

+ 1 - 2
src/views/admin/user/info.vue

@@ -112,7 +112,6 @@
 
 
 <script>
-  import {handleDown} from "@/api/admin/user";
   import {handleImg, openWindow} from '@/util/util'
   import {mapState} from 'vuex'
   import store from "@/store";
@@ -166,7 +165,7 @@
       }),
     },
     methods: {
-      switchTab(tab, event) {
+      switchTab(tab) {
         if (tab.name === 'userManager') {
           handleImg(this.ruleForm2.avatar, 'avatar')
         }

+ 3 - 3
src/views/daemon/execution-log/index.vue

@@ -33,7 +33,7 @@
 </template>
 
 <script>
-  import {addObj, delObj, fetchList, getObj, putObj} from '@/api/daemon/execution-log'
+  import {delObj, fetchList} from '@/api/daemon/execution-log'
   import {tableOption} from '@/const/crud/daemon/execution-log'
   import {mapGetters} from 'vuex'
 
@@ -85,7 +85,7 @@
           type: 'warning'
         }).then(function () {
           return delObj(row.id)
-        }).then(data => {
+        }).then(() => {
           _this.tableData.splice(index, 1)
           _this.$message({
             showClose: true,
@@ -93,7 +93,7 @@
             type: 'success'
           })
           this.getList(this.page)
-        }).catch(function (err) {
+        }).catch(function () {
         })
       },
       /**

+ 2 - 2
src/views/daemon/job-manage/index.vue

@@ -195,7 +195,7 @@
       /**
        * 定时任务分页查询
        */
-      getList(page) {
+      getList() {
         this.tableLoading = true
         fetchList(Object.assign({
           descs: 'create_time',
@@ -515,7 +515,7 @@
       /**
        * 删除定时任务持久化处理
        */
-      handleDelete(row, index) {
+      handleDelete(row) {
         let jobStatus = row.jobStatus;
         if ('1' == jobStatus || '3' == jobStatus) {
           this.$confirm('是否确认删除(任务名称:' + row.jobName + '), 是否继续?删除后不可恢复', '警告', {

+ 4 - 4
src/views/gen/index.vue

@@ -150,14 +150,14 @@
           type: 'warning'
         }).then(function () {
           return delObj(row.id)
-        }).then(data => {
+        }).then(() => {
           this.tableData.splice(index, 1)
           this.$message.success('删除成功')
           this.getDsList(this.page)
-        }).catch(function (err) {
+        }).catch(function () {
         })
       },
-      handleOpenBefore: function (show,type) {
+      handleOpenBefore: function (show) {
         this.dsForm.password = undefined
         show()
       },
@@ -186,7 +186,7 @@
           this.dsPage.total = response.data.data.total
         })
       },
-      handleDown: function (row, index) {
+      handleDown: function (row) {
         this.formData.tableName = row.tableName
         this.box = true
       },

+ 7 - 7
src/views/mp/wxaccount/index.vue

@@ -59,7 +59,7 @@
 </template>
 
 <script>
-  import {addObj, delObj, fetchList, generateQr, getObj, putObj} from '@/api/mp/wxaccount'
+  import {addObj, delObj, fetchList, generateQr, putObj} from '@/api/mp/wxaccount'
   import {tableOption} from '@/const/crud/mp/wxaccount'
   import {mapGetters} from 'vuex'
   import Clipboard from 'clipboard'
@@ -110,7 +110,7 @@
           type: 'warning'
         }).then(function () {
           return delObj(row.id)
-        }).then(data => {
+        }).then(() => {
           _this.tableData.splice(index, 1)
           _this.$message({
             showClose: true,
@@ -118,7 +118,7 @@
             type: 'success'
           })
           this.getList(this.page)
-        }).catch(function (err) {
+        }).catch(function () {
         })
       },
       /**
@@ -129,7 +129,7 @@
        *
        **/
       handleUpdate: function (row, index, done) {
-        putObj(row).then(data => {
+        putObj(row).then(() => {
           this.tableData.splice(index, 1, Object.assign({}, row))
           this.$message({
             showClose: true,
@@ -148,7 +148,7 @@
        **/
       handleSave: function (row, done) {
         row.qrUrl = undefined
-        addObj(row).then(data => {
+        addObj(row).then(() => {
           this.tableData.push(Object.assign({}, row))
           this.$message({
             showClose: true,
@@ -164,7 +164,7 @@
         this.getList(this.page)
       },
       generateQr: function (row) {
-        generateQr(row.appid).then(data => {
+        generateQr(row.appid).then(() => {
           this.$message({
             showClose: true,
             message: '获取成功',
@@ -182,7 +182,7 @@
           target: () => document.querySelector('#target')
         })
         //复制成功执行的回调
-        clipboard.on('success', (e) => {
+        clipboard.on('success', () => {
           this.$message({
             showClose: true,
             message: '复制成功',

+ 6 - 6
src/views/mp/wxaccountfans/index.vue

@@ -59,7 +59,7 @@
 </template>
 
 <script>
-  import {addObj, delObj, fetchList, getObj, putObj, sync} from '@/api/mp/wxaccountfans'
+  import {addObj, delObj, fetchList, putObj, sync} from '@/api/mp/wxaccountfans'
   import {fetchAccountList} from '@/api/mp/wxaccount'
   import {tableOption} from '@/const/crud/mp/wxaccountfans'
   import {mapGetters} from 'vuex'
@@ -118,7 +118,7 @@
           type: 'warning'
         }).then(function () {
           return delObj(row.id)
-        }).then(data => {
+        }).then(() => {
           _this.tableData.splice(index, 1)
           _this.$message({
             showClose: true,
@@ -126,7 +126,7 @@
             type: 'success'
           })
           this.getList(this.page)
-        }).catch(function (err) {
+        }).catch(function () {
         })
       },
       /**
@@ -137,7 +137,7 @@
        *
        **/
       handleUpdate: function (row, index, done) {
-        putObj(row).then(data => {
+        putObj(row).then(() => {
           this.tableData.splice(index, 1, Object.assign({}, row))
           this.$message({
             showClose: true,
@@ -155,7 +155,7 @@
        *
        **/
       handleSave: function (row, done) {
-        addObj(row).then(data => {
+        addObj(row).then(() => {
           this.tableData.push(Object.assign({}, row))
           this.$message({
             showClose: true,
@@ -177,7 +177,7 @@
       },
       asyncFans() {
         if (this.q.account) {
-          sync(this.q.account).then(data => {
+          sync(this.q.account).then(() => {
             this.$message({
               showClose: true,
               message: '已开始从微信同步粉丝信息,建议等待后查询',

+ 8 - 8
src/views/mp/wxfansmsg/index.vue

@@ -52,7 +52,7 @@
 </template>
 
 <script>
-  import {addObj, addResObj, delObj, delResObj, fetchList, fetchResList, getObj, putObj} from '@/api/mp/wxfansmsg'
+  import {addObj, addResObj, delObj, delResObj, fetchList, fetchResList} from '@/api/mp/wxfansmsg'
   import {tableOption, tableResOption} from '@/const/crud/mp/wxfansmsg'
   import {mapGetters} from 'vuex'
 
@@ -118,7 +118,7 @@
           type: 'warning'
         }).then(function () {
           return delObj(row.id)
-        }).then(data => {
+        }).then(() => {
           _this.tableData.splice(index, 1)
           _this.$message({
             showClose: true,
@@ -126,11 +126,11 @@
             type: 'success'
           })
           this.getList(this.page)
-        }).catch(function (err) {
+        }).catch(function () {
         })
       },
       handleSave: function (row, done) {
-        addObj(row).then(data => {
+        addObj(row).then(() => {
           this.tableResData.push(Object.assign({}, row))
           this.$message({
             showClose: true,
@@ -141,7 +141,7 @@
           this.getList(this.page)
         })
       },
-      rowResDel: function (row, index) {
+      rowResDel: function (row) {
         var _this = this
         this.$confirm('是否确认删除ID为' + row.id, '提示', {
           confirmButtonText: '确定',
@@ -149,19 +149,19 @@
           type: 'warning'
         }).then(function () {
           return delResObj(row.id)
-        }).then(data => {
+        }).then(() => {
           _this.$message({
             showClose: true,
             message: '删除成功',
             type: 'success'
           })
           this.getResList(this.pageRes, {fansMsgId: this.msgId})
-        }).catch(function (err) {
+        }).catch(function () {
         })
       },
       handleResSave: function (row, done) {
         row.fansMsgId = this.msgId
-        addResObj(this.filterForm(row)).then(data => {
+        addResObj(this.filterForm(row)).then(() => {
           this.$message({
             showClose: true,
             message: '发送成功',

+ 3 - 3
src/views/mp/wxmenu/index.vue

@@ -59,7 +59,7 @@
           return false;
         }
         if (this.permissions.mp_wxmenu_add) {
-          addObj(this.checkAppId, form).then(data => {
+          addObj(this.checkAppId, form).then(() => {
             this.$message.success("保存成功")
           })
         } else {
@@ -76,7 +76,7 @@
           return false;
         }
         if (this.permissions.mp_wxmenu_add) {
-          putObj(this.checkAppId).then(response => {
+          putObj(this.checkAppId).then(() => {
             this.$message.success("发布成功")
           })
         } else {
@@ -89,7 +89,7 @@
           return false;
         }
         if (this.permissions.mp_wxmenu_add) {
-          delObj(this.checkAppId).then(response => {
+          delObj(this.checkAppId).then(() => {
             this.$message.success("删除并发布成功")
           })
         } else {

+ 0 - 1
src/views/mp/wxstatistics/index.vue

@@ -45,7 +45,6 @@
 </style>
 
 <script>
-  import {dateFormat} from "@/util/date";
   import ECharts from 'vue-echarts'
   import 'echarts/lib/chart/line'
   import 'echarts/lib/chart/bar'