| | |
| | | </el-button> |
| | | <el-input v-model="WupinFindValue" placeholder="请输入关键字按回车查询" |
| | | size="small" style="width: 180px; margin-left: 5px; margin-top: 10px" |
| | | @keyup.enter.native="tableFindInp" v-if="tableData.length != 0"></el-input> |
| | | <span style="margin-left: 10px" v-if="tableData.length != 0"> |
| | | @keyup.enter.native="tableFindInp" v-if="tableHeadFindData.length > 0"></el-input> |
| | | <span style="margin-left: 10px" v-if="tableHeadFindData.length > 0"> |
| | | <p style="font-size: 13px;display: inline-block;"> 状态:</p> |
| | | <el-select v-model="statusSelect" slot="prepend" placeholder="请选择" size="small" @change="cellSelectHandler"> |
| | | <el-option label="全部" value="all"></el-option> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | statusSelect:"", |
| | | statusSelect:"all", |
| | | searchResults: [], |
| | | //首页右侧搜索 |
| | | WupinFindValue: "", |
| | |
| | | }, |
| | | computed: {}, |
| | | created() { |
| | | const index = this.$route.query.id.indexOf('@'); |
| | | this.result = this.$route.query.id.substring(0, index); |
| | | const index = this.$route.query.id.indexOf('@name=') + '@name='.length; |
| | | this.result = this.$route.query.id.substring(index); |
| | | }, |
| | | mounted() { |
| | | }, |
| | |
| | | }, |
| | | tableDataArray: { |
| | | handler(newval, oldval) { |
| | | this.statusSelect='' |
| | | this.tableData = newval; |
| | | this.searchResults = newval |
| | | this.doLayout() |
| | |
| | | methods: { |
| | | //状态搜索 |
| | | cellSelectHandler(row){ |
| | | console.log(row) |
| | | if(row === 'all'){ |
| | | this.cellStatusFind() |
| | | }else { |
| | | this.cellStatusFind(row) |
| | | } |
| | | }, |
| | | cellStatusFind(lcstatus){ |
| | | TableData({ |
| | | templateOid: this.templateOid, |
| | | codeClassifyOid: this.codeClassifyOid, |
| | | page: this.page.currentPage, |
| | | limit: this.page.pageSize, |
| | | 'conditionMap[lcstatus]':lcstatus |
| | | }).then(res=>{ |
| | | console.log(res) |
| | | this.tableData=res.data.data |
| | | }) |
| | | }, |
| | | //展开附件 |
| | | handleCollapse(activeNames) { |
| | |
| | | processTS({templateId: this.templateOid, buttonTypeKey: 'PUBLIC'}).then(res => { |
| | | if (res.data.data.records && res.data.data.records.length!=0) { |
| | | this.userName = localStorage.getItem("username"); |
| | | this.parameter.template = this.userName + '-发布['+this.result+'-' + this.selectRow[0].name + ']'; |
| | | this.parameter.template = this.userName + '-申请['+this.result+'-' + this.selectRow[0].name + ']'; |
| | | this.parameter.type = 'PUBLIC'; |
| | | this.parameter.code=this.templateOid |
| | | this.title = '流程审批' |