| | |
| | | return request({ |
| | | url: '/api/ubcs-resource/fileController/downloadFilesByOids', |
| | | method: 'post', |
| | | <<<<<<< HEAD |
| | | // headers:{'Content-Type':'application/x-www-form-urlencoded'}, |
| | | params: fileOids |
| | | ======= |
| | | headers:{'Content-Type':'application/x-www-form-urlencoded;charset=UTF-8'}, |
| | | data: data |
| | | |
| | | >>>>>>> 3e35833e70a7532d4ae8da0dcd905627230f2b2c |
| | | }) |
| | | } |
| | | |
| | |
| | | import {
|
| | | downloadHistoryImportTemplate,
|
| | | downloadErrorFile,
|
| | | getHistoryLeftTree,
|
| | | importDataShow,
|
| | | downloadBatchImportApplyTemplate,
|
| | | downloadBatchApplyCodeTemplate,
|
| | | } from "../../api/batchImport/index";
|
| | |
| | | },
|
| | | methods: {
|
| | | async beforeUpload(file) {
|
| | | console.log(file, 'file');
|
| | | const fileType = file.name.split(".").pop();
|
| | | if (fileType !== "xlsx" && fileType !== "xls") {
|
| | | // 上传格式不符合要求,提示错误信息并取消上传
|
| | |
| | | });
|
| | | },
|
| | | onSuccess(res) {
|
| | | if (Object.keys(res.data).length === 0) {
|
| | | this.$message.success(this.title + '导入成功!')
|
| | | this.dialogVisible = false
|
| | | return
|
| | | }
|
| | | let fileName = res.data.filePath.split("/").pop();
|
| | | if (res.data.fileOid) {
|
| | | this.$message.error("请下载错误信息文件进行查看!");
|
| | |
| | | }
|
| | | if (res.data.redisUuid) {
|
| | | this.redisOid = res.data.redisUuid;
|
| | | getHistoryLeftTree(res.data.redisUuid).then((res) => {
|
| | | importDataShow(res.data.redisUuid).then((res) => {
|
| | | this.leftTree = res.obj.map((item) => {
|
| | | return {
|
| | | ...item.codeClassifyTemplateVO,
|
| | |
| | | }
|
| | | },
|
| | | uploadChange(file) {
|
| | | console.log(file, 'file', file.status === "success");
|
| | | if (file.status === "success" || file.status === "error") {
|
| | | this.pageLoading.close();
|
| | | }
|
| | |
| | | <avue-form |
| | | v-model="form" |
| | | :option="option" |
| | | v-loading="loading" |
| | | ref="form" |
| | | :style="{ minHeight: loading ? '300px' : '' }" |
| | | :key="updateIndex" |
| | |
| | | if (this.type === "add") { |
| | | this.loading = false; |
| | | } |
| | | |
| | | this.geDictData(dictKeys); |
| | | this.getFormDetail(); |
| | | }, |
| | |
| | | > |
| | | <FormTemplate |
| | | v-bind="$attrs" |
| | | :visible="visible" |
| | | :type="type" |
| | | :rowOid="rowOid" |
| | | :templateOid="templateOid" |
| | | ref="FormTemplate" |
| | | @getFormData="getFormData" |
| | | ></FormTemplate> |
| | | |
| | | <div |
| | | class="tab_box" |
| | | v-if=" |
| | |
| | | form: {}, |
| | | codeApplyForm: {}, |
| | | activeName: "codeApply", |
| | | showCodeApply: true, |
| | | showResembleQuery: true, |
| | | showCodeApply: false, |
| | | showResembleQuery: false, |
| | | selfColumnType: { |
| | | codefixedsec: "combox", |
| | | codeclassifysec: "refer", |
| | |
| | | this.activeName = "resembleQuery"; |
| | | this.showResembleQuery = true; |
| | | } |
| | | this.$refs.FormTemplate.templateRender(res.data.formDefineVO.items); |
| | | this.$nextTick(() => { |
| | | this.$refs.FormTemplate.templateRender(res.data.formDefineVO.items); |
| | | }) |
| | | } |
| | | }) |
| | | .catch(() => { |
| | |
| | | this.secVOList = (res.data.data.secVOList || []).filter((item) => |
| | | typeList.includes(item.secType) |
| | | ); |
| | | this.$nextTick(() => { |
| | | if (this.secVOList.length > 0 && this.type === "add") { |
| | | this.showCodeApply = true; |
| | | this.activeName = "codeApply"; |
| | | this.$refs.CodeApply.templateRender(this.secVOList); |
| | | this.$nextTick(() => { |
| | | this.$refs.CodeApply.templateRender(this.secVOList); |
| | | }) |
| | | } else { |
| | | this.showCodeApply = false; |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | }, |
| | |
| | | }, |
| | | created() { |
| | | this.getParams(); |
| | | console.log('referConfig:') |
| | | console.log(this.referConfig) |
| | | // console.log('referConfig:') |
| | | // console.log(this.referConfig) |
| | | }, |
| | | mounted() { |
| | | if(this.referConfig.options.page){ |
| | |
| | | }, |
| | | created() { |
| | | this.getParams(); |
| | | console.log('referConfig:') |
| | | console.log(this.referConfig) |
| | | // console.log('referConfig:') |
| | | // console.log(this.referConfig) |
| | | }, |
| | | mounted() { |
| | | if(this.referConfig.options.page){ |
| | |
| | | }, |
| | | created() { |
| | | this.getParams(); |
| | | console.log('referConfig:') |
| | | console.log(this.referConfig) |
| | | // console.log('referConfig:') |
| | | // console.log(this.referConfig) |
| | | }, |
| | | mounted() { |
| | | if(!this.lazy){ |