From 438cc7d05840dcad2ae8cc238b0fc33ddba36bf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=8A=B2=E9=BE=99?= <2860996570@qq.com> Date: Wed, 20 Nov 2024 16:12:12 +0800 Subject: [PATCH] 1 --- .env.development | 2 +- .../assetsManagement/assetsAuth.vue | 31 ++++++++++--------- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/.env.development b/.env.development index a4fa909..bc5430f 100644 --- a/.env.development +++ b/.env.development @@ -5,7 +5,7 @@ VUE_APP_TITLE = 若依管理系统 ENV = 'development' # 若依管理系统/开发环境 -VUE_APP_BASE_API = 'http://192.168.0.119:9015' +VUE_APP_BASE_API = 'http://192.168.0.108:9015' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/src/views/auditPages/assetsManagement/assetsAuth.vue b/src/views/auditPages/assetsManagement/assetsAuth.vue index 1be40e3..d80e0d7 100644 --- a/src/views/auditPages/assetsManagement/assetsAuth.vue +++ b/src/views/auditPages/assetsManagement/assetsAuth.vue @@ -2697,24 +2697,25 @@ export default { // 获取详情 getInfo(id){ assetInfo(id).then(res=>{ + console.log(res,"res"); this.ruleForm = res.data; - this.ruleForm.xttz ? this.xttz = this.ruleForm.xttz.split(',') : []; - this.ruleForm.gylxxList.length > 0 ? this.chepingUnit = this.ruleForm.gylxxList.filter((item) => item.type == 1) : [] - this.ruleForm.gylxxList.length > 0 ? this.yjgysUnit = this.ruleForm.gylxxList.filter((item) => item.type == 2) : [] - this.ruleForm.gylxxList.length > 0 ? this.jfywUnit = this.ruleForm.gylxxList.filter((item) => item.type == 3) : [] - this.ruleForm.gylxxList.length > 0 ? this.xtsjUnit = this.ruleForm.gylxxList.filter((item) => item.type == 4) : [] - this.ruleForm.gylxxList.length > 0 ? this.xtjsUnit = this.ruleForm.gylxxList.filter((item) => item.type == 5) : [] - this.ruleForm.gylxxList.length > 0 ? this.xtyyUnit = this.ruleForm.gylxxList.filter((item) => item.type == 7) : [] - this.ruleForm.gylxxList.length > 0 ? this.aqfwUnit = this.ruleForm.gylxxList.filter((item) => item.type == 6) : [] + this.xttz = this.ruleForm.xttz.split(',') + this.chepingUnit = this.ruleForm.gylxxList.filter((item) => item.type == 1) + this.yjgysUnit = this.ruleForm.gylxxList.filter((item) => item.type == 2) + this.jfywUnit = this.ruleForm.gylxxList.filter((item) => item.type == 3) + this.xtsjUnit = this.ruleForm.gylxxList.filter((item) => item.type == 4) + this.xtjsUnit = this.ruleForm.gylxxList.filter((item) => item.type == 5) + this.xtyyUnit = this.ruleForm.gylxxList.filter((item) => item.type == 7) + this.aqfwUnit = this.ruleForm.gylxxList.filter((item) => item.type == 6) - this.ruleForm.jcwlList.length > 0 ? this.fwqxx = this.ruleForm.jcwlList.filter((item) => item.type == 1) : [] - this.ruleForm.jcwlList.length > 0 ? this.wlsb = this.ruleForm.jcwlList.filter((item) => item.type == 2) : [] - this.ruleForm.jcwlList.length > 0 ? this.aqsb = this.ruleForm.jcwlList.filter((item) => item.type == 3) : [] + this.fwqxx = this.ruleForm.jcwlList.filter((item) => item.type == 1) + this.wlsb = this.ruleForm.jcwlList.filter((item) => item.type == 2) + this.aqsb = this.ruleForm.jcwlList.filter((item) => item.type == 3) - this.ruleForm.xtfhqkFcg ? this.xtfhqkFcg = this.ruleForm.xtfhqkFcg.split(',') : [] - this.ruleForm.xtfhqkFxl ? this.xtfhqkFxl = this.ruleForm.xtfhqkFxl.split(',') : [] - this.ruleForm.xtfhqkFzd ? this.xtfhqkFzd = this.ruleForm.xtfhqkFzd.split(',') : [] - this.ruleForm.xtfhqkFls ? this.xtfhqkFls = this.ruleForm.xtfhqkFls.split(',') : [] + this.xtfhqkFcg = this.ruleForm.xtfhqkFcg.split(',') + this.xtfhqkFxl = this.ruleForm.xtfhqkFxl.split(',') + this.xtfhqkFzd = this.ruleForm.xtfhqkFzd.split(',') + this.xtfhqkFls = this.ruleForm.xtfhqkFls.split(',') if(this.ruleForm.xjgywxt.remark) { this.radio = this.ruleForm.xjgywxt.remark;