替换infopath项目,采用SharePoint SPFX框架
jiang_xin_yuyy
2024-08-12 4fa9d0af4c864882c28a539b1843bb0ec9ede67a
ISAM附件连接修改
3个文件已修改
66 ■■■■ 已修改文件
ISAM/isampage/src/components/UnitPrice/Content/index.vue 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ISAM/isampage/src/components/UnitPrice/index.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ISAM/isampage/vue.config.js 46 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ISAM/isampage/src/components/UnitPrice/Content/index.vue
@@ -55,32 +55,32 @@
        <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>
@@ -155,7 +155,7 @@
  .link-padding {
    padding: 3px 6px;
    display: inline-block;
    color: #409eff;
    color: revert;
  }
  .bg1 {
ISAM/isampage/src/components/UnitPrice/index.vue
@@ -9,8 +9,8 @@
      <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>
@@ -119,6 +119,6 @@
.link-padding {
  padding: 3px 6px;
  display: inline-block;
  color: #409eff;
  color: revert;
}
</style>
ISAM/isampage/vue.config.js
@@ -1,26 +1,24 @@
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;
    });
  },
};