|
|
|
@ -1,10 +1,16 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<basic-container> |
|
|
|
<basic-container> |
|
|
|
<avue-crud :option="option" :table-loading="loading" :data="data" :page.sync="page" ref="crud" :permission="permissionList" |
|
|
|
<avue-crud :option="option" :table-loading="loading" :data="data" :page.sync="page" ref="crud" |
|
|
|
@search-change="searchChange" @search-reset="searchReset" @selection-change="selectionChange" |
|
|
|
:permission="permissionList" @search-change="searchChange" @search-reset="searchReset" |
|
|
|
@current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad"> |
|
|
|
@selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange" |
|
|
|
|
|
|
|
@refresh-change="refreshChange" @on-load="onLoad"> |
|
|
|
<template #menu-left="{}"> |
|
|
|
<template #menu-left="{}"> |
|
|
|
<el-button>新增</el-button> |
|
|
|
<el-button type="prmary" icon="el-icon-plus" size="small">新增</el-button> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
<template #menu="{ row, index, size }"> |
|
|
|
|
|
|
|
<el-button type="text" :size="size" icon="el-icon-view" @click="$refs.crud.rowEdit(row, index)">详情</el-button> |
|
|
|
|
|
|
|
<el-button type="text" :size="size" icon="el-icon-edit" @click="$refs.crud.rowEdit(row, index)">编辑</el-button> |
|
|
|
|
|
|
|
<el-button type="text" :size="size" icon="el-icon-delete" @click="$refs.crud.rowDel(row, index)">删除</el-button> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</avue-crud> |
|
|
|
</avue-crud> |
|
|
|
</basic-container> |
|
|
|
</basic-container> |
|
|
|
@ -64,7 +70,7 @@ export default { |
|
|
|
prop: "nodeLabel", |
|
|
|
prop: "nodeLabel", |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "创建时间时间", |
|
|
|
label: "创建时间", |
|
|
|
prop: "createTime", |
|
|
|
prop: "createTime", |
|
|
|
labelWidth: 120, |
|
|
|
labelWidth: 120, |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
@ -96,7 +102,6 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
mounted() { |
|
|
|
// this.loadDict(); |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
//字典加载 |
|
|
|
//字典加载 |
|
|
|
@ -274,8 +279,8 @@ export default { |
|
|
|
this.page.total = data.total; |
|
|
|
this.page.total = data.total; |
|
|
|
data.rows.map(item => { |
|
|
|
data.rows.map(item => { |
|
|
|
item.node = item.bizProduct.node; |
|
|
|
item.node = item.bizProduct.node; |
|
|
|
item.nodeLabel = this.renderLabel(item.node,'node'); |
|
|
|
// item.nodeLabel = this.renderLabel(item.node,'node'); |
|
|
|
item.statusLabel = this.renderLabel(item.status,'status') |
|
|
|
// item.statusLabel = this.renderLabel(item.status,'status') |
|
|
|
}) |
|
|
|
}) |
|
|
|
this.data = data.rows; |
|
|
|
this.data = data.rows; |
|
|
|
} |
|
|
|
} |
|
|
|
|