|
|
|
@ -31,16 +31,16 @@
|
|
|
|
|
<el-col :span="3">
|
|
|
|
|
<el-form-item label="更新时间" prop="updateTime">
|
|
|
|
|
<el-date-picker v-model="queryParams.startTime" type="datetime" format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss" :style="{ width: '18rem' }" placeholder="选择日期时间" clearable />
|
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss" :style="{ width: '18rem' }" placeholder="选择日期时间"
|
|
|
|
|
clearable />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item style="margin-left: -70px;">
|
|
|
|
|
<el-button type="primary" icon="el-icon-search"
|
|
|
|
|
@click="handleQuery">查询</el-button>
|
|
|
|
|
<el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="handleQuery">查询</el-button>
|
|
|
|
|
<el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
@ -52,17 +52,15 @@
|
|
|
|
|
<div class="tablebtntwo">
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button type="primary" icon="el-icon-plus" @click="handleAdd">新增</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-plus" @click="handleAdd">新增</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button type="primary" icon="el-icon-download"
|
|
|
|
|
@click="handleImport">导入</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-download" @click="handleImport">导入</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button type="primary" icon="el-icon-upload2"
|
|
|
|
|
@click="handleExport">全量导出</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-upload2" @click="handleExport">全量导出</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</div>
|
|
|
|
@ -75,23 +73,22 @@
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="产业类别" align="center" prop="cylb">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ cylbMap[scope.row.cylb] || scope.row.cylb }}
|
|
|
|
|
<dict-tag :options="dict.type.cylb" :value="scope.row.cylb" />
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="产业细分" align="center" prop="cyxf" />
|
|
|
|
|
<el-table-column label="原材料及生产环节" align="center" prop="ycljschj" />
|
|
|
|
|
<el-table-column label="上楼适应性" align="center" prop="slsyx">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ slsyxMap[scope.row.slsyx] || scope.row.slsyx }}
|
|
|
|
|
<dict-tag :options="dict.type.slsyx" :value="scope.row.slsyx" />
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="更新时间" align="center" prop="updateTime" width="180" />
|
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
|
|
<el-button type="text" @click="handleUpdate(scope.row)">编辑</el-button>
|
|
|
|
|
<el-button type="text" @click="handleDelete(scope.row)"
|
|
|
|
|
style="color: red;">删除</el-button>
|
|
|
|
|
<el-button type="text" @click="handleUpdate(scope.row)">编辑</el-button>
|
|
|
|
|
<el-button type="text" @click="handleDelete(scope.row)" style="color: red;">删除</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
@ -105,7 +102,7 @@
|
|
|
|
|
<el-form-item label="产业类别" prop="cylb" style="width: 100%;">
|
|
|
|
|
<el-select v-model="form.cylb" placeholder="请选择产业类别" style="width: 100%;">
|
|
|
|
|
<el-option v-for="dict in dict.type.cylb" :key="dict.value" :label="dict.label"
|
|
|
|
|
:value="parseInt(dict.value)"></el-option>
|
|
|
|
|
:value="dict.value"></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="产业细分" prop="cyxf">
|
|
|
|
@ -195,8 +192,8 @@ export default {
|
|
|
|
|
cylb: undefined,
|
|
|
|
|
ycljschj: undefined,
|
|
|
|
|
slsyx: undefined,
|
|
|
|
|
endTime:undefined,
|
|
|
|
|
startTime:undefined
|
|
|
|
|
endTime: undefined,
|
|
|
|
|
startTime: undefined
|
|
|
|
|
},
|
|
|
|
|
// 表单校验
|
|
|
|
|
rules: {
|
|
|
|
@ -213,20 +210,6 @@ export default {
|
|
|
|
|
{ required: true, message: "原材料及生产环节不能为空", trigger: "change" }
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
// 产业类别映射
|
|
|
|
|
cylbMap: {
|
|
|
|
|
1: "新一代信息技术",
|
|
|
|
|
2: "高端装备制造",
|
|
|
|
|
3: "生物医药及大健康",
|
|
|
|
|
4: "纳米技术应用及新材料",
|
|
|
|
|
5: "人工智能及数字产业",
|
|
|
|
|
6: "新能源及绿色产业"
|
|
|
|
|
},
|
|
|
|
|
//上楼适应性映射
|
|
|
|
|
slsyxMap: {
|
|
|
|
|
1: '能上楼',
|
|
|
|
|
2: '低楼层'
|
|
|
|
|
},
|
|
|
|
|
upload: {
|
|
|
|
|
// 是否显示弹出层(用户导入)
|
|
|
|
|
open: false,
|
|
|
|
|