田源
2023-06-26 aa7b19831312d3e8d7eb19fd4e0a44505be24e93
业务数据列表
已修改11个文件
已添加3个文件
458 ■■■■ 文件已修改
Source/UBCS-WEB/src/api/Theme/vciTheme.js 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/api/batchImport/index.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/api/work/businese.js 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue 151 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/components/Tree/attrCrud.vue 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/components/Tree/classifyTreeform.vue 147 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/components/Tree/classifyTrees.vue 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/components/template/SetPersonnel.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/components/work/BusinessWork.vue 62 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/main.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/page/login/index.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/page/login/userlogin.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/work/process/leave/handle.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/vue.config.js 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/api/Theme/vciTheme.js
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,9 @@
import request from "@/router/axios";
// è¡¨å•数据执行代码
export function executeCode(params) {
  return request({
    url: 'api/ubcs-code/uiDataController/defaultReferDataGrid',
    method: 'get',
    params
  })
}
Source/UBCS-WEB/src/api/batchImport/index.js
@@ -12,6 +12,7 @@
}
// ä¸‹è½½é”™è¯¯æ—¥å¿—
export const downloadErrorFile = (params) => {
  ret
  return request({
    url: '/api/ubcs-code/mdmEngineController/downloadErrorFile',
    method: 'get',
Source/UBCS-WEB/src/api/work/businese.js
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,20 @@
import request from "@/router/axios";
export const businese = (params) => {
  return request({
    url: '/api/ubcs-code/mdmEngineController/getDataByOid',
    method: 'get',
    params:{
      ...params
    }
  })
}
export const add = (params) => {
  return request({
    url: '/api/ubcs-code/mdmEngineController/getTableDataByOids',
    method: 'get',
    params:{
      ...params
    }
  })
}
Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue
@@ -1,70 +1,26 @@
<template>
  <basic-container>
    <div class="testbox">
      <div style="margin-top: 10px;display: flex;flex-wrap: wrap;width: 100%;">
      <div>
        <el-button plain size="small" type="primary" @click="addvisible=true">增加
        </el-button>
        <FormTemplateDialog
          :codeClassifyOid="this.codeClassifyOid"
          :codeRuleOid="this.codeRuleOid"
          :disabledProp="disabledProp"
          :templateOid="templateOid"
          type="add"
          :visible.sync="addvisible"
          @submit="AddSumbit"
        >
        </FormTemplateDialog>
        <el-button plain size="small" type="primary" @click="editHandler">编辑
        </el-button>
        <FormTemplateDialog
          :codeClassifyOid="this.codeClassifyOid"
          :codeRuleOid="this.codeRuleOid"
          :disabledProp="disabledProp"
          :rowOid="rowOid"
          :templateOid="templateOid"
          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" @click="historyVisible = true">历史数据导入</el-button>
        <el-button plain size="small" type="primary">历史数据导入</el-button>
        <el-button plain size="small" type="primary">批量申请编码</el-button>
        <el-button plain size="small" type="primary">批量发布</el-button>
        <el-button plain size="small" type="primary">查看流程历史</el-button>
        <el-button plain size="small" type="primary">删除</el-button>
        <el-button plain size="small" type="primary" @click="setHandler">发布</el-button>
        <set-personnel :visible.sync="visibleFlow"  :parameter="parameter"
        ></set-personnel>
        <el-button plain size="small" type="primary" @click="DataChange">数据更改</el-button>
        <FormTemplateDialog
          :codeClassifyOid="this.codeClassifyOid"
          :codeRuleOid="this.codeRuleOid"
          :disabledProp="disabledProp"
          :rowOid="rowOid"
          :templateOid="templateOid"
          :type="edit"
          :title="'已发布数据更改'"
          :visible.sync="DataVisible"
        ></FormTemplateDialog>
        <el-button plain size="small" type="primary" @click="huishouHandler">回收</el-button>
        <el-button plain size="small" type="primary" @click="openD">导出
          <integration-transfer :data="transferData" :props="transferProps"
                                :visible.sync="dialogPush" @save="handelTransferSave"></integration-transfer>
        </el-button>
        <el-button plain size="small" type="primary" @click="findHandler">查询
          <advanced-query :options="this.options" :visible.sync="findvisible"
                          @echoContion="echoContion"></advanced-query>
        </el-button>
        <el-button plain size="small" type="primary" @click="similarHandler">相似项查询</el-button>
        <ResembleQueryDialog
          :visible.sync="similarVisible"
          :templateOid="templateOid"
          :codeClassifyOid="codeClassifyOid"
          :rowOid="rowOid"
          :codeRuleOid="this.codeRuleOid"
        ></ResembleQueryDialog>
        <el-button plain size="small" style="margin-left: 1px;margin-top:10px" type="primary">刷新</el-button>
        <el-button plain size="small" type="primary">刷新</el-button>
        <el-input placeholder="请输入关键字按回车查询" size="small"
                  style="width: 180px;margin-left: 5px;margin-top:10px"></el-input>
      </div>
@@ -99,6 +55,50 @@
<!--          </div>-->
        </el-table>
      </el-row>
      <FormTemplateDialog
        :codeClassifyOid="this.codeClassifyOid"
        :codeRuleOid="this.codeRuleOid"
        :disabledProp="disabledProp"
        :templateOid="templateOid"
        type="add"
        :visible.sync="addvisible"
        @submit="AddSumbit"
      >
      </FormTemplateDialog>
      <FormTemplateDialog
        :codeClassifyOid="this.codeClassifyOid"
        :codeRuleOid="this.codeRuleOid"
        :disabledProp="disabledProp"
        :rowOid="rowOid"
        :templateOid="templateOid"
        type="edit"
        :title="'修改编码信息'"
        :visible.sync="editvisible"
        @submit="EditSumbit"
      ></FormTemplateDialog>
      <FormTemplateDialog
        :codeClassifyOid="this.codeClassifyOid"
        :codeRuleOid="this.codeRuleOid"
        :disabledProp="disabledProp"
        :rowOid="rowOid"
        :templateOid="templateOid"
        :type="edit"
        :title="'已发布数据更改'"
        :visible.sync="DataVisible"
      ></FormTemplateDialog>
      <set-personnel :visible.sync="visibleFlow"  :parameter="this.parameter"
      ></set-personnel>
      <advanced-query :options="this.options" :visible.sync="findvisible"
                      @echoContion="echoContion"></advanced-query>
      <integration-transfer :data="transferData" :props="transferProps"
                            :visible.sync="dialogPush" @save="handelTransferSave"></integration-transfer>
      <ResembleQueryDialog
        :visible.sync="similarVisible"
        :templateOid="templateOid"
        :codeClassifyOid="codeClassifyOid"
        :rowOid="rowOid"
        :codeRuleOid="this.codeRuleOid"
      ></ResembleQueryDialog>
    </div>
    <div class="block" style="display: flex;justify-content: flex-end">
      <el-pagination
@@ -111,7 +111,6 @@
        @current-change="handleCurrentChange">
      </el-pagination>
    </div>
    <historyImport :visible.sync="historyVisible" :codeClassifyOid="codeClassifyOid" type="historyImport"></historyImport>
  </basic-container>
</template>
<script>
@@ -120,13 +119,11 @@
import integrationTransfer from '@/views/integration/integrationTransfer'
import SetPersonnel from '@/components/template/SetPersonnel'
import ResembleQueryDialog from "@/components/FormTemplate/ResembleQueryDialog.vue";
import historyImport from '../BatchImport/index.vue'
export default {
  components: {
    integrationTransfer,
    SetPersonnel,
    ResembleQueryDialog,
    historyImport
    ResembleQueryDialog
  },
  name: "Crud.vue",
  props: {
@@ -153,6 +150,7 @@
    },
    templateOid: {
      type: String,
      default:''
    },
    tableHeadDataFateher: {
      type: Array,
@@ -171,10 +169,10 @@
      similarVisible:false,
      //发布
      parameter:{
        ids:['0000','22222222'],
        code:this.templateOid,
        ids:[],
        code:'',
        type:'PUBLIC',
        template:'模板template'
        template:''
      },
      visibleFlow: false,
      transferData: [],
@@ -183,7 +181,6 @@
        label: 'name'
      },
      tableHeadFindDatas:[],
      templateOid: "",
      addvisible: false,
      editvisible: false,
      findvisible: false,
@@ -212,26 +209,19 @@
      items: {},
      seniorQueryColumns: [],
      selectRow: [],
      historyVisible: false
      userName:""
    }
  },
  computed: {},
  created() {
    // this.CrudHeaderRend();
    // this.tableHeadHandle()
  },
  mounted() {
  },
  activated() {
    this.doLayout()
  },
  watch: {
    tableHeadDataFateher:{
      handler(newval,oldval){
        this.options=newval.tableDefineVO.seniorQueryColumns
      }
    },
    codeClassifyOid: {
      handler(newval, oldval) {
        this.codeClassifyOid = newval;
@@ -254,16 +244,27 @@
        this.page.total = newval;
      }
    },
    templateOid:{
      handler(newval,oldval) {
        this.parameter.code=newval;
      },
      deep:true
    }
  },
  methods: {
    setHandler() {
      this.visibleFlow = true;
    },
    huishouHandler() {
      console.log('1111')
      console.log('父',this.parameter)
      if (this.selectRow.length <= 0) {
        this.$message.warning('请选择一条数据')
      }  else {
        this.userName=localStorage.getItem('username')
        this.parameter.template=this.userName+'-发布'+'[物品]'
        this.visibleFlow = true;
      }
    },
    openD() {
      this.dialogPush = true;
      this.getListCodeByClassId()
    },
    async getListCodeByClassId() {
@@ -376,7 +377,6 @@
    },
    //分页刷新
    async onLoad(val) {
      console.log('分页', this.templateOid)
      await TableData({
        templateOid: this.templateOid,
        codeClassifyOid: this.codeClassifyOid,
@@ -394,14 +394,12 @@
        this.rowOid=''
      }
      this.selectRow = row;
      console.log(row)
      row.forEach(item=>{
        this.parameter.ids.push(item.oid)
      })
    },
    //编辑
    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) {
@@ -415,16 +413,13 @@
    //高级查询按钮
    findHandler(){
      this.findvisible=true;
      console.log(this.options)
    },
    // é«˜çº§æŸ¥è¯¢
    echoContion(val) {
      console.log(val)
      FindData({templateOid:this.templateOid,
        codeClassifyOid: this.codeClassifyOid,
        ...val
      }).then(res=>{
        console.log(res)
      })
    },
    //相似项查询
@@ -452,11 +447,9 @@
    },
    //增加保存
    AddSumbit(val){
      console.log(val)
      this.addvisible=false
    },
    EditSumbit(val){
      console.log(val)
      this.editvisible=false
    }
  }
Source/UBCS-WEB/src/components/Tree/attrCrud.vue
@@ -26,7 +26,6 @@
    <!--        å…¨å±ç¼–辑-->
    <template slot="menuLeft">
      <el-button v-if=" attrEditVisible == false && attrFlagChiledren==false" size="small" @click="fullscreenHandle">全屏编辑</el-button>
<!--      <el-button v-if="attrFlagChiledren !=false" size="small" plain type="success" @click="escEdit">退出全屏编辑</el-button>-->
      <el-dialog :visible.sync="attrEditVisible" append-to-body fullscreen="true">
       <attrCrud :ProData="this.ProData" :attrFlagChiledren="this.attrFlag"></attrCrud>
      </el-dialog>
@@ -45,7 +44,7 @@
    <template slot="menuLeft">
      <el-button icon="el-icon-info" size="small" @click="rulesVisible=true">验证规则</el-button>
      <el-dialog :visible.sync="rulesVisible" append-to-body title="属性验证规则">
        <el-container style="border: 1px solid #eee;padding: 10px">
        <el-container style="border: 1px solid #9e3333;padding: 10px">
          <el-aside style="width: 330px;">
            <div style="display: flex">
              <p style="display: inline-block;width: 160px"> æ­£åˆ™è¡¨è¾¾å¼ï¼š</p>
@@ -110,7 +109,7 @@
        <div class="injectBox">
          <div style="color: #FF5722;margin: 1px 0 5px 20px">分类层级关联说明:</div>
          <div
            style="color: #01AAED;margin: 0 10px 0 45px;line-height: 20px">1:主要是设置模板属性和分类的关系<br/>2:如分类层级设置为2 <br/>3:录入资源数据时,该属性对应的值根据层级关系去对应的分类里取
            style="color: #01aaed;margin: 0 10px 0 45px;line-height: 20px">1:主要是设置模板属性和分类的关系<br/>2:如分类层级设置为2 <br/>3:录入资源数据时,该属性对应的值根据层级关系去对应的分类里取
            <br/>4:层级必须是大于0的整数值
          </div>
          <div style="padding-top: 15px;padding-left: 35px">
@@ -1165,9 +1164,7 @@
        this.$set(this.busineAddList,'classifytemplateoid',this.crudOid)
        this.$set(this.busineAddList,'oid','')
        this.ProData.push(JSON.parse(JSON.stringify(this.busineAddList)))
        console.log(this.busineAddList)
        this.addVisible=false;
        console.log('prodata',this.ProData)
      }
    },
    //业务类型单选
@@ -1183,7 +1180,6 @@
        this.addVisible=true;
        AttrByBtm({'conditionMap[oid]': this.crudOid}).then(res=>{
          this.businessData=res.data.data;
          console.log(res.data)
        })
      }
    },
@@ -1207,12 +1203,10 @@
      this.CrudOid=row.oid;
      this.CrudSelect=selection;
      this.attrRow=row;
      console.log(selection.length)
    },
    //保存
    addsHandler(){
      batchAddSave(this.ProData).then(res=>{
        console.log(res)
        this.$message.success('保存成功')
      })
    },
@@ -1230,7 +1224,6 @@
    // çº§è”属性行单选
    CascaderowClick(row) {
      this.selectRow = row.$index
      console.log(row)
    },
    // æžšä¸¾æ³¨å…¥æ·»åŠ ä¸€è¡Œç©ºæ•°æ®
    addRow() {
@@ -1246,7 +1239,6 @@
    },
    //枚举注入删除
    enumDeleteRow(row) {
      console.log(row)
      this.tableData.splice(row, 1)
    },
    //枚举注入按钮
@@ -1261,12 +1253,10 @@
    },
    //枚举注入多选框
    handleSelectionChange(row){
      console.log(row)
      this.enumRow=JSON.parse(JSON.stringify(row));
    },
    //枚举注入保存
    enumAddHandle(){
      console.log(this.enumRow)
      if(this.enumRow.length<1){
        this.$message.warning('请至少选择一条数据')
      }else {
@@ -1341,10 +1331,6 @@
        //   const cellName=this.List[0]
        //
        // }
        console.log("list", this.List)
        console.log(column)
        // console.log(row)
        console.log(column.columnKey)
      }
    },
    //编辑保存事件
@@ -1384,11 +1370,6 @@
    //编码申请预览
    applicationHandle(){
      this.addvisible=true;
      console.log('temp',this.crudOid)
      console.log('code',this.codeClassifyOid)
      // getFormDefineByTemplate({templateOid:this.crudOid,codeClassifyOid:this.codeClassifyOid}).then(res=>{
      //   console.log(res)
      // })
    },
    //组合规则
    isShowHandler(){
@@ -1407,7 +1388,6 @@
      }else {
        this.attrEditVisible=true;
        this.attrFlag=true;
        console.log(this.attrEditVisible)
      }
    },
@@ -1415,10 +1395,8 @@
    escEdit(){
      this.attrFlagChiledren=false;
      this.attrEditVisible=false;
      console.log(this.attrEditVisible)
    },
    updataFormlaContent(val){
      console.log(val)
      this.$set(this.attrRow,'componentRule',val)
    },
    // æŽ’序
Source/UBCS-WEB/src/components/Tree/classifyTreeform.vue
@@ -1,15 +1,72 @@
<template>
  <avue-form v-model="TreeNewForm" :option="option" @submit="submit">
  <div>
    <avue-form v-model="loneTreeNewForm" :option="option" @submit="submit" v-if="flag == 'renonly'">
  </avue-form>
    <avue-form v-model="loneTreeNewForm" :option="options" @submit="submit" v-else-if="flag == 'edit'">
    </avue-form>
    <div>
      <el-dialog  :visible.sync="dialogVisible"   title="为【编码规则】选取值" append-to-body>
        <div>
          <el-input placeholder="请选择内容" v-model="masterInput" class="input-with-select">
            <el-select v-model="MasterSearchSelects"  placeholder="请选择">
              <el-option label="英文名称" value="0"></el-option>
              <el-option label="中文名称" value="1"></el-option>
            </el-select>
            <el-button slot="append" icon="el-icon-search"></el-button>
          </el-input>
        </div>
        <avue-crud :data="masterData" :option="masterOption" @select="masterSelect"></avue-crud>
        <div style="padding-top: 10px;display: flex; justify-content: flex-end" >
          <el-button type="primary" size="small" @click="MasterHandlerClick">确定</el-button>
          <el-button  size="small" @click="dialogVisible=false">取消</el-button>
        </div>
      </el-dialog>
    </div>
  </div>
</template>
<script>
export default {
  name: "classifyTreeform.vue",
  props: ["TreeNewForm"],
  props: ['loneTreeNewForm','flag'],
  data() {
    return {
      masterInput:'',
      MasterSearchSelects:"",
      masterData:[
        {
          id:'001',
          name:'001',
          description:'001'
        },
        {
          id:'002',
          name:'002',
          description:'002'
        }
      ],
      masterOption:{
        addBtn:false,
        index:true,
        border:true,
        selection:true,
        height:380,
        column:[
          {
            label:'英文名称',
            prop:'id'
          },
          {
            label:'中文名称',
            prop:'name'
          },
          {
            label:'描述',
            prop:'description'
          }
        ]
      },
      dialogVisible:false,
      form: {
        name: "哈哈",
        sex: "男"
@@ -45,6 +102,7 @@
            label:"描述",
            prop:"description",
            labelWidth:128,
            readonly: true,
          },
          {
            label: '存储的业务类型',
@@ -61,6 +119,66 @@
            label:"编码规则",
            prop:"coderuleoidName",
            labelWidth:128,
            readonly: true,
          },
          {
            label:"关键属性查询规则",
            prop:"codekeyattrrepeatoidName",
            labelWidth:128,
            readonly: true,
          },
          {
            label:"相似查询规则",
            prop:"codeResembleRuleOidName",
            labelWidth:128,
            readonly: true,
          },
        ]
      },
      options: {
        submitBtn:false,
        emptyBtn:false,
        column: [
          {
            label: '主题库/分类编号',
            prop: 'btmtypeid',
            labelWidth:128,
            rules: [{
              required: true,
              message: "主题库/分类编号",
              trigger: "blur"
            }]
          },
          {
            label: '主题库/分类名称',
            prop: 'name',
            labelWidth:128,
            rules: [{
              required: true,
              message: "主题库/分类名称",
              trigger: "blur"
            }]
          },
          {
            label:"描述",
            prop:"description",
            labelWidth:128,
          },
          {
            label: '存储的业务类型',
            prop: 'btmtypename',
            labelWidth:128,
            rules: [{
              required: true,
              message: "存储的业务类型",
              trigger: "blur"
            }]
          },
          {
            label:"编码规则",
            prop:"coderuleoidName",
            labelWidth:128,
            focus:this.CodeFoucus
          },
          {
            label:"关键属性查询规则",
@@ -72,9 +190,11 @@
            prop:"codeResembleRuleOidName",
            labelWidth:128,
          },
        ]
      },
      FormList: {}
      FormList: {},
      masterSelectList:[]
    }
  },
  methods: {
@@ -85,6 +205,25 @@
    error(err) {
      this.$message.success('请查看控制台');
      console.log(err)
    },
    CodeFoucus(){
      this.dialogVisible=true;
      console.log(this.dialogVisible)
    },
    MasterHandlerClick(){
      if(this.masterSelectList.length>1){
        this.$message.warning('只能选择一条数据')
      }else if(this.masterSelectList.length<=0){
        this.$message.warning('请选择一条数据')
      }else {
        this.dialogVisible=false;
        console.log(this.masterInput)
        console.log(this.MasterSearchSelect)
      }
    },
    masterSelect(row){
      console.log(row)
      this.masterSelectList=row;
    }
  }
}
Source/UBCS-WEB/src/components/Tree/classifyTrees.vue
@@ -49,7 +49,7 @@
        </el-dialog>
        <!--        ä¿®æ”¹å¯¹è¯æ¡†-->
        <el-dialog :visible.sync="TreeEditFormVisible" append-to-body title="修改分类">
          <classifyTreeform ref="childForm" :loneTreeNewForm="TreeList" :nodeList="nodeList"></classifyTreeform>
          <classifyTreeform ref="childForm" :loneTreeNewForm="TreeList" :nodeList="nodeList" :flag="'edit'"></classifyTreeform>
        </el-dialog>
        <avue-tree ref="tree" v-model="CloneTreeAvueform" v-loading="loading" :data="CloneTreedata" :defaultExpandAll="false"
                   :option="Treeoption"
@@ -65,7 +65,7 @@
        <!--        å³ä¾§è¡¨æ ¼-->
        <avue-tabs :option="tabOption" @change="handleChange"></avue-tabs>
        <span v-if="type.prop==='tab1'">
           <classifyTreeform ref="childForm" :TreeNewForm="TreeList" :nodeList="nodeList"></classifyTreeform>
           <classifyTreeform ref="childForm" :loneTreeNewForm="TreeList" :nodeList="nodeList" :flag="'renonly'"></classifyTreeform>
        </span>
        <span v-else-if="type.prop==='tab2'">
            <basic-container>
@@ -595,14 +595,16 @@
    },
    //修改回填
    TreeEdit() {
      if (this.nodeClickList == "") {
        this.$message({
          type: 'warning',
          message: '请先从树上选择一条数据!'
        });
      } else {
        this.TreeEditFormVisible = true
      }
    //   if (this.nodeClickList == "") {
    //     this.$message({
    //       type: 'warning',
    //       message: '请先从树上选择一条数据!'
    //     });
    //   } else {
    //     this.TreeEditFormVisible = true;
    //     console.log('---',this.CloneTreedata)
    //   }
        this.TreeEditFormVisible=true;
    },
    //树刷新
    flushed() {
Source/UBCS-WEB/src/components/template/SetPersonnel.vue
@@ -114,6 +114,10 @@
    mounted() {
        // this.apiInit()
        // this.apiDict()
      console.log('---',this.parameter)
    },
  created() {
    console.log('parameter',this.parameter)
    },
    methods: {
        setSaveParam() {
Source/UBCS-WEB/src/components/work/BusinessWork.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,62 @@
<template>
<div>
  <el-button @click="add"></el-button>
  <el-table :data="data">
    <el-table-column
      fixed
      type="selection"
      width="55">
    </el-table-column>
    <el-table-column
      fixed
      label="序号"
      type="index"
      width="55">
    </el-table-column>
  </el-table>
</div>
</template>
<script>
import {businese,add} from '@/api/work/businese'
export default {
  name: "BusinessWork",
  props:['oid','templateId'],
  data() {
    return {
      data:[
        {
          label:'app'
        }
      ]
    }
  },
  created() {
    businese({oid: this.oid,
      templateOid: this.templateId}).then(res=>{
      console.log(res)
    })
  },
  methods:{
    add(){
      // businese({oid: this.oid[2],
      //   templateOid: this.templateId}).then(res=>{
      //   console.log(res)
      // })
      add({
        btmType:'wupin',
        'conditionMap[oid]':'D49A28F3-3740-D0EF-A3C6-5A71CA6978CC'
      }).then(res=>{
        console.log(res)
      })
    }
  }
}
</script>
<style scoped>
</style>
<!--mdmEngineController/getTableDataByOids?page=1&limit=-1&btmType=wupin&conditionMap%5B%27oid%27%5D=90DC514B-396D-9664-67D0-1587640FE15E&_=1687773044552-->
<!--mdmEngineController/getTableDataByOids?conditionMap%5Boid%5D=D49A28F3-3740-D0EF-A3C6-5A71CA6978CC-->
Source/UBCS-WEB/src/main.js
@@ -51,6 +51,7 @@
import MasterTree from "@/components/Master/MasterTree";
import FlowPath from "@/components/template/FlowPath";
import Stage from "@/components/template/Stage";
import businesswork from "@/components/work/BusinessWork"
// å°†å·¥å…·å‡½æ•°æ·»åŠ åˆ°å…¨å±€
import utilFunc from './util/func'
@@ -104,6 +105,7 @@
Vue.component('FlowPath',FlowPath)
Vue.component('Stage',Stage)
Vue.component('Divider', Divider)
Vue.component('businesswork', businesswork)
// åŠ è½½ç›¸å…³url地址
Object.keys(urls).forEach(key => {
Source/UBCS-WEB/src/page/login/index.vue
@@ -66,7 +66,6 @@
    name: "login",
    components: {
      userLogin,
      thirdLogin,
      topLang,
      topColor
Source/UBCS-WEB/src/page/login/userlogin.vue
@@ -229,7 +229,7 @@
    },
    handleLogin: function () {
      this.userInfo = this.$store.state.upadatastatus
      //console.log(this.userInfo)
      localStorage.setItem('username',this.loginForm.username)
      this.$refs.loginForm.validate(valid => {
        if (valid) {
          const loading = this.$loading({
Source/UBCS-WEB/src/views/work/process/leave/handle.vue
@@ -5,7 +5,7 @@
        <el-card class="dialogwarp_tab_card">
          <el-tabs v-model="activeName" @tab-click="handleClick">
            <el-tab-pane label="业务数据信息" name="first">
              <businesswork :oid="oid" :templateId="templateId"></businesswork>
            </el-tab-pane>
            <el-tab-pane label="流程跟踪" name="second">
              <avue-crud :data="flowList" :option="option" ref="crud">
@@ -75,6 +75,8 @@
export default {
  data() {
    return {
      oid:'',
      templateId:'',
      taskId: '',
      businessId: '',
      processInstanceId: '',
@@ -138,6 +140,8 @@
    async apiGetBtnTask(id) {
      const response = await getBtnTask({ processInstanceId: id })
      const res = response.data
      this.oid=res.data.variables.ids;
      this.templateId=res.data.variables.templateId;
      if (res.success) {
        console.log(res)
        this.btnList = res.data.toTasks
Source/UBCS-WEB/vue.config.js
@@ -25,11 +25,12 @@
    port: 38000,
    proxy: {
      '/api': {
        //本地服务接口地址
        // target: 'http://localhost:37000',
        // target: 'http://192.168.1.46:37000',
        // target: 'http://localhost: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',
        // target: 'http://192.168.1.63:37000',
        //target: 'http://192.168.3.7:37000',