管道基础大数据平台系统开发-【前端】-新系統界面
surprise
2024-03-29 98a2b24c89e81a5aacdcbd6b739fef422adf17dd
src/views/maintenance/databaseMonitoring.vue
@@ -3,7 +3,7 @@
    <iframe
      id="iframe"
      :src="sql_Url"
      style="height: 100%"
      height="98%"
      width="100%"
      frameborder="0"
    ></iframe>
@@ -22,32 +22,37 @@
    //这里存放数据
    return {
      sql_Url: '',
      host: null,
    };
  },
  //方法集合
  methods: {
    handleSelectionChange() {},
    handleSelectionChange() { },
    getUrl() {
      if (this.$store.state.iframeMsg.indexOf('token=') != -1) {
        this.sql_Url = this.$store.state.iframeMsg + getToken();
      var url = this.$store.state.iframeMsg;
      if (url.indexOf('{webHost}') != -1) {
        url = url.replace('{webHost}', webHost)
      }
      if (url.indexOf('token=') != -1) {
        this.sql_Url = url + getToken();
      } else {
        this.sql_Url = this.$store.state.iframeMsg;
        this.sql_Url = url;
      }
    },
  },
  created() {
    this.getUrl();
  },
  mounted() {},
  mounted() { },
};
</script>
<style lang="less" scoped>
//@import url(); 引入公共css类
.databaseMonitoring_box {
  border-radius: 10px;
  height: 81%;
  width: 97%;
  position: absolute;
  box-sizing: border-box;
  height: 98%;
  width: 98%;
  padding: 1%;
}
</style>