管道基础大数据平台系统开发-【前端】-新系統界面
Surpriseplus
2023-04-13 797992cf12451dc64070ec63b6b1917aa5cc9b2e
src/views/datamanage/catalogueManage.vue
@@ -173,13 +173,26 @@
            :label="$t('dataManage.dataUpObj.inspectionItems')"
            :label-width="formLabelWidth"
          >
            <el-input
            <el-select
              style="width: 420px"
              v-model="itemdetail.checks"
              multiple
            >
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select>
            <!-- <el-input
              type="textarea"
              style=" max-width: 420px"
              :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valueone')"
              clearable
            />
            /> -->
            <!--            resize="none"-->
            <!--            style="height: 100%; overflow: auto; max-width: 400px"-->
          </el-form-item>
@@ -324,12 +337,26 @@
          :label="$t('dataManage.dataUpObj.inspectionItems')"
          :label-width="formLabelWidth"
        >
          <el-input
            v-model="ruleForm.checks"
          <!-- <el-input
            type="textarea"
            resize="none"
            style="height: 100%; overflow: auto"
          />
          /> -->
          <el-select
            v-model="ruleForm.checks"
            multiple
            style="width:100%;"
          >
            <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item
          :label="$t('dataManage.dataUpObj.code')"
@@ -420,7 +447,9 @@
      dirList: [], //el树数据
      old_dirDat: [], //el树数据(拖动前)
      newData: [], //拖动后原始数据
      itemdetail: {},
      itemdetail: {
        checks: [],
      },
      itemaName: null,
      backUpData: "",
      formLabelWidth: "150px",
@@ -434,6 +463,7 @@
        name: "",
        descr: "",
        bak: "",
        checks: []
      },
      rules: {
        name: [{ required: true, validator: validName, trigger: "blur" }],
@@ -443,6 +473,52 @@
      fileList: [],
      file: null,
      tableData: [],
      options: [
        {
          value: 'checkMain',
          label: '总质检'
        }, {
          value: 'checkOsgb',
          label: 'OSGB检查'
        }, {
          value: 'checkXls',
          label: '表格数据检查'
        }, {
          value: 'checkLaz',
          label: '点云检查'
        }, {
          value: 'checkDem',
          label: '高程检查'
        }, {
          value: 'checkAttrs',
          label: '属性检查'
        }, {
          value: 'checkTopology',
          label: '拓扑检查'
        }, {
          value: 'checkDecorate',
          label: '图面整饰检查'
        }, {
          value: 'checkOrigin',
          label: '原点检查'
        }, {
          value: 'checkDom',
          label: '栅格检查'
        }, {
          value: 'checkMath',
          label: '数学基础检查'
        }, {
          value: 'checkMeta',
          label: '元数据检查'
        }, {
          value: 'checkLogical',
          label: '逻辑一致性检查'
        }, {
          value: 'checkSingleIntegrity',
          label: '单项成果完整性检查'
        }
      ],
    };
  },
  methods: {
@@ -786,7 +862,9 @@
        this.$refs[formName].validate((valid) => {
          if (valid) {
            this.fullscreenLoading = true;
            insertDir(this.ruleForm)
            var val = this.ruleForm;
            val.checks = this.ruleForm.checks.toString()
            insertDir(val)
              .then((res) => {
                setTimeout(() => {
                  this.fullscreenLoading = false;
@@ -980,14 +1058,35 @@
      }
      this.newNode = node;
      this.backUpData = JSON.stringify(data);
      this.itemdetail = JSON.parse(JSON.stringify(data));
      var val = JSON.parse(JSON.stringify(data));
      this.itemdetail = val;
      var checks = [];
      if (val.checks) {
        if (val.checks.indexOf(',') > -1) {
          var value = val.checks.split(',');
          for (var i in value) {
            checks.push(value[i])
          }
        } else {
          checks.push(val.checks)
        }
        this.itemdetail.checks = checks;
      } else {
        this.itemdetail.checks = []
      }
    },
    updCata(formName) {
      this.$nextTick(() => {
        this.$refs[formName].validate((valid) => {
          if (valid) {
            this.fullscreenLoading = true;
            updateDirTree(this.itemdetail)
            var val = this.itemdetail
            var value = this.itemdetail.checks.toString()
            val.checks = value;
            updateDirTree(val)
              .then((res) => {
                setTimeout(() => {
                  this.fullscreenLoading = false;
@@ -1013,6 +1112,21 @@
      // this.$refs[formName].resetFields();
      if (this.backUpData != "") {
        this.itemdetail = JSON.parse(this.backUpData);
        var val = JSON.parse(this.backUpData);
        var checks = [];
        if (val.checks) {
          if (val.checks.indexOf(',') > -1) {
            var value = val.checks.split(',');
            for (var i in value) {
              checks.push(value[i])
            }
          } else {
            checks.push(val.checks)
          }
          this.itemdetail.checks = checks;
        } else {
          this.itemdetail.checks = []
        }
      }
    },
    showPermsMenu(res) {