|
|
|
@ -66,7 +66,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 新增或编辑目录弹窗 -->
|
|
|
|
|
<el-dialog
|
|
|
|
|
:title="groupForm.code ? '编辑分组' : '新建分组'"
|
|
|
|
|
:title="currentCatalog.code ? '编辑分组' : '新建分组'"
|
|
|
|
|
:visible.sync="catalogVisible"
|
|
|
|
|
custom-class="bs-el-dialog"
|
|
|
|
|
width="30%"
|
|
|
|
@ -75,7 +75,7 @@
|
|
|
|
|
>
|
|
|
|
|
<el-form
|
|
|
|
|
ref="form"
|
|
|
|
|
:model="groupForm"
|
|
|
|
|
:model="currentCatalog"
|
|
|
|
|
label-width="80px"
|
|
|
|
|
:rules="formRules"
|
|
|
|
|
class="bs-el-form"
|
|
|
|
@ -85,14 +85,14 @@
|
|
|
|
|
prop="name"
|
|
|
|
|
>
|
|
|
|
|
<el-input
|
|
|
|
|
v-model.trim="groupForm.name"
|
|
|
|
|
v-model.trim="currentCatalog.name"
|
|
|
|
|
class="bs-el-input"
|
|
|
|
|
clearable
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="排序">
|
|
|
|
|
<el-input-number
|
|
|
|
|
v-model="groupForm.orderNum"
|
|
|
|
|
v-model="currentCatalog.orderNum"
|
|
|
|
|
:min="0"
|
|
|
|
|
:max="30000"
|
|
|
|
|
controls-position="right"
|
|
|
|
@ -113,7 +113,9 @@
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
@click="addOrEditCatalog"
|
|
|
|
|
>确定</el-button>
|
|
|
|
|
>
|
|
|
|
|
确定
|
|
|
|
|
</el-button>
|
|
|
|
|
</span>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
</div>
|
|
|
|
@ -162,11 +164,6 @@ export default {
|
|
|
|
|
id: '',
|
|
|
|
|
code: ''
|
|
|
|
|
},
|
|
|
|
|
groupForm: {
|
|
|
|
|
code: '',
|
|
|
|
|
name: '',
|
|
|
|
|
orderNum: ''
|
|
|
|
|
},
|
|
|
|
|
formRules: {
|
|
|
|
|
name: [{ required: true, message: '分组名称不能为空', trigger: 'blur' }]
|
|
|
|
|
}
|
|
|
|
@ -211,10 +208,6 @@ export default {
|
|
|
|
|
if (!valid) {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
this.currentCatalog = {
|
|
|
|
|
...this.currentCatalog,
|
|
|
|
|
...this.groupForm
|
|
|
|
|
}
|
|
|
|
|
if (!this.currentCatalog.id) {
|
|
|
|
|
this.$dataRoomAxios.post('/bigScreen/type/add', {
|
|
|
|
|
...this.currentCatalog,
|
|
|
|
@ -250,7 +243,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
// 编辑目录
|
|
|
|
|
catalogEdit () {
|
|
|
|
|
this.groupForm = cloneDeep(this.currentCatalog)
|
|
|
|
|
this.currentCatalog = cloneDeep(this.currentCatalog)
|
|
|
|
|
this.catalogVisible = true
|
|
|
|
|
},
|
|
|
|
|
// 删除目录
|
|
|
|
|