| | |
| | | :codeClassifyOid="codeClassifyOid"
|
| | | :redisOid="redisOid"
|
| | | :type="type"
|
| | | :title="title"
|
| | | :secDTOList="secDTOList"
|
| | | ></ShowImportData>
|
| | | </el-dialog>
|
| | | </template>
|
| | |
| | | return this.currentTypeObj[this.type]["tipList"];
|
| | | },
|
| | | downloadTemplateApi() {
|
| | | console.log(this.currentTypeObj[this.type], 'this.type');
|
| | | console.log(this.currentTypeObj[this.type], "this.type");
|
| | | return this.currentTypeObj[this.type]["downloadTemplateFun"];
|
| | | },
|
| | | action() {
|
| | |
| | | classifyAttr: this.classifyAttr,
|
| | | };
|
| | | } else if (this.type === "batchImportApply") {
|
| | | const secDTOList = this.localSecVOList.map(item => {
|
| | | return {
|
| | | secOid: item.oid,
|
| | | secValue: this.codeApplyForm[item.id]
|
| | | }
|
| | | })
|
| | | // eslint-disable-next-line vue/no-side-effects-in-computed-properties
|
| | | this.secDTOList = this.localSecVOList.map((item) => {
|
| | | return {
|
| | | secOid: item.oid,
|
| | | secValue: this.codeApplyForm[item.id],
|
| | | };
|
| | | });
|
| | | return {
|
| | | codeClassifyOid: this.codeClassifyOid,
|
| | | secDTOList: JSON.stringify(secDTOList),
|
| | | secDTOList: JSON.stringify(this.secDTOList),
|
| | | ...this.codeApplyForm,
|
| | | };
|
| | | } else if (this.type === "batchApplyCode") {
|
| | |
| | | upParams: "classifyAttr",
|
| | | },
|
| | | },
|
| | | secDTOList: [],
|
| | | };
|
| | | },
|
| | | methods: {
|
| | |
| | | },
|
| | | onSuccess(res) {
|
| | | if (Object.keys(res.data).length === 0) {
|
| | | this.$message.success(this.title + '导入成功!')
|
| | | this.dialogVisible = false
|
| | | return
|
| | | this.$message.success(this.title + "导入成功!");
|
| | | this.dialogVisible = false;
|
| | | return;
|
| | | }
|
| | | if (res.data.fileOid) {
|
| | | const fileName = res.data.filePath.split("/").pop();
|
| | |
| | | }
|
| | | },
|
| | | onError(err) {
|
| | | console.log(err, 'err');
|
| | | console.log(err, "err");
|
| | | this.pageLoading.close();
|
| | | },
|
| | | uploadChange(file) {
|