Commit 51b0219e authored by renjintao's avatar renjintao

record detail

parent c6301f18
...@@ -4,12 +4,15 @@ ...@@ -4,12 +4,15 @@
<Filed :span="12" :name="l('workHour')">{{entity.workHour}}</Filed> <Filed :span="12" :name="l('workHour')">{{entity.workHour}}</Filed>
<Filed :span="12" :name="l('title')">{{entity.title}}</Filed> <Filed :span="12" :name="l('title')">{{entity.title}}</Filed>
<Filed :span="12" :name="l('note')">{{entity.note}}</Filed> <Filed :span="12" :name="l('note')">{{entity.note}}</Filed>
<Filed :span="12" :name="l('attachment')">{{entity.attachment}}</Filed> <Filed :span="12" :name="l('attachment')"><a @click="viewFiles">查看附件</a></Filed>
<Filed :span="12" :name="l('creationTime')">{{entity.creationTime}}</Filed> <Filed :span="12" :name="l('creationTime')">{{entity.creationTime}}</Filed>
<Filed :span="12" :name="l('creatorUserId')"> <Filed :span="12" :name="l('creatorUserId')">
<User :value="entity.creatorUserId"></User> <User :value="entity.creatorUserId"></User>
</Filed> </Filed>
</Row> </Row>
<Modal v-model="modalFiles" title="查看附件" width="800" footer-hide :mask-closable="false">
<FilesView ref="refFile" :parms="parms" />
</Modal>
</div> </div>
</template> </template>
...@@ -21,6 +24,13 @@ export default { ...@@ -21,6 +24,13 @@ export default {
data() { data() {
return { return {
entity: {}, entity: {},
modalFiles: false,
parms: {
app: "taskRecord",
eid: null,
name: "",
field: "",
},
rules: { rules: {
name: [{ name: [{
required: true, required: true,
...@@ -55,6 +65,14 @@ export default { ...@@ -55,6 +65,14 @@ export default {
handleClose() { handleClose() {
this.$emit('on-close') this.$emit('on-close')
}, },
viewFiles() {
if (this.entity.attachment) {
this.parms.eid = this.entity.attachment;
this.modalFiles = true;
} else {
this.$Message.error("暂没上传附件");
}
},
l(key) { l(key) {
key = "project_plan_record" + "." + key; key = "project_plan_record" + "." + key;
return this.$t(key) return this.$t(key)
......
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