修改流程中心的搜索
This commit is contained in:
@@ -8,9 +8,9 @@
|
||||
<el-col :span="20">
|
||||
<div class="search-box-left">
|
||||
<label>流程编号:</label>
|
||||
<el-input v-model="form.id" ></el-input>
|
||||
<el-input v-model="form.prcNum" ></el-input>
|
||||
<label>流程名称:</label>
|
||||
<el-input v-model="form.name"></el-input>
|
||||
<el-input v-model="form.prcName"></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
<el-col :span="4" align="right">
|
||||
@@ -22,7 +22,7 @@
|
||||
</el-row>
|
||||
</div>
|
||||
<div class="tabs">
|
||||
<tabs :tableData="tableData"/>
|
||||
<tabs @clearForm="reset"/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -36,8 +36,11 @@ import tabs from '../userCenter/processCenter/tabs.vue'
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
form: {},
|
||||
tableData:[]
|
||||
form: {
|
||||
prcNum:'',
|
||||
prcName:''
|
||||
},
|
||||
|
||||
}
|
||||
},
|
||||
created () {
|
||||
@@ -52,15 +55,14 @@ import tabs from '../userCenter/processCenter/tabs.vue'
|
||||
search() {
|
||||
this.$bus.$emit('getSearchItem',this.form)
|
||||
// this.$api.processCenter.search({})
|
||||
this.tableData=[{createTime:'1999-10-1'}]
|
||||
},
|
||||
//重置
|
||||
reset(){
|
||||
this.form={}
|
||||
this.$forceUpdate()
|
||||
this.$bus.$emit('getSearchItem',this.form)
|
||||
this.tableData=[{createTime:'3000-10-1'}]
|
||||
// this.$api.processCenter.reset({})
|
||||
this.form= {
|
||||
prcNum:'',
|
||||
prcName:''
|
||||
}
|
||||
this.$bus.$emit('getSearchItem',this.form)
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
@@ -30,12 +30,6 @@ export default {
|
||||
monitorProcesses,
|
||||
sentProcess
|
||||
},
|
||||
props:{
|
||||
tableData:{
|
||||
type:Array,
|
||||
default:[],
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
activeName: 'first',
|
||||
@@ -63,7 +57,7 @@ export default {
|
||||
tabsName: this.activeName
|
||||
}
|
||||
})
|
||||
this.$bus.$emit('clearForm')
|
||||
this.$emit('clearForm')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user