82f8b835 by xukangle

fix

1 parent 91ee2455
...@@ -335,6 +335,7 @@ const tableBtnClick = (scope, btn) => { ...@@ -335,6 +335,7 @@ const tableBtnClick = (scope, btn) => {
335 } 335 }
336 if (type == 'pass') { 336 if (type == 'pass') {
337 approveSuggest.value = ''; 337 approveSuggest.value = '';
338 dynamicPlaceholder.value = '请填写通过理由(必填)';
338 if (listingFormRef.value) { 339 if (listingFormRef.value) {
339 clearFormValues(listingFormRef.value.formInline); 340 clearFormValues(listingFormRef.value.formInline);
340 listingFormRef.value.ruleFormRef.clearValidate(formInfo.value.items.map(item => item.field)) 341 listingFormRef.value.ruleFormRef.clearValidate(formInfo.value.items.map(item => item.field))
...@@ -347,6 +348,7 @@ const tableBtnClick = (scope, btn) => { ...@@ -347,6 +348,7 @@ const tableBtnClick = (scope, btn) => {
347 } 348 }
348 if (type == 'reject') { 349 if (type == 'reject') {
349 approveSuggest.value = ''; 350 approveSuggest.value = '';
351 dynamicPlaceholder.value = '请填写驳回理由(必填)';
350 if (listingFormRef.value) { 352 if (listingFormRef.value) {
351 clearFormValues(listingFormRef.value.formInline); 353 clearFormValues(listingFormRef.value.formInline);
352 listingFormRef.value.ruleFormRef.clearValidate(formInfo.value.items.map(item => item.field)) 354 listingFormRef.value.ruleFormRef.clearValidate(formInfo.value.items.map(item => item.field))
...@@ -472,6 +474,7 @@ const clearFormValues = (formInline) => { ...@@ -472,6 +474,7 @@ const clearFormValues = (formInline) => {
472 }); 474 });
473 }; 475 };
474 const fullscreenLoading = ref(false); 476 const fullscreenLoading = ref(false);
477 const dynamicPlaceholder = ref('请填写通过理由(必填)');
475 const passSubmit = () => { 478 const passSubmit = () => {
476 let row = currTableData.value 479 let row = currTableData.value
477 listingFormRef.value.ruleFormRef.validate().then((valid) => { 480 listingFormRef.value.ruleFormRef.validate().then((valid) => {
...@@ -874,10 +877,10 @@ const formInfo = ref<any>({ ...@@ -874,10 +877,10 @@ const formInfo = ref<any>({
874 <Table :tableInfo="tableInfo" @tableBtnClick="tableBtnClick" @tablePageChange="tablePageChange" 877 <Table :tableInfo="tableInfo" @tableBtnClick="tableBtnClick" @tablePageChange="tablePageChange"
875 @tableSwitchBeforeChange="tableSwitchBeforeChange" /> 878 @tableSwitchBeforeChange="tableSwitchBeforeChange" />
876 </div> 879 </div>
877 <el-dialog v-model="dialogVisible" :title="dialogTitle" width="30%"> 880 <el-dialog v-model="dialogVisible" :title="dialogTitle" width="510px">
878 <Form ref="listingFormRef" :itemList="formInfo.items" :rules="formInfo.rules" /> 881 <Form ref="listingFormRef" :itemList="formInfo.items" :rules="formInfo.rules" />
879 <el-input type="textarea" :rows="3" maxlength="100" v-model="approveSuggest" resize="none" 882 <el-input type="textarea" :rows="3" maxlength="100" v-model="approveSuggest" resize="none"
880 placeholder="请输入审批意见" /> 883 :placeholder="dynamicPlaceholder" />
881 <template #footer> 884 <template #footer>
882 <div class="dialog-footer"> 885 <div class="dialog-footer">
883 <el-button @click="dialogVisible = false">取消</el-button> 886 <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!