处理企业规模多个显示问题

xuhongjie
许宏杰 7 days ago
parent 46c4dc6c39
commit 09cad209ad

@ -1,6 +1,6 @@
{ {
"name": "ruoyi", "name": "ruoyi",
"version": "1.0.202502101437", "version": "1.0.202502171515",
"description": "金鸡湖现代服务业品牌管理系统", "description": "金鸡湖现代服务业品牌管理系统",
"author": "若依", "author": "若依",
"license": "MIT", "license": "MIT",

@ -22,14 +22,13 @@
v-model="formInline.type" v-model="formInline.type"
placeholder="请选择" placeholder="请选择"
> >
<el-option label="全部" value=""> </el-option> <el-option
<el-option label="规上服务业" value="1"> </el-option> :label="item.label"
<el-option label="规上工业" value="3"> </el-option> :value="item.value"
<el-option label="总部企业" value="4"> </el-option> v-for="item in selectList"
<el-option label="生产性服务业" value="5"> </el-option> :key="item.value"
<el-option label="限上批零住餐" value="6"> </el-option> >
<el-option label="生活性服务业" value="7"> </el-option> </el-option>
<el-option label="其他" value="2"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- <el-form-item label="统一社会信用代码:" prop="enterUnit"> <!-- <el-form-item label="统一社会信用代码:" prop="enterUnit">
@ -102,13 +101,7 @@
<el-table-column label="行业名称" prop="hymc" /> <el-table-column label="行业名称" prop="hymc" />
<el-table-column label="企业规模" prop="cylx"> <el-table-column label="企业规模" prop="cylx">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ <span>{{ filterType(scope.row.type) }}</span>
scope.row.type == 1
? "规上服务业"
: scope.row.type == 2
? "其他"
: ""
}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="成立日期" prop="clrq" width="200"> <el-table-column label="成立日期" prop="clrq" width="200">
@ -230,6 +223,16 @@ export default {
dicts: ["jjh_project_type"], dicts: ["jjh_project_type"],
data() { data() {
return { return {
selectList: [
{ label: "全部", value: "0" },
{ label: "规上服务业", value: "1" },
{ label: "规上工业", value: "3" },
{ label: "总部企业", value: "4" },
{ label: "生产性服务业", value: "5" },
{ label: "限上批零住餐", value: "6" },
{ label: "生活性服务业", value: "7" },
{ label: "其他", value: "2" },
],
userType: this.$store.state.user.userType, userType: this.$store.state.user.userType,
roles: this.$store.state.user.roles, roles: this.$store.state.user.roles,
deptId: this.$store.state.user.deptId, deptId: this.$store.state.user.deptId,
@ -292,6 +295,7 @@ export default {
exportLoading: false, exportLoading: false,
}; };
}, },
mounted() { mounted() {
this.cancalDebounce(); this.cancalDebounce();
window.addEventListener("resize", this.cancalDebounce); window.addEventListener("resize", this.cancalDebounce);
@ -305,6 +309,20 @@ export default {
window.removeEventListener("resize", this.cancalDebounce); window.removeEventListener("resize", this.cancalDebounce);
}, },
methods: { methods: {
filterType(target) {
if (target) {
let list = target.split(",").map((item) => {
let index = this.selectList.findIndex((it) => it.value == item);
if (index > -1) {
item = this.selectList[index].label;
}
return item;
});
return list.toString();
} else {
return "";
}
},
// //
getList() { getList() {
this.loading = true; this.loading = true;

@ -222,6 +222,13 @@ export default {
this.activeEnterpriseView = true; this.activeEnterpriseView = true;
}, },
async ConfirmSelct() { async ConfirmSelct() {
if (this.selectList.length == 0) {
this.$message({
message: "请先勾选企业",
type: "warning",
});
return;
}
let res = await getenterpriseByName(this.selectList); let res = await getenterpriseByName(this.selectList);
this.$emit("input", res.data); this.$emit("input", res.data);
this.activeEnterpriseView = false; this.activeEnterpriseView = false;

@ -741,6 +741,7 @@ export default {
lookentErprise() { lookentErprise() {
this.viewVisible = true; this.viewVisible = true;
this.businessList = this.form.enterpriseDirectoryList; this.businessList = this.form.enterpriseDirectoryList;
this.businessTotal = this.form.enterpriseDirectoryList.length;
}, },
/** /**

@ -116,14 +116,14 @@
plain plain
:disabled="multipleSelection.length > 0 ? false : true" :disabled="multipleSelection.length > 0 ? false : true"
@click="zipDowmload" @click="zipDowmload"
>文件下载</el-button >材料下载</el-button
> >
<el-button <el-button
type="primary" type="primary"
plain plain
:disabled="multipleSelection.length > 0 ? false : true" :disabled="multipleSelection.length > 0 ? false : true"
@click="uploadXlsx" @click="uploadXlsx"
>数据统计</el-button >问卷统计</el-button
> >
</el-col> </el-col>

Loading…
Cancel
Save