From c5cb84b1124a4d03893f581e86cd089f61866407 Mon Sep 17 00:00:00 2001 From: douzhuo <17611323298@163.com> Date: Fri, 29 Jul 2022 13:59:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E7=AD=9B=E9=80=89=E9=A1=B9?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/const/crud/admin/log.js | 30 +++++++++++++++++++++++++----- vue.config.js | 4 ++-- 2 files changed, 27 insertions(+), 7 deletions(-) diff --git a/src/const/crud/admin/log.js b/src/const/crud/admin/log.js index 3df6bfe..f3b9f3e 100644 --- a/src/const/crud/admin/log.js +++ b/src/const/crud/admin/log.js @@ -43,11 +43,31 @@ export const tableOption = { { label: "操作类型", prop: "type", - formatter: val => { - let arr = ['新增管理', '编辑项目', '删除项目', '新增公司', '编辑公司', '删除公司', '新增代理商', '系统运营'] - console.log(val, 'dsadjaskljdkasl') - return arr[Number(val.type)] || '' - }, + dicData: [{ + label: '新增管理', + value: "0" + }, { + label: '编辑项目', + value: "1" + }, { + label: '删除项目', + value: "2" + }, { + label: '新增公司', + value: "3" + }, { + label: '编辑公司', + value: "4" + }, { + label: '删除公司', + value: "5" + }, { + label: '新增代理商', + value: "6" + }, { + label: '系统运营', + value: '7' + }] }, { label: '操作内容', diff --git a/vue.config.js b/vue.config.js index c4fb753..f84ffa5 100644 --- a/vue.config.js +++ b/vue.config.js @@ -4,9 +4,9 @@ */ // const url = 'http://192.168.31.161:9999' //长龙 // const url = 'http://192.168.31.147:9999' // 胜浩 -// const url = 'https://zanyong.hfju.com' // 正式域名 +const url = 'https://zanyong.hfju.com' // 正式域名 // const url = 'http://127.0.0.1:9999' // 本地 -const url = 'http://81.70.55.170:9999' // 新测试 +// const url = 'http://81.70.55.170:9999' // 新测试 // const url = 'http://82.156.35.22:9999' // 新正式ip const CompressionWebpackPlugin = require('compression-webpack-plugin') const productionGzipExtensions = ['js', 'css']