管道基础大数据平台系统开发-【前端】-新系統界面
Surpriseplus
2023-01-16 21ddc9ec1b1b76d2ce20e512328e65acaf1af2bf
src/views/datamanage/domainManage.vue
@@ -9,20 +9,19 @@
    <el-divider />
    <div class="mainBox">
      <div class="leftTree">
        <el-tree
      <div style="width:450px">
          <el-tree
          :data="domainData"
          :props="defaultProps"
          :default-expand-all="true"
          @node-click="toggleTabs"
        ></el-tree>
      </div>
      </div>
      <div class="right">
        <div class="inquire">
          <el-form ref="queryForm" :model="queryForm" :inline="true">
            <el-form-item
              :label="$t('dataManage.domainManage.domCode')"
              prop="name"
            >
            <el-form-item :label="$t('dataManage.vmobj.keyword')" prop="name">
              <el-input
                v-model="queryForm.code"
                :placeholder="$t('common.pleaseInput')"
@@ -375,6 +374,8 @@
      this.fullscreenLoading = true;
      this.listData.ns = data.ns;
      this.listData.tab = data.tab;
      this.listData.pageIndex = 1;
      this.listData.pageSize = 10;
      const res = await domain_selectDomainNames(data);
      if (res.code != 200) {
        this.$message.error('domain调用失败');
@@ -388,6 +389,7 @@
      }
      this.domainOptions = std;
      this.editForm.domName = res.result[0];
      getSingleTab(this.listData).then((res) => {
        setTimeout(() => {
          if (res.code == 200) {
@@ -429,7 +431,7 @@
    queryInfo() {
      let searchData = {
        code: this.queryForm.code,
        name: this.queryForm.code,
        ns: this.listData.ns,
        tab: this.listData.tab,
        pageIndex: this.listData.pageIndex,
@@ -452,7 +454,9 @@
      this.queryForm = {};
      this.$store.state.verCateNode = {};
      this.$bus.$emit('clearTressLabel', true);
      this.getAllTabelData();
      this.listData.pageIndex = 1;
      this.listData.pageSize = 10;
      this.queryInfo();
    },
    // 删除多条
    deleteInfo() {
@@ -509,7 +513,7 @@
      this.$refs[formName].validate((valid) => {
        if (valid) {
          this.fullscreenLoading = true;
          debugger;
          insertDomain(this.editForm)
            .then((res) => {
              setTimeout(() => {
@@ -649,9 +653,9 @@
<style lang="less" scoped>
//@import url(); 引入公共css类
.domainBox {
  height: 80%;
  width: 97%;
  position: absolute;
  height: 98%;
  width: 98%;
  padding: 1%;
  .mainBox {
    width: 100%;
    height: 92%;
@@ -659,7 +663,7 @@
    justify-content: space-between;
    .leftTree {
      width: 15%;
      height: 96%;
      height: 91%;
      border: 1px solid white;
      border-radius: 5px;
      padding: 1%;
@@ -668,7 +672,7 @@
    }
    .right {
      width: 80%;
      height: 96%;
      height: 91%;
      border: 1px solid white;
      border-radius: 5px;
      padding: 1%;