字典更改

main
严飞永 1 week ago
parent 7798f28623
commit 30701a689b

@ -48,10 +48,10 @@
<template slot-scope="scope">
<a v-if="scope.row.lx === '3'" :href="scope.row.wz" target="_blank"
style="color: #409EFF; text-decoration: underline;">
{{ fileTypeMap[scope.row.lx] || scope.row.lx }}
<dict-tag :options="dict.type.wjlx" :value="scope.row.lx" />
</a>
<span v-else>
{{ fileTypeMap[scope.row.lx] || scope.row.lx }}
<dict-tag :options="dict.type.wjlx" :value="scope.row.lx" />
</span>
</template>
</el-table-column>
@ -105,7 +105,7 @@
<el-date-picker v-model="form.scsj" type="date" placeholder="选择日期" value-format="yyyy-MM-dd"
style="width: 100%;" />
</el-form-item>
<el-form-item v-if="form.lx !== '3'" label="附件" prop="fj" required :message="文件名称不能为空">
<el-form-item v-if="form.lx !== '3'" label="附件" prop="fj">
<fileload v-model="form.fj"></fileload>
</el-form-item>
<el-form-item v-if="form.lx === '3'" label="附件" prop="fj">
@ -261,16 +261,16 @@ export default {
{ required: true, message: "上传时间不能为空", trigger: "change" }
],
fj: [
{ required: true, message: "附件不能为空", trigger: "blur" }
{ required: true, message: "附件不能为空", trigger: "blur" }
]
},
//
fileTypeMap: {
1: "政策文件",
2: "研究报告",
3: "网络信息",
4: "其他",
},
// fileTypeMap: {
// 1: "",
// 2: "",
// 3: "",
// 4: "",
// },
select: 'http', //
//
upload: {
@ -358,7 +358,7 @@ export default {
updateId: undefined,
updateTime: undefined
};
this.select = 'http'; //
this.select = 'https'; //
this.resetForm("form");
},
/** 搜索按钮操作 */
@ -389,6 +389,9 @@ export default {
const catalogId = row.id;
this.form = { ...row };
this.setProtocolType(this.form.wz); //
this.$nextTick(() => {
this.handleTypeChange(); // DOM
});
this.open = true;
this.title = "修改项目知识库";
},
@ -417,7 +420,8 @@ export default {
/** 删除按钮操作 */
handleDelete(row) {
const catalogIds = row.id || this.ids;
this.$modal.confirm('是否确认删除项目知识库编号为"' + catalogIds + '"的数据项?').then(() => {
const getFileName = row.name; // pjys
this.$modal.confirm(`是否确认删除"${getFileName}"的数据项?`).then(() => {
return deleteXmzsk([catalogIds]);
}).then(() => {
this.getList();
@ -468,6 +472,8 @@ export default {
// fj
this.rules.fj[0].required = false;
}
//
this.$refs.form.clearValidate('fj');
},
/**导出 */

@ -1,4 +1,5 @@
<template>
<!-- 标签管理 -->
<div class="descriptionsdivtwo">
<div class="tablehead">
<div class="headleft">
@ -13,9 +14,9 @@
<!-- 按照type分组显示 -->
<div class="type-group" v-for="group in groupedTags" :key="group.type">
<div class="group-title" @click="toggleGroup(group.type)">
<div>
<div style="display: flex; align-items: center;gap: .5rem;">
<i :class="isGroupOpen(group.type) ? 'el-icon-arrow-up' : 'el-icon-arrow-down'"></i>
{{ TypeMap[group.type] }}
<dict-tag :options="dict.type.bqlx" :value="group.type" />
</div>
<div v-if="(action === 'fill' || !action || action === 'okay') && checkRole(['admin', 'common'])">
<el-button size="mini" type="text" icon="el-icon-delete" style="color: #F25353;"
@ -115,15 +116,6 @@ export default {
type: [{ required: true, message: '请选择标签类型', trigger: 'change' }],
name: [{ required: true, message: '请输入标签名称', trigger: 'blur' }]
},
TypeMap: {
1: "新一代信息技术",
2: "高端装备制造",
3: "生物医药及大健康",
4: "纳米技术应用及新材料",
5: "人工智能及数字产业",
6: "新能源及绿色产业"
},
openGroups: []
}
},

@ -83,7 +83,7 @@
<el-table-column label="项目名称" align="center" prop="name" width="200" />
<el-table-column label="现状分类" align="center" prop="xzfl">
<template slot-scope="scope">
<span>{{ xzflMap[scope.row.xzfl] }}</span>
<dict-tag :options="dict.type.xzfl" :value="scope.row.xzfl" />
</template>
</el-table-column>
<el-table-column label="项目法人单位" align="center" prop="xmfrdwxz" width="200" />
@ -151,11 +151,11 @@ export default {
2: '待审核',
3: '审核通过'
},
xzflMap: {
1: '已建',
2: '在建',
3: '拟建'
},
// xzflMap: {
// 1: '',
// 2: '',
// 3: ''
// },
//
queryParams: {
current: 1,

@ -41,9 +41,8 @@
<el-row>
<el-col :span="8">
<el-form-item>
<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>
@ -75,27 +74,23 @@
<div class="tablebtntwo">
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
@click="handleExport"
>全量导出</el-button>
<el-button type="primary" @click="handleExport"></el-button>
</el-col>
<el-col :span="1.5">
<el-button type="primary"
@click="handleExporttwo">
<el-button type="primary" @click="handleExporttwo">
单片材料导出
</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="importTemplate" >下载模板</el-button>
<el-button type="primary" icon="el-icon-download" @click="importTemplate"></el-button>
</el-col>
<el-col :span="1.5">
<el-button type="primary" @click="handleImport"></el-button>
<el-button type="primary" @click="handleImport"></el-button>
</el-col>
</el-row>
</div>
<el-table v-loading="loading" :data="postList" @selection-change="handleSelectionChange" stripe>
<el-table-column type="selection" width="55" align="center" />
@ -107,7 +102,7 @@
<el-table-column label="项目名称" align="center" prop="name" width="200" />
<el-table-column label="现状分类" align="center" prop="xzfl">
<template slot-scope="scope">
<span>{{ xzflMap[scope.row.xzfl] }}</span>
<dict-tag :options="dict.type.xzfl" :value="scope.row.xzfl" />
</template>
</el-table-column>
<el-table-column label="项目法人单位" align="center" prop="xmfrdwxz" width="200" />
@ -127,14 +122,13 @@
</el-table-column>
<el-table-column label="操作" align="center" fixed="right" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button type="text" @click="getAdd(scope.row, 'fill')"
<el-button type="text" @click="getAdd(scope.row, 'fill')"
v-if="statusMap[scope.row.status] === '待审核'">审核</el-button>
<el-button type="text" @click="getAdd(scope.row, 'okay')"
<el-button type="text" @click="getAdd(scope.row, 'okay')"
v-if="statusMap[scope.row.status] === '审核通过'">编辑</el-button>
<el-button type="text" @click="getAdd(scope.row, 'detail')"
<el-button type="text" @click="getAdd(scope.row, 'detail')"
v-if="statusMap[scope.row.status] === '待填报'">详情</el-button>
<el-button type="text" @click="handleDelete(scope.row)"
style="color: #F25353;">删除</el-button>
<el-button type="text" @click="handleDelete(scope.row)" style="color: #F25353;">删除</el-button>
</template>
</el-table-column>
</el-table>
@ -179,11 +173,11 @@ export default {
2: '待审核',
3: '审核通过'
},
xzflMap: {
1: '已建',
2: '在建',
3: '拟建'
},
// xzflMap: {
// 1: '',
// 2: '',
// 3: ''
// },
//
queryParams: {
current: 1,
@ -362,10 +356,11 @@ export default {
};
</script>
<style scoped>
.headtitle{
.headtitle {
font-size: 1.25rem;
font-weight: 400;
}
.headerbox {
background-color: #fff;
border-radius: .5rem;

@ -75,8 +75,8 @@
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button type="text" @click="handleInfo(scope.row, 'detail')">详情</el-button>
<el-button type="text" style="color: #F25353;" v-if="checkRole(['admin'])"
@click="handleDelete(scope.row)">删除</el-button>
<!-- <el-button type="text" style="color: #F25353;" v-if="checkRole(['admin'])"
@click="handleDelete(scope.row)">删除</el-button> -->
</template>
</el-table-column>
</el-table>

@ -61,7 +61,7 @@
<el-table-column label="项目名称" align="center" prop="name" width="200" />
<el-table-column label="现状分类" align="center" prop="xzfl">
<template slot-scope="scope">
<span>{{ xzflMap[scope.row.xzfl] }}</span>
<dict-tag :options="dict.type.xzfl" :value="scope.row.xzfl" />
</template>
</el-table-column>
<el-table-column label="项目法人单位" align="center" prop="xmfrdwxz" width="200" />
@ -126,11 +126,6 @@ export default {
2: '待审核',
3: '审核通过'
},
xzflMap: {
1: '已建',
2: '在建',
3: '拟建'
},
//
queryParams: {
current: 1,

@ -34,8 +34,8 @@
<el-row>
<el-col :span="8">
<el-form-item style="margin-left: -100px;">
<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>
@ -48,15 +48,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>
@ -69,7 +69,7 @@
</el-table-column>
<el-table-column label="上楼目录类别" align="center">
<template slot-scope="scope">
{{ fileTypeMap[scope.row.slmllb] || scope.row.slmllb }}
<dict-tag :options="dict.type.shangloumulu" :value="scope.row.slmllb" />
</template>
</el-table-column>
<el-table-column label="工业大类" align="center" prop="gydl" />
@ -77,8 +77,8 @@
<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>
@ -193,10 +193,10 @@ export default {
],
},
//
fileTypeMap: {
1: "重点鼓励上楼",
2: "有条件上楼",
},
// fileTypeMap: {
// 1: "",
// 2: "",
// },
//
upload: {
//

@ -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,

Loading…
Cancel
Save