提交 855d4f2a authored 作者: CRS's avatar CRS

new

上级 c181e730
...@@ -132,6 +132,8 @@ ...@@ -132,6 +132,8 @@
} }
.el-pagination__editor .el-input__inner{ .el-pagination__editor .el-input__inner{
width: 46px !important; width: 46px !important;
height: 28px !important;
line-height: 28px !important;
} }
.content>>>.el-table td{ .content>>>.el-table td{
border-bottom: 1px solid #d5e3ff; border-bottom: 1px solid #d5e3ff;
...@@ -161,3 +163,8 @@ ...@@ -161,3 +163,8 @@
font-size: 18px; font-size: 18px;
font-family: 'Regular'; font-family: 'Regular';
} }
/*滚动条*/
.el-scrollbar__wrap {
overflow-x: hidden;
}
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
:current-page.sync="currentPage" :current-page.sync="currentPage"
:page-size="pageSize" :page-size="pageSize"
background background
layout="prev, pager, next" layout="prev, pager, next, jumper"
:total="totalLength"> :total="totalLength">
</el-pagination> </el-pagination>
</div> </div>
......
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
:current-page.sync="currentPage" :current-page.sync="currentPage"
:page-size="pageSize" :page-size="pageSize"
background background
layout="prev, pager, next" layout="prev, pager, next, jumper"
:total="totalLength"> :total="totalLength">
</el-pagination> </el-pagination>
</div> </div>
......
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
:current-page.sync="currentPage" :current-page.sync="currentPage"
:page-size="pagesize" :page-size="pagesize"
background background
layout="prev, pager, next" layout="prev, pager, next, jumper"
:total="totleLength"> :total="totleLength">
</el-pagination> </el-pagination>
</div> </div>
......
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
:current-page.sync="currentPage" :current-page.sync="currentPage"
:page-size="pageSize" :page-size="pageSize"
background background
layout="prev, pager, next" layout="prev, pager, next, jumper"
:total="totalLength"> :total="totalLength">
</el-pagination> </el-pagination>
</div> </div>
......
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
:current-page.sync="currentPage" :current-page.sync="currentPage"
:page-size="pagesize" :page-size="pagesize"
background background
layout="prev, pager, next" layout="prev, pager, next, jumper"
:total="totleLength"> :total="totleLength">
</el-pagination> </el-pagination>
</div> </div>
......
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
:current-page.sync="currentPage" :current-page.sync="currentPage"
:page-size="pageSize" :page-size="pageSize"
background background
layout="prev, pager, next" layout="prev, pager, next, jumper"
:total="totalLength"> :total="totalLength">
</el-pagination> </el-pagination>
</div> </div>
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
:current-page.sync="currentPage" :current-page.sync="currentPage"
:page-size="pagesize" :page-size="pagesize"
background background
layout="prev, pager, next" layout="prev, pager, next, jumper"
:total="totleLength"> :total="totleLength">
</el-pagination> </el-pagination>
</div> </div>
......
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
:current-page.sync="currentPage" :current-page.sync="currentPage"
:page-size="pagesize" :page-size="pagesize"
background background
layout="prev, pager, next" layout="prev, pager, next, jumper"
:total="totleLength"> :total="totleLength">
</el-pagination> </el-pagination>
</div> </div>
......
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
:current-page.sync="currentPage" :current-page.sync="currentPage"
:page-size="pagesize" :page-size="pagesize"
background background
layout="prev, pager, next" layout="prev, pager, next, jumper"
:total="totleLength"> :total="totleLength">
</el-pagination> </el-pagination>
</div> </div>
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
:current-page.sync="currentPage" :current-page.sync="currentPage"
:page-size="pagesize" :page-size="pagesize"
background background
layout="prev, pager, next" layout="prev, pager, next, jumper"
:total="totleLength"> :total="totleLength">
</el-pagination> </el-pagination>
</div> </div>
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
:current-page.sync="currentPage" :current-page.sync="currentPage"
:page-size="pagesize" :page-size="pagesize"
background background
layout="prev, pager, next" layout="prev, pager, next, jumper"
:total="totleLength"> :total="totleLength">
</el-pagination> </el-pagination>
</div> </div>
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
:current-page.sync="currentPage" :current-page.sync="currentPage"
:page-size="pagesize" :page-size="pagesize"
background background
layout="prev, pager, next" layout="prev, pager, next, jumper"
:total="totleLength"> :total="totleLength">
</el-pagination> </el-pagination>
</div> </div>
......
...@@ -18,22 +18,17 @@ ...@@ -18,22 +18,17 @@
stripe stripe
style="width: 100%;"> style="width: 100%;">
<el-table-column <el-table-column
prop="name" prop="content"
label="操作内容" label="操作内容"
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="roleName" prop="userName"
label="操作人" label="操作人"
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="unitName" prop="time"
label="操作记录"
align="center">
</el-table-column>
<el-table-column
prop="number"
label="操作时间" label="操作时间"
align="center"> align="center">
</el-table-column> </el-table-column>
...@@ -47,7 +42,7 @@ ...@@ -47,7 +42,7 @@
:current-page.sync="currentPage" :current-page.sync="currentPage"
:page-size="pagesize" :page-size="pagesize"
background background
layout="prev, pager, next" layout="prev, pager, next, jumper"
:total="totleLength"> :total="totleLength">
</el-pagination> </el-pagination>
</div> </div>
...@@ -60,7 +55,7 @@ ...@@ -60,7 +55,7 @@
<script> <script>
export default { export default {
name: 'journal', props: ['value'],
data () { data () {
return { return {
searchVal: '', searchVal: '',
...@@ -70,7 +65,42 @@ export default { ...@@ -70,7 +65,42 @@ export default {
totleLength: 0, // 获取后台传的所有数据的长度 totleLength: 0, // 获取后台传的所有数据的长度
} }
}, },
mounted(){
this.init();
},
methods: { methods: {
init() {
let val;
if (this.searchVal === '') {
val = {
'page': this.currentPage,
'pageSize': this.pagesize,
't': {
'projectId': this.value.id
}
}
} else {
val = {
'page': this.currentPage,
'pageSize': this.pagesize,
't': {
'projectId': this.value.id
}
}
}
this.$server.PostHistorySearch(val).then((res) => { // 数据请求
console.log(res.data)
if (res.data.code === 200) {
this.allData = res.data.data.rows;
this.totleLength = res.data.data.total
for (let item of this.allData) {
item.time = this.timeC(item.time)
}
}
}).catch(err => {
this.$message.error('数据请求失败!');
})
},
// 点击分页 // 点击分页
handleSizeChange(val) { handleSizeChange(val) {
console.log(`每页 ${val} 条`); console.log(`每页 ${val} 条`);
...@@ -79,6 +109,17 @@ export default { ...@@ -79,6 +109,17 @@ export default {
handleCurrentChange(val) { handleCurrentChange(val) {
// console.log(`当前页: ${val}`); // console.log(`当前页: ${val}`);
this.currentPage = val; this.currentPage = val;
},
// 时间换算
timeC(value) {
let date = new Date(value); // 时间戳为10位需*1000,时间戳为13位的话不需乘1000
let Y = date.getFullYear() + '-';
let M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-';
let D = (date.getDate() < 10 ? '0' + date.getDate() : date.getDate());
let h = (date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ':';
let m = (date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()) + ':';
let s = (date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds());
return Y + M + D + ' ' + h + m + s;
} }
} }
} }
......
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
:current-page.sync="currentPage" :current-page.sync="currentPage"
:page-size="pagesize" :page-size="pagesize"
background background
layout="prev, pager, next" layout="prev, pager, next, jumper"
:total="totleLength"> :total="totleLength">
</el-pagination> </el-pagination>
</div> </div>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<el-col :span="24"> <el-col :span="24">
<div class="contentAll"> <div class="contentAll">
<p class="title">项目管理 <p class="title">项目管理
<img src="./img/goback.png" class="back" @click="back" title="返回"> <span class="back" @click="back" title="返回"></span>
</p> </p>
<p class="titleList"> <p class="titleList">
<span class="titleListClick" @click="changeMenu('projectInformation',1)">项目信息</span> <span class="titleListClick" @click="changeMenu('projectInformation',1)">项目信息</span>
...@@ -91,10 +91,14 @@ export default { ...@@ -91,10 +91,14 @@ export default {
position: absolute; position: absolute;
left: 25px; left: 25px;
top: 28px; top: 28px;
display: inline-block;
width: 25px;
height: 25px;
background: url("./img/goback.png");
cursor: pointer; cursor: pointer;
} }
.projectDetails .contentAll .back:hover{ .projectDetails .contentAll .back:hover{
content: url("./img/gobackH.png"); background: url("./img/gobackH.png");
} }
.projectDetails .contentAll .titleList{ .projectDetails .contentAll .titleList{
margin: 30px 60px 0 60px; margin: 30px 60px 0 60px;
......
...@@ -110,15 +110,15 @@ export default { ...@@ -110,15 +110,15 @@ export default {
data () { data () {
return { return {
allVal: { allVal: {
name: 'XX局XX工程', // 项目名称 name: '', // 项目名称
startTime: '2020-02-01', // 开始时间 startTime: '', // 开始时间
endTime: '2022-07-12', // 结束时间 endTime: '', // 结束时间
technical: '龙芯+达梦+金蝶+曙光服务器', // 技术路线 technical: '', // 技术路线
now: 'XX阶段', // 当前阶段 now: '', // 当前阶段
build: 'XX局', // 建设方 build: '', // 建设方
basis: 'XXX公司', // 集成商 basis: '', // 集成商
develop: 'XXX公司', // 开发商 develop: '', // 开发商
supervision: 'XX公司' // 监理方 supervision: '' // 监理方
}, },
marker: [ marker: [
{ {
...@@ -182,27 +182,36 @@ export default { ...@@ -182,27 +182,36 @@ export default {
}, },
methods: { methods: {
init() { init() {
console.log(this.value)
this.$server.GetProjectGet(this.value.id).then((res) => { // 数据请求
console.log(res.data)
if (res.data.code === 200) {
console.log(res.data.data)
}
}).catch(err => {
this.$message.error('数据请求失败!');
})
let that = this; let that = this;
setTimeout(()=>{ setTimeout(()=>{
that.allVal.name = that.value.name, // 项目名称 that.$server.GetProjectGet(that.value.id).then((res) => { // 数据请求
that.allVal.startTime = that.value.startTime, // 开始时间 if (res.data.code === 200) {
that.allVal.endTime = that.value.endTime, // 结束时间 console.log(res.data.data)
that.allVal.technical = that.value.techName, // 技术路线 that.allVal.name = res.data.data.name, // 项目名称
that.allVal.now = that.value.schedule, // 当前阶段 that.allVal.startTime = that.timeC(res.data.data.startTime), // 开始时间
that.allVal.build = that.value.consName, // 建设方 that.allVal.endTime = that.timeC(res.data.data.endTime), // 结束时间
that.allVal.basis = that.value.gratorName, // 集成商 that.allVal.technical = res.data.data.techName, // 技术路线
that.allVal.develop = that.value.devName, // 开发商 that.allVal.now = res.data.data.schedule, // 当前阶段
that.allVal.supervision = that.value.thirdName // 监理方 that.allVal.build = res.data.data.consName, // 建设方
that.allVal.basis = res.data.data.gratorName, // 集成商
that.allVal.develop = res.data.data.devName, // 开发商
that.allVal.supervision = res.data.data.thirdName // 监理方
}
}).catch(err => {
this.$message.error('数据请求失败!');
})
},30) },30)
},
// 时间换算
timeC(value) {
let date = new Date(value); // 时间戳为10位需*1000,时间戳为13位的话不需乘1000
let Y = date.getFullYear() + '-';
let M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-';
let D = (date.getDate() < 10 ? '0' + date.getDate() : date.getDate());
let h = (date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ':';
let m = (date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()) + ':';
let s = (date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds());
return Y + M + D + ' ' + h + m + s;
} }
}, },
components: { components: {
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
:current-page.sync="currentPage" :current-page.sync="currentPage"
:page-size="pagesize" :page-size="pagesize"
background background
layout="prev, pager, next" layout="prev, pager, next, jumper"
:total="totleLength"> :total="totleLength">
</el-pagination> </el-pagination>
</div> </div>
......
...@@ -233,6 +233,12 @@ const server = { ...@@ -233,6 +233,12 @@ const server = {
return axios('/project/get/' + id, { return axios('/project/get/' + id, {
method: 'get' method: 'get'
}) })
},
PostHistorySearch(data) { // 操作日志接口
return axios('/history/search', {
method: 'post',
data: data
})
} }
} }
export default server; export default server;
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论