|
@@ -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);
|