123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254 |
- /*我的项目*/
- <template>
- <div class="myproject">
- <div class="title">
- <span>公开项目</span>
- </div>
- <div class="btn">
- </div>
- <div class="scher">
- <!-- <span></span>
- <span class="xuanzhogn">搜索</span><span style="padding: 0 5px;">|</span> -->
- <div class="input ">
- <!-- <el-select v-model="value" placeholder="请选择">
- <el-option
- v-for="item in options"
- :key="item.value"
- :label="item.label"
- :value="item.value">
- </el-option>
- </el-select> -->
- <el-input v-model="searchtag" placeholder="请输入项目名称" class="text" ></el-input>
- <el-button @click="search()" type="primary" icon="el-icon-search" style="border-radius:0;">搜索</el-button>
- </div>
- </div>
- <!-- 表格 -->
- <template>
- <el-table
- v-loading="loading"
- element-loading-text="拼命加载中"
- :data="tableData"
- height="600"
- class="lbg_color2"
- @row-click="rowclinck"
- style="width: 100%">
- <el-table-column
- label="名称"
- prop="name"
- >
- </el-table-column>
- <el-table-column
- prop="updateTime"
- label="最近编辑时间"
- >
-
- </el-table-column>
- <el-table-column
- prop="remark"
- label="描述">
-
- </el-table-column>
- <el-table-column
- prop="isshare"
- label="是否公开">
- <template slot-scope="scope">
- <span slot="content">{{
- scope.row.isshare == '0'?"公有":"私有"
-
- }}</span>
- </template>
- </el-table-column>
- </el-table>
- <div class="pagination">
- <Pagination
- :pagination-config="paginationConfig"
- @putPagination="getPagination"
- ></Pagination>
- </div>
- </template>
- </div>
- </template>
- <script>
- import Pagination from '@/components/Pagination'
- import { request, getImage } from '@/utils/request'
- export default {
- name: 'Project',
- components: {
- Pagination
- },
- data() {
- return {
- loading: false, // 是显示加载
- paginationConfig: {
- hideSinglePage: false,
- page: 1,
- size: 10,
- sizeList: [10, 15, 30, 50],
- layout: 'total, sizes, prev, pager, next, jumper',
- total: 0,
- },
- searchtag:'',
- isshare:"",
- formLabelWidth: '60px',
- formLabelWidth2:'73px',
- formLabelWidth4:'37px',
- formLabelWidth5:'100px',
- formLabelWidth6:'120px',
- value:'0',
- input:'',
- tableData: [ ],
- dialogVisible: false,
-
- }
- },
- created() {
- },
- mounted(){
- this.init();
- },
- methods: {
- init(){
- this.projectlist('');
- },
- // 分页查询
- getPagination(data) {
- this.paginationConfig = data;
- this.projectlist("");
- },
- // 项目查询
- search(){
- this.projectlist(this.searchtag);
- },
- projectlist(searchtag){//列表加载
- const loading = this.$loading({
- lock: true,
- text: 'Loading',
- spinner: 'el-icon-loading',
- background: 'rgba(0, 0, 0, 0.7)',
- })
- setTimeout(() => {
- const params = {
- transCode: 'C000011',
- page: this.paginationConfig.page,
- count: this.paginationConfig.size,
- searchtag:searchtag,
- }
- request(params)
- .then((res) => {
- loading.close()
- this.paginationConfig.total = res.total
- this.tableData=res.rows;
- })
- .catch((err) => {
- loading.close()
- })
- }, 1500)
- },
- rowclinck(row, column, event){
- },
- }
- }
- </script>
- <style lang="scss" scoped>
- @import '@/styles/variables.scss';
- @import '@/styles/mixin.scss';
- .myproject{
- padding: 15px;
- }
- .myproject .title span{
- font-size: 26px;
- display: inline-block;
- color: #b6b6b6;
- }
- /deep/.el-dialog__title{
- color: #fff;
- }
- /deep/ .el-pagination__editor {
- width: 50px;
- border: none;
- }
- .btn{
- padding: 10px;
- display: flex;
- justify-content: flex-end;
- }
- .scher{
- display: flex;
- padding-bottom: 15px;
- }
- .scher span{
- font-size: 16px;
- height: 40px;
- line-height: 40px;
- display: inline-block;
-
- }
- /deep/.newfile .el-form-item__label{
- line-height: 40px;
- }
- .newfile .el-form-item__label {
- text-align: right;
- vertical-align: middle;
- float: left;
- font-size: 14px;
- color: #606266;
- line-height: 1px;
- padding: 12px 12px 0 0;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- }
- .xuanzhogn{
- font-size: 16px;
- color: #b6b6b6;
- }
- .scher .input{
- width: 25%;
- min-width: 200px;
- box-sizing: border-box;
- transition: 0.5s linear;
- position:relative;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- overflow: hidden;
- color: #fff;
- .search{
- padding: 0 10px;
- }
- }
- .scher .el-select{
- width: 110px;
- }
- .input{
- display: flex;
- }
- .input .text{
- flex:1;
- }
- </style>
- <style >
- .scher .el-input__inner{
- border-radius: 0;
- border: none;
- }
- .pagination{
- margin-top: 50px;
- }
- </style>
|