Commit af8c9203 authored by renjintao's avatar renjintao

record

parent 3d6593b0
<template>
<div>
<DataGrid :columns="columns" ref="grid" :action="action" :easy="false"><template slot="easySearch">
<DataGrid :columns="columns" ref="grid" :data="recordList" :easy="false" :set="false"><template slot="easySearch">
<Form ref="formInline" :model="easySearch" inline>
<FormItem prop="keys"><Input placeholder="请输入关键字标题" v-model="easySearch.keys.value" /> </FormItem>
<FormItem><Button type="primary" @click="search">查询</Button></FormItem>
......@@ -98,11 +98,14 @@ export default {
])
}
},
]
],
recordList: []
}
},
mounted() {
console.log(this);
if (this.eid != '' && this.eid != null) {
this.load(this.eid);
}
},
async fetch({
store,
......@@ -111,6 +114,23 @@ export default {
await store.dispatch('loadDictionary') // 加载数据字典
},
methods: {
load(v) {
let params = {
conditions: [{
fieldName: "taskId",
fieldValue: v,
conditionalType: "Equal",
}],
sortBy: "creationTime",
isDesc: false,
}
Api.list(params).then(r => {
if (r.success) {
this.recordList = r.result
}
})
},
ok() {
this.$refs.grid.load()
this.modal = false
......@@ -159,6 +179,13 @@ export default {
let vkey = "project_plan_record" + "." + key;
return this.$t(vkey) || key
}
},
watch: {
eid(v) {
if (v != '' && v != null) {
this.load(v);
}
}
}
}
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment