|
|
@ -2,14 +2,15 @@ |
|
|
|
<div> |
|
|
|
<!--工具栏--> |
|
|
|
<div class="head-container"> |
|
|
|
<div> |
|
|
|
<!-- 搜索 --> |
|
|
|
<el-input v-model="query.query" size="small" clearable placeholder="请输入关键词" prefix-icon="el-icon-search" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" /> |
|
|
|
<span> |
|
|
|
<el-button class="filter-item" size="mini" type="success" icon="el-icon-search" @click="crud.toQuery" /> |
|
|
|
</span> |
|
|
|
<el-checkbox v-model="fixedStatusBar">隐藏固定状态栏</el-checkbox> |
|
|
|
</div> |
|
|
|
<crudOperation :permission="permission"> |
|
|
|
<template v-slot:right> |
|
|
|
<!-- 搜索 --> |
|
|
|
<el-input v-model="query.blurry" size="small" clearable placeholder="请输入关键词" prefix-icon="el-icon-search" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" /> |
|
|
|
<span> |
|
|
|
<el-button class="filter-item" size="mini" type="success" icon="el-icon-search" @click="crud.toQuery" /> |
|
|
|
</span> |
|
|
|
</template> |
|
|
|
<template v-slot:rightButtonGroup> |
|
|
|
<div class="crud-opts-right"> |
|
|
|
<el-button size="mini" type="primary">装盒</el-button> |
|
|
@ -80,6 +81,25 @@ import PreviewForm from '@/views/components/category/PreviewForm' |
|
|
|
|
|
|
|
export default { |
|
|
|
components: { crudOperation, pagination, PreviewForm }, |
|
|
|
mixins: [ |
|
|
|
presenter(), |
|
|
|
header(), |
|
|
|
form({}) |
|
|
|
], |
|
|
|
props: { |
|
|
|
selectedCategory: { |
|
|
|
type: Object, |
|
|
|
default: function() { |
|
|
|
return { |
|
|
|
cnName: '', |
|
|
|
isType: '', |
|
|
|
parentName: '', |
|
|
|
isColumnLength: '', |
|
|
|
remark: '' |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
cruds() { |
|
|
|
return [ |
|
|
|
CRUD({ |
|
|
@ -100,14 +120,6 @@ export default { |
|
|
|
}) |
|
|
|
] |
|
|
|
}, |
|
|
|
mixins: [ |
|
|
|
presenter(), |
|
|
|
header(), |
|
|
|
// form(function() { |
|
|
|
// return Object.assign({ dicPid: this.dicPid }, defaultForm) |
|
|
|
// }) |
|
|
|
form({}) |
|
|
|
], |
|
|
|
data() { |
|
|
|
return { |
|
|
|
// dicPid: null, |
|
|
@ -125,6 +137,7 @@ export default { |
|
|
|
edit: ['admin', 'archivesList:edit'], |
|
|
|
del: ['admin', 'archivesList:del'] |
|
|
|
}, |
|
|
|
fixedStatusBar: true, |
|
|
|
deleteVisible: false, |
|
|
|
deleteData: {}, |
|
|
|
tableDisplayFields: [], |
|
|
@ -163,7 +176,15 @@ export default { |
|
|
|
} else { |
|
|
|
this.crud.defaultForm[item.fieldName] = null |
|
|
|
} |
|
|
|
if (item.sysDictionaryId) { |
|
|
|
// this.$nextTick(() => { |
|
|
|
// // 加载数据字典 |
|
|
|
// this.getDict(item.sysDictionaryId) |
|
|
|
// }) |
|
|
|
} |
|
|
|
}) |
|
|
|
this.crud.defaultForm.categoryId = 'FFAFBB1647D459C82080A' |
|
|
|
this.form.categoryId = 'FFAFBB1647D459C82080A' |
|
|
|
return true |
|
|
|
}) |
|
|
|
}, |
|
|
|