树结构数据在table中回显 treeselect disabled

news2024/11/19 13:43:29

      <el-table-column label="产业认定" align="center" prop="industryIdentification">
        <template slot-scope="scope">
          <treeselect
            v-if="scope.row.industryIdentification"
            v-model="scope.row.industryIdentification"
            :options="industrialDictOptions"
            :normalizer="normalizer"
            disabled
          />
        </template>
      </el-table-column>

样式:  -- 注意  class需要加在table上面  

<style scoped lang="scss">
.tableCell ::v-deep .vue-treeselect__control-arrow-container {
  display: none !important;
}
.tableCell ::v-deep .vue-treeselect__single-value {
  color: #606266 !important;
}
.tableCell ::v-deep .vue-treeselect--disabled .vue-treeselect__control {
  background-color: transparent;
}

.tableCell ::v-deep .vue-treeselect__control {
  border: 0px;
}
</style>

完整代码:

<template>
  <div class="app-container">
    <el-form
      :model="queryParams"
      ref="queryForm"
      size="small"
      :inline="true"
      v-show="showSearch"
      label-width="68px"
    >
      <el-form-item label="企业标签" prop="tags">
        <el-input
          v-model="queryParams.tags"
          placeholder="请输入企业标签"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="产业认定" prop="industryIdentification">
        <treeselect
          style="width:215px"
          v-model="queryParams.industryIdentification"
          :options="industrialDictOptions"
          :normalizer="normalizer"
          placeholder="请选择产业认定"
        />
      </el-form-item>
      <el-form-item label="注册地址" prop="regLocation">
        <el-input
          v-model="queryParams.regLocation"
          placeholder="请输入注册地址"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="经营地址" prop="businessLocation">
        <el-input
          v-model="queryParams.businessLocation"
          placeholder="请输入经营地址"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="楼宇" prop="buildingInformation">
        <el-select v-model="queryParams.buildingInformation" placeholder="楼宇" clearable>
          <el-option
            v-for="dict in dict.type.building_information"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="企业名" prop="name">
        <el-input
          v-model="queryParams.name"
          placeholder="请输入企业名"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>

    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button
          type="primary"
          plain
          icon="el-icon-plus"
          size="mini"
          @click="handleAdd"
          v-hasPermi="['system:company:add']"
        >新增</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="success"
          plain
          icon="el-icon-edit"
          size="mini"
          :disabled="single"
          @click="handleUpdate"
          v-hasPermi="['system:company:edit']"
        >修改</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="danger"
          plain
          icon="el-icon-delete"
          size="mini"
          :disabled="multiple"
          @click="handleDelete"
          v-hasPermi="['system:company:remove']"
        >删除</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="warning"
          plain
          icon="el-icon-download"
          size="mini"
          @click="handleExport"
          v-hasPermi="['system:company:export']"
        >导出</el-button>
      </el-col>
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>

    <el-table
      class="tableCell"
      v-loading="loading"
      :data="companyList"
      @selection-change="handleSelectionChange"
    >
      <el-table-column type="selection" width="55" align="center" />
      <el-table-column label="企业名" align="center" prop="name" />
      <el-table-column label="法⼈" align="center" prop="legalPersonName" />
      <el-table-column label="注册地址" align="center" prop="regLocation" />
      <el-table-column label="经营地址" align="center" prop="businessLocation" />
      <el-table-column label="企业状态" align="center" prop="regStatus" />
      <el-table-column label="产业认定" align="center" prop="industryIdentification">
        <template slot-scope="scope">
          <treeselect
            v-if="scope.row.industryIdentification"
            v-model="scope.row.industryIdentification"
            :options="industrialDictOptions"
            :normalizer="normalizer"
            disabled
          />
        </template>
      </el-table-column>
      <el-table-column label="楼宇信息" align="center" prop="buildingInformation">
        <template slot-scope="scope">
          <dict-tag
            :options="dict.type.building_information"
            :value="scope.row.buildingInformation"
          />
        </template>
      </el-table-column>
      <el-table-column label="企业标签" align="center" prop="tags" />
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
        <template slot-scope="scope">
          <el-button
            size="mini"
            type="text"
            icon="el-icon-edit"
            @click="handleUpdate(scope.row)"
            v-hasPermi="['system:company:edit']"
          >修改</el-button>
          <el-button
            size="mini"
            type="text"
            icon="el-icon-delete"
            @click="handleDelete(scope.row)"
            v-hasPermi="['system:company:remove']"
          >删除</el-button>
        </template>
      </el-table-column>
    </el-table>

    <pagination
      v-show="total>0"
      :total="total"
      :page.sync="queryParams.pageNum"
      :limit.sync="queryParams.pageSize"
      @pagination="getList"
    />

    <!-- 添加或修改企业基础信息对话框 -->
    <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
      <el-form ref="form" :model="form" :rules="rules" label-width="120px">
        <el-form-item label="企业名" prop="name">
          <el-input v-model="form.name" placeholder="请输入企业名" />
        </el-form-item>
        <el-form-item label="法⼈" prop="legalPersonName">
          <el-input v-model="form.legalPersonName" placeholder="请输入法⼈" />
        </el-form-item>
        <el-form-item label="统⼀社会信⽤代码" prop="creditCode">
          <el-input v-model="form.creditCode" placeholder="请输入统⼀社会信⽤代码" />
        </el-form-item>
        <el-form-item label="企业状态" prop="regStatus">
          <el-input v-model="form.regStatus" placeholder="请输入企业状态" />
        </el-form-item>
        <el-form-item label="⾏业" prop="industry">
          <el-input v-model="form.industry" placeholder="请输入⾏业" />
        </el-form-item>
        <el-form-item label="企业类型" prop="companyOrgType">
          <el-input v-model="form.companyOrgType" placeholder="请输入企业类型" />
        </el-form-item>
        <el-form-item label="成⽴⽇期" prop="estiblishTime">
          <el-date-picker
            clearable
            v-model="form.estiblishTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择成⽴⽇期"
          ></el-date-picker>
        </el-form-item>
        <el-form-item label="注册资本" prop="regCapital">
          <el-input v-model="form.regCapital" placeholder="请输入注册资本" />
        </el-form-item>
        <el-form-item label="注册地址" prop="regLocation">
          <el-input v-model="form.regLocation" placeholder="请输入注册地址" />
        </el-form-item>
        <el-form-item label="注销⽇期" prop="cancelDate">
          <el-date-picker
            clearable
            v-model="form.cancelDate"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择注销⽇期"
          ></el-date-picker>
        </el-form-item>
        <el-form-item label="市" prop="city">
          <el-input v-model="form.city" placeholder="请输入市" />
        </el-form-item>
        <el-form-item label="⼈员规模" prop="staffNumRange">
          <el-input v-model="form.staffNumRange" placeholder="请输入⼈员规模" />
        </el-form-item>
        <el-form-item label="⾏业" prop="industry">
          <el-input v-model="form.industry" placeholder="请输入⾏业" />
        </el-form-item>
        <el-form-item label="企业曾用名" prop="historyNames">
          <el-input v-model="form.historyNames" placeholder="请输入企业曾用名" />
        </el-form-item>
        <el-form-item label="曾⽤名" prop="historyNameList">
          <el-input v-model="form.historyNameList" placeholder="请输入曾⽤名" />
        </el-form-item>
        <el-form-item label="股票号" prop="bondNum">
          <el-input v-model="form.bondNum" placeholder="请输入股票号" />
        </el-form-item>
        <el-form-item label="法⼈类型" prop="type">
          <el-select v-model="form.type" placeholder="请选择法⼈类型">
            <el-option
              v-for="dict in dict.type.legal_person_type"
              :key="dict.value"
              :label="dict.label"
              :value="parseInt(dict.value)"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="股票名" prop="bondName">
          <el-input v-model="form.bondName" placeholder="请输入股票名" />
        </el-form-item>
        <el-form-item label="更新时间" prop="updateTimes">
          <el-date-picker
            clearable
            v-model="form.updateTimes"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择更新时间"
          ></el-date-picker>
        </el-form-item>
        <el-form-item label="吊销⽇期" prop="revokeDate">
          <el-date-picker
            clearable
            v-model="form.revokeDate"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择吊销⽇期"
          ></el-date-picker>
        </el-form-item>
        <el-form-item label="吊销原因" prop="revokeReason">
          <el-input v-model="form.revokeReason" placeholder="请输入吊销原因" />
        </el-form-item>
        <el-form-item label="注册号" prop="regNumber">
          <el-input v-model="form.regNumber" placeholder="请输入注册号" />
        </el-form-item>
        <el-form-item label="英⽂名" prop="property3">
          <el-input v-model="form.property3" placeholder="请输入英⽂名" />
        </el-form-item>
        <el-form-item label="股票曾⽤名" prop="usedBondName">
          <el-input v-model="form.usedBondName" placeholder="请输入股票曾⽤名" />
        </el-form-item>
        <el-form-item label="经营开始时间" prop="fromTime">
          <el-date-picker
            clearable
            v-model="form.fromTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择经营开始时间"
          ></el-date-picker>
        </el-form-item>
        <el-form-item label="核准时间" prop="approvedTime">
          <el-date-picker
            clearable
            v-model="form.approvedTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择核准时间"
          ></el-date-picker>
        </el-form-item>
        <el-form-item label="参保⼈数" prop="socialStaffNum">
          <el-input v-model="form.socialStaffNum" placeholder="请输入参保⼈数" />
        </el-form-item>
        <el-form-item label="简称" prop="alias">
          <el-input v-model="form.alias" placeholder="请输入简称" />
        </el-form-item>
        <el-form-item label="实收注册资本币种" prop="actualCapitalCurrency">
          <el-input v-model="form.actualCapitalCurrency" placeholder="请输入实收注册资本币种" />
        </el-form-item>
        <el-form-item label="组织机构代码" prop="orgNumber">
          <el-input v-model="form.orgNumber" placeholder="请输入组织机构代码" />
        </el-form-item>
        <el-form-item label="注销原因" prop="cancelReason">
          <el-input v-model="form.cancelReason" placeholder="请输入注销原因" />
        </el-form-item>
        <el-form-item label="经营结束时间" prop="toTime">
          <el-date-picker
            clearable
            v-model="form.toTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择经营结束时间"
          ></el-date-picker>
        </el-form-item>
        <el-form-item label="实收注册资⾦" prop="actualCapital">
          <el-input v-model="form.actualCapital" placeholder="请输入实收注册资⾦" />
        </el-form-item>
        <el-form-item label="登记机关" prop="regInstitute">
          <el-input v-model="form.regInstitute" placeholder="请输入登记机关" />
        </el-form-item>
        <el-form-item label="纳税⼈识别号" prop="taxNumber">
          <el-input v-model="form.taxNumber" placeholder="请输入纳税⼈识别号" />
        </el-form-item>
        <el-form-item label="经营范围" prop="businessScope">
          <el-input v-model="form.businessScope" placeholder="请输入经营范围" />
        </el-form-item>

        <el-form-item label="注册资本币种" prop="regCapitalCurrency">
          <el-input v-model="form.regCapitalCurrency" placeholder="请输入注册资本币种" />
        </el-form-item>
        <el-form-item label="企业标签" prop="tags">
          <el-input v-model="form.tags" placeholder="请输入企业标签" />
        </el-form-item>
        <el-form-item label="区" prop="district">
          <el-input v-model="form.district" placeholder="请输入区" />
        </el-form-item>
        <el-form-item label="股票类型" prop="bondType">
          <el-input v-model="form.bondType" placeholder="请输入股票类型" />
        </el-form-item>
        <el-form-item label="企业评分" prop="percentileScore">
          <el-input v-model="form.percentileScore" placeholder="请输入企业评分" />
        </el-form-item>
        <el-form-item label="国⺠经济⾏业分类中类" prop="categoryMiddle">
          <el-input v-model="form.categoryMiddle" placeholder="请输入国⺠经济⾏业分类中类" />
        </el-form-item>
        <el-form-item label="国⺠经济⾏业分类⼤类" prop="categoryBig">
          <el-input v-model="form.categoryBig" placeholder="请输入国⺠经济⾏业分类⼤类" />
        </el-form-item>
        <el-form-item label="国⺠经济⾏业分类⻔类" prop="category">
          <el-input v-model="form.category" placeholder="请输入国⺠经济⾏业分类⻔类" />
        </el-form-item>
        <el-form-item label="国⺠经济⾏业分类⼩类" prop="categorySmall">
          <el-input v-model="form.categorySmall" placeholder="请输入国⺠经济⾏业分类⼩类" />
        </el-form-item>
        <el-form-item label="是否是⼩微企业" prop="isMicroEnt">
          <el-select v-model="form.isMicroEnt" placeholder="请选择是否是⼩微企业">
            <el-option
              v-for="dict in dict.type.project_is_land"
              :key="dict.value"
              :label="dict.label"
              :value="parseInt(dict.value)"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="省份简称" prop="base">
          <el-input v-model="form.base" placeholder="请输入省份简称" />
        </el-form-item>
        <el-form-item label="经营地址" prop="businessLocation">
          <el-input v-model="form.businessLocation" placeholder="请输入经营地址" />
        </el-form-item>
        <el-form-item label="楼宇信息" prop="buildingInformation">
          <el-select v-model="form.buildingInformation" placeholder="请选择楼宇信息">
            <el-option
              v-for="dict in dict.type.building_information"
              :key="dict.value"
              :label="dict.label"
              :value="parseInt(dict.value)"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="产业认定" prop="industryIdentification">
          <treeselect
            v-model="form.industryIdentification"
            :options="industrialDictOptions"
            :normalizer="normalizer"
            placeholder="请选择产业认定"
          />
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submitForm">确 定</el-button>
        <el-button @click="cancel">取 消</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
import {
  listCompany,
  getCompany,
  delCompany,
  addCompany,
  updateCompany
} from "@/api/system/company";
import {
  listIndustrialDict,
  getIndustrialDict
} from "@/api/system/industrialDict";
import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";

export default {
  name: "Company",
  dicts: ["legal_person_type", "project_is_land", "building_information"],
  components: {
    Treeselect
  },
  data() {
    return {
      // 遮罩层
      loading: true,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // 企业基础信息表格数据
      companyList: [],
      // 产业领域字典树选项
      industrialDictOptions: [],
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        historyNames: null,
        regStatus: null,
        cancelDate: null,
        regCapital: null,
        city: null,
        staffNumRange: null,
        industry: null,
        historyNameList: null,
        bondNum: null,
        type: null,
        bondName: null,
        updateTimes: null,
        revokeDate: null,
        legalPersonName: null,
        revokeReason: null,
        regNumber: null,
        property3: null,
        creditCode: null,
        usedBondName: null,
        fromTime: null,
        approvedTime: null,
        socialStaffNum: null,
        alias: null,
        companyOrgType: null,
        actualCapitalCurrency: null,
        orgNumber: null,
        cancelReason: null,
        toTime: null,
        actualCapital: null,
        regInstitute: null,
        taxNumber: null,
        businessScope: null,
        regLocation: null,
        regCapitalCurrency: null,
        tags: null,
        district: "杨浦区",
        name: null,
        bondType: null,
        percentileScore: null,
        industryAll: null,
        isMicroEnt: null,
        base: null,
        estiblishTime: null,
        businessLocation: null,
        buildingInformation: null,
        industryIdentification: null
      },
      // 表单参数
      form: {},
      industryAllList: [],
      // 表单校验
      rules: {}
    };
  },
  created() {
    this.getTreeselect();
  },
  methods: {
    /** 查询企业基础信息列表 */
    getList() {
      this.loading = true;
      listCompany(this.queryParams).then(response => {
        this.companyList = response.rows;
        console.log(this.companyList, "this.companyList");
        this.total = response.total;
        this.loading = false;
        let arr = response.rows;
        // arr.forEach(item=>{
        //   item.
        // })
      });
    },

    normalizer(node) {
      if (node.children && !node.children.length) {
        delete node.children;
      }
      return {
        id: node.labelValue,
        label: node.labelName,
        children: node.children
      };
    },
    /** 查询产业领域字典下拉树结构 */
    getTreeselect() {
      listIndustrialDict().then(response => {
        this.industrialDictList = this.handleTree(
          response.data,
          "labelValue",
          "parentId"
        );
        this.industrialDictOptions = [];
        const data = { labelValue: 0, labelName: "请选择", children: [] };
        data.children = this.handleTree(
          response.data,
          "labelValue",
          "parentId"
        );
        this.industrialDictOptions.push(data);
        console.log(this.industrialDictOptions, "this.industrialDictOptions");
        this.getList();
      });
    },

    // 递归获取名称
    recursion(data) {
      // console.log(data,"xx")
      data.forEach(item => {
        if (item.children.length > 0) {
          this.recursion(item.children);
        }
      });
    },

    // 取消按钮
    cancel() {
      this.open = false;
      this.reset();
    },
    // 表单重置
    reset() {
      this.form = {
        id: null,
        historyNames: null,
        regStatus: null,
        cancelDate: null,
        regCapital: null,
        city: null,
        staffNumRange: null,
        industry: null,
        historyNameList: null,
        bondNum: null,
        type: null,
        bondName: null,
        updateTimes: null,
        revokeDate: null,
        legalPersonName: null,
        revokeReason: null,
        regNumber: null,
        property3: null,
        creditCode: null,
        usedBondName: null,
        fromTime: null,
        approvedTime: null,
        socialStaffNum: null,
        alias: null,
        companyOrgType: null,
        actualCapitalCurrency: null,
        orgNumber: null,
        cancelReason: null,
        toTime: null,
        actualCapital: null,
        regInstitute: null,
        taxNumber: null,
        businessScope: null,
        regLocation: null,
        regCapitalCurrency: null,
        tags: null,
        district: null,
        name: null,
        bondType: null,
        percentileScore: null,
        industryAll: null,
        isMicroEnt: null,
        base: null,
        estiblishTime: null,
        categoryMiddle: null,
        categoryBig: null,
        category: null,
        categorySmall: null
      };
      this.resetForm("form");
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.resetForm("queryForm");
      this.handleQuery();
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map(item => item.id);
      this.single = selection.length !== 1;
      this.multiple = !selection.length;
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
      this.open = true;
      this.title = "添加企业基础信息";
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
      this.reset();
      const id = row.id || this.ids;
      getCompany(id).then(response => {
        this.form = response.data;
        if (response.data != null) {
          this.$set(
            this.form,
            "categoryMiddle",
            JSON.parse(response.data.industryAll).categoryMiddle
          );
          this.$set(
            this.form,
            "categoryBig",
            JSON.parse(response.data.industryAll).categoryBig
          );
          this.$set(
            this.form,
            "category",
            JSON.parse(response.data.industryAll).category
          );
          this.$set(
            this.form,
            "categorySmall",
            JSON.parse(response.data.industryAll).categorySmall
          );
        }
        this.open = true;
        this.title = "修改企业基础信息";
      });
    },
    /** 提交按钮 */
    submitForm() {
      this.$refs["form"].validate(valid => {
        if (valid) {
          let data = {
            categoryMiddle: this.form.categoryMiddle,
            categoryBig: this.form.categoryBig,
            category: this.form.category,
            categorySmall: this.form.categorySmall
          };

          this.form.industryAll = JSON.stringify(data);
          if (this.form.id != null) {
            updateCompany(this.form).then(response => {
              this.$modal.msgSuccess("修改成功");
              this.open = false;
              this.getList();
            });
          } else {
            addCompany(this.form).then(response => {
              this.$modal.msgSuccess("新增成功");
              this.open = false;
              this.getList();
            });
          }
        }
      });
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      const ids = row.id || this.ids;
      this.$modal
        .confirm('是否确认删除企业基础信息编号为"' + ids + '"的数据项?')
        .then(function() {
          return delCompany(ids);
        })
        .then(() => {
          this.getList();
          this.$modal.msgSuccess("删除成功");
        })
        .catch(() => {});
    },
    /** 导出按钮操作 */
    handleExport() {
      this.download(
        "system/company/export",
        {
          ...this.queryParams
        },
        `company_${new Date().getTime()}.xlsx`
      );
    }
  }
};
</script>
<style scoped lang="scss">
.tableCell ::v-deep .vue-treeselect__control-arrow-container {
  display: none !important;
}
.tableCell ::v-deep .vue-treeselect__single-value {
  color: #606266 !important;
}
.tableCell ::v-deep .vue-treeselect--disabled .vue-treeselect__control {
  background-color: transparent;
}

.tableCell ::v-deep .vue-treeselect__control {
  border: 0px;
}
</style>

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/1032127.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

Zookeeper系统模型_客户端命令行

创建 创建ZK节点 语法结构&#xff1a; create [-s] [-e] path data acl 参数&#xff1a; -s&#xff1a;顺序节点-e&#xff1a;临时节点 默认情况下&#xff0c;不添加-s或者-e参数的&#xff0c;创建的是持久节点。 示例&#xff1a; [zk: localhost:2181(CONNECTED) …

Spring Cloud Alibaba Gateway全局token过滤、局部过滤访问时间超过50ms日志提示

文章目录 Spring Cloud Alibaba Gateway验证token在前篇的基础上加入依赖在filter包中创建tokenFilter Spring Cloud Alibaba Gateway局部过滤1.继承AbstractGatewayFilterFactory2.仿照AddRequestHeaderGatewayFilterFactory Spring Cloud Alibaba Gateway验证token 基础搭建…

linux上gitlab备份与还原

三 Gitlab备份 1.gitlab安装 1.1 添加镜像地址 添加镜像地址的目的是为了提高国内用户软件下载的速度&#xff0c;编辑(新建)文件gitlab-ce.repo&#xff0c;指令&#xff1a; vi /etc/yum.repos.d/gitlab-ce.repo复制 输入&#xff1a; [gitlab-ce] namegitlab-ce # 清华…

基于SSM+Vue的亿互游在线平台的设计与开发

末尾获取源码 开发语言&#xff1a;Java Java开发工具&#xff1a;JDK1.8 后端框架&#xff1a;SSM 前端&#xff1a;采用Vue技术开发 数据库&#xff1a;MySQL5.7和Navicat管理工具结合 服务器&#xff1a;Tomcat8.5 开发软件&#xff1a;IDEA / Eclipse 是否Maven项目&#x…

LeetCode01

LeetCode01 两数之和 给定一个整数数组 nums 和一个整数目标值 target&#xff0c;请你在该数组中找出 和 为目标值 target 的那两个整数&#xff0c;并返回它们的数组下标。 你可以假设每种输入只会对应一个答案。但是&#xff0c;数组中同一个元素在答案里不能重复出现。 你…

Unity制作射击游戏案例01

整理逻辑思路&#xff1a; //【业务逻辑】这个脚本用来1.控制物体移动旋转&#xff08;WASD&#xff09;、 2.发射子弹&#xff08;空格键&#xff09; //【程序逻辑2】 首先检测用户没有按下空格键 2.如果按下呢执行发射子弹函数 3.克隆子弹 4.让克隆的子弹往前跑 搭…

Seata 基于改良版雪花算法的分布式 UUID 生成器分析

一般来说&#xff0c;除了“全局唯一”这个基本属性之外&#xff0c;还会要求生成出来的 ID 具有“递增趋势”&#xff0c;这样的好处是能减少 MySQL 数据页分裂的情况&#xff0c;从而减少数据库的 IO 压力&#xff0c;提升服务的性能。 雪花算法&#xff0c;就是一个能生产全…

浅谈霍尔电流传感器在汽车电池管理系统中的应用

摘要&#xff1a; 随着电动汽车和混合动力汽车的需求和产量正在增加&#xff0c;两种类型的车辆都需要高电流容量的电池来运行50kW 或更高功率的电机&#xff0c;并且这些都使用高压系统。汽车电池管理系统中对于电流的测量检测需要隔离测量的方式&#xff0c;而霍尔电流传感器…

【DLL修复工具下载】一键修复电脑丢失d3dcompiler_47.dll问题方法

在我们使用电脑的过程中&#xff0c;有时候会遇到一些错误提示&#xff0c;其中“缺失 d3dcompiler_47.dll”就是比较常见的一种。那么&#xff0c;d3dcompiler_47.dll 到底是什么呢&#xff1f;为什么会出现缺失的情况&#xff1f;丢失 d3dcompiler_47.dll 又会对电脑产生什么…

电压放大器如何选型号和参数配置

选择适合的电压放大器型号和配置参数是设计电子系统中至关重要的一步。电压放大器是一种关键的电子器件&#xff0c;用于将输入电压信号放大到所需的输出电压级别。下面西安安泰将详细介绍如何选择电压放大器的型号和配置参数。 确定应用需求&#xff1a;首先&#xff0c;需要明…

MyBatis 日志模块

文章目录 前言LogLogFactory日志应用JDBC 日志BaseJdbcLoggerConnectionLogger应用实现 总结 前言 日志在我们开发过程中占据了一个非常重要的地位&#xff0c;是开发和运维管理之间的桥梁&#xff0c;在Java中的日志框架也非常多&#xff0c;Log4j、Log4j2、slf4j等&#xff…

孙宇晨:稳定币支付交易具百倍增长潜力 后FTX时代行业仍需修炼内功

9月14日,波场TRON创始人、火币HTX全球顾问委员会成员孙宇晨受邀出席于新加坡举办的TOKEN 2049,并参加了“生态系统和行业增长:展望加密货币的未来十年”主题板块的讨论。孙宇晨在发言中表示,接下来的 10 年里,加密货币和区块链的最大日常应用场景仍然是稳定币支付交易,预计将有…

nodeJs+Mongodb+mongoose入门

nodeJsexpressMongodbmongooseNavicat 自我记录 一、简介 1.1 Mongodb 是什么 MongoDB 是一个基于分布式文件存储的数据库&#xff0c;官方地址 https://www.mongodb.com/ 1.2 数据库是什么 数据库&#xff08;DataBase&#xff09;是按照数据结构来组织、存储和管理数据…

KF32A学习笔记(一):工程导入、编译烧录方法(KF32 IDE+ KF32 PRO)

目录 概述KF32 IDE打开现有项目工程1.工程导入2.编译工程3.下载程序 KF32 PRO 概述 本文主要是对KF32A150芯片程序的编译、烧录方法进行说明。针对开发过程中的编译烧录和无代码情况下的烧录两种场景&#xff0c;需要安装ChipON PRO KF32和ChipON IDE KF32两个上位机工具&…

Linux Qt5.15.2 编译QWebEngine源码支持音视频H264

背景 默认自带的QWebEngine 因版权问题不支持音视频功能&#xff0c;需要自己编译源码以支持。 平台&#xff1a;Linux&#xff08;UOS V20 1050&#xff09; Qt&#xff1a;5.15.2 准备工作 下载 Qt 5.15.2 对应版本源码&#xff0c;使用镜像网站或者Qt Maintenance Tool工…

MyCat主从数据库集群搭建

1 背景 最近工作需要对比几种数据库技术方案&#xff0c;主从读写分离集群也是其中之一。接着上一篇文章《MySQL主从数据库搭建》基础上继续搭建MyCat主从集群。 2 MyCat 什么是MyCat?MyCat是数据库中间件&#xff0c;就是介于数据库和应用之间&#xff0c;进行数据处理与交互…

易点易动库存管理系统:引领库存用量控制新时代,助力企业节约成本

在现代企业经营中&#xff0c;库存管理一直是一个关键的环节。过多的库存会造成资金占用和浪费&#xff0c;而过少的库存则容易导致生产中断和客户满意度下降。为了解决这一难题&#xff0c;易点易动库存管理系统应运而生。 一、全面的库存数据管理 易点易动库存管理系统通过与…

AP5193 DC-DC恒流转换器 消防应急 灯汽车灯 应急日光灯太阳能灯驱动IC

AP5193是一款PWM工作模式,高效率、外围简单、 内置功率MOS管&#xff0c;适用于4.5-100V输入的高精度 降压LED恒流驱动芯片。电流2.5A。AP5193可实现线性调光和PWM调光&#xff0c;线性调光 脚有效电压范围0.55-2.6V. AP5193 工作频率可以通过RT 外部电阻编程来设定&#xff0c…

融云观察:AI Agent 是不是游戏赛道的下一个「赛点」?

本周四 融云直播间&#xff0c;点击报名~ ChatGPT 的出现&#xff0c;不仅让会话成为了未来商业的基本形态&#xff0c;也把大家谈论 AI 的语境从科技产业转向了 AI 与全产业的整合。 关注【融云全球互联网通信云】了解更多 而目前最热衷于拥抱生成式 AI 的行业中&#xff0c…

Springboot整合之Shiro和JWT技术实现无感刷新

一、Shiro简介 Shiro是Java领域非常知名的认证&#xff08; Authentication &#xff09;与授权 &#xff08; Authorization &#xff09;框架&#xff0c;用以替代JavaEE中的JAAS功能。相 较于其他认证与授权框架&#xff0c;Shiro设计的非常简单&#xff0c;所以广受好 评。…