Explorar el Código

大件客户新增联系人

caojunjie hace 1 año
padre
commit
15996ffba2
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  1. 7 0
      src/views/basicData/customerInformation/detailsPageEdit.vue

+ 7 - 0
src/views/basicData/customerInformation/detailsPageEdit.vue

@@ -141,6 +141,9 @@
               @row-save="rowSave"
               @row-update="rowUpdate"
               @row-del="rowDel">
+              <template slot-scope="{ type, size, row, index }" slot="menuLeft">
+                  <el-button icon="el-icon-plus" :size="size" type="primary" @click="khrowAddfun">新增</el-button>
+              </template>
             <template slot-scope="{ type, size, row }" slot="menu">
               <el-button icon="el-icon-check" :size="size" :type="type" @click="creatingUsers(row)">创建用户</el-button>
             </template>
@@ -1111,6 +1114,10 @@ export default {
         this.$message.error("请保存数据后再点击");
       }
     },
+      khrowAddfun(){
+          // if (!this.form.id) return this.$message.warning('请先保存数据');
+          this.$refs.crud.rowAdd()
+      },
     //新增客户联系人保存触发
     rowSave(row, done, loading) {
       console.log(row, done, loading);