Sfoglia il codice sorgente

项目商机竞争对手调整

qymljy 2 anni fa
parent
commit
b7da3b7187

+ 14 - 6
src/HDrpManagement/projectChange/modules/modules/rival/modules/add.vue

@@ -19,7 +19,7 @@
                     width="580"
                     trigger="click"
                     v-model="enterpriseShow"
-                    @show="enterpriseList">
+                    @show="onShow">
                   <el-input  style="width:200px;" placeholder="搜索" :suffix-icon="enterpriseParam.content.where.condition?enterpriseParam.content.where.condition.length > 0?'':'':'el-icon-search'" v-model="enterpriseParam.content.where.condition" @keyup.native.enter="enterpriseList(enterpriseParam.content.pageNumber = 1)" @clear="enterpriseList(enterpriseParam.content.pageNumber = 1)" size="small" class="input-with-select inline-16 layout_search__panel" clearable>
                   </el-input>
                   <el-table :data="enterprise.enterpriseData" @row-click="enterpriseData" height="400px">
@@ -70,10 +70,12 @@
                   <div class="container normal-panel" style="text-align:right">
                     <el-pagination
                         background
-                        small
                         @size-change="handleSizeChangeProject"
                         @current-change="handleCurrentChangeProject"
                         :current-page="enterprise.currentPage"
+                        :page-sizes="[20, 50, 100, 200]"
+                        :page-size="20"
+                        layout="total,sizes, prev, pager, next, jumper"
                         :total="enterprise.total">
                     </el-pagination>
                   </div>
@@ -167,6 +169,10 @@ export default {
     }
   },
   methods:{
+    onShow(){
+      this.enterpriseParam.content.where.condition = ''
+      this.enterpriseList(this.enterpriseParam.content.pageNumber = 1)
+    },
     /*可选企业列表*/
     async enterpriseList(){
       this.enterpriseParam.content.where.sa_projectid = this.data.sa_projectid
@@ -234,17 +240,19 @@ export default {
     handleSizeChangeProject(val) {
       // console.log(`每页 ${val} 条`);
       this.enterpriseParam.content.pageSize = val
-      this.projectList()
+      this.enterpriseList()
     },
     handleCurrentChangeProject(val) {
       // console.log(`当前页: ${val}`);
       this.enterpriseParam.content.pageNumber = val
-      this.projectList()
+      this.enterpriseList()
     },
   }
 }
 </script>
 
 <style scoped>
-
-</style>
+  /deep/ .el-input__validateIcon {
+    display: none;
+  }
+</style>

+ 10 - 4
src/HDrpManagement/projectChange/modules/modules/rival/modules/edit.vue

@@ -19,7 +19,7 @@
                     width="580"
                     trigger="click"
                     v-model="enterpriseShow"
-                    @show="enterpriseList">
+                    @show="enterpriseOnShow">
                   <el-table :data="enterprise.enterpriseData" @row-click="enterpriseData">
                     <el-table-column
                         label="品牌名称"
@@ -68,10 +68,12 @@
                   <div class="container normal-panel" style="text-align:right">
                     <el-pagination
                         background
-                        small
                         @size-change="handleSizeChangeProject"
                         @current-change="handleCurrentChangeProject"
                         :current-page="enterprise.currentPage"
+                        :page-sizes="[20, 50, 100, 200]"
+                        :page-size="20"
+                        layout="total,sizes, prev, pager, next, jumper"
                         :total="enterprise.total">
                     </el-pagination>
                   </div>
@@ -170,6 +172,10 @@ export default {
       console.log(this.data)
       this.form = Object.assign({},this.form,this.data)
     },
+    enterpriseOnShow(){
+      this.enterpriseParam.content.where.condition = ''
+      this.enterpriseList(this.enterpriseParam.content.pageNumber = 1)
+    },
     /*可选企业列表*/
     async enterpriseList(){
       this.enterpriseParam.content.where.sa_projectid = this.data.sa_projectid
@@ -237,12 +243,12 @@ export default {
     handleSizeChangeProject(val) {
       // console.log(`每页 ${val} 条`);
       this.enterpriseParam.content.pageSize = val
-      this.projectList()
+      this.enterpriseList()
     },
     handleCurrentChangeProject(val) {
       // console.log(`当前页: ${val}`);
       this.enterpriseParam.content.pageNumber = val
-      this.projectList()
+      this.enterpriseList()
     },
   }
 }