123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- <template>
- <div>
- <div>
- <div class="inline-16" style="margin-bottom:10px">
- <el-input suffix-icon="el-icon-search" size="small" v-model="params.content.where.condition" placeholder="产品名称,编号" @keyup.enter.native="queryEnterpriseArchives(params.content.pageNumber = 1)" @clear="queryEnterpriseArchives(params.content.pageNumber = 1)" clearable></el-input>
- </div>
- <el-table
- :data="ENlist"
- stripe
- style="width: 100%"
- height="300"
- border>
- <el-table-column
- prop="projectnum"
- label="项目编号"
- width="180">
- </el-table-column>
- <el-table-column
- prop="projectname"
- label="项目名称"
- width="180">
- </el-table-column>
- <el-table-column
- prop="status"
- label="状态">
- </el-table-column>
- <el-table-column>
- <template slot-scope="scope">
- <el-button size="mini" type="text" @click="rowClick(scope.row)">选 择</el-button>
- </template>
- </el-table-column>
- </el-table>
- <div style="display:flex;justify-content:space-between;margin-top:16px;">
- <div style="text-align:left">
- <el-pagination
- background
- small
- @size-change="handleSizeChange"
- @current-change="handleCurrentChange"
- :current-page="params.content.pageNumber"
- :page-size="params.content.pageSize"
- layout="total, prev, pager, next"
- :total="total">
- </el-pagination>
- </div>
- <el-button size="mini" @click="$emit('onCanel')">取消</el-button>
- </div>
-
-
- </div>
- <!-- <el-input :validate-event="false" slot="reference" v-model="form.enterprisename" @focus="queryEnterpriseArchives" placeholder="输入企业名称" clearable></el-input> -->
- </div>
- </template>
- <script>
- export default {
- data () {
- return {
- ENlist:[],
- total:0,
- currentPage:0,
- form:{},
- params:{
- "id": 20221020143502,
- "content": {
- "pageNumber": 1,
- "pageSize": 20,
- "type":0, // 1:我负责的;2:我参与的;3:我下属负责的;4:我下属参与的
- "where": {
- "condition": "",
- "startdate": "",
- "enddate": "",
- "status":"",//跟进中、已成交、已失败
- "projecttype":"",
- "stagename":"",
- "tag":""
- }
- },
- },
- selected:''
- }
- },
- methods:{
- async queryEnterpriseArchives () {
- const res = await this.$api.requested(this.params)
- this.ENlist = res.data
- this.total = res.total
- console.log(this.ENlist);
-
- },
- handleSizeChange(val) {
- this.params.content.pageSize = val
- this.queryEnterpriseArchives()
- },
- handleCurrentChange(val) {
- this.params.content.pageNumber = val
- this.queryEnterpriseArchives()
- },
- rowClick (row) {
- this.$emit('onSelect',row)
- },
- onCancel () {
- this.$emit('onCancel')
- }
- },
- mounted () {
- this.queryEnterpriseArchives()
- }
- }
- </script>
- <style>
- </style>
|