Commit ce0cd88c authored by jiaxu.yan's avatar jiaxu.yan

fix: 车型实验改为车型试验

parent b5a24eb5
......@@ -379,7 +379,7 @@ export default {
}
} else {
return {
label: '车型验',
label: '车型验',
value: 'test'
}
}
......
......@@ -184,7 +184,7 @@
item.modelTestTaskId
)
"
>车型验原始记录</el-button
>车型验原始记录</el-button
>
<el-button
v-if="item.reviewStatus !== 'NONE'"
......
......@@ -183,7 +183,7 @@
item.id
)
"
>车型验原始记录</el-button
>车型验原始记录</el-button
>
<el-button
v-if="item.reviewStatus !== 'NONE'"
......
......@@ -248,12 +248,12 @@
</collapse-item>
</collapse>
</div>
<!--确定车型验范围-->
<!--确定车型验范围-->
<!-- <div v-if="type === '1'">
<div class="form-review-questionnaire">
<div class="title-display">
<span class="title-i"></span>
<span class="title-content">确定车型验范围</span>
<span class="title-content">确定车型验范围</span>
</div>
<el-form
ref="form"
......
......@@ -529,7 +529,7 @@
</el-row>
<div v-if="dataStatistic.testExist" class="tip-navigation">
<div class="tip"></div>
<div class="tip-title">车型</div>
<div class="tip-title">车型</div>
</div>
<el-row v-if="dataStatistic.testExist" :gutter="40">
<el-col :span="12">
......
......@@ -380,7 +380,7 @@ export default {
}
} else {
return {
label: '车型验',
label: '车型验',
value: 'test'
}
}
......
......@@ -463,7 +463,7 @@
item.modelTestTaskId
)
"
>车型验原始记录</el-button
>车型验原始记录</el-button
>
<el-button
v-if="item.reviewStatus !== 'NONE'"
......
......@@ -18,7 +18,7 @@ module.exports = {
// 部署生产环境和开发环境下的URL。
// 默认情况下,Vue CLI 会假设你的应用是被部署在一个域名的根路径上
// 例如 https://www.ruoyi.vip/。如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.ruoyi.vip/admin/,则设置 baseUrl 为 /admin/。
publicPath: process.env.NODE_ENV === "production" ? "/" : "/",
publicPath: process.env.NODE_ENV === 'production' ? '/' : '/',
// 在npm run build 或 yarn build 时 ,生成文件的目录名称(要和baseUrl的生产环境路径一致)(默认dist)
outputDir: 'dist',
// 用于放置生成的静态资源 (js、css、img、fonts) 的;(项目打包之后,静态资源会放在这个文件夹下)
......@@ -35,7 +35,10 @@ module.exports = {
proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
target: `http://49.232.167.247:22032`,
// target: `http://49.232.167.247:22032`,
target: `http://192.168.10.171:22032`,
// target: `http://192.168.10.170:22032`,
// target: `https://10.12.48.78/prod-api`,
changeOrigin: true,
pathRewrite: {
......@@ -48,9 +51,9 @@ module.exports = {
pathRewrite: {
['^' + process.env.VUE_APP_CLIENT_API]: ''
}
},
}
},
disableHostCheck: true,
disableHostCheck: true
// port: port,
// open: true,
// overlay: {
......@@ -62,7 +65,7 @@ module.exports = {
css: {
loaderOptions: {
sass: {
sassOptions: { outputStyle: "expanded" }
sassOptions: { outputStyle: 'expanded' }
// additionalData(content, loaderContext) {
// const { resourcePath, rootContext } = loaderContext
// const relativePath = path.relative(rootContext, resourcePath)
......@@ -84,23 +87,20 @@ module.exports = {
plugins: [
// http://doc.ruoyi.vip/ruoyi-vue/other/faq.html#使用gzip解压缩静态文件
new CompressionPlugin({
cache: false, // 不启用文件缓存
test: /\.(js|css|html)?$/i, // 压缩文件格式
filename: '[path].gz[query]', // 压缩后的文件名
algorithm: 'gzip', // 使用gzip压缩
minRatio: 0.8 // 压缩率小于1才会压缩
cache: false, // 不启用文件缓存
test: /\.(js|css|html)?$/i, // 压缩文件格式
filename: '[path].gz[query]', // 压缩后的文件名
algorithm: 'gzip', // 使用gzip压缩
minRatio: 0.8 // 压缩率小于1才会压缩
})
],
]
},
chainWebpack(config) {
config.plugins.delete('preload') // TODO: need test
config.plugins.delete('prefetch') // TODO: need test
// set svg-sprite-loader
config.module
.rule('svg')
.exclude.add(resolve('src/assets/icons'))
.end()
config.module.rule('svg').exclude.add(resolve('src/assets/icons')).end()
config.module
.rule('icons')
.test(/\.svg$/)
......@@ -112,19 +112,22 @@ module.exports = {
symbolId: 'icon-[name]'
})
.end()
config.module.rule('graphql')
config.module
.rule('graphql')
.test(/\.graphql$/)
.use('graphql-tag/loader')
.loader('graphql-tag/loader')
.end();
.end()
config.when(process.env.NODE_ENV === 'production', config => {
config
.plugin('ScriptExtHtmlWebpackPlugin')
.after('html')
.use('script-ext-html-webpack-plugin', [{
// `runtime` must same as runtimeChunk name. default is `runtime`
inline: /runtime\..*\.js$/
}])
.use('script-ext-html-webpack-plugin', [
{
// `runtime` must same as runtimeChunk name. default is `runtime`
inline: /runtime\..*\.js$/
}
])
.end()
config.optimization.splitChunks({
......@@ -152,10 +155,10 @@ module.exports = {
})
config.optimization.runtimeChunk('single'),
{
from: path.resolve(__dirname, './public/robots.txt'), //防爬虫文件
to: './' //到根目录下
}
{
from: path.resolve(__dirname, './public/robots.txt'), //防爬虫文件
to: './' //到根目录下
}
})
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment