| | |
| | | <div class="standard-template"> |
| | | <div> |
| | | <el-row class="title"> |
| | | <el-col :span="12" style="padding-left: 20px;">原始记录模板</el-col> |
| | | <el-col :span="12" style="padding-left: 20px;text-align: left;">原始记录模板</el-col> |
| | | <el-col :span="12" style="text-align: right;"> |
| | | <el-button size="medium" type="primary" @click="openAdd" v-if="addPower">新增</el-button> |
| | | </el-col> |
| | |
| | | :upUrl="$api.StandardTemplate.upStandardTemplate" :delUrl="$api.StandardTemplate.delStandardTemplate" |
| | | :componentData="componentData" :key="upIndex" /> |
| | | </div> |
| | | <el-dialog title="模板编制" :visible.sync="isShow" width="80%" :before-close="isClose"> |
| | | <div style="width: 100%;height: 80vh;overflow: auto;" v-if="isShow"> |
| | | <el-dialog title="模板编制" :visible.sync="isShow" width="85%" :before-close="isClose"> |
| | | <div style="width: 100%;height: 82vh;overflow: auto;" v-if="isShow"> |
| | | <Excel :data="row.thing" :execlTitle="row.name" v-loading="loading"></Excel> |
| | | </div> |
| | | </el-dialog> |
| | |
| | | this.componentData.do.splice(1, 1) |
| | | } |
| | | if (!up) { |
| | | this.componentData.do.splice(2, 1) |
| | | this.componentData.do.splice(0, 1) |
| | | } |
| | | this.addPower = add |
| | | }, |
| | | templateWrite(row) { |
| | | this.isShow = true |
| | | this.row = row |
| | | this.$axios.get(this.$api.StandardTemplate.getEditTemplatePreparation + '?id=' + row.id).then(res => { |
| | | if(res.code != 200){ |
| | | return |
| | | } |
| | | this.row = row |
| | | this.row.thing = res.data |
| | | this.isShow = true |
| | | }) |
| | | }, |
| | | closed() { |
| | | this.loading = true |
| | |
| | | this.loading = false |
| | | this.$message.success('已保存') |
| | | this.isShow = false |
| | | this.refreshTable() |
| | | }) |
| | | }, |
| | | isClose(done) { |