bug fixed
This commit is contained in:
@ -120,6 +120,7 @@ import {
|
||||
// import CityOptions from "@/views/components/CityOptions";
|
||||
import { ElMessage } from "element-plus";
|
||||
import { onActivated } from "vue";
|
||||
import { demandCategoryList } from "@/utils/parameter";
|
||||
// import { onActivated } from "vue";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
|
||||
@ -154,24 +155,7 @@ const data = reactive({
|
||||
const { form, rules } = toRefs(data);
|
||||
|
||||
const labelWidth = 140;
|
||||
const checkList = reactive([
|
||||
{
|
||||
id: 1,
|
||||
name: "成果推广",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
name: "关键成果解决",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
name: "对接专家院士",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
name: "上市辅导",
|
||||
},
|
||||
]);
|
||||
const checkList = reactive([...demandCategoryList]);
|
||||
const checkInput = ref("");
|
||||
// const cityFormRef = ref();
|
||||
const formRef = ref();
|
||||
@ -215,6 +199,8 @@ function addCheck() {
|
||||
onMounted(() => {
|
||||
formRef.value.resetFields();
|
||||
if (route.query.id) {
|
||||
const obj = Object.assign({}, route, { title: "修改服务需求" });
|
||||
tab.updatePage(obj);
|
||||
getDemand({ id: route.query.id }).then((resp) => {
|
||||
if (resp.data.kinds) {
|
||||
resp.data.kinds.forEach((el, index) => {
|
||||
|
@ -310,19 +310,19 @@ const submitForm = async (status) => {
|
||||
// }
|
||||
// });
|
||||
};
|
||||
function addCheck() {
|
||||
if (!checkInput.value.trim().length) return proxy.$modal.msgError("请输入");
|
||||
const flag = checkList.some((item) => {
|
||||
return item.name.trim() == checkInput.value.trim();
|
||||
});
|
||||
if (!flag) {
|
||||
checkList.push({
|
||||
id: checkList.length + 1,
|
||||
name: checkInput.value,
|
||||
});
|
||||
checkInput.value = "";
|
||||
}
|
||||
}
|
||||
// function addCheck() {
|
||||
// if (!checkInput.value.trim().length) return proxy.$modal.msgError("请输入");
|
||||
// const flag = checkList.some((item) => {
|
||||
// return item.name.trim() == checkInput.value.trim();
|
||||
// });
|
||||
// if (!flag) {
|
||||
// checkList.push({
|
||||
// id: checkList.length + 1,
|
||||
// name: checkInput.value,
|
||||
// });
|
||||
// checkInput.value = "";
|
||||
// }
|
||||
// }
|
||||
// 返回技术需求列表
|
||||
const backToList = () => {
|
||||
tab.closeOpenPage({ path: "/demand/technology" });
|
||||
@ -332,6 +332,8 @@ onMounted(() => {
|
||||
formRef.value.resetFields();
|
||||
|
||||
if (route.query.id) {
|
||||
const obj = Object.assign({}, route, { title: "修改技术需求" });
|
||||
tab.updatePage(obj);
|
||||
getTechnologyDemand({ id: route.query.id }).then((resp) => {
|
||||
form.value = resp.data;
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
<el-radio-button label="5">专家</el-radio-button>
|
||||
<!-- <el-radio-button label="6">服务需求</el-radio-button> -->
|
||||
<!-- <el-radio-button label="7">技术需求</el-radio-button> -->
|
||||
<!-- <el-radio-button label="4">实验室</el-radio-button> -->
|
||||
<el-radio-button label="8">实验室</el-radio-button>
|
||||
</el-radio-group>
|
||||
|
||||
<div v-if="dataList.length" style="margin-top: 20px" v-loading="loading">
|
||||
@ -79,6 +79,7 @@ const loading = ref(true);
|
||||
const total = ref(0);
|
||||
|
||||
const queryType = computed(() => {
|
||||
console.log(queryParams.value.searchType);
|
||||
if (queryParams.value.searchType == 1) {
|
||||
return 2;
|
||||
} else if (queryParams.value.searchType == 2) {
|
||||
@ -87,9 +88,9 @@ const queryType = computed(() => {
|
||||
return 2;
|
||||
} else if (queryParams.value.searchType == 5) {
|
||||
return 2;
|
||||
} else if (queryParams.value.searchType == 8) {
|
||||
return 2;
|
||||
}
|
||||
// else if (queryParams.value.searchType == 6) {
|
||||
// return 1;
|
||||
// } else if (queryParams.value.searchType == 7) {
|
||||
// return 1;
|
||||
// }
|
||||
|
Reference in New Issue
Block a user