审核通过拒绝校验

This commit is contained in:
熊丽君
2022-01-28 16:59:58 +08:00
parent 5826155825
commit 54b1c8b55c
2 changed files with 6 additions and 2 deletions

View File

@ -59,13 +59,15 @@ export default {
const str =
status == 2
? "<span style='color:green'>通过</span>"
: "<span style='color:red'>拒绝</span>";
: "<span class='el-message-box__errormsg'>拒绝</span>";
this.$prompt(`您将 ${str} 该数据审核,请输入处理备注`, "审核", {
dangerouslyUseHTMLString: true,
confirmButtonText: "确定",
cancelButtonText: "取消",
closeOnClickModal: false,
inputType: "textarea",
inputPattern: status == 2 ? "" : /^.{1,30}$/,
inputErrorMessage: "请输入拒绝原因",
})
.then(({ value }) => {
companyEdit(this.form).then((res) => {

View File

@ -48,13 +48,15 @@ export default {
const str =
status == 2
? "<span style='color:green'>通过</span>"
: "<span style='color:red'>拒绝</span>";
: "<span class='el-message-box__errormsg'>拒绝</span>";
this.$prompt(`您将 ${str} 该数据审核,请输入处理备注`, "审核", {
dangerouslyUseHTMLString: true,
confirmButtonText: "确定",
cancelButtonText: "取消",
closeOnClickModal: false,
inputType: "textarea",
inputPattern: status == 2 ? "" : /^.{1,30}$/,
inputErrorMessage: "请输入拒绝原因",
})
.then(({ value }) => {
expertEdit(this.form).then((res) => {