| | |
| | | </div> |
| | | <span :class="stretchStyle" @click="strethTable = !strethTable"></span> |
| | | |
| | | <el-button size="small" type="primary" style="float:right" @click="openDrawer">设置</el-button> |
| | | <el-button |
| | | size="small" |
| | | type="primary" |
| | | style="float:right" |
| | | @click="openDrawer" |
| | | v-if="showSetting" |
| | | >设置</el-button> |
| | | </div> |
| | | |
| | | <el-table |
| | |
| | | } |
| | | |
| | | return ret |
| | | }, |
| | | isAdmin() { |
| | | if ( |
| | | sessionStorage.getItem("userInfo") && |
| | | sessionStorage.getItem("userInfo") !== "" |
| | | ) { |
| | | let loginName = JSON.parse(sessionStorage.getItem("userInfo")).username; |
| | | return loginName === "superadmin" || loginName === "basic"; |
| | | } |
| | | |
| | | return false; |
| | | }, |
| | | showSetting() { |
| | | return this.isAdmin || this.buttonAuthority.indexOf("analysisPower:set") > -1 |
| | | } |
| | | }, |
| | | data() { |
| | |
| | | showSysInfo: false, |
| | | drawer: false, |
| | | formData: {}, |
| | | strethTable: false |
| | | strethTable: false, |
| | | buttonAuthority: sessionStorage.getItem("buttonAuthoritys") || [], |
| | | }; |
| | | }, |
| | | mounted() { |