Sfoglia il codice sorgente

往来单位详情10.13

caojunjie 1 anno fa
parent
commit
7d59a1c5c4
1 ha cambiato i file con 16 aggiunte e 12 eliminazioni
  1. 16 12
      src/views/iosBasicData/bcorps/index.vue

+ 16 - 12
src/views/iosBasicData/bcorps/index.vue

@@ -41,9 +41,11 @@
               </avue-text-ellipsis>
             </template>
             <template slot="cnName" slot-scope="scope">
-              <avue-text-ellipsis :text="scope.row.cnName" :height="30" use-tooltip placement="top">
-                <small slot="more">...</small>
-              </avue-text-ellipsis>
+                <div style="color: #1e9fff;cursor: pointer;" @click.stop="editOpen(scope.row)">
+                    <avue-text-ellipsis :text="scope.row.cnName" :height="30" use-tooltip placement="top">
+                        <small slot="more">...</small>
+                    </avue-text-ellipsis>
+                </div>
             </template>
             <template slot="enName" slot-scope="scope">
               <avue-text-ellipsis :text="scope.row.enName" :height="30" use-tooltip placement="top">
@@ -117,12 +119,16 @@
               <el-button type="success" size="small" @click="handleExport" icon="el-icon-printer">导出</el-button>
             </template>
             <template slot-scope="{ row, index }" slot="menu">
-              <el-button type="text" size="small" @click.stop="editOpen(row)">
-                编辑
-              </el-button>
-              <!-- <el-button type="text" size="small" @click.stop="editOpen(row, 1)">
-                            编辑
-                          </el-button> -->
+                <el-button type="text" style="color: #85e967" size="small" @click.stop="statusfun">
+                  启用
+                </el-button>
+                <el-button type="text" style="color: #e83c3a" size="small" @click.stop="">
+                    停用
+                </el-button>
+
+              <!--<el-button type="text" size="small" @click.stop="editOpen(row)">-->
+              <!--  编辑-->
+              <!--</el-button>-->
               <el-button type="text" size="small" @click.stop="rowDel(row, index)" :disabled="row.status > 0">
                 删除
               </el-button>
@@ -554,7 +560,6 @@ export default {
             label: "SCAC 代码",
             prop: "scacCode",
             width: "160",
-            width: 100,
             rules: [{
               required: true,
               message: "请输入SCAC 代码",
@@ -1114,9 +1119,8 @@ export default {
     },
     // 获取客户类别
     bcorpstypedefineListfun() {
-      bcorpstypedefineList().then(res => {
+      bcorpstypedefineList(1,30).then(res => {
         this.customTypeData = res.data.data.records
-        console.log(this.customTypeData);
       })
     },
     editOpen(row) {