zhouwx
3 天以前 4fe6c5ac4bc2b7fa9c9c71bb52d9df3e8b13bd7c
src/views/build/conpanyFunctionConsult/industryTemplate/index.vue
@@ -30,6 +30,9 @@
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="文件记录:" >
          <el-input v-model.trim="data.queryParams.templateName"  placeholder="请输入"></el-input>
        </el-form-item>
        <el-form-item label="分类:" >
          <el-input v-model.trim="data.queryParams.type"  placeholder="请输入"></el-input>
        </el-form-item>
@@ -141,7 +144,8 @@
    pageSize: 10,
    companyId: null,
    industryType: null,
    type: ''
    type: '',
    templateName: ''
  },
  total: 0,
  dataList: [],
@@ -185,8 +189,8 @@
})
const openFile = async(path)=>{
  const ext = path.split('.').pop().toLowerCase();
  if (ext === 'doc') {
    ElMessageBox.confirm('暂不支持线上预览.doc文件,是否下载查看?', '提示', { confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning' }).then(() => {
  if (ext === 'doc' || ext === 'xls' || ext === 'xlsx') {
    ElMessageBox.confirm('暂不支持线上预览文件,是否下载查看?', '提示', { confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning' }).then(() => {
      window.open(`${import.meta.env.VITE_APP_BASE_API}/${path}`, '_blank');
    }).catch(() => {
      console.log('取消预览')
@@ -343,7 +347,8 @@
      pageSize: 10,
      companyId: null,
      industryType: null,
      type: ''
      type: '',
      templateName: ''
    }
    await getCompanyList()
  }else {
@@ -352,7 +357,8 @@
      pageSize: 10,
      companyId: data.queryParams.companyId,
      industryType: null,
      type: ''
      type: '',
      templateName: ''
    }
  }
  await getList()