提交 47d84151 authored 作者: Ras's avatar Ras

对上次提交做个一点修改

上级 891ebb9f
...@@ -21,7 +21,9 @@ export const JeecgListMixin = { ...@@ -21,7 +21,9 @@ export const JeecgListMixin = {
Queue_id: '', Queue_id: '',
codeString: '', codeString: '',
// 编码 // 编码
numberString: '' numberString: '',
// 业务名称
nameString: ''
}, },
/* 数据源 */ /* 数据源 */
dataSource: [], dataSource: [],
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="4"> <a-col :span="4">
<a-form-item label="编码:"> <a-form-item label="业务名称:">
<a-input v-model="queryParam.codeString" placeholder="请输入编码" /> <a-input v-model="queryParam.nameString" placeholder="请输入编码" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="4"> <a-col :span="4">
...@@ -141,6 +141,10 @@ ...@@ -141,6 +141,10 @@
dataIndex: 'success', dataIndex: 'success',
filters:[ filters:[
{ {
text:'all',
value:'0'
},
{
text:'true', text:'true',
value:'1' value:'1'
}, },
...@@ -152,7 +156,7 @@ ...@@ -152,7 +156,7 @@
filterMultiple: false filterMultiple: false
}, },
{ {
title:'业务名', title:'业务名',
align:"center", align:"center",
dataIndex: 'name' dataIndex: 'name'
}, },
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
</a-col> </a-col>
<a-col :span="4"> <a-col :span="4">
<a-form-item label="业务名称:"> <a-form-item label="业务名称:">
<a-input v-model="queryParam.numberString" placeholder="请输入业务名称" /> <a-input v-model="queryParam.nameString" placeholder="请输入业务名称" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="2"> <a-col :span="2">
...@@ -135,6 +135,10 @@ ...@@ -135,6 +135,10 @@
dataIndex: 'synchronization', dataIndex: 'synchronization',
filters:[ filters:[
{ {
text:'all',
value:'0'
},
{
text:'true', text:'true',
value:'1' value:'1'
}, },
......
const path = require('path') const path = require('path')
const CompressionPlugin = require("compression-webpack-plugin") const CompressionPlugin = require('compression-webpack-plugin')
function resolve(dir) { function resolve(dir) {
return path.join(__dirname, dir) return path.join(__dirname, dir)
...@@ -22,15 +22,15 @@ module.exports = { ...@@ -22,15 +22,15 @@ module.exports = {
// filename: 'index.html', // filename: 'index.html',
// } // }
// }, // },
//打包app时放开该配置 // 打包app时放开该配置
//publicPath:'./', // publicPath:'./',
configureWebpack: config => { configureWebpack: config => {
//生产环境取消 console.log // 生产环境取消 console.log
if (process.env.NODE_ENV === 'production') { if (process.env.NODE_ENV === 'production') {
config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true
} }
}, },
chainWebpack: (config) => { chainWebpack: config => {
config.resolve.alias config.resolve.alias
.set('@$', resolve('src')) .set('@$', resolve('src'))
.set('@api', resolve('src/api')) .set('@api', resolve('src/api'))
...@@ -41,13 +41,15 @@ module.exports = { ...@@ -41,13 +41,15 @@ module.exports = {
.set('@static', resolve('src/static')) .set('@static', resolve('src/static'))
.set('@mobile', resolve('src/modules/mobile')) .set('@mobile', resolve('src/modules/mobile'))
//生产环境,开启js\css压缩 // 生产环境,开启js\css压缩
if (process.env.NODE_ENV === 'production') { if (process.env.NODE_ENV === 'production') {
config.plugin('compressionPlugin').use(new CompressionPlugin({ config.plugin('compressionPlugin').use(
new CompressionPlugin({
test: /\.(js|css|less)$/, // 匹配文件名 test: /\.(js|css|less)$/, // 匹配文件名
threshold: 10240, // 对超过10k的数据压缩 threshold: 10240, // 对超过10k的数据压缩
deleteOriginalAssets: false // 不删除源文件 deleteOriginalAssets: false // 不删除源文件
})) })
)
} }
// 配置 webpack 识别 markdown 为普通的文件 // 配置 webpack 识别 markdown 为普通的文件
...@@ -58,18 +60,16 @@ module.exports = { ...@@ -58,18 +60,16 @@ module.exports = {
.loader('file-loader') .loader('file-loader')
.end() .end()
// 编译某些npm包里的es6代码 // 编译某些npm包里的es6代码
config.module config.module
.rule('vxe') .rule('vxe')
.test(/\.js$/) .test(/\.js$/)
.include .include.add(resolve('node_modules/vxe-table'))
.add(resolve('node_modules/vxe-table')) .add(resolve('node_modules/vxe-table-plugin-antd'))
.add(resolve('node_modules/vxe-table-plugin-antd')) .end()
.end()
.use() .use()
.loader('babel-loader') .loader('babel-loader')
.end() .end()
}, },
css: { css: {
...@@ -79,9 +79,9 @@ module.exports = { ...@@ -79,9 +79,9 @@ module.exports = {
/* less 变量覆盖,用于自定义 ant design 主题 */ /* less 变量覆盖,用于自定义 ant design 主题 */
'primary-color': '#1890FF', 'primary-color': '#1890FF',
'link-color': '#1890FF', 'link-color': '#1890FF',
'border-radius-base': '4px', 'border-radius-base': '4px'
}, },
javascriptEnabled: true, javascriptEnabled: true
} }
} }
}, },
...@@ -89,21 +89,21 @@ module.exports = { ...@@ -89,21 +89,21 @@ module.exports = {
devServer: { devServer: {
port: 3000, port: 3000,
proxy: { proxy: {
/* '/api': { // /* '/api': {
target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro', //mock API接口系统 // target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro', //mock API接口系统
ws: false, // ws: false,
changeOrigin: true, // changeOrigin: true,
pathRewrite: { // pathRewrite: {
'/wmssystem': '' // // '/wmssystem': '' //
} // }
},*/ // },*/
'/wmssystem': { '/imssystem': {
target: 'http://lf.lingqingkeji.com:8080', // target: 'http://192.168.2.47', // 192.168.2.47
ws: false, ws: false,
changeOrigin: true changeOrigin: true
}, }
} }
}, },
lintOnSave: undefined lintOnSave: undefined
} }
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论