Commit 816ba099 authored by kaitly205422@163.com's avatar kaitly205422@163.com

缺少文件

parent 8a9e2d81
...@@ -2,13 +2,8 @@ ...@@ -2,13 +2,8 @@
<div class="app-container"> <div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="68px"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="68px">
<el-form-item label="项目名称" prop="projectName"> <el-form-item label="项目名称" prop="projectName">
<el-input <el-input v-model="queryParams.projectName" placeholder="请输入项目名称1" clearable style="width: 240px"
v-model="queryParams.projectName" @keyup.enter.native="handleQuery" />
placeholder="请输入项目名称"
clearable
style="width: 240px"
@keyup.enter.native="handleQuery"
/>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
...@@ -17,75 +12,70 @@ ...@@ -17,75 +12,70 @@
</el-form> </el-form>
<div v-for="(item, index) in projectList" :key="index" class="projectItem" @click="projectDetail(item)"> <div v-for="(item, index) in projectList" :key="index" class="projectItem" @click="projectDetail(item)">
<div class="left"> <div class="left">
<p>{{item.projectName}}</p> <p>{{ item.projectName }}</p>
<p>项目类型:{{item.projectType}} | 项目地址:{{item.projectAddress}}</p> <p>项目类型:{{ item.projectType }} | 项目地址:{{ item.projectAddress }}</p>
</div> </div>
<img src="../../../assets/images/work.svg" alt=""> <img src="../../../assets/images/work.svg" alt="">
</div> </div>
<pagination <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
v-show="total > 0" @pagination="getList" />
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
</div> </div>
</template> </template>
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
import { listCurrentProject } from '@/api/risk/currentProject' import { listCurrentProject } from '@/api/risk/currentProject'
export default { export default {
name: 'currentProject', name: 'currentProject',
data() { data() {
return { return {
// 遮罩层 // 遮罩层
loading: true, loading: true,
projectList:[], projectList: [],
// 总条数 // 总条数
total: 0, total: 0,
// 查询参数 // 查询参数
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
projectName: null, projectName: null,
}, },
} }
},
created() {
this.getList();
},
mounted() {
},
methods: {
/** 查询基础数据-项目列表 */
getList() {
this.loading = true;
this.queryParams.userId = this.$store.getters.userId
listCurrentProject(this.queryParams).then((response) => {
this.projectList = response.rows;
this.total = response.total;
this.loading = false;
});
}, },
created(){ /** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList(); this.getList();
}, },
mounted() { /** 重置按钮操作 */
}, resetQuery() {
methods: { this.resetForm("queryForm");
/** 查询基础数据-项目列表 */ this.handleQuery();
getList() {
this.loading = true;
this.queryParams.userId = this.$store.getters.userId
listCurrentProject(this.queryParams).then((response) => {
this.projectList = response.rows;
this.total = response.total;
this.loading = false;
});
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
},
projectDetail(val){
this.$router.push("/risk/currentProject/projectPost/index/" + val.projectId)
}
}, },
projectDetail(val) {
this.$router.push("/risk/currentProject/projectPost/index/" + val.projectId)
}
},
} }
</script> </script>
<style scoped lang='scss'> <style scoped lang='scss'>
.projectItem{ .projectItem {
width: 100%; width: 100%;
padding: 25px 120px 25px 30px; padding: 25px 120px 25px 30px;
margin-bottom: 25px; margin-bottom: 25px;
...@@ -96,13 +86,15 @@ import { listCurrentProject } from '@/api/risk/currentProject' ...@@ -96,13 +86,15 @@ import { listCurrentProject } from '@/api/risk/currentProject'
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
.left{
.left {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: flex-start; align-items: flex-start;
justify-content: space-between; justify-content: space-between;
:first-child{
color: #3277f5 ; :first-child {
color: #3277f5;
font-size: 18px; font-size: 18px;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment