| | |
| | | <el-button :key="item.oid" :icon="item.paramVOS.icon" |
| | | :type="item.paramVOS.btnType || 'primary'" plain |
| | | size="small" |
| | | @click="buttonClick(item)"> |
| | | {{ item.name }} |
| | | </el-button> |
| | | @click="buttonClick(item)">{{ item.name }}</el-button> |
| | | </el-tooltip> |
| | | |
| | | <el-button type="text" @click="handleDefaultAddChildren(scope.row)" v-if="(LocationType === 'menu' && type === 'TreeTable')">新增子级</el-button> |
| | |
| | | :icon="item.paramVOS.icon ? item.paramVOS.icon : (item.id === 'edit' ? 'el-icon-edit' : (item.id === 'delete' ||item.id === 'del' ? 'el-icon-delete' : ''))" |
| | | :type="item.paramVOS.btnType || 'text'" plain |
| | | size="small" |
| | | @click="buttonClick(item,scope.row)"> |
| | | {{ item.name }} |
| | | </el-button> |
| | | @click="buttonClick(item,scope.row)">{{ item.name }}</el-button> |
| | | </el-tooltip> |
| | | |
| | | <!-- 表格内按钮操作对话框表单 --> |
| | |
| | | :type="item.paramVOS.btnType || 'primary'" |
| | | plain |
| | | size="small" |
| | | @click="buttonClick(item)"> |
| | | {{ item.name }} |
| | | </el-button> |
| | | @click="buttonClick(item)">{{ item.name }}</el-button> |
| | | </el-tooltip> |
| | | </div> |
| | | <div v-else-if="type === 'tree'" class="tree-buttons"> |
| | |
| | | :type="item.paramVOS.btnType || 'primary'" |
| | | plain |
| | | size="small" |
| | | @click="buttonClick(item)"> |
| | | {{ item.name }} |
| | | </el-button> |
| | | @click="buttonClick(item)">{{ item.name }}</el-button> |
| | | </el-tooltip> |
| | | <el-button type="primary" |
| | | plain |
| | | size="small" |
| | | @click="$emit('refresh')"> |
| | | 刷新 |
| | | </el-button> |
| | | @click="$emit('refresh')">刷新</el-button> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | <script> |
| | | import func from "@/util/func"; |
| | | import {validatenull} from "@/util/validate"; |
| | | import {doAction} from '@/components/actions/base/BaseAction'; |
| | | import {doAction} from '@/components/actions/BaseAction'; |
| | | import Vue from "vue"; |
| | | |
| | | export default { |