| | |
| | | <div class="body" :style="{height:mainHeight+'px'}"> |
| | | |
| | | <div class="bodyTopButtonGroup"> |
| | | <el-button type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">新增</el-button> |
| | | <el-button v-waves type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">新增</el-button> |
| | | </div> |
| | | <div class="bodyTopFormGroup"> |
| | | <el-form |
| | |
| | | class="bodySearchReset" |
| | | :style="{marginLeft:$store.state.app.sidebar.opened? $store.state.settings.menuIsHorizontal?'15%':'3%':'10%'}" |
| | | > |
| | | <el-button type="primary" icon="el-icon-search" @click="search">查询</el-button> |
| | | <el-button type="info" icon="el-icon-refresh" @click="reset">重置</el-button> |
| | | <el-button v-waves type="primary" icon="el-icon-search" @click="search">查询</el-button> |
| | | <el-button v-waves type="info" icon="el-icon-refresh" @click="reset">重置</el-button> |
| | | </div> |
| | | </el-form> |
| | | <div |
| | |
| | | :fixed="item.fixed?(item.fixed==='left'?'left':'right'):false" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row[item.prop]==='D'">部门</div> |
| | | <div v-else-if="row[item.prop]==='W'">车间</div> |
| | | <div v-else-if="row[item.prop]===null">/</div> |
| | | <div v-if="row[item.prop]==='D'&&item.prop==='description'">部门</div> |
| | | <div v-else-if="row[item.prop]==='W'&&item.prop==='description'">车间</div> |
| | | <div v-else-if="!row[item.prop]">/</div> |
| | | <div v-else>{{ row[item.prop] }}</div> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | </div> |
| | | |
| | | <el-dialog |
| | | v-el-drag-dialog |
| | | :title="operation==='add'?'新增':'编辑'" |
| | | :visible.sync="dialogVisible" |
| | | width="800px" |
| | |
| | | </el-form> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <div class="footerButton"> |
| | | <el-button @click="dialogVisibleCancel">取 消</el-button> |
| | | <el-button v-waves @click="dialogVisibleCancel">取 消</el-button> |
| | | <el-button |
| | | v-waves |
| | | type="primary" |
| | | :loading="$store.state.app.buttonIsDisabled" |
| | | :disabled="$store.state.app.buttonIsDisabled" |
| | |
| | | import { getCookie } from '@/utils/auth' |
| | | import { validateCode } from '@/utils/global' |
| | | import TableColumnSettings from '@/components/TableColumnSettings' |
| | | import elDragDialog from '@/directive/el-drag-dialog' // base on element-ui |
| | | import waves from '@/directive/waves/index.js' // 水波纹指令 |
| | | |
| | | // const SER_HZ = /^[\u4e00-\u9fa5]+$/ |
| | | // const SER_HZ = /^[a-zA-Z0-9_;,.<>() ]{0,}$/ |
| | |
| | | components: { |
| | | Pagination, TableColumnSettings |
| | | }, |
| | | |
| | | directives: { elDragDialog, waves }, |
| | | data() { |
| | | // const validateName = (rule, value, callback) => { |
| | | // if (!value) { |