| | |
| | | <div class="item-content"> |
| | | {{ props.content[0]?.Cost_Name }} |
| | | <span style="float: right; margin-right: 10%; color: #409eff"> |
| | | <ElLink |
| | | <a |
| | | class="link-padding" |
| | | v-if="props.content.filter((e) => e.Attach_File1).length" |
| | | :href=" |
| | | props.content.filter((e) => e.Attach_File1)[0]?.Attach_File1 |
| | | " |
| | | target="_blank" |
| | | >附件1</ElLink |
| | | >附件1</a |
| | | > |
| | | <ElLink |
| | | <a |
| | | class="link-padding" |
| | | v-if="props.content.filter((e) => e.Attach_File2).length" |
| | | :href=" |
| | | props.content.filter((e) => e.Attach_File2)[0]?.Attach_File2 |
| | | " |
| | | target="_blank" |
| | | >附件2</ElLink |
| | | >附件2</a |
| | | > |
| | | <ElLink |
| | | <a |
| | | class="link-padding" |
| | | v-if="props.content.filter((e) => e.Attach_File3).length" |
| | | :href=" |
| | | props.content.filter((e) => e.Attach_File3)[0]?.Attach_File3 |
| | | " |
| | | target="_blank" |
| | | >附件3</ElLink |
| | | >附件3</a |
| | | > |
| | | </span> |
| | | </div> |
| | |
| | | .link-padding { |
| | | padding: 3px 6px; |
| | | display: inline-block; |
| | | color: #409eff; |
| | | color: revert; |
| | | } |
| | | |
| | | .bg1 { |
| | |
| | | <div class="file-list" v-for="(item, index) in fileList" :key="index"> |
| | | <li class="file-item">{{ item.name }}</li> |
| | | <li class="file-item"> |
| | | <ElLink class="link-padding" :href="item.path" target="_blank">附件Ver:{{ |
| | | item.version }}.0</ElLink> |
| | | <a class="link-padding" :href="item.path" target="_blank">附件Ver:{{ |
| | | item.version }}.0</a> |
| | | </li> |
| | | </div> |
| | | </ul> |
| | |
| | | .link-padding { |
| | | padding: 3px 6px; |
| | | display: inline-block; |
| | | color: #409eff; |
| | | color: revert; |
| | | } |
| | | </style> |
| | |
| | | const { resolve } = require('path') |
| | | const { resolve } = require("path"); |
| | | module.exports = { |
| | | outputDir: 'dist', |
| | | publicPath: process.env.NODE_ENV === 'production' |
| | | ? '/pages' |
| | | : '/', |
| | | devServer: { |
| | | before: require('./mock/mock-server.js'), |
| | | proxy: 'http://172.23.16.12:8008' |
| | | |
| | | outputDir: "dist", |
| | | publicPath: process.env.NODE_ENV === "production" ? "/pages" : "/",//根据环境变量判断 |
| | | devServer: { |
| | | before: require("./mock/mock-server.js"), |
| | | // proxy: 'http://172.23.16.12:8008',//测试环境代理地址 |
| | | proxy: "http://localhost:5009", //开发环境代理地址 |
| | | }, |
| | | configureWebpack: { |
| | | resolve: { |
| | | alias: { |
| | | "@/": resolve(__dirname, "src/"), |
| | | }, |
| | | }, |
| | | configureWebpack: { |
| | | resolve: { |
| | | alias: { |
| | | '@/': resolve(__dirname,'src/') |
| | | } |
| | | }, |
| | | }, |
| | | chainWebpack:config=>{ |
| | | config.plugin('define') |
| | | .tap(args=>{ |
| | | args[0]['isDevelopment'] = process.env.NODE_ENV === 'development' |
| | | return args |
| | | }) |
| | | } |
| | | } |
| | | }, |
| | | chainWebpack: (config) => { |
| | | config.plugin("define").tap((args) => { |
| | | // 添加全局环境变量 |
| | | args[0]["isDevelopment"] = process.env.NODE_ENV === "development"; |
| | | return args; |
| | | }); |
| | | }, |
| | | }; |