update all
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
</yo-table>
|
||||
</a-card>
|
||||
<br />
|
||||
<edit-form @ok="onReloadData" ref="edit-form" />
|
||||
<edit-form @ok="onReloadData" ref="edit-form" />
|
||||
<add-form @ok="onReloadData" ref="add-form" />
|
||||
</container>
|
||||
</template>
|
||||
@@ -47,10 +47,10 @@
|
||||
import AddForm from './addForm';
|
||||
import editForm from './editForm';
|
||||
export default {
|
||||
components: {
|
||||
AddForm,
|
||||
editForm,
|
||||
},
|
||||
components: {
|
||||
AddForm,
|
||||
editForm,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
query: {},
|
||||
@@ -58,35 +58,44 @@ components: {
|
||||
{
|
||||
title: '参数名称',
|
||||
dataIndex: 'name',
|
||||
sorter: true,
|
||||
},
|
||||
{
|
||||
title: '唯一编码',
|
||||
dataIndex: 'code',
|
||||
sorter: true,
|
||||
},
|
||||
{
|
||||
title: '参数值',
|
||||
dataIndex: 'value',
|
||||
sorter: true,
|
||||
},
|
||||
{
|
||||
title: '所属分类',
|
||||
dataIndex: 'groupCode',
|
||||
},
|
||||
{
|
||||
title: '备注',
|
||||
dataIndex: 'remark',
|
||||
sorter: true,
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
width: '200px',
|
||||
dataIndex: 'action',
|
||||
scopedSlots: {
|
||||
customRender: 'action',
|
||||
},
|
||||
title: '备注',
|
||||
dataIndex: 'remark',
|
||||
sorter: true,
|
||||
},
|
||||
],
|
||||
};
|
||||
},
|
||||
created() {},
|
||||
created() {
|
||||
const flag = this.$auth({ sysConfig: [['edit'], ['delete']] });
|
||||
if (flag) {
|
||||
this.columns.push({
|
||||
title: '操作',
|
||||
width: '200px',
|
||||
dataIndex: 'action',
|
||||
scopedSlots: {
|
||||
customRender: 'action',
|
||||
},
|
||||
});
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
/**
|
||||
* 必要的方法
|
||||
|
||||
Reference in New Issue
Block a user