田源
2023-06-19 87acc51f22b7e1781d4c4984e95028d8d0aee437
主数据bug
已修改3个文件
40 ■■■■■ 文件已修改
Source/UBCS-WEB/src/components/Crud/Crud.vue 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/components/Master/MasterTree.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/vue.config.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/components/Crud/Crud.vue
@@ -11,6 +11,7 @@
          :templateOid="templateOid"
          :type="add"
          :visible.sync="addvisible"
          @submit="AddSumbit"
        >
        </FormTemplateDialog>
        <el-button plain size="small" type="primary" @click="editHandler">编辑
@@ -24,6 +25,7 @@
          :type="edit"
          :title="'修改编码信息'"
          :visible.sync="editvisible"
          @submit="EditSumbit"
        ></FormTemplateDialog>
        <el-button plain size="small" type="primary">批量导入申请</el-button>
        <el-button plain size="small" type="primary">历史数据导入</el-button>
@@ -61,7 +63,7 @@
      </div>
      <el-row style="height: 700px;width: 100%">
        <el-table v-loading="isLoading" :data="tableData" max-height="700" style="" @cell-click="handleCellClick"
                  @selection-change="handleSelectionChange" @sort-change="sortChange">
                  @selection-change="handleSelectionChange" @sort-change="sortChange" v-if="tableData.length != 0">
          <el-table-column
            fixed
            type="selection"
@@ -215,7 +217,7 @@
    codeClassifyOid: {
      handler(newval, oldval) {
        this.codeClassifyOid = newval;
        this.CrudHeaderRend()
      },
      deep: true
    },
@@ -256,10 +258,7 @@
      this.visibleFlow = true
    },
    huishouHandler() {
      console.log('tem', this.templateOid)
      console.log('table', this.tableData)
      console.log('tabheadle', this.tableHeadData)
      console.log('tableFather', this.tableHeadDataFateher)
    },
    openD() {
      this.dialogPush = true;
@@ -402,12 +401,16 @@
    },
    //多选
    handleSelectionChange(row) {
      this.rowOid = row[0].oid;
      this.selectRow = row;
      console.log(row)
      this.rowOid = row.oid
      this.selectRow = row
    },
    //编辑
    editHandler() {
      console.log('row',this.rowOid)
      console.log('temp',this.templateOid)
      console.log('code',this.codeClassifyOid)
      console.log('rule',this.coderuleoid)
      if (this.selectRow.length <= 0) {
        this.$message.warning('请选择一条数据')
      } else if (this.selectRow.length > 1) {
@@ -443,6 +446,15 @@
      } else {
        this.DataVisible = true
      }
    },
    //增加保存
    AddSumbit(val){
      console.log(val)
      this.addvisible=false
    },
    EditSumbit(val){
      console.log(val)
      this.editvisible=false
    }
  }
}
Source/UBCS-WEB/src/components/Master/MasterTree.vue
@@ -132,6 +132,7 @@
              width: item.minWidth
            };
         this.tableHeadFindData.push(columnItem)
            // console.log(' this.tableHeadFindData', this.tableHeadFindData)
          })
          this.$emit('tableHeadDataFateher', this.tableHeadDataFateher);
          this.$emit('tableHeadFindData', this.tableHeadFindData);
@@ -149,9 +150,10 @@
        this.TableRend(); // TableHeadRend() 方法完成后再执行 TableRend()
        this.$emit('nodeClick',this.templateOids)
        this.$emit("codeClassifyOid", this.nodeClickList.oid )
        console.log('元数据',this.templateOids)
        console.log('元数据cod',this.codeClassifyOid)
        console.log('元数据nodeclick', this.nodeClickList.oid)
        // console.log('元数据',this.templateOids)
        // console.log('元数据cod',this.codeClassifyOid)
        // console.log('元数据nodeclick', this.nodeClickList.oid)
        // console.log(this.tableHeadFindData)
      } catch (error) {
        // 处理错误
        this.$message.error(error)
Source/UBCS-WEB/vue.config.js
@@ -28,8 +28,8 @@
        //本地服务接口地址
        // target: 'http://localhost:37000',
        // target: 'http://localhost:37000',
        // target: 'http://192.168.1.51:37000',
        target: 'http://192.168.1.46:37000',
        target: 'http://192.168.1.51:37000',
        // target: 'http://192.168.1.46:37000',
        // target: 'http://dev.vci-tech.com:37000',
        // target: 'http://192.168.1.51:37000/',
          // target: 'http://192.168.1.104:37000',