loulijun2021
2024-01-08 0dd0bf217772b61681f8a24d277305af97d561a2
1.导入问题修改
已修改3个文件
23 ■■■■■ 文件已修改
src/views/mouldManager/mouldList.vue 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/systemSetting/dataImport.vue 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
vue.config.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mouldManager/mouldList.vue
@@ -201,17 +201,20 @@
          </el-table-column>
          <el-table-column
            prop="surp_life"
            label="预计寿命"
            label="预计寿命(次)"
            width="125"
            sortable="custom"
          />
          <el-table-column
            prop="serlife"
            label="使用寿命"
            label="使用寿命(次)"
            width="125"
            sortable="custom"
          />
          <el-table-column
            prop="resi_life"
            label="剩余寿命"
            label="剩余寿命(次)"
            width="125"
            sortable="custom"
          />
          <el-table-column
@@ -324,10 +327,10 @@
        <!--          </el-select>-->
        <!--        </el-form-item>-->
        <el-form-item label="预计寿命">
        <el-form-item label="预计寿命(次)">
          <el-input v-model="dialogForm.surplife" oninput="value=value.replace(/[^0-9]/g,'')" style="width: 200px" />
        </el-form-item>
        <el-form-item label="剩余寿命">
        <el-form-item label="剩余寿命(次)">
          <el-input v-model="dialogForm.resilife" oninput="value=value.replace(/[^0-9]/g,'')" style="width: 200px" />
        </el-form-item>
@@ -418,13 +421,13 @@
        </el-descriptions-item>
        <el-descriptions-item>
          <template slot="label">
            预计寿命(小时)
            预计寿命(次)
          </template>
          {{ formResume.surp_life }}
        </el-descriptions-item>
        <el-descriptions-item>
          <template slot="label">
            剩余寿命(小时)
            剩余寿命(次)
          </template>
          {{ formResume.serlife }}
        </el-descriptions-item>
src/views/systemSetting/dataImport.vue
@@ -830,7 +830,7 @@
          }
          // 数据提交前去除空格方法
          this.tableDataTrim()
          // this.tableDataTrim()
          const data = {
            fileCode: this.excelCode,
@@ -2171,7 +2171,9 @@
    // 模板下载
    async getExcel() {
      const res = await DownLoadExcel({ FileCode: this.excelCode })
      if (res.code === '200') {
      window.location.href = res.data
      }
    },
    async getSelectArr() {
      await this.getPrentOrganization()
vue.config.js
@@ -53,7 +53,7 @@
    proxy: {
      [process.env.VUE_APP_BASE_API]: {
        target: 'http://121.196.36.24:8021', // 请求的第三⽅接⼝地址       本地开发服务器
        // target: 'http://192.168.18.245:8001', // 请求的第三⽅接⼝地址       本地开发服务器
        // target: 'http://122.227.18.22:8000', // 请求的第三⽅接⼝地址       本地开发服务器
        changeOrigin: true, // 请求跨域时,需 配置此项
        pathRewrite: { // 路径重写,替换target中的请求地址
          ['^' + process.env.VUE_APP_BASE_API]: '/api/'