修改聊天对话框背景色、修改政策添加状态的编辑

This commit is contained in:
熊丽君
2021-08-24 14:15:39 +08:00
parent 370956b8ee
commit 7d155cf724
2 changed files with 16 additions and 5 deletions

View File

@ -171,6 +171,7 @@ export default {
url: process.env.VUE_APP_BASE_API + '/minio/upload', url: process.env.VUE_APP_BASE_API + '/minio/upload',
}, },
editPage: false, editPage: false,
editSatus: false,
ruleForm: { ruleForm: {
title: '', title: '',
ids: '', ids: '',
@ -239,7 +240,7 @@ export default {
submitForm(formName) { submitForm(formName) {
this.$refs[formName].validate((valid) => { this.$refs[formName].validate((valid) => {
if (valid) { if (valid) {
if (this.editPage) { if (this.editPage || this.editSatus) {
// 修改 // 修改
updatePolicy(this.ruleForm).then(({ message }) => { updatePolicy(this.ruleForm).then(({ message }) => {
this.msgSuccess(message); this.msgSuccess(message);
@ -295,6 +296,12 @@ export default {
this.editPage = true; this.editPage = true;
getPolicyInfo({ policyId: id }).then(({ data }) => { getPolicyInfo({ policyId: id }).then(({ data }) => {
this.ruleForm = data; this.ruleForm = data;
if(data.method==1){
this.editPage = true;
}else{
this.editSatus = true
this.editPage = false;
}
}); });
} }
getCityByLevel({ level: 2 }).then(({ data }) => { getCityByLevel({ level: 2 }).then(({ data }) => {

View File

@ -472,11 +472,13 @@ export default {
.con_r { .con_r {
display: inline-block; display: inline-block;
/* max-width: 253px; */ /* max-width: 253px; */
width: 55%; min-width: 220px;
max-width: 55%;
min-height: 50px; min-height: 50px;
line-height: 50px; line-height: 50px;
/* min-height: 20px; */ /* min-height: 20px; */
background-color: #e2e2e2; color: #fff;
background-color: #1890ff;
border-radius: 6px; border-radius: 6px;
padding: 0 10px; padding: 0 10px;
margin-left: 40px; margin-left: 40px;
@ -514,7 +516,7 @@ export default {
max-width: 55%; max-width: 55%;
min-height: 51px; min-height: 51px;
line-height: 51px; line-height: 51px;
background-color: #3163c5; background-color: #1890ff;
border-radius: 6px; border-radius: 6px;
padding: 0 10px; padding: 0 10px;
text-align: left; text-align: left;
@ -543,7 +545,7 @@ export default {
width: 5.875rem; width: 5.875rem;
height: 2.5rem; height: 2.5rem;
line-height: 2.5rem; line-height: 2.5rem;
background: #3163c5; background: #1890ff;
opacity: 1; opacity: 1;
border-radius: 4px; border-radius: 4px;
font-size: 10px; font-size: 10px;
@ -578,6 +580,8 @@ export default {
} }
.active { .active {
background-color: paleturquoise; background-color: paleturquoise;
background-color: #c5c4c4;
color: #fff;
} }
.famous-box { .famous-box {
display: flex; display: flex;