bug fixed
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
<div class="app-container">
|
||||
<div style="width: 50%">
|
||||
<ExpertForm
|
||||
:isAdd="false"
|
||||
v-model="form"
|
||||
:showTitle="true"
|
||||
:formType="formType"
|
||||
@ -9,13 +10,16 @@
|
||||
ref="expertFormRef"
|
||||
/>
|
||||
</div>
|
||||
<el-button @click="submitForm('2')">审批拒绝</el-button>
|
||||
<el-button type="primary" @click="submitForm('1')">审批通过</el-button>
|
||||
|
||||
<div :style="{ marginLeft: 140 + 'px' }">
|
||||
<el-button @click="submitForm('2')">审核拒绝</el-button>
|
||||
<el-button type="primary" @click="submitForm('1')">通过审核</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup name="EnterpriseAdd">
|
||||
import ExpertForm from "@/views/components/ExpertForm/indexcopy.vue";
|
||||
import ExpertForm from "@/views/components/ExpertForm/index.vue";
|
||||
import tab from "@/plugins/tab";
|
||||
import {
|
||||
companyAdd,
|
||||
@ -48,7 +52,7 @@ const data = reactive({
|
||||
directions: [],
|
||||
introduce: undefined,
|
||||
license: undefined,
|
||||
examineStatus:''
|
||||
examineStatus: "",
|
||||
},
|
||||
});
|
||||
const { form } = toRefs(data);
|
||||
@ -60,7 +64,7 @@ const submitForm = async (state) => {
|
||||
const valid = await expertFormRef.value.validateForm();
|
||||
if (valid) {
|
||||
if (form.value.id != undefined) {
|
||||
form.value.examineStatus=state
|
||||
form.value.examineStatus = state;
|
||||
await companyEdit(form.value);
|
||||
cancel();
|
||||
ElMessage.success("修改成功");
|
||||
|
Reference in New Issue
Block a user