bug fixed
This commit is contained in:
@ -1,7 +1,12 @@
|
||||
<!-- 企业需求弹框 -->
|
||||
<template>
|
||||
<el-dialog title="基本信息" v-model="isShow">
|
||||
<el-form ref="formRef" :model="modelValue" :label-width="labelWidth + 'px'">
|
||||
<el-form
|
||||
ref="formRef"
|
||||
:model="modelValue"
|
||||
:label-width="labelWidth + 'px'"
|
||||
disabled
|
||||
>
|
||||
<p><b>基本信息</b></p>
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
@ -23,17 +28,6 @@
|
||||
>{{ item.name }}</el-checkbox
|
||||
>
|
||||
</el-checkbox-group>
|
||||
<!-- <el-row :gutter="20">
|
||||
<el-col :span="20">
|
||||
<el-input
|
||||
v-model="checkInput"
|
||||
placeholder="请输入需求类别"
|
||||
></el-input>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-button type="primary" @click="addCheck">添加</el-button>
|
||||
</el-col>
|
||||
</el-row> -->
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@ -42,11 +36,12 @@
|
||||
<el-col :span="24">
|
||||
<el-form-item label="需求描述:" prop="introduce">
|
||||
<!-- <Editor v-model="modelValue.add" :minHeight="150" /> -->
|
||||
<wangEditor
|
||||
<WangEditor
|
||||
v-model="modelValue.introduce"
|
||||
width="100%"
|
||||
min-height="150px"
|
||||
></wangEditor>
|
||||
readOnly
|
||||
></WangEditor>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@ -59,6 +54,7 @@
|
||||
<FieldOptions
|
||||
v-model="modelValue"
|
||||
:labelWidth="labelWidth"
|
||||
disabled
|
||||
ref="fieldFormRef"
|
||||
/>
|
||||
|
||||
@ -149,6 +145,7 @@
|
||||
v-model="modelValue"
|
||||
title="想合作的单位及模式"
|
||||
placeholder=""
|
||||
disabled
|
||||
fieldKey="wants"
|
||||
ref="directionsFormRef"
|
||||
/>
|
||||
@ -156,16 +153,19 @@
|
||||
</el-row>
|
||||
</el-form>
|
||||
<el-row type="flex" justify="end">
|
||||
<el-button type="primary">驳回</el-button>
|
||||
<el-button type="primary">通过需求</el-button>
|
||||
<el-button type="primary" @click="approve('2')">驳回</el-button>
|
||||
<el-button type="primary" @click="approve('1')">通过需求</el-button>
|
||||
</el-row>
|
||||
</el-dialog>
|
||||
</template>
|
||||
<script setup>
|
||||
import { updateTechnologyDemand } from "@/api/dataApproval/enterpriseTechnologyDemand";
|
||||
import WangEditor from "@/components/WangEditor";
|
||||
import FieldOptions from "@/views/components/FieldOptions";
|
||||
import InputBoxAdd from "@/views/components/InputBoxAdd";
|
||||
import { ElMessage } from "element-plus";
|
||||
import { ref, toRefs } from "vue";
|
||||
const emit = defineEmits(["update-list"]);
|
||||
const props = defineProps({
|
||||
isShow: {
|
||||
type: Boolean,
|
||||
@ -196,5 +196,12 @@ const checkList = reactive([
|
||||
name: "上市辅导",
|
||||
},
|
||||
]);
|
||||
const approve = async (status) => {
|
||||
let title = status == 1 ? "通过" : "驳回";
|
||||
await updateTechnologyDemand({ id: modelValue.value.id, status });
|
||||
ElMessage.success(`已${title}需求`);
|
||||
emit("update:is-show", false);
|
||||
emit("update-list");
|
||||
};
|
||||
</script>
|
||||
<style></style>
|
||||
|
||||
Reference in New Issue
Block a user