danweivote.vue 2.7 KB
<template>
	<view class="box">
		<view class='head'>
			<view class="headitem">编号</view>
			<view class="headitem ">操作人</view>
			<view class="headitem">操作时间</view>
			<view class="headitem caozuoshuo">操作说明</view>

		</view>
		<view class="xiangmlist">
			<view class="xiangmulistitem" v-for="(item,index) in rizhilist" :key="index">
				<view class="xiangmuhao">{{index+1}}</view>
				<view class="xiangming">{{item.username}}</view>
				<view class="pingshen">{{item.fcreatedate}}</view>
				<view class="state">{{item.fdescription}}</view>
			</view>

		</view>

	</view>
</template>

<script>
	import app from "../../App.vue";
	export default {
		data() {
			return {
				rizhilist: [],
				fprojectid: ''
			}
		},
		onLoad(options) {
			console.log('参数', options)
			this.fprojectid = options.id;
			console.log('111', this.fprojectid)

			this.getrizhilist()
		},
		methods: {

			getrizhilist() {
				console.log(999)
				let that = this;
				let url = "project/Get_viewloglist";
				let param = {
					fprojectid: this.fprojectid,

				}
				app.post(url, param, 'get').then(r => {
					console.log(r)


					// console.log('1234567890',JSON.stringify(r))
					that.rizhilist = r.data;
					let newrizhilist = this.rizhilist;
					for (var obj of newrizhilist) {
						obj.fcreatedate = obj.fcreatedate.split("T");
						obj.fcreatedate = obj.fcreatedate[0]
					}
					that.rizhilist = newrizhilist;
					


				}).catch(err => {
					console.log(err)

				})
			},
			enterxiangmu(e) {
				console.log(e)
				this.keyword = e.target.value;


			},


		}
	}
</script>

<style>
	.box {
		background: #fff;
		padding: 0 32rpx;
		box-sizing: border-box;
	}

	page {
		background: #fff;
	}

	.head {
		display: flex;
		align-items: center;
		padding: 32rpx 0 16rpx;
		box-sizing: border-box;
		justify-content: space-between;
		border-bottom: 2rpx solid #BDC4CE;
	}

	.headitem {
		color: #06121E;
		font-size: 28rpx;
		font-weight: bold;

	}

	.xiangmulistitem {
		display: flex;
		align-items: center;
		padding: 22rpx 0 34rpx;
		box-sizing: border-box;
		border-bottom: 1rpx solid #EEEEEE;
		background: #fff;
	}

	.xiangmuhao {
		width: 76rpx;
		color: #06121E;
		font-size: 24rpx;
		text-align: center;
	}

	.xiangming {
		width: 150rpx;
		color: #06121E;
		font-size: 24rpx;
		margin-left: 4rpx;
		text-align: center;
		line-height: 1.5;
		/* overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap; */
	}

	.pingshen {
		color: #06121E;
		font-size: 24rpx;
		margin-left: 10rpx;
		width: 240rpx;
		text-align: center;
	}

	.state {
		width: 240rpx;
		color: #06121E;
		font-size: 24rpx;
		margin-left: 30rpx;
		line-height: 1.4;
		/* margin-left: 18rpx; */
	}

	.caozuoshuo {
		width: 240rpx;
		text-align: center;
	}
</style>