管道基础大数据平台系统开发-【前端】-新系統界面
liupengpeng
2023-02-07 1a63d909f7a976156c70186f913385798d652713
用户管理、数据管理
已修改3个文件
117 ■■■■ 文件已修改
src/assets/css/content.css 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/datamanage/styleManage.vue 103 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/maintenance/userManagement.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/css/content.css
@@ -183,7 +183,7 @@
.infoBox .contentBox {
    margin: 0 aotu 10px;
    overflow: auto;
    height: 600px;
    height: 500px;
    background-color: white;
}
src/views/datamanage/styleManage.vue
@@ -274,7 +274,7 @@
          <el-input
            v-model="upform.name"
            autocomplete="off"
            style="width:75%"
            style="width:85%"
          ></el-input>
        </el-form-item>
        <el-form-item
@@ -284,7 +284,7 @@
          <el-input
            v-model="upform.type"
            autocomplete="off"
            style="width:75%"
            style="width:85%"
          ></el-input>
        </el-form-item>
        <el-form-item
@@ -294,13 +294,15 @@
        <el-select
          v-model="upform.dirid"
          placeholder="请选择"
          style="width:75%"
          style="width:85%"
          @focus="setOptionWidth"
        >
          <el-option :value="upform.dirid" :label="upform.dirName" style="height: auto">
          <el-option :value="upform.dirid" :label="upform.dirName"
          :style="{ width: selectOptionWidth, height: selectheight }">
            <el-tree
              ref="tree"
              :data="editcatalogOption"
              default-expand-all
              :default-expand-all="defaultexpand"
              node-key="id"
              :props="defaultProps"
              @node-click="handleNodeClickto"
@@ -333,13 +335,15 @@
        <el-select
          v-model="upform.depid"
          placeholder="请选择"
          style="width:75%"
          style="width:85%"
          @focus="setOptionWidth"
        >
          <el-option :value="upform.depid" :label="upform.depName" style="height: auto">
          <el-option :value="upform.depid" :label="upform.depName"
          :style="{ width: selectOptionWidth, height: selectheight }">
            <el-tree
              ref="tree"
              :data="editCompanyOption"
              default-expand-all
              :default-expand-all="defaultexpand"
              node-key="id"
              :props="defaultProps"
              @node-click="handleNodeClick"
@@ -373,7 +377,7 @@
          <el-input
            v-model="upform.ver"
            autocomplete="off"
            style="width:75%"
            style="width:85%"
          ></el-input>
        </el-form-item>
        <el-form-item
@@ -382,7 +386,7 @@
        >
          <el-select
            v-model="upform.status"
            style="width:75%"
            style="width:85%"
            :placeholder="$t('common.choose')"
          >
            <el-option
@@ -402,7 +406,7 @@
          <el-input
            v-model="upform.precision"
            autocomplete="off"
            style="width:75%"
            style="width:85%"
          ></el-input>
        </el-form-item>
        <el-form-item
@@ -412,7 +416,7 @@
          <el-input
            v-model="upform.descr"
            autocomplete="off"
            style="width:75%"
            style="width:85%"
          ></el-input>
        </el-form-item>
        <el-form-item
@@ -423,7 +427,7 @@
            v-model="upform.fileGuid"
            disabled
            autocomplete="off"
            style="width:62%"
            style="width:70%"
          ></el-input>
          <input
            name="file1"
@@ -434,7 +438,7 @@
            @change="editFile(0)"
          />
          <el-button
          style="margin-left: 8px;"
          style="margin-left: 6px;"
          type="primary"
          size="small"
          :underline="false"
@@ -467,7 +471,7 @@
            v-model="upform.viewGuid"
            disabled
            autocomplete="off"
            style="width:62%"
            style="width:70%"
          ></el-input>
          <input
            name="file1"
@@ -479,7 +483,6 @@
            @change="editFile(1)"
          />
          <el-button
          style="margin-left: 8px;"
          type="primary"
          size="small"
          :underline="false"
@@ -510,7 +513,7 @@
          <el-input
            v-model="upform.bak"
            autocomplete="off"
            style="width:75%"
            style="width:85%"
          ></el-input>
        </el-form-item>
      </el-form>
@@ -560,13 +563,31 @@
          :label="$t('dataManage.styleObj.dirid')"
          :label-width="formLabelWidth"
        >
          <el-cascader
        <el-select
          v-model="insertform.dirid"
          placeholder="请选择"
          style="width:85%"
          @focus="setOptionWidth"
        >
          <el-option :value="insertform.dirid" :label="insertform.dirName"
          :style="{ width: selectOptionWidth, height: selectheight }">
            <el-tree
              ref="tree"
              :data="catalogOption"
              :default-expand-all="defaultexpand"
              node-key="id"
              :props="defaultProps"
              @node-click="handcatalogChange"
            />
          </el-option>
        </el-select>
          <!-- <el-cascader
            v-model="insertform.dirid"
            :options="catalogOption"
            @change="catalogChange"
            :props="cascader"
            style="width:730px"
          ></el-cascader>
          ></el-cascader> -->
          <!-- <el-input
            v-model="insertform.dirValue"
            disabled
@@ -583,13 +604,31 @@
          :label="$t('dataManage.styleObj.depid')"
          :label-width="formLabelWidth"
        >
          <el-cascader
        <el-select
          v-model="insertform.depid"
          placeholder="请选择"
          style="width:85%"
          @focus="setOptionWidth"
        >
          <el-option :value="insertform.depid" :label="insertform.depName"
          :style="{ width: selectOptionWidth, height: selectheight }">
            <el-tree
              ref="tree"
              :data="companyOption"
              :default-expand-all="defaultexpand"
              node-key="id"
              :props="cascader"
              @node-click="handcompanyChange"
            />
          </el-option>
        </el-select>
          <!-- <el-cascader
            v-model="insertform.depid"
            :options="companyOption"
            @change="companyChange"
            :props="cascader"
            style="width:730px"
          ></el-cascader>
          ></el-cascader> -->
          <!-- <el-input
            v-model="insertform.depValue"
            disabled
@@ -861,6 +900,9 @@
        children: "children",
        label: "name",
      },
      selectOptionWidth: '',
      selectheight: 'auto',
      defaultexpand: false
    };
  },
  created() {
@@ -1388,6 +1430,12 @@
      this.upform.dirid = res;
    },
    handcatalogChange(data, node, nodeData) {
      this.$set(this.insertform, 'dirid', data.id)
      this.$set(this.insertform, 'dirName', data.name)
      // this.insertform.dirid = data.id;
      // this.insertform.dirName = data.name
    },
    handleNodeClickto(data, node, nodeData) {
      this.insertform.depid = data.id
      this.upform.dirid = data.id;
@@ -1401,9 +1449,16 @@
      this.insertform.depid = res;
    },
    handcompanyChange(data, node, nodeData) {
      this.$set(this.insertform, 'depid', data.id)
      // this.insertform.depid = data.id;
      this.$set(this.insertform, 'depName', data.name)
      // this.insertform.depName = data.name;
    },
    //新增数据
    setInsertShow() {
      this.InsertFormdialog = true;
      this.$set(this, 'insertform', {})
    },
    //目录列表获取
    async getSelectdirTab() {
@@ -1443,6 +1498,12 @@
        return father.pid == 0; // 返回一级菜单
      });
    },
    setOptionWidth(event) {
      // 下拉框聚焦,设置弹框的宽度
      this.$nextTick(() => {
        this.selectOptionWidth = event.srcElement.offsetWidth + 'px';
      });
    }
  },
};
</script>
src/views/maintenance/userManagement.vue
@@ -96,7 +96,7 @@
      <el-table
        :data="tableData"
        border
        style="width: 100%"
        style="width: 100%;overflow: auto;height: 500px;"
        @selection-change="handleSelectionChange"
      >
        <el-table-column
@@ -210,13 +210,13 @@
            >拒批</el-tag>
          </template>
        </el-table-column>
        <el-table-column
        <!-- <el-table-column
          align="center"
          prop="bak"
          width="200px"
          :label="$t('userManage.userInfoObj.bak')"
        />
        <!-- <el-table-column
        /> -->
        <el-table-column
          :label="$t('common.operate')"
          width="80px"
          fixed="right"
@@ -231,7 +231,7 @@
              size="small"
            >{{ $t('common.edit') }}</el-button>
          </template>
        </el-table-column> -->
        </el-table-column>
      </el-table>
      <div
        style="margin-top: 25px"
@@ -1233,7 +1233,7 @@
    padding: 10px;
    border-radius: 5px;
    overflow: auto;
    // overflow: auto;
  }
  .el-dialog {
    .el-form-item {