Quellcode durchsuchen

乳山信息港

RongCheng
庞东旭 vor 2 Jahren
Ursprung
Commit
8a7f314e01
14 geänderte Dateien mit 629 neuen und 34 gelöschten Zeilen
  1. +9
    -7
      infoport/homestead.html
  2. +1
    -1
      infoport/homesteadDetail.html
  3. +1
    -1
      infoport/index.html
  4. +1
    -1
      infoport/newDetail.html
  5. +12
    -8
      infoport/property.html
  6. +187
    -0
      infoport/propertyDetail.html
  7. +11
    -8
      infoport/resource.html
  8. +177
    -0
      infoport/resourceDetail.html
  9. +10
    -0
      infoport/static/css/homesteadDetail.css
  10. +16
    -3
      infoport/static/js/project/homestead.js
  11. +17
    -3
      infoport/static/js/project/property.js
  12. +85
    -0
      infoport/static/js/project/propertyDetail.js
  13. +17
    -2
      infoport/static/js/project/resource.js
  14. +85
    -0
      infoport/static/js/project/resourceDetail.js

+ 9
- 7
infoport/homestead.html Datei anzeigen

@@ -4,7 +4,7 @@

<head>
<meta charset="utf-8">
<title>乳山农村支援信息港</title>
<title>乳山农村资源信息港</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="keywords" content="" />
@@ -41,11 +41,13 @@
</script>
</select>
<select id="useTypeContent" onchange="useTypeChange()">
<script id="useTypeData" type="text/html">
{{each useType as value i}}
<option value="{{value.dictValue}}">{{value.dictLabel}}</option>
{{/each}}
</script>
<option value="">全部</option>
<option value="3">闲置中</option>
<option value="4">已流转</option>
<!-- <script id="useTypeData" type="text/html">-->
<!-- {{each useType as value i}}-->
<!-- {{/each}}-->
<!-- </script>-->
</select>
</div>

@@ -140,7 +142,7 @@
<p class="bigWin"><img src="static/images/dialog_icon_2.png" onclick="window.location='homesteadDetail.html?id='+{{propertyDetail.id}}" alt=""></p>
<p class="phoneIcon"><img src="static/images/dialog_icon_3.png" alt=""></p>
<i class="sanjiao-left"></i>
<p class="phone">15925781687 王程程</p>
<p class="phone">{{phone}} {{leader}}</p>
<img src="static/images/dialog_icon_close.png" onclick="closeDialog()" style="margin-left: auto;" alt="">
</div>



+ 1
- 1
infoport/homesteadDetail.html Datei anzeigen

@@ -4,7 +4,7 @@

<head>
<meta charset="utf-8">
<title>乳山农村支援信息港</title>
<title>乳山农村资源信息港</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="keywords" content="" />


+ 1
- 1
infoport/index.html Datei anzeigen

@@ -4,7 +4,7 @@

<head>
<meta charset="utf-8">
<title>乳山农村支援信息港</title>
<title>乳山农村资源信息港</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="keywords" content="" />


+ 1
- 1
infoport/newDetail.html Datei anzeigen

@@ -4,7 +4,7 @@

<head>
<meta charset="utf-8">
<title>乳山农村支援信息港</title>
<title>乳山农村资源信息港</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="keywords" content="" />


+ 12
- 8
infoport/property.html Datei anzeigen

@@ -4,7 +4,7 @@

<head>
<meta charset="utf-8">
<title>乳山农村支援信息港</title>
<title>乳山农村资源信息港</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="keywords" content="" />
@@ -41,11 +41,15 @@
</script>
</select>
<select id="useTypeContent" onchange="useTypeChange()">
<script id="useTypeData" type="text/html">
{{each useType as value i}}
<option value="{{value.dictValue}}">{{value.dictLabel}}</option>
{{/each}}
</script>

<option value="">全部</option>
<option value="2">闲置</option>
<option value="3">出租</option>
<!-- <script id="useTypeData" type="text/html">-->
<!-- {{each useType as value i}}-->
<!-- -->
<!-- {{/each}}-->
<!-- </script>-->
</select>
</div>

@@ -140,10 +144,10 @@
<div class="dialog_header">
<p><img src="static/images/dialog_icon_1.png" alt=""></p>
<p class="name">基本信息</p>
<p class="bigWin"><img src="static/images/dialog_icon_2.png" alt=""></p>
<p class="bigWin"><img src="static/images/dialog_icon_2.png" onclick="window.location='propertyDetail.html?id='+{{propertyDetail.id}}" alt=""></p>
<p class="phoneIcon"><img src="static/images/dialog_icon_3.png" alt=""></p>
<i class="sanjiao-left"></i>
<p class="phone">15925781687 王程程</p>
<p class="phone">{{phone}} {{leader}}</p>
<img src="static/images/dialog_icon_close.png" onclick="closeDialog()" style="margin-left: auto;" alt="">
</div>



+ 187
- 0
infoport/propertyDetail.html Datei anzeigen

@@ -0,0 +1,187 @@
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="zh-CN" xml:lang="zh-CN">

<head>
<meta charset="utf-8">
<title>乳山农村资源信息港</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="keywords" content="" />
<meta name="description" cxontent="" />
<link href="static/css/main.css" rel="stylesheet" type="text/css" />
<link href="static/css/index.css" rel="stylesheet" type="text/css" />
<link href="static/css/homesteadDetail.css" rel="stylesheet" type="text/css" />
<script src="https://api.map.baidu.com/api?type=webgl&v=1.0&ak=XzwOBaO4CElCsPdl8LIFEvv5rTemG6w1"></script>
</head>

<body>
<div class="main" id="page">

<div class="header flex_dom flex_item_between flex_item_mid">
<p id="titContent">
<script id="titData" type="text/html">
{{webList[0].contentValue}}
</script>
</p>
<div class="wid25 flex_dom flex_item_between flex_item_mid">
<div class="header_nav">
<a href="index.html">
<div>
<i class="i1"></i>
</div>
<p>新闻资讯</p>
</a>
</div>
<div class="header_nav active">
<a href="property.html">
<div>
<i class="i2"></i>
<img src="static/images/nav_bg.png" class="i_bg xuanzhuan" alt="">
</div>
<p>资产信息</p>
</a>
</div>
<div class="header_nav">
<a href="resource.html">
<div>
<i class="i3"></i>
</div>
<p>资源信息</p>
</a>
</div>
<div class="header_nav">
<a href="homestead.html">
<div>
<i class="i4"></i>
</div>
<p>宅基地信息</p>
</a>
</div>
</div>
</div>

<div class="homeDetail" id="propertyDetailContent">
<script id="propertyDetailData" type="text/html">
<div class="detail_header">
<p class="detail_tit">详细信息</p>
<p class="phoneIcon"><img src="static/images/dialog_icon_3.png" alt=""></p>
<i class="sanjiao-left"></i>
<p class="phone">{{phone}} {{leader}}</p>
</div>

<div class="dialog_table">

<div class="dialog_table_left" style="width: 100%;">
<div class="dialog_header">
<p><img src="static/images/dialog_icon_1.png" alt=""></p>
<p class="name">基本信息</p>
</div>

<div class="dialog_main">
<table cellpadding="0" cellspacing="0" width="100%">

<tr>
<td>镇</td>
<td>{{propertyDetail.townName}}</td>
<td>村</td>
<td>{{propertyDetail.deptName}}</td>
<td>资产编码</td>
<td>{{propertyDetail.code}}</td>
<td>资产名称</td>
<td>{{propertyDetail.name}}</td>
<td>数量</td>
<td>{{propertyDetail.quantity}}</td>
</tr>

<tr>
<td>单位</td>
<td>{{propertyDetail.unit}}</td>
<td>资产类别</td>
<td>{{propertyDetail.assetType}}</td>
<td>使用情况</td>
<td>{{propertyDetail.useType}}</td>
<td>构建时间</td>
<td>{{propertyDetail.buildTime}}</td>
</tr>

</table>
</div>

<div class="dialog_header">
<p><img src="static/images/dialog_icon_4.png" alt=""></p>
<p class="name">现场图片</p>
</div>

<div class="dialog_img propertyImg">

{{each attachment as value i}}
<img src="/api{{value.fileUrl}}" style="width: 10%;" alt="">
{{/each}}

</div>
</div>

</div>
<div style="
width: calc(100% - 4vh);
margin: 0 auto;
overflow: hidden;
"
>
<div class="dialog_header">
<p><img src="static/images/map_icon.png" alt=""></p>
<p class="name">地图</p>
</div>
<div id="container"></div>
</div>
</script>
<!-- <script>-->
<!-- var map = new BMapGL.Map('container'); // 创建Map实例-->
<!-- map.centerAndZoom(new BMapGL.Point(116.320938,39.950026), 18); // 初始化地图,设置中心点坐标和地图级别-->
<!-- map.enableScrollWheelZoom(false); // 开启鼠标滚轮缩放-->
<!-- </script>-->
</div>

<div class="footer" id="webContent">

<script id="webData" type="text/html">
<div class="footer_link">
<p class="footer_link_tit">友情链接</p>
<a href="{{webList[5].contentUrl}}">{{webList[5].contentValue}}</a>
</div>

<div class="footer_link_filings">
<div class="footer_link_filings_left">
<p>鲁公安备案</p>
<a href="#">{{webList[3].contentValue}}</a>
</div>
<div class="footer_link_filings_right">
<p>服务热线</p>
<a href="#">{{webList[4].contentValue}}</a>
</div>
</div>

<div class="footer_link_company">
<div>
<p>承办单位</p>
<a href="#">{{webList[1].contentValue}}</a>
</div>
<div>
<p>技术支持</p>
<a href="#">{{webList[2].contentValue}}</a>
</div>
<div>
<p>联系电话</p>
<a href="#">185 9664 1072</a>
</div>
</div>
</script>

</div>


</div>
</body>
<script src="./static/js/common/require.js" data-main="./static/js/common/main.js?t=101" id="require-page" target-module="./static/js/project/propertyDetail.js" defer type="text/javascript"></script>
</html>

+ 11
- 8
infoport/resource.html Datei anzeigen

@@ -4,7 +4,7 @@

<head>
<meta charset="utf-8">
<title>乳山农村支援信息港</title>
<title>乳山农村资源信息港</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="keywords" content="" />
@@ -41,11 +41,14 @@
</script>
</select>
<select id="useTypeContent" onchange="useTypeChange()">
<script id="useTypeData" type="text/html">
{{each useType as value i}}
<option value="{{value.dictValue}}">{{value.dictLabel}}</option>
{{/each}}
</script>
<option value="">全部</option>
<option value="1">未流转</option>
<option value="2">部分流转</option>
<option value="3">已流转</option>
<!-- <script id="useTypeData" type="text/html">-->
<!-- {{each useType as value i}}-->
<!-- {{/each}}-->
<!-- </script>-->
</select>
</div>

@@ -141,10 +144,10 @@
<div class="dialog_header">
<p><img src="static/images/dialog_icon_1.png" alt=""></p>
<p class="name">基本信息</p>
<p class="bigWin"><img src="static/images/dialog_icon_2.png" alt=""></p>
<p class="bigWin"><img src="static/images/dialog_icon_2.png" onclick="window.location='resourceDetail.html?id='+{{propertyDetail.id}}" alt=""></p>
<p class="phoneIcon"><img src="static/images/dialog_icon_3.png" alt=""></p>
<i class="sanjiao-left"></i>
<p class="phone">15925781687 王程程</p>
<p class="phone">{{phone}} {{leader}}</p>
<img src="static/images/dialog_icon_close.png" onclick="closeDialog()" style="margin-left: auto;" alt="">
</div>



+ 177
- 0
infoport/resourceDetail.html Datei anzeigen

@@ -0,0 +1,177 @@
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="zh-CN" xml:lang="zh-CN">

<head>
<meta charset="utf-8">
<title>乳山农村资源信息港</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="keywords" content="" />
<meta name="description" cxontent="" />
<link href="static/css/main.css" rel="stylesheet" type="text/css" />
<link href="static/css/index.css" rel="stylesheet" type="text/css" />
<link href="static/css/homesteadDetail.css" rel="stylesheet" type="text/css" />
<script src="https://api.map.baidu.com/api?type=webgl&v=1.0&ak=XzwOBaO4CElCsPdl8LIFEvv5rTemG6w1"></script>
</head>

<body>
<div class="main" id="page">

<div class="header flex_dom flex_item_between flex_item_mid">
<p id="titContent">
<script id="titData" type="text/html">
{{webList[0].contentValue}}
</script>
</p>
<div class="wid25 flex_dom flex_item_between flex_item_mid">
<div class="header_nav">
<a href="index.html">
<div>
<i class="i1"></i>
</div>
<p>新闻资讯</p>
</a>
</div>
<div class="header_nav">
<a href="property.html">
<div>
<i class="i2"></i>
</div>
<p>资产信息</p>
</a>
</div>
<div class="header_nav active">
<a href="resource.html">
<div>
<i class="i3"></i>
<img src="static/images/nav_bg.png" class="i_bg xuanzhuan" alt="">
</div>
<p>资源信息</p>
</a>
</div>
<div class="header_nav">
<a href="homestead.html">
<div>
<i class="i4"></i>
</div>
<p>宅基地信息</p>
</a>
</div>
</div>
</div>

<div class="homeDetail" id="propertyDetailContent">
<script id="propertyDetailData" type="text/html">
<div class="detail_header">
<p class="detail_tit">详细信息</p>
<p class="phoneIcon"><img src="static/images/dialog_icon_3.png" alt=""></p>
<i class="sanjiao-left"></i>
<p class="phone">{{phone}} {{leader}}</p>
</div>

<div class="dialog_table">

<div class="dialog_table_left" style="width: 100%;">
<div class="dialog_header">
<p><img src="static/images/dialog_icon_1.png" alt=""></p>
<p class="name">基本信息</p>
</div>

<div class="dialog_main">
<table cellpadding="0" cellspacing="0" width="100%">

<tr>
<td>镇</td>
<td>{{propertyDetail.townName}}</td>
<td>村</td>
<td>{{propertyDetail.deptName}}</td>
<td>地块代码</td>
<td>{{propertyDetail.dkbm}}</td>
<td>地块类别</td>
<td>{{propertyDetail.dklb}}</td>
<td>土地利用类型</td>
<td>{{propertyDetail.tdlylx}}</td>
</tr>

<tr>
<td>地力等级</td>
<td>{{propertyDetail.dldj}}</td>
<td>土地用途</td>
<td>{{propertyDetail.tdyt}}</td>
<td>是否基本农田</td>
<td>{{propertyDetail.sfjbnt}}</td>
<td>实测面积</td>
<td>{{propertyDetail.scmjm}}</td>
<td>流转状态</td>
<td>{{propertyDetail.dkzt}}</td>
</tr>

</table>
</div>

</div>

</div>
<div style="
width: calc(100% - 4vh);
margin: 0 auto;
overflow: hidden;
"
>
<div class="dialog_header">
<p><img src="static/images/map_icon.png" alt=""></p>
<p class="name">地图</p>
</div>
<div id="container"></div>
</div>
</script>
<!-- <script>-->
<!-- var map = new BMapGL.Map('container'); // 创建Map实例-->
<!-- map.centerAndZoom(new BMapGL.Point(116.320938,39.950026), 18); // 初始化地图,设置中心点坐标和地图级别-->
<!-- map.enableScrollWheelZoom(false); // 开启鼠标滚轮缩放-->
<!-- </script>-->
</div>

<div class="footer" id="webContent">

<script id="webData" type="text/html">
<div class="footer_link">
<p class="footer_link_tit">友情链接</p>
<a href="{{webList[5].contentUrl}}">{{webList[5].contentValue}}</a>
</div>

<div class="footer_link_filings">
<div class="footer_link_filings_left">
<p>鲁公安备案</p>
<a href="#">{{webList[3].contentValue}}</a>
</div>
<div class="footer_link_filings_right">
<p>服务热线</p>
<a href="#">{{webList[4].contentValue}}</a>
</div>
</div>

<div class="footer_link_company">
<div>
<p>承办单位</p>
<a href="#">{{webList[1].contentValue}}</a>
</div>
<div>
<p>技术支持</p>
<a href="#">{{webList[2].contentValue}}</a>
</div>
<div>
<p>联系电话</p>
<a href="#">185 9664 1072</a>
</div>
</div>
</script>

</div>


</div>
</body>
<script src="./static/js/common/require.js" data-main="./static/js/common/main.js?t=101" id="require-page" target-module="./static/js/project/resourceDetail.js" defer type="text/javascript"></script>
</html>

+ 10
- 0
infoport/static/css/homesteadDetail.css Datei anzeigen

@@ -148,4 +148,14 @@
}
.footer{
margin-top: 0;
}

.propertyImg img{
width: 10%;
margin-right: 2%;
margin-bottom: 3vh;
}

.propertyImg img:nth-child(3n){
margin-right: 2%;
}

+ 16
- 3
infoport/static/js/project/homestead.js Datei anzeigen

@@ -19,6 +19,7 @@ define(['jquery', "template", "Tools", "paging", 'dateTime', 'swiper'], function
dictValue:'',
dictLabel:'全部'
}],
propertyDetail:{}
},
};
var tools = new Tools();
@@ -33,13 +34,22 @@ define(['jquery', "template", "Tools", "paging", 'dateTime', 'swiper'], function
pageSize: 10,
}, module.assetList , true);

tools.doGet(treeselectSecond+'100', {}, module.useContent, true);
tools.doGet(treeselect, {}, module.treeselect , true);
tools.doGet(webList, {}, module.webList , true);
tools.doGet(webDeptType+'land_status', {}, module.webDeptType , true);
// tools.doGet(webDeptType+'land_status', {}, module.webDeptType , true);

};

module.useContent = function (data) {
if (data.code == 200) {
module.data.phone = data.data.phone;
module.data.leader = data.data.leader;
var propertyDetailData = template('propertyDetailData', module.data);
$("#propertyDetailContent").html(propertyDetailData);
}
}

module.webDeptType = function (data) {
if (data.code == 200) {
var content = data.data;
@@ -142,9 +152,11 @@ define(['jquery', "template", "Tools", "paging", 'dateTime', 'swiper'], function
module.data.treeselectSecond = [{
value:100,
label:'全部'
}]
}];
tools.doGet(treeselectSecond+'100', {}, module.useContent , true);
}else{
module.data.treeselectSecond = module.data.treeselect.filter(function (e) { return e.value == $('#treeselectContent').val(); })[0].children;
tools.doGet(treeselectSecond+$('#treeselectContent').val(), {}, module.useContent , true);
}
var treeselectSecondData = template('treeselectSecondData', module.data);
$("#treeselectSecondContent").html(treeselectSecondData);
@@ -162,6 +174,7 @@ define(['jquery', "template", "Tools", "paging", 'dateTime', 'swiper'], function
pageNum: 1,
pageSize: 10,
}, module.assetList , true);
tools.doGet(treeselectSecond+$('#treeselectSecondContent').val(), {}, module.useContent , true);
//资产列表
// tools.doGet(assetList, {
// deptId: $('#treeselectSecondContent').val(),


+ 17
- 3
infoport/static/js/project/property.js Datei anzeigen

@@ -18,6 +18,7 @@ define(['jquery', "template", "Tools", "paging", 'dateTime', 'swiper'], function
dictValue:'',
dictLabel:'全部'
}],
propertyDetail:{},
},
};
var tools = new Tools();
@@ -26,7 +27,7 @@ define(['jquery', "template", "Tools", "paging", 'dateTime', 'swiper'], function
//资产列表
tools.doGet(assetList, {
deptId: 100,
useType: 1,
useType: '',
operationType: 1,
translate_dict: 1,
pageNum: 1,
@@ -35,13 +36,22 @@ define(['jquery', "template", "Tools", "paging", 'dateTime', 'swiper'], function
isAsc: 'asc',
}, module.assetList , true);

tools.doGet(treeselectSecond+'100', {}, module.useContent , true);
tools.doGet(treeselect, {}, module.treeselect , true);
tools.doGet(webList, {}, module.webList , true);
tools.doGet(webDeptType+'use_type', {}, module.webDeptType , true);
// tools.doGet(webDeptType+'use_type', {}, module.webDeptType , true);

};

module.useContent = function (data) {
if (data.code == 200) {
module.data.phone = data.data.phone;
module.data.leader = data.data.leader;
var propertyDetailData = template('propertyDetailData', module.data);
$("#propertyDetailContent").html(propertyDetailData);
}
}

module.webDeptType = function (data) {
if (data.code == 200) {
var content = data.data;
@@ -145,8 +155,10 @@ define(['jquery', "template", "Tools", "paging", 'dateTime', 'swiper'], function
value:100,
label:'全部'
}]
tools.doGet(treeselectSecond+'100', {}, module.useContent , true);
}else{
module.data.treeselectSecond = module.data.treeselect.filter(function (e) { return e.value == $('#treeselectContent').val(); })[0].children;
tools.doGet(treeselectSecond+$('#treeselectContent').val(), {}, module.useContent , true);
}
var treeselectSecondData = template('treeselectSecondData', module.data);
$("#treeselectSecondContent").html(treeselectSecondData);
@@ -168,6 +180,8 @@ define(['jquery', "template", "Tools", "paging", 'dateTime', 'swiper'], function
orderByColumn: 'code',
isAsc: 'asc',
}, module.assetList , true);

tools.doGet(treeselectSecond+$('#treeselectSecondContent').val(), {}, module.useContent , true);
}

useTypeChange = function () {


+ 85
- 0
infoport/static/js/project/propertyDetail.js Datei anzeigen

@@ -0,0 +1,85 @@
/**
* Created by Administrator on 2021/4/5.
*/
define(['jquery', "template", "Tools", "paging", 'dateTime', 'swiper'], function ($, template, Tools) {
//数据存储
var module = {
data: {
propertyList:''
},
};
var tools = new Tools();

module.init = function (page) {
tools.doGet(assetGet+getQueryVariable('id'), {translate_dict: 1}, module.assetDetail , true);
tools.doGet(webList, {}, module.webList , true);
// var map = new BMapGL.Map('container'); // 创建Map实例
// map.centerAndZoom(new BMapGL.Point(116.320938,39.950026), 18); // 初始化地图,设置中心点坐标和地图级别
// map.enableScrollWheelZoom(false); // 开启鼠标滚轮缩放
};

module.useContent = function (data) {
if (data.code == 200) {
module.data.phone = data.data.phone;
module.data.leader = data.data.leader;
var propertyDetailData = template('propertyDetailData', module.data);
$("#propertyDetailContent").html(propertyDetailData);
}
}

module.webList = function (data) {
if (data.code == 200) {
var content = data.rows;
module.data.webList = content;
var webData = template('webData', module.data);
$("#webContent").html(webData);
var titData = template('titData', module.data);
$("#titContent").html(titData);
}
}

module.assetDetail = function(data){
if (data.code == 200) {
var content = data.data;
module.data.propertyDetail = content;
tools.doGet(attachmentList, {
tableId:content.id,
tableName: 't_asset_permanent',
bizPath: 'asset'
}, module.attachmentDetail , true);
tools.doGet(treeselectSecond+content.deptId, {}, module.useContent , true);
// var propertyDetailData = template('propertyDetailData', module.data);
// $("#propertyDetailContent").html(propertyDetailData);
// $('#dialog').css('display','block');
}
}

module.attachmentDetail = function(data){
if (data.code == 200) {
var content = data.rows;
var attachmentList = [];
content.map(res=>{
if (res.fileName.indexOf('png')>-1||res.fileName.indexOf('jpg')>-1){
attachmentList.push(res);
}
})
module.data.attachment = attachmentList;
var propertyDetailData = template('propertyDetailData', module.data);
$("#propertyDetailContent").html(propertyDetailData);
$('#dialog').css('display','block');
}
}

//获取地址栏参数
function getQueryVariable(variable){
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split("=");
if(pair[0] == variable){return pair[1];}
}
return(false);
}

return module;
});

+ 17
- 2
infoport/static/js/project/resource.js Datei anzeigen

@@ -18,6 +18,7 @@ define(['jquery', "template", "Tools", "paging", 'dateTime', 'swiper'], function
dictValue:'',
dictLabel:'全部'
}],
propertyDetail:{}
},
};
var tools = new Tools();
@@ -32,12 +33,22 @@ define(['jquery', "template", "Tools", "paging", 'dateTime', 'swiper'], function
}, module.assetList , true);


tools.doGet(treeselectSecond+'100', {}, module.useContent, true);
tools.doGet(treeselect, {}, module.treeselect , true);
tools.doGet(webList, {}, module.webList , true);
tools.doGet(webDeptType+'use_code', {}, module.webDeptType , true);
// tools.doGet(webDeptType+'use_code', {}, module.webDeptType , true);

};

module.useContent = function (data) {
if (data.code == 200) {
module.data.phone = data.data.phone;
module.data.leader = data.data.leader;
var propertyDetailData = template('propertyDetailData', module.data);
$("#propertyDetailContent").html(propertyDetailData);
}
}

module.webDeptType = function (data) {
if (data.code == 200) {
var content = data.data;
@@ -141,8 +152,10 @@ define(['jquery', "template", "Tools", "paging", 'dateTime', 'swiper'], function
value:100,
label:'全部'
}]
tools.doGet(treeselectSecond+'100', {}, module.useContent , true);
}else{
module.data.treeselectSecond = module.data.treeselect.filter(function (e) { return e.value == $('#treeselectContent').val(); })[0].children;
tools.doGet(treeselectSecond+$('#treeselectContent').val(), {}, module.useContent , true);
}
var treeselectSecondData = template('treeselectSecondData', module.data);
$("#treeselectSecondContent").html(treeselectSecondData);
@@ -159,6 +172,8 @@ define(['jquery', "template", "Tools", "paging", 'dateTime', 'swiper'], function
pageNum: 1,
pageSize: 10,
}, module.assetList , true);
tools.doGet(treeselectSecond+$('#treeselectSecondContent').val(), {}, module.useContent , true);

//资产列表
// tools.doGet(assetList, {
// deptId: $('#treeselectSecondContent').val(),
@@ -177,7 +192,7 @@ define(['jquery', "template", "Tools", "paging", 'dateTime', 'swiper'], function
module.data.propertyList = "";
tools.doGet(resourceList, {
deptId: $('#treeselectSecondContent').val() == null ? 100 : $('#treeselectSecondContent').val(),
useCode:$('#useTypeContent').val(),
dkzt:$('#useTypeContent').val(),
translate_dict: 1,
pageNum: 1,
pageSize: 10,


+ 85
- 0
infoport/static/js/project/resourceDetail.js Datei anzeigen

@@ -0,0 +1,85 @@
/**
* Created by Administrator on 2021/4/5.
*/
define(['jquery', "template", "Tools", "paging", 'dateTime', 'swiper'], function ($, template, Tools) {
//数据存储
var module = {
data: {
propertyList:''
},
};
var tools = new Tools();

module.init = function (page) {
tools.doGet(resourceGet+getQueryVariable('id'), {translate_dict: 1}, module.assetDetail , true);
tools.doGet(webList, {}, module.webList , true);
// var map = new BMapGL.Map('container'); // 创建Map实例
// map.centerAndZoom(new BMapGL.Point(116.320938,39.950026), 18); // 初始化地图,设置中心点坐标和地图级别
// map.enableScrollWheelZoom(false); // 开启鼠标滚轮缩放
};

module.useContent = function (data) {
if (data.code == 200) {
module.data.phone = data.data.phone;
module.data.leader = data.data.leader;
var propertyDetailData = template('propertyDetailData', module.data);
$("#propertyDetailContent").html(propertyDetailData);
}
}

module.webList = function (data) {
if (data.code == 200) {
var content = data.rows;
module.data.webList = content;
var webData = template('webData', module.data);
$("#webContent").html(webData);
var titData = template('titData', module.data);
$("#titContent").html(titData);
}
}

module.assetDetail = function(data){
if (data.code == 200) {
var content = data.data;
module.data.propertyDetail = content;
tools.doGet(attachmentList, {
tableId:content.id,
tableName: 't_asset_resource',
bizPath: 'asset'
}, module.attachmentDetail , true);
tools.doGet(treeselectSecond+content.deptId, {}, module.useContent , true);
// var propertyDetailData = template('propertyDetailData', module.data);
// $("#propertyDetailContent").html(propertyDetailData);
// $('#dialog').css('display','block');
}
}

module.attachmentDetail = function(data){
if (data.code == 200) {
var content = data.rows;
var attachmentList = [];
content.map(res=>{
if (res.fileName.indexOf('png')>-1||res.fileName.indexOf('jpg')>-1){
attachmentList.push(res);
}
})
module.data.attachment = attachmentList;
var propertyDetailData = template('propertyDetailData', module.data);
$("#propertyDetailContent").html(propertyDetailData);
$('#dialog').css('display','block');
}
}

//获取地址栏参数
function getQueryVariable(variable){
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split("=");
if(pair[0] == variable){return pair[1];}
}
return(false);
}

return module;
});

Laden…
Abbrechen
Speichern