田源
2023-08-08 0efcf618f642c4c42315a26e49c0749abc9ebb32
Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
@@ -16,7 +16,7 @@
                }}
              </el-button>
              <span v-if="tableHeadFindData.length > 0">
              <el-select v-model="keyWordFind" slot="prepend" placeholder="请选择" size="small">
              <el-select slot="prepend" v-model="keyWordFind" placeholder="请选择" size="small">
                <el-option v-for="item in tableHeadFindData" :label="item.label" :value="item.prop"></el-option>
              </el-select>
              <el-input v-model="WupinFindValue" placeholder="请输入关键字按回车查询"
@@ -66,8 +66,8 @@
          <FormTemplateDialog :codeClassifyOid="this.codeClassifyOid" :codeRuleOid="this.codeRuleOid"
                              :disabledProp="disabledProp" :rowOid="rowOid" :templateOid="templateOid"
                              :title="'已发布数据更改'"
                              type="edit"
                              :visible.sync="DataVisible" @submit="updataSumbit"></FormTemplateDialog>
                              :visible.sync="DataVisible"
                              type="edit" @submit="updataSumbit"></FormTemplateDialog>
          <!--          发布-->
          <set-personnel :parameter="this.parameter" :title="title" :visible.sync="visibleFlow"
                         @onLoad="onLoad"></set-personnel>
@@ -175,8 +175,8 @@
    tableHeadBtnData: {
      type: Array,
    },
    Treedata:{
      type:Array
    Treedata: {
      type: Array
    }
  },
  data() {
@@ -184,7 +184,7 @@
      // 状态搜索
      statusSelect: "all",
      // 关键字查询
      keyWordFind:"",
      keyWordFind: "",
      searchResults: [],
      //首页右侧搜索
      WupinFindValue: "",
@@ -193,7 +193,7 @@
      //发布
      parameter: {
        ids: [],
        btmtype:'',
        btmtype: '',
        code: "",
        type: '',
        // this.visibleDeactivate ?'ENABLE':this.visibleEnable ? 'DISABLE' :this.visibleRecovery ? 'ROLLBACK' :'PUBLIC'
@@ -272,9 +272,9 @@
  created() {
    // const index = this.$route.query.id.indexOf('@name=') + '@name='.length;
    // this.result = this.$route.query.id.substring(index);
    getUserInfo().then(res=>{
    getUserInfo().then(res => {
      console.log(res.data.data)
      this.result=res.data.data.realName
      this.result = res.data.data.realName
    })
  },
  mounted() {
@@ -322,12 +322,12 @@
            }
          }
          if(_index==0){
            this.keyWordFind=record.field
          if (_index == 0) {
            this.keyWordFind = record.field
          }
        })
        this.tableHeadFindDatas = newval;
        this.WupinFindValue=''
        this.WupinFindValue = ''
      },
    },
    total: {
@@ -434,7 +434,7 @@
    },
    // 发布
    setHandler() {
      console.log('Treedata',this.Treedata)
      console.log('Treedata', this.Treedata)
      if (this.selectRow.length > 0) {
        let hasEditing = this.selectRow.some(item => item.lcstatus !== 'Editing');
        let showMessage = true;
@@ -451,7 +451,7 @@
                this.parameter.processName = this.result + '-申请[' + this.Treedata[0].name + '-' + this.selectRow[0].name + ']';
                this.parameter.type = 'PUBLIC';
                this.parameter.code = this.templateOid;
                this.parameter.btmtype=this.selectRow[0].btmname || this.selectRow[0].btmtype;
                this.parameter.btmtype = this.selectRow[0].btmname || this.selectRow[0].btmtype;
                this.title = '流程审批'
                this.visibleFlow = true;
              } else {
@@ -501,7 +501,7 @@
                this.parameter.processName = this.result + '-停用[' + this.Treedata[0].name + '-' + this.selectRow[0].name + ']';
                this.parameter.type = 'DISABLE';
                this.parameter.code = this.templateOid
                this.parameter.btmtype=this.selectRow[0].btmname || this.selectRow[0].btmtype;
                this.parameter.btmtype = this.selectRow[0].btmname || this.selectRow[0].btmtype;
                this.title = '停用(冻结)编码数据'
                this.visibleDeactivate = true;
              } else {
@@ -528,7 +528,7 @@
                }
              }
            });
          } else if(this.selectRow.length == 1 && !hasEditing && showMessage ) {
          } else if (this.selectRow.length == 1 && !hasEditing && showMessage) {
            this.$message.warning('您选择的数据为【发布状态】才可以发起流程')
          }
        });
@@ -552,7 +552,7 @@
                this.parameter.processName = this.result + '-启用[' + this.Treedata[0].name + '-' + this.selectRow[0].name + ']';
                this.parameter.type = 'Released';
                this.parameter.code = this.templateOid
                this.parameter.btmtype=this.selectRow[0].btmname || this.selectRow[0].btmtype;
                this.parameter.btmtype = this.selectRow[0].btmname || this.selectRow[0].btmtype;
                this.title = '启用编码数据'
                this.visibleDeactivate = true;
              } else {
@@ -609,7 +609,7 @@
                this.parameter.processName = this.result + '-回收[' + this.selectRow[0].btmname + '-' + this.selectRow[0].name + ']';
                this.parameter.type = 'TakeBack';
                this.parameter.code = this.templateOid
                this.parameter.btmtype=this.selectRow[0].btmname || this.selectRow[0].btmtype;
                this.parameter.btmtype = this.selectRow[0].btmname || this.selectRow[0].btmtype;
                this.title = '回收编码数据'
                this.visibleDeactivate = true;
              } else {
@@ -874,12 +874,12 @@
      })
    },
    //数据更改回调
    updataSumbit(val){
    updataSumbit(val) {
      this.DataVisible = false;
      val.copyFromVersion = this.rowOid;
      val.oid=''
      val.oid = '';
      console.log(val)
      upSaveCode(val).then(res=>{
      upSaveCode(val).then(res => {
        console.log(res)
        this.$nextTick(() => {
          this.onLoad()
@@ -902,7 +902,7 @@
        codeClassifyOid: this.codeClassifyOid,
        page: this.page.currentPage,
        limit: this.page.pageSize,
        [ 'conditionMap[' + this.keyWordFind + ']']: '*' + this.WupinFindValue + '*'
        ['conditionMap[' + this.keyWordFind + ']']: '*' + this.WupinFindValue + '*'
      }).then(res => {
        this.tableData = res.data.data
      })