田源
2023-06-19 87acc51f22b7e1781d4c4984e95028d8d0aee437
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
    }
  }
}