省重点年份,默认年份

main
laozt 1 year ago
parent 2b8e320d5a
commit 5ce3575b98

@ -1,8 +1,8 @@
### ###
# @Author: 张涛 # @Author: 张涛
# @Date: 2023-07-18 13:04:50 # @Date: 2023-07-18 13:04:50
# @LastEditors: 张涛 # @LastEditors: laozt 2721205210@qq.com
# @LastEditTime: 2023-10-27 14:12:24 # @LastEditTime: 2023-12-08 10:32:08
# @FilePath: \suzhouyingjiPC\.env.development # @FilePath: \suzhouyingjiPC\.env.development
### ###
# 页面标题 # 页面标题
@ -13,7 +13,7 @@ ENV = 'development'
# 苏州应急执法计划管理系统/开发环境 # 苏州应急执法计划管理系统/开发环境
# VUE_APP_BASE_API = 'http://39.101.188.84:9033' # VUE_APP_BASE_API = 'http://39.101.188.84:9033'
VUE_APP_BASE_API = 'http://localhost:13002' VUE_APP_BASE_API = 'http://192.168.0.111:9033'
# VUE_APP_BASE_API = 'http://180.108.205.123:13002' # VUE_APP_BASE_API = 'http://180.108.205.123:13002'
# 统一登录-内网 # 统一登录-内网

@ -11,7 +11,7 @@ import request from '@/utils/request'
// 首页表格 // 首页表格
export function indexRegionalism(params) { export function indexRegionalism(params) {
return request({ return request({
url: "/pharmaceuticals/bPlanEnterprise/tree", url: "/pharmaceuticals/division/tree",
method: "get", method: "get",
params, params,
}); });

@ -12,7 +12,7 @@ export default {
// 行政区划 // 行政区划
tree(params) { tree(params) {
return request({ return request({
url: "/pharmaceuticals/administrative/tree", url: "/pharmaceuticals/division/tree",
method: "get", method: "get",
params, params,
}); });

@ -87,7 +87,7 @@ export function listDist(query) {
//计划企业表数结构 //计划企业表数结构
export function planeEnTree(data) { export function planeEnTree(data) {
return request({ return request({
url: '/pharmaceuticals/bPlanEnterprise/tree', url: '/pharmaceuticals/division/tree',
method: 'get', method: 'get',
params:data params:data
}) })
@ -95,7 +95,7 @@ export function planeEnTree(data) {
// 行政区划树结构 // 行政区划树结构
export function xzTree() { export function xzTree() {
return request({ return request({
url: '/pharmaceuticals/administrative/tree', url: '/pharmaceuticals/division/tree',
method: 'get', method: 'get',
}) })
} }

@ -20,7 +20,6 @@
</div> </div>
</template> </template>
<script> <script>
import { xzTree } from "@/api/yingji/keyEnterprise.js";
import { mapState } from "vuex"; import { mapState } from "vuex";
export default { export default {
data() { data() {
@ -38,7 +37,7 @@ export default {
}; };
}, },
created() { created() {
this.xzList(); this.treeList();
}, },
computed: { computed: {
...mapState({ ...mapState({
@ -53,28 +52,27 @@ export default {
}, },
}, },
methods: { methods: {
xzList() { treeList() {
// xzTree().then((res) => {
if (this.dept.parentId == 0 || this.dept.leader == "admin") { if (this.dept.parentId == 0 || this.dept.leader == "admin") {
let treeData = JSON.parse(localStorage.getItem("TREE_DATA")) let treeData = JSON.parse(localStorage.getItem("TREE_DATA"));
// console.log(treeData);
treeData.forEach((value, index) => { treeData.forEach((value, index) => {
this.compartment.push({ this.compartment.push({
value: value.subdistrict, value: value.districtCode,
label: value.institutionName, label: value.district,
children: [], children: [],
}); });
if (value.children.length > 0) { if (value.children.length > 0) {
value.children.forEach((value1, index1) => { value.children.forEach((value1, index1) => {
this.compartment[index].children.push({ this.compartment[index].children.push({
value: value1.subdistrict, value: value1.countyCode,
label: value1.institutionName, label: value1.county,
}); });
}); });
} }
}); });
} }
this.$emit("quhuadizhi", this.compartment); this.$emit("quhuadizhi", this.compartment);
// });
}, },
getData(e) { getData(e) {
if (!this.none) { if (!this.none) {

@ -3,8 +3,8 @@
* @version: * @version:
* @Author: JC9527 * @Author: JC9527
* @Date: 2023-09-04 10:20:06 * @Date: 2023-09-04 10:20:06
* @LastEditors: 张涛 * @LastEditors: laozt 2721205210@qq.com
* @LastEditTime: 2023-10-12 13:33:22 * @LastEditTime: 2023-12-13 09:50:24
--> -->
<template> <template>
<div class="container-main" ref="main"> <div class="container-main" ref="main">
@ -82,7 +82,7 @@
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >
<el-table-column type="selection" width="55"></el-table-column> <el-table-column type="selection" width="55"></el-table-column>
<el-table-column prop="year" label="计划年份" header-align="center"> <el-table-column prop="year" label="年份" header-align="center">
<template slot-scope="scope"> <template slot-scope="scope">
{{ $moment(new Date(scope.row.year)).format("yyyy") }} {{ $moment(new Date(scope.row.year)).format("yyyy") }}
</template> </template>
@ -235,7 +235,7 @@
<div class="content"> <div class="content">
<div class="filtrate"> <div class="filtrate">
<el-descriptions :column="2" border> <el-descriptions :column="2" border>
<el-descriptions-item label="计划年份"> <el-descriptions-item label="年份">
{{ $moment(new Date(details.year)).format("yyyy") }} {{ $moment(new Date(details.year)).format("yyyy") }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="企业名称"> <el-descriptions-item label="企业名称">
@ -304,7 +304,6 @@ import {
deleteEnterprise, deleteEnterprise,
exportEnterprise, exportEnterprise,
getEnterprise, getEnterprise,
// xzTree,
} from "@/api/yingji/keyEnterprise.js"; } from "@/api/yingji/keyEnterprise.js";
// import { mapState } from "vuex"; // import { mapState } from "vuex";
import { getToken } from "@/utils/auth"; import { getToken } from "@/utils/auth";
@ -425,7 +424,8 @@ export default {
}; };
}, },
created() { created() {
// this.getTreeList(); this.queryParms.year = this.$moment(new Date()).format("yyyy")
this.searchBefore = { ...this.searchBefore, ...this.queryParms };
this.getList(); this.getList();
}, },
// computed: { // computed: {
@ -501,7 +501,6 @@ export default {
// //
getList() { getList() {
this.loading = true; this.loading = true;
// console.log(this.searchBefore);
listEnterprise(this.searchBefore).then((res) => { listEnterprise(this.searchBefore).then((res) => {
// console.log(res); // console.log(res);
this.tableData = res.data.list; this.tableData = res.data.list;

@ -98,8 +98,8 @@ import completePlan from "./echarts/completePlan";
import finishRate from "./echarts/finishRate"; import finishRate from "./echarts/finishRate";
import executionPlan from "./echarts/executionPlan"; import executionPlan from "./echarts/executionPlan";
import myPagination from "@/views/components/myPagination/index"; import myPagination from "@/views/components/myPagination/index";
import { indexRegionalism } from "@/api/yingji/home.js";
import executive from "./echarts/executive"; import executive from "./echarts/executive";
import { indexRegionalism } from "@/api/yingji/home.js";
export default { export default {
data() { data() {

Loading…
Cancel
Save