| | |
| | | > |
| | | </el-upload> |
| | | <template #footer> |
| | | <div v-if="type !== 'groupCode'"> |
| | | <el-button |
| | | v-if="type !== 'bulkEdit' " |
| | | :loading="downloadLoading" |
| | | size="small" |
| | | type="primary" |
| | | @click="downloadTemplateFun" |
| | | >下载导入模板 |
| | | </el-button> |
| | | <el-button v-if="type === 'bulkEdit'" |
| | | :loading="downloadLoading" |
| | | size="small" |
| | | type="primary" |
| | | @click="downloadTemplateFun" |
| | | >下载编辑模板 |
| | | </el-button> |
| | | </div> |
| | | <el-button size="small" @click="dialogVisible = false">关闭</el-button> |
| | | <div style="display: inline-block" v-if="type != 'groupCode'"> |
| | | <el-button |
| | | v-if="type !== 'bulkEdit' " |
| | | :loading="downloadLoading" |
| | | size="small" |
| | | type="primary" |
| | | @click="downloadTemplateFun" |
| | | >下载导入模板 |
| | | </el-button> |
| | | <el-button v-if="type === 'bulkEdit'" |
| | | :loading="downloadLoading" |
| | | size="small" |
| | | type="primary" |
| | | @click="downloadTemplateFun" |
| | | >下载编辑模板 |
| | | </el-button> |
| | | </div> |
| | | <div style="display: inline-block"> |
| | | <el-button size="small" @click="dialogVisible = false">关闭</el-button> |
| | | </div> |
| | | |
| | | </template> |
| | | <ShowImportData |
| | | v-if="showVisible" |
| | |
| | | return this.currentTypeObj[this.type]["action"]; |
| | | }, |
| | | upParams() { |
| | | if (this.type === "historyImport" || this.type === "batchApplyCode" ) { |
| | | if (this.type === "historyImport" || this.type === "batchApplyCode") { |
| | | return { |
| | | codeClassifyOid: this.codeClassifyOid, |
| | | classifyAttr: this.classifyAttr, |
| | |
| | | return { |
| | | codeClassifyOid: this.codeClassifyOid, |
| | | }; |
| | | }else if(this.type === 'groupCode'){ |
| | | } else if (this.type === 'groupCode') { |
| | | return { |
| | | codeClassifyOid: this.codeClassifyOid, |
| | | }; |
| | |
| | | } |
| | | }, |
| | | onSuccess(res) { |
| | | console.log(res) |
| | | if (Object.keys(res.data).length === 0) { |
| | | this.$message.success(this.title + "导入成功!"); |
| | | this.resetTable() |