diff --git a/config/index.js b/config/index.js
index 8386f4ae..36aac88a 100644
--- a/config/index.js
+++ b/config/index.js
@@ -12,9 +12,9 @@ module.exports = {
proxyTable: {
"/api": {
// 请求的目标主机
- // target: 'http://218.59.175.44:8082/nsgk_test/', // 公网测试环境
+ target: 'http://218.59.175.44:8082/nsgk_test/', // 公网测试环境
// target: `http://192.168.0.116:8091/nsgk_api/`, // 内网测试环境
- target: 'http://localhost:8080/',
+ //target: 'http://localhost:8080/',
//target: 'http://192.168.0.106:8080/',
changeOrigin: true,
pathRewrite: {
diff --git a/src/components/common/Selector.vue b/src/components/common/Selector.vue
new file mode 100644
index 00000000..5bd960ef
--- /dev/null
+++ b/src/components/common/Selector.vue
@@ -0,0 +1,219 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/sunVillage_info/fixedAssetsAdd.vue b/src/views/sunVillage_info/fixedAssetsAdd.vue
index c867c245..fa033ed1 100644
--- a/src/views/sunVillage_info/fixedAssetsAdd.vue
+++ b/src/views/sunVillage_info/fixedAssetsAdd.vue
@@ -262,7 +262,7 @@
-
重新计算
diff --git a/src/views/sunVillage_info/resource.vue b/src/views/sunVillage_info/resource.vue
index ca286dda..7cd7b147 100644
--- a/src/views/sunVillage_info/resource.vue
+++ b/src/views/sunVillage_info/resource.vue
@@ -8,8 +8,12 @@
@@ -80,9 +84,10 @@
} from "@/api/sunVillage_info/fixedAssets";
import request from '@/utils/request'
import MapGisLine from "@/components/Map/MapGisLine";
+ import Selector from "@/components/common/Selector.vue";
export default {
name: "certificateList",
- components: { MapGisLine,},
+ components: {Selector, MapGisLine,},
data() {
return {
theGeom:'',
@@ -103,7 +108,8 @@
orderByColumn:'createTime',
isAsc:'desc',
translate_dict:1,
- name:''
+ name:'',
+ resourceType: null,
},
uploadFiles1:[],
projectId:'',
@@ -111,7 +117,9 @@
showBtn:true,
listMap: 0,
resourceId: null, // 资源ID,记录当前资源的ID
- resourceList: [] // 资源列表,存储本账套下所有的资源信息
+ resourceList: [], // 资源列表,存储本账套下所有的资源信息
+ typeVisible: false,
+ resource_type: [],
};
},
created() {
@@ -124,6 +132,9 @@
this.houseGetDicts("use_type").then((response) => {
this.useTypeOptions = response.data;
});
+ this.houseGetDicts("resource_type").then((response) => {
+ this.resource_type = response.data;
+ });
},
methods: {
saveGeom(){
@@ -276,7 +287,23 @@
goAdd(){
this.$router.push('/sunVillage_info/resourceAdd')
},
+ openResourceType() {
+ this.typeVisible = true;
+ },
+ refresh() {
+ this.queryParams.pageNum = 1;
+ this.listLength = 0;
+ this.applicationList = [];
+ this.finished = false;
+ this.getList();
+ },
},
+ computed: {
+ searchPlaceholder() {
+ let typeName = this.resource_type.find((x) => x.dictValue == this.queryParams.resourceType);
+ return '搜索' + (typeName ? typeName.dictLabel : '');
+ },
+ }
}