| | |
| | | <div class="search_thing"> |
| | | <div class="search_label">模板名称:</div> |
| | | <div class="search_input"> |
| | | <el-input |
| | | v-model="queryParams.name" |
| | | clearable |
| | | placeholder="请输入" |
| | | size="small" |
| | | @keyup.enter.native="refreshTable()" |
| | | ></el-input> |
| | | <el-input v-model="queryParams.name" clearable placeholder="请输入" size="small" |
| | | @keyup.enter.native="refreshTable()"></el-input> |
| | | </div> |
| | | </div> |
| | | <div class="search_thing" style="padding-left: 30px"> |
| | | <el-button size="small" @click="refresh()">重 置</el-button> |
| | | <el-button size="small" type="primary" @click="refreshTable()" |
| | | >查 询</el-button |
| | | > |
| | | <el-button size="small" type="primary" @click="refreshTable()">查 询</el-button> |
| | | </div> |
| | | <div class="btn"> |
| | | <el-button |
| | | v-if="checkPermi(['standard:model:add'])" |
| | | size="small" |
| | | type="primary" |
| | | @click="openAdd" |
| | | >新增</el-button |
| | | > |
| | | <el-button v-if="checkPermi(['standard:model:add'])" size="small" type="primary" @click="openAdd">新增</el-button> |
| | | <!-- <el-button |
| | | v-if="checkPermi(['standard:model:copy'])" |
| | | size="small" |
| | |
| | | > --> |
| | | </div> |
| | | </div> |
| | | <lims-table |
| | | :tableData="tableData" |
| | | :column="column" |
| | | :page="page" |
| | | :tableLoading="tableLoading" |
| | | :height="'calc(100vh - 250px)'" |
| | | style="padding: 20px; padding-top: 0" |
| | | @pagination="pagination" |
| | | ></lims-table> |
| | | <el-dialog |
| | | :before-close="isClose" |
| | | :close-on-click-modal="false" |
| | | :close-on-press-escape="false" |
| | | :visible.sync="isShow" |
| | | title="模板编制" |
| | | width="85%" |
| | | > |
| | | <lims-table :tableData="tableData" :column="column" :page="page" :tableLoading="tableLoading" |
| | | :height="'calc(100vh - 250px)'" style="padding: 20px; padding-top: 0" @pagination="pagination"></lims-table> |
| | | <el-dialog :before-close="isClose" :close-on-click-modal="false" :close-on-press-escape="false" |
| | | :visible.sync="isShow" title="模板编制" width="85%"> |
| | | <div v-if="isShow" style="width: 100%; height: 82vh; overflow: auto"> |
| | | <Excel |
| | | v-loading="loading" |
| | | :data="row.thing" |
| | | :execlTitle="row.name" |
| | | ></Excel> |
| | | <Excel v-loading="loading" :data="row.thing" :execlTitle="row.name"></Excel> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog |
| | | :before-close="closeCopyTem" |
| | | :close-on-click-modal="false" |
| | | :close-on-press-escape="false" |
| | | :visible.sync="isShowCopyTem" |
| | | :title="title" |
| | | width="35%" |
| | | > |
| | | <el-form |
| | | ref="copyForm" |
| | | :model="copyForm" |
| | | :rules="copyFormRules" |
| | | label-position="right" |
| | | label-width="80px" |
| | | > |
| | | <el-dialog :before-close="closeCopyTem" :close-on-click-modal="false" :close-on-press-escape="false" |
| | | :visible.sync="isShowCopyTem" :title="title" width="35%"> |
| | | <el-form ref="copyForm" :model="copyForm" :rules="copyFormRules" label-position="right" label-width="80px"> |
| | | <el-form-item label="模版编号" prop="number"> |
| | | <el-input v-model="copyForm.number" clearable size="small"></el-input> |
| | | </el-form-item> |
| | |
| | | </el-form> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="closeCopyTem">取 消</el-button> |
| | | <el-button |
| | | :loading="submitCopyInfoLoading" |
| | | type="primary" |
| | | @click="submitCopyInfo" |
| | | >确 定</el-button |
| | | > |
| | | <el-button :loading="submitCopyInfoLoading" type="primary" @click="submitCopyInfo">确 定</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | </div> |
| | |
| | | this.refreshTable("page"); |
| | | }); |
| | | }) |
| | | .catch(() => {}); |
| | | .catch(() => { }); |
| | | }, |
| | | templateWrite(row) { |
| | | getEditTemplatePreparation({ id: row.id }).then((res) => { |
| | |
| | | return; |
| | | } |
| | | this.row = row; |
| | | this.row.thing = res.msg; |
| | | this.row.thing = res.data; |
| | | this.isShow = true; |
| | | }); |
| | | }, |
| | |
| | | .then(() => { |
| | | this.closed(); |
| | | }) |
| | | .catch(() => {}); |
| | | .catch(() => { }); |
| | | }, |
| | | closed() { |
| | | this.loading = true; |
| | |
| | | .search_input { |
| | | width: calc(100% - 110px); |
| | | } |
| | | |
| | | .btn { |
| | | position: absolute; |
| | | right: 14px; |