| | |
| | | <el-main> |
| | | <basic-container> |
| | | <div style="margin: 0 0 10px 20px"> |
| | | <el-button v-if="form.delType==0" icon="el-icon-check" size="small" type="primary" @click="saveHandler">保存</el-button> |
| | | <el-button v-else icon="el-icon-delete" size="small" type="danger" @click="delHandler">删除</el-button> |
| | | <el-button v-if="form.delType == 0 && permissionList.saveBtn" icon="el-icon-check" size="small" type="primary" |
| | | @click="saveHandler">保存 |
| | | </el-button> |
| | | <el-button v-if="form.delType != 0 && permissionList.delBtn" icon="el-icon-delete" size="small" type="danger" |
| | | @click="delHandler">删除 |
| | | </el-button> |
| | | </div> |
| | | <avue-form ref="form" v-model="form" :option="formOption"></avue-form> |
| | | <div class="tip"> |
| | |
| | | |
| | | <script> |
| | | import {getPeroid,savePeriod,deleteLog} from "@/api/system/log/logBasic"; |
| | | import {mapGetters} from "vuex"; |
| | | |
| | | export default { |
| | | name: "basicConf", |
| | | data: function () { |
| | |
| | | }] |
| | | }, |
| | | } |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["permission"]), |
| | | permissionList() { |
| | | return { |
| | | saveBtn: this.vaildData(this.permission[this.$route.query.id].save, false), |
| | | delBtn: this.vaildData(this.permission[this.$route.query.id].DELETE, false), |
| | | }; |
| | | }, |
| | | }, |
| | | created() { |
| | | this.getPeroid(); |
| | |
| | | color: #909399; |
| | | margin: 0 0 10px 20px; |
| | | } |
| | | |
| | | .tip div{ |
| | | margin-left: 30px; |
| | | } |