技术转移菜单完成并处理上传图片为数组格式

This commit is contained in:
熊丽君
2021-07-28 09:44:48 +08:00
parent c29b023448
commit 309d6e7a09
7 changed files with 328 additions and 320 deletions

View File

@ -41,7 +41,7 @@
align="center"
type="index"
></el-table-column>
<el-table-column label="需求标题" prop="name" align="center">
<el-table-column label="需求标题" prop="title" align="center">
<template slot-scope="scope">
<el-link type="primary" :underline="false">{{
scope.row.title
@ -51,37 +51,34 @@
<el-table-column
label="技术领域"
align="center"
prop="listDate"
prop="fieldName"
></el-table-column>
<el-table-column
label="需求类型"
align="center"
prop="source"
prop="typeName"
></el-table-column>
<el-table-column
label="需求企业"
align="center"
prop="source"
prop="company"
></el-table-column>
<el-table-column
label="价格"
align="center"
prop="source"
prop="price"
></el-table-column>
<el-table-column
label="发布日期"
align="center"
prop="source"
prop="createTime"
></el-table-column>
<el-table-column label="操作" align="center">
<template slot-scope="scope">
<el-button @click="handlePage(scope.row.id)" type="text" size="small"
>编辑</el-button
>
<el-button
@click="handleDelete(scope.row.id)"
type="text"
size="small"
<el-button @click="handleDelete(scope.row)" type="text" size="small"
>删除</el-button
>
</template>
@ -90,7 +87,10 @@
</div>
</template>
<script>
import { getPolicyRead, delRead } from '@/api/front/unscramble';
import {
getEnterpriseNeedList,
handleEnterpriseNeed
} from '@/api/technology/demand';
export default {
data() {
return {
@ -98,26 +98,7 @@ export default {
pageNum: 1,
pageSize: 100
},
unscrambleList: [],
// 归口选项
attributeOptions: [
{
value: 'KJJ',
label: '科技'
},
{
value: 'JXJ',
label: '经信'
},
{
value: 'FGW',
label: '发改'
},
{
value: 'qita',
label: '其他'
}
]
unscrambleList: []
};
},
methods: {
@ -126,7 +107,7 @@ export default {
this.getList();
},
getList() {
getPolicyRead(this.queryParams).then(({ data }) => {
getEnterpriseNeedList(this.queryParams).then(({ data }) => {
this.unscrambleList = data.list;
});
},
@ -135,14 +116,15 @@ export default {
this.$router.push({ path: '/technology/addDemand', query: { id } });
},
/** 删除按钮操作 */
handleDelete(id) {
handleDelete(row) {
this.$confirm('确认删除该数据?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(function() {
return delRead({ id });
row.status = -1;
return handleEnterpriseNeed(row);
})
.then(() => {
this.getList();