| | |
| | | }} |
| | | </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="请输入关键字按回车查询" |
| | |
| | | <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> |
| | |
| | | tableHeadBtnData: { |
| | | type: Array, |
| | | }, |
| | | Treedata:{ |
| | | type:Array |
| | | Treedata: { |
| | | type: Array |
| | | } |
| | | }, |
| | | data() { |
| | |
| | | // 状态搜索 |
| | | statusSelect: "all", |
| | | // 关键字查询 |
| | | keyWordFind:"", |
| | | keyWordFind: "", |
| | | searchResults: [], |
| | | //首页右侧搜索 |
| | | WupinFindValue: "", |
| | |
| | | //发布 |
| | | parameter: { |
| | | ids: [], |
| | | btmtype:'', |
| | | btmtype: '', |
| | | code: "", |
| | | type: '', |
| | | // this.visibleDeactivate ?'ENABLE':this.visibleEnable ? 'DISABLE' :this.visibleRecovery ? 'ROLLBACK' :'PUBLIC' |
| | |
| | | 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() { |
| | |
| | | } |
| | | } |
| | | |
| | | if(_index==0){ |
| | | this.keyWordFind=record.field |
| | | if (_index == 0) { |
| | | this.keyWordFind = record.field |
| | | } |
| | | }) |
| | | this.tableHeadFindDatas = newval; |
| | | this.WupinFindValue='' |
| | | this.WupinFindValue = '' |
| | | }, |
| | | }, |
| | | total: { |
| | |
| | | }, |
| | | // 发布 |
| | | 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; |
| | |
| | | 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 { |
| | |
| | | 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 { |
| | |
| | | } |
| | | } |
| | | }); |
| | | } else if(this.selectRow.length == 1 && !hasEditing && showMessage ) { |
| | | } else if (this.selectRow.length == 1 && !hasEditing && showMessage) { |
| | | this.$message.warning('您选择的数据为【发布状态】才可以发起流程') |
| | | } |
| | | }); |
| | |
| | | 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 { |
| | |
| | | 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 { |
| | |
| | | }) |
| | | }, |
| | | //数据更改回调 |
| | | 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() |
| | |
| | | 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 |
| | | }) |