|
@@ -28,9 +28,6 @@
|
|
<template #field>
|
|
<template #field>
|
|
<el-option v-for="i in fieldList" :key="i._id" :label="i.label" :value="i.value"></el-option>
|
|
<el-option v-for="i in fieldList" :key="i._id" :label="i.label" :value="i.value"></el-option>
|
|
</template>
|
|
</template>
|
|
- <template #type>
|
|
|
|
- <el-option v-for="i in typeList" :key="i._id" :label="i.label" :value="i.value"></el-option>
|
|
|
|
- </template>
|
|
|
|
<template #attribute>
|
|
<template #attribute>
|
|
<el-option v-for="i in attributeList" :key="i._id" :label="i.label" :value="i.value"></el-option>
|
|
<el-option v-for="i in attributeList" :key="i._id" :label="i.label" :value="i.value"></el-option>
|
|
</template>
|
|
</template>
|
|
@@ -44,7 +41,7 @@
|
|
<el-option v-for="i in technologyList" :key="i._id" :label="i.label" :value="i.value"></el-option>
|
|
<el-option v-for="i in technologyList" :key="i._id" :label="i.label" :value="i.value"></el-option>
|
|
</template>
|
|
</template>
|
|
<template #area>
|
|
<template #area>
|
|
- <el-cascader v-model="form.area" :props="{ value: 'name', label: 'name' }" :options="cityList" @change="handleChange" style="width: 100%" />
|
|
|
|
|
|
+ <el-cascader v-model="form.area" :props="{ value: 'label', label: 'label' }" :options="cityList" @change="handleChange" style="width: 100%" />
|
|
</template>
|
|
</template>
|
|
<template #file>
|
|
<template #file>
|
|
<custom-upload model="file" :list="form.file" :limit="1" url="/files/web/template/upload" @change="onUpload"></custom-upload>
|
|
<custom-upload model="file" :list="form.file" :limit="1" url="/files/web/template/upload" @change="onUpload"></custom-upload>
|
|
@@ -101,7 +98,6 @@ const total = ref(20)
|
|
const isUseList = ref([])
|
|
const isUseList = ref([])
|
|
const statusList = ref([])
|
|
const statusList = ref([])
|
|
const fieldList = ref([])
|
|
const fieldList = ref([])
|
|
-const typeList = ref([])
|
|
|
|
const attributeList = ref([])
|
|
const attributeList = ref([])
|
|
const matureList = ref([])
|
|
const matureList = ref([])
|
|
const sellList = ref([])
|
|
const sellList = ref([])
|
|
@@ -114,7 +110,6 @@ const formFields = ref([
|
|
{ label: t('pages.achievement.name'), model: 'name' },
|
|
{ label: t('pages.achievement.name'), model: 'name' },
|
|
{ label: t('pages.achievement.patent'), model: 'patent' },
|
|
{ label: t('pages.achievement.patent'), model: 'patent' },
|
|
{ label: t('pages.achievement.field'), model: 'field', type: 'select' },
|
|
{ label: t('pages.achievement.field'), model: 'field', type: 'select' },
|
|
- { label: t('pages.achievement.type'), model: 'type', type: 'select' },
|
|
|
|
{ label: t('pages.achievement.attribute'), model: 'attribute', type: 'select' },
|
|
{ label: t('pages.achievement.attribute'), model: 'attribute', type: 'select' },
|
|
{ label: t('pages.achievement.mature'), model: 'mature', type: 'select' },
|
|
{ label: t('pages.achievement.mature'), model: 'mature', type: 'select' },
|
|
{ label: t('pages.achievement.sell'), model: 'sell', type: 'select' },
|
|
{ label: t('pages.achievement.sell'), model: 'sell', type: 'select' },
|
|
@@ -164,14 +159,11 @@ const searchOther = async () => {
|
|
// 属性
|
|
// 属性
|
|
result = await dictDataStore.query({ code: 'attribute', is_use: '0' })
|
|
result = await dictDataStore.query({ code: 'attribute', is_use: '0' })
|
|
if ($checkRes(result)) attributeList.value = result.data
|
|
if ($checkRes(result)) attributeList.value = result.data
|
|
- // 类型
|
|
|
|
- result = await dictDataStore.query({ code: 'type', is_use: '0' })
|
|
|
|
- if ($checkRes(result)) typeList.value = result.data
|
|
|
|
// 技术分类
|
|
// 技术分类
|
|
result = await dictDataStore.query({ code: 'technology', is_use: '0' })
|
|
result = await dictDataStore.query({ code: 'technology', is_use: '0' })
|
|
if ($checkRes(result)) technologyList.value = result.data
|
|
if ($checkRes(result)) technologyList.value = result.data
|
|
// 成果状态
|
|
// 成果状态
|
|
- result = await dictDataStore.query({ code: 'achievementStatus', is_use: '0' })
|
|
|
|
|
|
+ result = await dictDataStore.query({ code: 'demandStatus', is_use: '0' })
|
|
if ($checkRes(result)) achievementList.value = result.data
|
|
if ($checkRes(result)) achievementList.value = result.data
|
|
}
|
|
}
|
|
const search = async (query = { skip: 0, limit }) => {
|
|
const search = async (query = { skip: 0, limit }) => {
|