Ver Fonte

总览接口联调

maxiaoxiao há 9 meses atrás
pai
commit
aab6d04c78

+ 23 - 0
src/api/Idleland.js

@@ -67,3 +67,26 @@ export function idleLandList(data) {
 }
 
 
+// 统计
+export function overview() {
+    return request({
+        url: `/apply/tdtj/overview`,
+        method: 'get',
+    })
+}
+export function district() {
+    return request({
+        url: `/apply/tdtj/district`,
+        method: 'get',
+    })
+}
+export function reason() {
+    return request({
+        url: `/apply/tdtj/reason`,
+        method: 'get',
+    })
+}
+
+
+
+

+ 13 - 13
src/views/Idleland/components/config.js

@@ -3,17 +3,17 @@ export const ysForm = [
     {
       label: '',
       prop: 'key',
-      span: 12,
+      span: 20,
       component: 'ElInput',
       componentProps: {
         placeholder: '项目名称/土地使用人'
       }
     },
-    {
-      label: '',
-      prop: 'region',
-      span: 8
-    },
+    // {
+    //   label: '',
+    //   prop: 'region',
+    //   span: 8
+    // },
     {
       prop: 'action',
       span: 4
@@ -25,21 +25,21 @@ export const xzForm = [
     {
       label: '',
       prop: 'key',
-      span: 8,
+      span: 10,
       component: 'ElInput',
       componentProps: {
         placeholder: '土地使用人/土地证号'
       }
     },
-    {
-      label: '',
-      prop: 'region',
-      span: 6
-    },
+    // {
+    //   label: '',
+    //   prop: 'region',
+    //   span: 6
+    // },
     {
       label: '',
       prop: 'type',
-      span: 6
+      span: 10
     },
     {
       prop: 'action',

+ 7 - 1
src/views/Idleland/components/xzgl.vue

@@ -24,6 +24,7 @@ export default {
   data() {
     return {
       activeTabs: "distrust",
+      region: "",
     };
   },
   mounted() {
@@ -33,10 +34,15 @@ export default {
   },
   methods: {
     reset() {},
+    regionChange(region) {
+      this.region = region;
+      this.$refs[this.activeTabs].reset(region);
+      this.$refs[this.activeTabs].searchFun();
+    },
   },
   watch: {
     activeTabs(newValue) {
-      this.$refs[newValue].reset();
+      this.$refs[newValue].reset(this.region);
       this.$refs[newValue].searchFun();
     },
   },

+ 2 - 1
src/views/cockpit/ydjc.vue

@@ -132,6 +132,7 @@
 <script>
 //这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等)
 import { QueryOne, QueryList } from "../../api/cockpitNew";
+import { overview, reason } from "@/api/Idleland.js";
 import ThreeStackedBarAndLine from "./common/ThreeStackedBarAndLine.vue";
 import XZQHPieChart from "./common/XZQHPieChart.vue";
 import pie3d from "../../components/echartsTemplate/3dPie.vue";
@@ -222,7 +223,7 @@ export default {
       } else {
         this.$nextTick(() => {
           //data.data[0].ce_crmj
-          this.$refs.xztd.setOptions(
+          this.$refs.xztd_echart.setOptions(
             [
               { name: "政府原因", value: 66 },
               { name: "企业原因", value: 66 },

+ 1 - 1
static/Config/config.js

@@ -1,5 +1,5 @@
 //后台地址配置
-window.axiosURI = "http://192.168.60.2:8080";
+window.axiosURI = "http://192.168.100.30:8080";
 window.ZTaxiosURI = "http://localhost:9300";
 window.aiURI = "http://192.168.60.2:4000";
 //倾斜模型高度配置