82f8b835 by xukangle

fix

1 parent 91ee2455
......@@ -335,6 +335,7 @@ const tableBtnClick = (scope, btn) => {
}
if (type == 'pass') {
approveSuggest.value = '';
dynamicPlaceholder.value = '请填写通过理由(必填)';
if (listingFormRef.value) {
clearFormValues(listingFormRef.value.formInline);
listingFormRef.value.ruleFormRef.clearValidate(formInfo.value.items.map(item => item.field))
......@@ -347,6 +348,7 @@ const tableBtnClick = (scope, btn) => {
}
if (type == 'reject') {
approveSuggest.value = '';
dynamicPlaceholder.value = '请填写驳回理由(必填)';
if (listingFormRef.value) {
clearFormValues(listingFormRef.value.formInline);
listingFormRef.value.ruleFormRef.clearValidate(formInfo.value.items.map(item => item.field))
......@@ -472,6 +474,7 @@ const clearFormValues = (formInline) => {
});
};
const fullscreenLoading = ref(false);
const dynamicPlaceholder = ref('请填写通过理由(必填)');
const passSubmit = () => {
let row = currTableData.value
listingFormRef.value.ruleFormRef.validate().then((valid) => {
......@@ -874,10 +877,10 @@ const formInfo = ref<any>({
<Table :tableInfo="tableInfo" @tableBtnClick="tableBtnClick" @tablePageChange="tablePageChange"
@tableSwitchBeforeChange="tableSwitchBeforeChange" />
</div>
<el-dialog v-model="dialogVisible" :title="dialogTitle" width="30%">
<el-dialog v-model="dialogVisible" :title="dialogTitle" width="510px">
<Form ref="listingFormRef" :itemList="formInfo.items" :rules="formInfo.rules" />
<el-input type="textarea" :rows="3" maxlength="100" v-model="approveSuggest" resize="none"
placeholder="请输入审批意见" />
:placeholder="dynamicPlaceholder" />
<template #footer>
<div class="dialog-footer">
<el-button @click="dialogVisible = false">取消</el-button>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!