|
@@ -36,6 +36,23 @@
|
|
|
@click="handleDelete">删 除
|
|
|
</el-button>
|
|
|
</template>
|
|
|
+ <template slot-scope="scope" slot="menu">
|
|
|
+ <el-button
|
|
|
+ :type="scope.type"
|
|
|
+ :size="scope.size"
|
|
|
+ icon="el-icon-edit"
|
|
|
+ @click.stop="rowCellfun(scope.row, scope.index)"
|
|
|
+ >编辑
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ :type="scope.type"
|
|
|
+ :size="scope.size"
|
|
|
+ icon="el-icon-delete"
|
|
|
+ @click.stop="rowDel(scope.row, scope.index)"
|
|
|
+ >删除
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
+
|
|
|
</avue-crud>
|
|
|
</basic-container>
|
|
|
|
|
@@ -162,6 +179,7 @@
|
|
|
{
|
|
|
label: "创建时间",
|
|
|
prop: "createTime",
|
|
|
+ width:160,
|
|
|
display:false,
|
|
|
},
|
|
|
{
|
|
@@ -178,6 +196,7 @@
|
|
|
{
|
|
|
label: "修改时间",
|
|
|
prop: "updateTime",
|
|
|
+ width:160,
|
|
|
display:false,
|
|
|
},
|
|
|
{
|
|
@@ -242,6 +261,17 @@
|
|
|
};
|
|
|
this.isShow = false
|
|
|
},
|
|
|
+ // 编辑详情打开
|
|
|
+ rowCellfun(row,index){
|
|
|
+ this.detailData = {
|
|
|
+ seeDisabled: true,
|
|
|
+ id: row.id
|
|
|
+ };
|
|
|
+ this.isShow = false
|
|
|
+ this.$nextTick(()=>{
|
|
|
+ this.$refs.baccitems.baccitemstypeDetailfun(row.id)
|
|
|
+ })
|
|
|
+ },
|
|
|
|
|
|
rowSave(row, done, loading) {
|
|
|
baccitemstypeSubmit(row).then(() => {
|