| | |
| | | <!--top展示表格上方区域 menu展示表格操作栏区域 无就是默认 --> |
| | | <el-tooltip v-if="LocationType === 'top'" v-for="item in basicButtonList.top" :content="item.description || item.name" placement="top"> |
| | | <el-button :key="item.oid" |
| | | :icon="item.paramVOS && item.paramVOS.icon ? item.paramVOS.icon :''" |
| | | :type="item.paramVOS && item.paramVOS.btnType ? item.paramVOS.btnType : 'primary'" plain |
| | | size="small" |
| | | @click="buttonClick(item)">{{ item.name }}</el-button> |
| | | @click="buttonClick(item)"> |
| | | <icon-show :name="item.iconPath"></icon-show>{{ item.name }} |
| | | </el-button> |
| | | </el-tooltip> |
| | | |
| | | <el-button type="text" @click="handleDefaultAddChildren(scope.row)" v-if="(LocationType === 'menu' && type === 'TreeTable')">新增子级</el-button> |
| | |
| | | |
| | | <el-tooltip v-if="LocationType === 'menu'" v-for="item in basicButtonList.menu" :content="item.description || item.name" placement="top"> |
| | | <el-button :key="item.oid" |
| | | :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)"> |
| | | <icon-show v-if="item.iconPath" :name="item.iconPath"></icon-show> |
| | | <i v-else :class="item.id === 'edit' ? 'el-icon-edit' : (item.id === 'delete' ||item.id === 'del' ? 'el-icon-delete' : '')"></i> |
| | | {{ item.name }} |
| | | </el-button> |
| | | </el-tooltip> |
| | | |
| | | <!-- 表格内按钮操作对话框表单 --> |
| | |
| | | <div v-else-if="type === 'form'"> |
| | | <el-tooltip v-for="item in basicButtonList" :content="item.description || item.name" placement="top"> |
| | | <el-button :key="item.oid" |
| | | :icon="item.paramVOS && item.paramVOS.icon ? item.paramVOS.icon :''" |
| | | :type="item.paramVOS && item.paramVOS.btnType ? item.paramVOS.btnType : 'primary'" plain |
| | | plain |
| | | size="small" |
| | | @click="buttonClick(item)">{{ item.name }}</el-button> |
| | | @click="buttonClick(item)"> |
| | | <icon-show :name="item.iconPath"></icon-show>{{ item.name }} |
| | | </el-button> |
| | | </el-tooltip> |
| | | </div> |
| | | <div v-else-if="type === 'tree'" class="tree-buttons"> |
| | | <el-tooltip v-for="item in basicButtonList" :content="item.description || item.name" placement="top"> |
| | | <el-button :key="item.oid" |
| | | :icon="item.paramVOS && item.paramVOS.icon ? item.paramVOS.icon :''" |
| | | :type="item.paramVOS && item.paramVOS.btnType ? item.paramVOS.btnType : 'primary'" plain |
| | | plain |
| | | size="small" |
| | | @click="buttonClick(item)">{{ item.name }}</el-button> |
| | | @click="buttonClick(item)"> |
| | | <icon-show :name="item.iconPath"></icon-show>{{ item.name }} |
| | | </el-button> |
| | | </el-tooltip> |
| | | <el-button type="primary" |
| | | plain |