| | |
| | | </el-form-item> |
| | | </el-form> |
| | | |
| | | <div class="gd-table-toolbar"> |
| | | <el-button :icon="Plus" color="#4C34FF" type="primary" @click="openForm('add')">新增</el-button> |
| | | </div> |
| | | |
| | | <div class="gd-table-container" v-loading="loading"> |
| | | <div class="gd-table-toolbar"> |
| | | <el-button :icon="Plus" color="#4C34FF" type="primary" @click="openForm('add')">新增</el-button> |
| | | </div> |
| | | |
| | | <div class="gd-table-content gd-table-content-bg"> |
| | | <el-table class="gd-table" :data="list"> |
| | | <el-table-column label="序号" width="80"> |
| | |
| | | <el-table-column prop="matterName" show-overflow-tooltip label="事项名称" /> |
| | | <el-table-column prop="catalogCode" show-overflow-tooltip label="目录编码" /> |
| | | <el-table-column prop="orgName" show-overflow-tooltip label="所属机构" /> |
| | | <el-table-column label="操作" class-name="operation-btns" width="250"> |
| | | <el-table-column label="操作" class-name="operation-btns" width="250" fixed="right"> |
| | | <template v-slot="{ row }"> |
| | | <el-link type="primary" @click="openForm('view', row)">查看</el-link> |
| | | <el-link type="primary" @click="openForm('edit', row)">编辑</el-link> |
| | |
| | | </template> |
| | | |
| | | <script setup> |
| | | import { getDictionaryByCode } from '@/api/system/dictbiz' |
| | | import { getDictLabel } from '@ztzf/utils' |
| | | import { Search, RefreshRight, Plus } from '@element-plus/icons-vue' |
| | | import { onMounted, ref, provide, nextTick } from 'vue' |
| | | import { ElMessage, ElMessageBox } from 'element-plus' |
| | |
| | | provide('deptTree', deptTree) |
| | | provide('treeProps', treeProps) |
| | | |
| | | |
| | | // 获取字典 |
| | | function getDictList() { |
| | | return getDictionaryByCode('resultConfig').then(res => { |
| | | dictObj.value = res.data.data |
| | | }) |
| | | } |
| | | |
| | | // 获取部门树数据 |
| | | async function getDeptTree() { |
| | |
| | | } |
| | | |
| | | onMounted(() => { |
| | | getDictList() |
| | | getDeptTree() |
| | | getList() |
| | | }) |