Browse Source

fix:预警bug

main
buaixuexideshitongxue 3 weeks ago
parent
commit
557aa60cd5
  1. 11
      src/views/warning/edit.vue

11
src/views/warning/edit.vue

@ -149,6 +149,7 @@ const warningInformFun = async () => {
} }
// //
const auditEndWarning = async () => { const auditEndWarning = async () => {
addOrUpDataFun()
await formDataRef.value.validate(); await formDataRef.value.validate();
loading.value = true; loading.value = true;
const body = { const body = {
@ -1015,7 +1016,13 @@ const isTooltipDisabled = (value, placeholder = "") => {
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<div class="flex end mt-20" v-if="!recordDisplay"> <!-- 已预警项目只显示领导审批记录和取消 -->
<div class="flex end mt-20" v-if="formData.reportProject.warningState === '1'">
<el-button type="primary" @click="getAuditTableFun">领导审批记录</el-button>
<el-button type="primary" @click="getAuditTableInformFun('end')">签收审批记录</el-button>
<el-button @click="closePage">取消</el-button>
</div>
<div class="flex end mt-20" v-else-if="!recordDisplay">
<el-button type="primary" @click="addOrUpDataFun">保存</el-button> <el-button type="primary" @click="addOrUpDataFun">保存</el-button>
<el-button type="primary" @click="getAuditTableFun">领导审批记录</el-button> <el-button type="primary" @click="getAuditTableFun">领导审批记录</el-button>
<!-- <el-button type="primary" @click="getAuditTableInformFun('end')">签收审批记录</el-button>--> <!-- <el-button type="primary" @click="getAuditTableInformFun('end')">签收审批记录</el-button>-->
@ -1027,7 +1034,7 @@ const isTooltipDisabled = (value, placeholder = "") => {
<el-button type="primary" @click="getAuditTableFun">领导审批记录</el-button> <el-button type="primary" @click="getAuditTableFun">领导审批记录</el-button>
<!-- <el-button type="primary" @click="getAuditTableInformFun('end')">签收审批记录</el-button>--> <!-- <el-button type="primary" @click="getAuditTableInformFun('end')">签收审批记录</el-button>-->
<el-button type="primary" v-if="isAudit && (codeData !='inform')" @click="passFun">通过</el-button> <el-button type="primary" v-if="isAudit && (codeData !='inform')" @click="passFun">通过</el-button>
<el-button type="primary" v-if="isAudit && (codeData =='inform')" @click="passInformFun">签收</el-button> <!-- <el-button type="primary" v-if="isAudit && (codeData =='inform')" @click="passInformFun">签收</el-button>-->
<el-button type="danger" v-if="isAudit" @click="rejectFun">驳回</el-button> <el-button type="danger" v-if="isAudit" @click="rejectFun">驳回</el-button>
<el-button @click="closePage">取消</el-button> <el-button @click="closePage">取消</el-button>
</div> </div>

Loading…
Cancel
Save