Browse Source

移除无用函数

zhangwenjian 5 years ago
parent
commit
d94d453d2f

+ 4 - 4
package.json

@@ -37,10 +37,10 @@
   ],
   "repository": {
     "type": "git",
-    "url": "git+https://github.com/PanJiaChen/vue-element-admin.git"
+    "url": "git+https://github.com/wenjianzhang/go-admin.git"
   },
   "bugs": {
-    "url": "https://github.com/PanJiaChen/vue-element-admin/issues"
+    "url": "https://github.com/wenjianzhang/go-admin/issues"
   },
   "dependencies": {
     "@riophae/vue-treeselect": "0.4.0",
@@ -65,7 +65,7 @@
     "solarlunar": "^2.0.7",
     "sortablejs": "1.8.4",
     "tui-editor": "1.3.3",
-    "vue": "^2.6.10",
+    "vue": "2.6.10",
     "vue-count-to": "1.0.13",
     "vue-cropper": "^0.5.0",
     "vue-router": "3.0.2",
@@ -104,7 +104,7 @@
     "serve-static": "^1.13.2",
     "svg-sprite-loader": "4.1.3",
     "svgo": "1.2.0",
-    "vue-template-compiler": "^2.6.10"
+    "vue-template-compiler": "2.6.10"
   },
   "engines": {
     "node": ">=8.9",

+ 7 - 7
src/views/config/index.vue

@@ -153,8 +153,8 @@
 </template>
 
 <script>
-import { listConfig, getConfig, delConfig, addConfig, updateConfig, exportConfig } from '@/api/system/config'
-import { parseTime,formatJson } from '@/utils'
+import { listConfig, getConfig, delConfig, addConfig, updateConfig } from '@/api/system/config'
+import { formatJson } from '@/utils'
 
 export default {
   name: 'Config',
@@ -319,22 +319,22 @@ export default {
     },
     /** 导出按钮操作 */
     handleExport() {
-      const queryParams = this.queryParams
+      // const queryParams = this.queryParams
       this.$confirm('是否确认导出所有参数数据项?', '警告', {
         confirmButtonText: '确定',
         cancelButtonText: '取消',
         type: 'warning'
-      }).then( () => {
+      }).then(() => {
         this.downloadLoading = true
         import('@/vendor/Export2Excel').then(excel => {
-          const tHeader = ['参数主键', '参数名称', '参数键名', '参数键值','备注','创建时间']
-          const filterVal = ['configId', 'configName', 'configKey', 'configValue','remark', 'createdAt']
+          const tHeader = ['参数主键', '参数名称', '参数键名', '参数键值', '备注', '创建时间']
+          const filterVal = ['configId', 'configName', 'configKey', 'configValue', 'remark', 'createdAt']
           const list = this.configList
           const data = formatJson(filterVal, list)
           excel.export_json_to_excel({
             header: tHeader,
             data,
-            filename: "参数设置",
+            filename: '参数设置',
             autoWidth: true, // Optional
             bookType: 'xlsx' // Optional
           })

+ 5 - 5
src/views/dict/index.vue

@@ -162,8 +162,8 @@
 </template>
 
 <script>
-import { listType, getType, delType, addType, updateType, exportType } from '@/api/system/dict/type'
-import { parseTime,formatJson } from '@/utils'
+import { listType, getType, delType, addType, updateType } from '@/api/system/dict/type'
+import { formatJson } from '@/utils'
 
 export default {
   name: 'Dict',
@@ -324,12 +324,12 @@ export default {
     },
     /** 导出按钮操作 */
     handleExport() {
-      const queryParams = this.queryParams
+      // const queryParams = this.queryParams
       this.$confirm('是否确认导出所有类型数据项?', '警告', {
         confirmButtonText: '确定',
         cancelButtonText: '取消',
         type: 'warning'
-      }).then( () => {
+      }).then(() => {
         this.downloadLoading = true
         import('@/vendor/Export2Excel').then(excel => {
           const tHeader = ['字典编号', '字典名称', '字典类型', '状态', '备注']
@@ -339,7 +339,7 @@ export default {
           excel.export_json_to_excel({
             header: tHeader,
             data,
-            filename: "字典管理",
+            filename: '字典管理',
             autoWidth: true, // Optional
             bookType: 'xlsx' // Optional
           })

+ 7 - 7
src/views/loginlog/index.vue

@@ -103,8 +103,8 @@
 </template>
 
 <script>
-import { list, delLogininfor, cleanLogininfor, exportLogininfor } from '@/api/system/loginlog'
-import { parseTime,formatJson } from '@/utils'
+import { list, delLogininfor, cleanLogininfor } from '@/api/system/loginlog'
+import { formatJson } from '@/utils'
 
 export default {
   name: 'Logininfor',
@@ -200,22 +200,22 @@ export default {
     },
     /** 导出按钮操作 */
     handleExport() {
-      const queryParams = this.queryParams
+      // const queryParams = this.queryParams
       this.$confirm('是否确认导出所有操作日志数据项?', '警告', {
         confirmButtonText: '确定',
         cancelButtonText: '取消',
         type: 'warning'
-      }).then( () => {
+      }).then(() => {
         this.downloadLoading = true
         import('@/vendor/Export2Excel').then(excel => {
-          const tHeader = ['编号', '用户名称', '登陆地址', '登陆地点', '浏览器','操作系统','登陆状态','操作信息','登陆日期']
-          const filterVal = ['infoId', 'username', 'ipaddr', 'loginLocation', 'browser','os','status','msg','loginTime']
+          const tHeader = ['编号', '用户名称', '登陆地址', '登陆地点', '浏览器', '操作系统', '登陆状态', '操作信息', '登陆日期']
+          const filterVal = ['infoId', 'username', 'ipaddr', 'loginLocation', 'browser', 'os', 'status', 'msg', 'loginTime']
           const list = this.list
           const data = formatJson(filterVal, list)
           excel.export_json_to_excel({
             header: tHeader,
             data,
-            filename: "登陆日志",
+            filename: '登陆日志',
             autoWidth: true, // Optional
             bookType: 'xlsx' // Optional
           })

+ 7 - 7
src/views/operlog/index.vue

@@ -174,8 +174,8 @@
 </template>
 
 <script>
-import { list, delOperlog, cleanOperlog, exportOperlog } from '@/api/system/operlog'
-import { parseTime,formatJson } from '@/utils'
+import { list, delOperlog, cleanOperlog } from '@/api/system/operlog'
+import { formatJson } from '@/utils'
 
 export default {
   name: 'Operlog',
@@ -290,22 +290,22 @@ export default {
     },
     /** 导出按钮操作 */
     handleExport() {
-      const queryParams = this.queryParams
+      // const queryParams = this.queryParams
       this.$confirm('是否确认导出所有操作日志数据项?', '警告', {
         confirmButtonText: '确定',
         cancelButtonText: '取消',
         type: 'warning'
-      }).then( () => {
+      }).then(() => {
         this.downloadLoading = true
         import('@/vendor/Export2Excel').then(excel => {
-          const tHeader = ['日志编号', '系统模块', '操作类型', '请求方式', '操作人员','主机','操作地点','操作状态','操作url','操作日期']
-          const filterVal = ['operId', 'title', 'businessType', 'method', 'operName', 'operIp','operLocation','status','operUrl','operTime']
+          const tHeader = ['日志编号', '系统模块', '操作类型', '请求方式', '操作人员', '主机', '操作地点', '操作状态', '操作url', '操作日期']
+          const filterVal = ['operId', 'title', 'businessType', 'method', 'operName', 'operIp', 'operLocation', 'status', 'operUrl', 'operTime']
           const list = this.list
           const data = formatJson(filterVal, list)
           excel.export_json_to_excel({
             header: tHeader,
             data,
-            filename: "操作日志",
+            filename: '操作日志',
             autoWidth: true, // Optional
             bookType: 'xlsx' // Optional
           })

+ 2 - 2
src/views/post/index.vue

@@ -158,7 +158,7 @@
 
 <script>
 import { listPost, getPost, delPost, addPost, updatePost } from '@/api/system/post'
-import { parseTime,formatJson } from '@/utils'
+import { formatJson } from '@/utils'
 
 export default {
   name: 'Post',
@@ -325,7 +325,7 @@ export default {
         confirmButtonText: '确定',
         cancelButtonText: '取消',
         type: 'warning'
-      }).then( () => {
+      }).then(() => {
         this.downloadLoading = true
       import('@/vendor/Export2Excel').then(excel => {
         const tHeader = ['岗位编号', '岗位编码', '岗位名称', '排序', '创建时间']

+ 6 - 6
src/views/role/index.vue

@@ -233,10 +233,10 @@
 </template>
 
 <script>
-import { listRole, getRole, delRole, addRole, updateRole, exportRole, dataScope, changeRoleStatus } from '@/api/system/role'
+import { listRole, getRole, delRole, addRole, updateRole, dataScope, changeRoleStatus } from '@/api/system/role'
 import { treeselect as menuTreeselect, roleMenuTreeselect } from '@/api/system/menu'
 import { treeselect as deptTreeselect, roleDeptTreeselect } from '@/api/system/dept'
-import { parseTime,formatJson } from '@/utils'
+import { formatJson } from '@/utils'
 
 export default {
   name: 'Role',
@@ -543,17 +543,17 @@ export default {
         confirmButtonText: '确定',
         cancelButtonText: '取消',
         type: 'warning'
-      }).then( () => {
+      }).then(() => {
         this.downloadLoading = true
         import('@/vendor/Export2Excel').then(excel => {
-          const tHeader = ['角色编号', '角色名称', '权限字符', '显示顺序', '状态','创建时间']
-          const filterVal = ['roleId', 'roleName', 'roleKey', 'roleSort', 'status','createdAt']
+          const tHeader = ['角色编号', '角色名称', '权限字符', '显示顺序', '状态', '创建时间']
+          const filterVal = ['roleId', 'roleName', 'roleKey', 'roleSort', 'status', 'createdAt']
           const list = this.roleList
           const data = formatJson(filterVal, list)
           excel.export_json_to_excel({
             header: tHeader,
             data,
-            filename: "角色管理",
+            filename: '角色管理',
             autoWidth: true, // Optional
             bookType: 'xlsx' // Optional
           })