From 7d155cf7244a01fcd299559a272ed21861e1a919 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=86=8A=E4=B8=BD=E5=90=9B?= <664953382@qq.com> Date: Tue, 24 Aug 2021 14:15:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=81=8A=E5=A4=A9=E5=AF=B9?= =?UTF-8?q?=E8=AF=9D=E6=A1=86=E8=83=8C=E6=99=AF=E8=89=B2=E3=80=81=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=94=BF=E7=AD=96=E6=B7=BB=E5=8A=A0=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E7=9A=84=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/policy/library/add.vue | 9 ++++++++- src/views/service/index.vue | 12 ++++++++---- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/src/views/policy/library/add.vue b/src/views/policy/library/add.vue index c3963b3..1378c3e 100644 --- a/src/views/policy/library/add.vue +++ b/src/views/policy/library/add.vue @@ -171,6 +171,7 @@ export default { url: process.env.VUE_APP_BASE_API + '/minio/upload', }, editPage: false, + editSatus: false, ruleForm: { title: '', ids: '', @@ -239,7 +240,7 @@ export default { submitForm(formName) { this.$refs[formName].validate((valid) => { if (valid) { - if (this.editPage) { + if (this.editPage || this.editSatus) { // 修改 updatePolicy(this.ruleForm).then(({ message }) => { this.msgSuccess(message); @@ -295,6 +296,12 @@ export default { this.editPage = true; getPolicyInfo({ policyId: id }).then(({ data }) => { this.ruleForm = data; + if(data.method==1){ + this.editPage = true; + }else{ + this.editSatus = true + this.editPage = false; + } }); } getCityByLevel({ level: 2 }).then(({ data }) => { diff --git a/src/views/service/index.vue b/src/views/service/index.vue index 7ef7192..4477d42 100644 --- a/src/views/service/index.vue +++ b/src/views/service/index.vue @@ -472,11 +472,13 @@ export default { .con_r { display: inline-block; /* max-width: 253px; */ - width: 55%; + min-width: 220px; + max-width: 55%; min-height: 50px; line-height: 50px; /* min-height: 20px; */ - background-color: #e2e2e2; + color: #fff; + background-color: #1890ff; border-radius: 6px; padding: 0 10px; margin-left: 40px; @@ -514,7 +516,7 @@ export default { max-width: 55%; min-height: 51px; line-height: 51px; - background-color: #3163c5; + background-color: #1890ff; border-radius: 6px; padding: 0 10px; text-align: left; @@ -543,7 +545,7 @@ export default { width: 5.875rem; height: 2.5rem; line-height: 2.5rem; - background: #3163c5; + background: #1890ff; opacity: 1; border-radius: 4px; font-size: 10px; @@ -578,6 +580,8 @@ export default { } .active { background-color: paleturquoise; + background-color: #c5c4c4; + color: #fff; } .famous-box { display: flex;