26431
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<ai-list class="notice">
|
<ai-list class="notice">
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
<ai-title isShowBack isShowBottomBorder title="事件类别" @onBackClick="cancel(false)"></ai-title>
|
<ai-title isShowBack isShowBottomBorder title="事件类型" @onBackClick="cancel(false)"></ai-title>
|
||||||
</template>
|
</template>
|
||||||
<template slot="content">
|
<template slot="content">
|
||||||
<ai-search-bar class="search-bar">
|
<ai-search-bar class="search-bar">
|
||||||
<template #left>
|
<template #left>
|
||||||
<el-button size="small" type="primary" icon="iconfont iconAdd" @click="isShowAdd = true">添加事件分组</el-button>
|
<el-button size="small" type="primary" icon="iconfont iconAdd" @click="isShowAdd = true">添加事件类型</el-button>
|
||||||
</template>
|
</template>
|
||||||
<template slot="right">
|
<template slot="right">
|
||||||
<el-input
|
<el-input
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
class="search-input"
|
class="search-input"
|
||||||
size="small"
|
size="small"
|
||||||
@keyup.enter.native="search.current = 1, getList()"
|
@keyup.enter.native="search.current = 1, getList()"
|
||||||
placeholder="请输入事件分组名称"
|
placeholder="请输入事件类型名称"
|
||||||
clearable
|
clearable
|
||||||
@change="getList"
|
@change="getList"
|
||||||
@clear="search.current = 1, search.groupName = '', getList()"
|
@clear="search.current = 1, search.groupName = '', getList()"
|
||||||
@@ -48,12 +48,12 @@
|
|||||||
:visible.sync="isShowAdd"
|
:visible.sync="isShowAdd"
|
||||||
width="780px"
|
width="780px"
|
||||||
height="580px"
|
height="580px"
|
||||||
:title="id ? '编辑事件分组' : '添加事件分组'"
|
:title="id ? '编辑事件类型' : '添加事件类型'"
|
||||||
@close="onClose"
|
@close="onClose"
|
||||||
@onConfirm="onConfirm">
|
@onConfirm="onConfirm">
|
||||||
<el-form ref="form" class="ai-form" :model="form" label-width="110px" label-position="right">
|
<el-form ref="form" class="ai-form" :model="form" label-width="110px" label-position="right">
|
||||||
<el-form-item label="事件分组" prop="groupName" style="width: 100%;" :rules="[{ required: true, message: '请输入事件分组名称', trigger: 'blur' }]">
|
<el-form-item label="事件类型" prop="groupName" style="width: 100%;" :rules="[{ required: true, message: '请输入事件类型名称', trigger: 'blur' }]">
|
||||||
<el-input size="small" :maxlength="10" show-word-limit placeholder="请输入事件分组名称" v-model="form.groupName"></el-input>
|
<el-input size="small" :maxlength="10" show-word-limit placeholder="请输入事件类型名称" v-model="form.groupName"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="排序" prop="showIndex" style="width: 100%;" :rules="[{ required: true, message: '请输入排序', trigger: 'blur' }]">
|
<el-form-item label="排序" prop="showIndex" style="width: 100%;" :rules="[{ required: true, message: '请输入排序', trigger: 'blur' }]">
|
||||||
<el-input-number size="small" v-model="form.showIndex" :min="1" :max="100" label="请输入排序"></el-input-number>
|
<el-input-number size="small" v-model="form.showIndex" :min="1" :max="100" label="请输入排序"></el-input-number>
|
||||||
@@ -89,7 +89,7 @@
|
|||||||
isShowAdd: false,
|
isShowAdd: false,
|
||||||
total: 0,
|
total: 0,
|
||||||
colConfigs: [
|
colConfigs: [
|
||||||
{prop: 'groupName', label: '事件分组', align: 'left'},
|
{prop: 'groupName', label: '事件类型', align: 'left'},
|
||||||
{prop: 'showIndex', label: '排序', align: 'center'},
|
{prop: 'showIndex', label: '排序', align: 'center'},
|
||||||
{slot: 'options', label: '操作'}
|
{slot: 'options', label: '操作'}
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user