From cc1c0a396698648256c350f6f0fe2cb2f0b02c7e Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Wed, 27 Mar 2024 15:44:10 +0800
Subject: [PATCH] 许可按钮放出,备案审批按钮放出
---
src/views/securityUnitOperation/economicTable.vue | 117 +++++++++++++++++++++++++++++-----------------------------
1 files changed, 58 insertions(+), 59 deletions(-)
diff --git a/src/views/securityUnitOperation/economicTable.vue b/src/views/securityUnitOperation/economicTable.vue
index 9ca75a8..816d370 100644
--- a/src/views/securityUnitOperation/economicTable.vue
+++ b/src/views/securityUnitOperation/economicTable.vue
@@ -1,6 +1,12 @@
<template>
- <basic-container>
+ <basic-container
+ :class="[
+ $store.state.control.screenSize == 1366 ? 'smallSize' : 'normalSize',
+ $store.state.control.windowWidth >= 1024 ? 'tooRowSearch1' : '',
+ ]"
+ >
<avue-crud
+ class="tablesss smileTableFromSize"
:option="tableOption"
:table-loading="loading"
:data="tableData"
@@ -23,7 +29,7 @@
import XLSX from "xlsx";
import { mapGetters } from "vuex";
import { selectJj } from "../../api/securityUnitOperation/securityUnitOperation";
-import { lazyTreeJu } from "../../api/index/index";
+import { lazyTreeJu, lazyTrees } from "../../api/index/index";
export default {
name: "公司经济情况智能分析详情表",
data() {
@@ -31,9 +37,10 @@
page: {
pageSize: 10,
currentPage: 1,
- total: 0
+ total: 0,
+ ...this.$store.state.control.changePageSize,
},
- query:{},
+ query: {},
value1: "",
value2: "",
tableData: [
@@ -84,8 +91,10 @@
searchShow: true,
searchMenuSpan: 6,
index: true,
+ indexLabel: "序号",
viewBtn: true,
dialogClickModal: false,
+ ...this.$store.state.control.clearOtherBut,
column: [
// {
// label: "类别",
@@ -137,7 +146,8 @@
prop: "enterpriseName",
search: true,
searchSpan: 4,
- display: false
+ width: 300,
+ display: false,
},
{
label: "所属辖区",
@@ -146,7 +156,7 @@
type: "tree",
props: {
label: "title",
- value: "id"
+ value: "id",
},
// cascaderItem: ["city", "area"],
// dicUrl:subofficeOptions,
@@ -156,9 +166,9 @@
{
required: true,
message: "请选择所属辖区",
- trigger: "blur"
- }
- ]
+ trigger: "blur",
+ },
+ ],
},
// {
// label: "时间",
@@ -174,78 +184,62 @@
{
label: "社保缴纳人数",
prop: "sbnum",
- display: false
+ display: false,
},
{
label: "社保缴纳总额(万)",
prop: "sbcount",
- display: false
+ display: false,
+ formatter: function (row, value) {
+ return (value = value / 10000);
+ },
},
{
label: "公司派遣人数",
prop: "pcnum",
- display: false
+ display: false,
},
{
- label: "社保缴纳人数占比(%)",
+ label: "社保缴纳人数占比",
prop: "zb",
- display: false
+ display: false,
+ formatter: function (row, value) {
+ return (value = value * 100 + "%");
+ },
},
{
label: "备注",
prop: "bz",
- display: false
- }
- ]
+ display: false,
+ },
+ ],
},
typeValue: "0",
typeOptions: [
{
value: "0",
- label: "全部"
+ label: "全部",
},
{
value: "1",
- label: "社保缴纳人数"
+ label: "社保缴纳人数",
},
{
value: "2",
- label: "社保缴纳总额"
+ label: "社保缴纳总额",
},
{
value: "3",
- label: "公司派遣人数"
+ label: "公司派遣人数",
},
{
value: "4",
- label: "社保缴纳人数占比"
- }
+ label: "社保缴纳人数占比",
+ },
],
subofficeValue: "0",
- subofficeOptions: [
- {
- value: "0",
- label: "南昌市公安局"
- },
- {
- value: "2",
- label: "东湖分局"
- },
- {
- value: "3",
- label: "西湖分局"
- },
- {
- value: "4",
- label: "青云谱分局"
- },
- {
- value: "5",
- label: "青山湖分局"
- }
- ],
companyName: "",
- loading: true
+ loading: true,
};
},
computed: {
@@ -255,9 +249,9 @@
addBtn: this.vaildData(this.permission.post_add, false),
viewBtn: this.vaildData(this.permission.post_view, false),
delBtn: this.vaildData(this.permission.post_delete, false),
- editBtn: this.vaildData(this.permission.post_edit, false)
+ editBtn: this.vaildData(this.permission.post_edit, false),
};
- }
+ },
},
methods: {
rowSave(row, done, loading) {
@@ -266,11 +260,11 @@
this.onLoad(this.page);
this.$message({
type: "success",
- message: "操作成功!"
+ message: "操作成功!",
});
done();
},
- error => {
+ (error) => {
window.console.log(error);
loading();
}
@@ -282,11 +276,11 @@
this.onLoad(this.page);
this.$message({
type: "success",
- message: "操作成功!"
+ message: "操作成功!",
});
done();
},
- error => {
+ (error) => {
window.console.log(error);
loading();
}
@@ -321,17 +315,18 @@
param["enterpriseName"] = params["enterpriseName"] || "";
param["current"] = page.currentPage;
param["size"] = page.pageSize;
- selectJj(param).then(res => {
+ selectJj(param).then((res) => {
const data = res.data.data;
this.page.total = data.total;
this.tableData = data.records;
+ this.$store.commit("setWindowSizeHeightAdd");
this.loading = false;
});
},
getSubOfficeData() {
- lazyTreeJu().then(res => {
+ lazyTrees().then((res) => {
if (res.data.code === 200) {
- this.tableOption.column.forEach(item => {
+ this.tableOption.column.forEach((item) => {
if (item.label == "所属辖区") {
item.dicData = res.data.data;
}
@@ -351,14 +346,18 @@
}
let jurisdiction = object["jurisdiction1"] || "";
let enterpriseName = object["enterpriseName"] || "";
- let obj = { jurisdiction: jurisdiction, enterpriseName: enterpriseName };
- this.onLoad(this.page, obj);
- }
+ this.query = {
+ jurisdiction: jurisdiction,
+ enterpriseName: enterpriseName,
+ };
+ this.onLoad(this.page, this.query);
+ },
},
mounted() {
this.getLocationParams();
this.getSubOfficeData();
- }
+ this.$store.commit("setWindowSizeHeightAdd");
+ },
};
</script>
<style lang="scss" scoped>
--
Gitblit v1.9.3