Browse Source

Merge branch 'master' of http://120.78.165.83:8123/git/nazw

李雪梅 2 years ago
parent
commit
c9ee945531

+ 6 - 4
nngkxxdp/src/main/resources/static/impression/css/imperssion.css

@@ -277,7 +277,8 @@ a {
     color: #47413B;
 }
 .contents img{
-    width: 100%;
+    /* width: 100%; */
+    width: 500px;
 }
 .contents>p {
     text-decoration: overline;
@@ -310,6 +311,7 @@ a {
 
 .synopsis>div {
     padding-bottom: 10px;
+    font-size: 16px;
 }
 
 .el-timeline-item {
@@ -434,7 +436,7 @@ a {
 
 .block1 .el-timeline-item__tail {
     border-left: 5px solid #01201B;
-    height: 110%;
+    height: 117%;
 }
 
 .block1 .el-timeline-item__node--normal {
@@ -543,11 +545,11 @@ a {
         margin: 0 auto;
         position: relative;
         top: -90px;
-        left: 56.5%;
+        left: 56.3%;
         z-index: 1;
     }
     .block2 .el-timeline-item__tail {
-        height: 122%;
+        height: 128%;
     }
 }
 

BIN
nngkxxdp/src/main/resources/static/impression/img/bg1.png


BIN
nngkxxdp/src/main/resources/static/impression/img/bg2.png


+ 4 - 0
nngkxxdp/src/main/resources/static/impression/impression.html

@@ -84,6 +84,10 @@
                             <el-input v-model.number="form.tel" placeholder="请输入电话"></el-input>
                         </div>
                         <div class="contribute_content_updata">
+                            <p>+<span>作品名称:</span></p>
+                            <el-input v-model.number="form.title" placeholder="请输入作品名称"></el-input>
+                        </div>
+                        <div class="contribute_content_updata">
                             <p>+<span>我的作品</span></p>
                             <div>
                                 <el-upload class="upload-demo" drag action="http://192.168.0.26:7777/yxnn/uploadDocumet"

+ 2 - 3
nngkxxdp/src/main/resources/static/impression/js/inperssion.js

@@ -14,7 +14,8 @@ new Vue({
         form: {
             tel: '',
             file: '',
-            content: ''
+            content: '',
+            title:''
         },
         parent:{
             page: 1,
@@ -105,8 +106,6 @@ new Vue({
                         error: function (err) {
                         }
                     });
-                }else{
-                    this.$message('请真确输入电话');
                 }
 
             }

+ 24 - 13
nngkxxdp/src/main/resources/static/page/js/base/lr_index.js

@@ -38,7 +38,11 @@ function detailHtml(data) {
 	var html = ''
 	html += '<ul>'
 	html += '<li>上传人电话:' + data.uploaderPhone + '</li>'
-	html += '<li>上传时间:' + data.uploadTime + '</li>'
+	if(data.uploadTime){
+		html += '<li>上传时间:' + data.uploadTime + '</li>'
+	}else if(data.updateTime){
+		html += '<li>通过时间:' + data.updateTime + '</li>'
+	}
 	html += '<li>内容描述:' + data.pictureDescription + '</li>'
 	html += '<li>上传照片: <div><img src="' + PATH + data.urlAddress + '" alt=""></div></li>'
 	html += '<li></li>'
@@ -55,7 +59,7 @@ function detailHtml(data) {
 var layerHtml = '';
 
 function editHtml(data) {
-	var selectHtml = `<select name="pictureTypeSelect" lay-verify="">
+	var selectHtml = `<div style="margin:10px">选择内容类型:</div> <select name="pictureTypeSelect" lay-verify="">
   						<option value="0">解放前</option>
   						<option value="1">解放后-80年代</option>
 						<option value="2">80年代-新世纪</option>
@@ -70,7 +74,7 @@ function editHtml(data) {
 		, content: selectHtml
 		, btn: ['通过', '不通过', '返回']
 		, yes: function (index, layero) {
-			data.pictureType=$("[name='pictureTypeSelect']").val()
+			data.pictureType = $("[name='pictureTypeSelect']").val()
 			updateYxnn(2, data)
 		}
 		, btn2: function (index, layero) {
@@ -87,7 +91,7 @@ function editHtml(data) {
 function updateYxnn(obj, data) {
 	data.examineState = obj
 	$.ajax({
-		url: PATH+"/yxnn/updateDocument"
+		url: PATH + "/yxnn/updateDocument"
 		, type: 'post'
 		, data: data
 		, success: function (data) {
@@ -102,7 +106,7 @@ function updateYxnn(obj, data) {
 function deleteHtml(data) {
 	layer.confirm('确认要删除吗?', { icon: 3, title: '提示' }, function (index) {
 		$.ajax({
-			url: PATH+"/yxnn/deleteDocumentById/" + data.id
+			url: PATH + "/yxnn/deleteDocumentById/" + data.id
 			, type: 'post'
 			, success: function (data) {
 				if (data.result) {
@@ -303,23 +307,22 @@ var count = 0
 
 function initTables(datas) {
 	$.ajax({
-		url: PATH+'/yxnn/getDocumentPage',
+		url: PATH + '/yxnn/getDocumentPage',
 		type: 'get',
 		data: datas,
 		success: function (data) {
-			console.log(data.data.data)
 			if (data.data) {
 				layui.table.render({
 					elem: '#yxnnTable'
 					, cellMinWidth: 80 //全局定义常规单元格的最小宽度,
 					, cols: [[
 						{ field: 'id', width: 80, title: 'ID', }
-						, { field: 'uploaderPhone', title: '电话' }
-						, { field: 'updateTime', title: '时间', sort: true }
-						, { field: 'pictureDescription', title: '描述内容', minWidth: 100 }
+						, { field: 'uploaderPhone', title: '电话', width: 150, }
+						, { field: 'uploadTime', title: '上传时间', sort: true, templet: uploadTimeemplet }
+						, { field: 'pictureDescription', title: '描述内容', width: '30%' }
 						, { field: 'pictureType', title: '图片', templet: pictureTypetemplet }
 						, { field: 'examineState', title: '状态', templet: examineStatetemplet }
-						, { title: '操作', width: '30%', toolbar: '#barDemo' }
+						, { title: '操作', width: 300, toolbar: '#barDemo' }
 					]]
 					, data: data.data.data
 
@@ -330,6 +333,14 @@ function initTables(datas) {
 
 
 }
+function uploadTimeemplet(value) {
+	if (value.uploadTime) {
+		var time = value.uploadTime.split('T')
+		return time[0] + ' ' + time[1].split('.')[0]
+	} else {
+		return ''
+	}
+}
 
 function examineStatetemplet(d) {
 	if (d.examineState == 0) {
@@ -341,14 +352,14 @@ function examineStatetemplet(d) {
 	}
 }
 
-function pictureTypetemplet(d){
+function pictureTypetemplet(d) {
 	if (d.pictureType == 0) {
 		return '解放前'
 	} else if (d.pictureType == 1) {
 		return '解放后-80年代'
 	} else if (d.pictureType == 2) {
 		return '80年代-新世纪'
-	}else if (d.pictureType == 3) {
+	} else if (d.pictureType == 3) {
 		return '千禧年-新世纪'
 	}
 }