From 6dd340a1dae4cc0003df35c13e648f991d00f9a5 Mon Sep 17 00:00:00 2001 From: zwq Date: Tue, 9 Apr 2024 16:57:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mixins/basic-add.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mixins/basic-add.js b/src/mixins/basic-add.js index 73cafd7..0aa7ea3 100644 --- a/src/mixins/basic-add.js +++ b/src/mixins/basic-add.js @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2022-08-24 11:19:43 * @LastEditors: zwq - * @LastEditTime: 2024-04-02 09:34:56 + * @LastEditTime: 2024-04-09 16:56:16 * @Description: */ import { listData } from "@/api/system/dict/data"; //数据字典接口 @@ -14,7 +14,7 @@ export default { createURL: '', //新增接口 updateURL: '', //编辑提交接口 infoURL: '', //编辑时获取单条数据接口 - codeURL: '', //获取code接口(返回结果为dataForm.code字段) + codeURL: null, //获取code接口(返回结果为dataForm.code字段) optionArrUrl: [], //需要获取下拉框的方法数组 optionArr: {}, //需要获取下拉框的方法数组的返回结果 dictNameList: [], //数据字典name数组 @@ -35,7 +35,7 @@ export default { if (this.urlOptions.optionArrUrl.length > 0) { this.getArr() } - if (this.urlOptions.dictNameList > 0) { + if (this.urlOptions.dictNameList.length > 0) { this.getDict() } this.$nextTick(() => { @@ -78,7 +78,7 @@ export default { }, /** 查询字典数据列表 */ getDict() { - this.dictNameList.forEach((item,index)=>{ + this.urlOptions.dictNameList.forEach((item,index)=>{ const queryParams = { pageNo: 1, pageSize: 99,