2
3
shihang 6 лет назад
Родитель
Сommit
d88367b1de

+ 1 - 1
src/dashoo.cn/backend/api/controllers/oilsupplier/supplierfile.go

@@ -37,7 +37,7 @@ func (this *SupplierfileController) FileList() {
 	}
 	SupplierCertSubId := this.GetString("SupplierCertSubId")
 	if SupplierCertSubId != "" {
-		where = where + " and SupplierCertSubId = '" + SupplierCertSubId + "'"
+		where = where + " and SupplierCertSubId in ( '" + SupplierCertSubId + "')"
 	}
 	total := svc.GetPagingEntitiesWithoutAccCode(page.CurrentPage, page.Size, orderby, asc, &list, where)
 	var datainfo DataInfo

+ 4 - 4
src/dashoo.cn/frontend_web/src/components/oilsupplier/businesslist.vue

@@ -4,7 +4,6 @@
       <div slot="header" class="clearfix">
         <span style="font-weight: bold">分类</span>
         <el-button style="float: right; padding: 3px 0" type="text" @click="showDialog">添加</el-button>
-        <el-button style="float: right; padding: 3px 0" type="text" @click="getfilelist">文档列表</el-button>
       </div>
       <el-table :data="businessList" @selection-change="handleSelectionChange">
         <el-table-column type="selection" width="55"></el-table-column>
@@ -290,18 +289,19 @@
 
       handleSelectionChange(val) {
         this.selectBusiness = val
+        this.selectId = []
         if (this.selectBusiness && this.selectBusiness.length > 0) {
           for (var i = 0; i < this.selectBusiness.length; i++) {
             this.selectId.push(this.selectBusiness[i].Id)
           }
         }
-        console.log("===========================", this.selectId)
+        this.getfilelist()
       },
       subfiledialog() {
         this.$refs["subfileList"].showDialog()
       },
-      getfilelist(val) {
-        this.cersubId = val.Id + ''
+      getfilelist() {
+        this.cersubId = this.selectId.join(",")
         this.$refs["subfileList"].initData()
       },