Commit 90e9ab54 authored by 仇晓婷's avatar 仇晓婷

Merge branch 'product' of http://git.mes123.com/zhouyx/mes-ui into product

parents 6c4779b0 2211c2d7
...@@ -1085,6 +1085,7 @@ html [type=button] { ...@@ -1085,6 +1085,7 @@ html [type=button] {
} }
i { i {
font-size: 16px;
padding: 4px; padding: 4px;
border-radius: 3px; border-radius: 3px;
} }
...@@ -1126,13 +1127,13 @@ html [type=button] { ...@@ -1126,13 +1127,13 @@ html [type=button] {
width: 22px; width: 22px;
height: 22px; height: 22px;
line-height: 22px; line-height: 22px;
margin: 0px 0 0 0; margin: 0px 5px 0 0;
border-radius: 50%; border-radius: 50%;
color: #515A6E; color: #515A6E;
background: #F5F6FA; background: #F5F6FA;
.ivu-icon { .ivu-icon {
font-weight: bold; font-weight: bold;
font-size: 20px; font-size: 18px;
} }
} }
a.disable { a.disable {
......
...@@ -81,18 +81,17 @@ export default { ...@@ -81,18 +81,17 @@ export default {
}, },
methods: { methods: {
handler() { handler() {
if (!this.disable) {
if (this.oprate == "delete" || this.oprate == "remove") { if (this.oprate == "delete" || this.oprate == "remove") {
this.$Modal.confirm({ this.$Modal.confirm({
title: this.title, title: this.title,
content: "<p>" + this.msg + "</p>", content: "<p>" + this.msg + "</p>",
onOk: () => { onOk: () => {
this.$emit("click", event); this.$emit("click", event);
} }
}); });
} else { } else {
this.$emit("click", event); this.$emit("click", event);
}
} }
} }
}, },
......
<template> <template>
<div> <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> <Form ref="formInline" :model="easySearch" inline>
<FormItem prop="keys"><Input placeholder="请输入关键字标题" v-model="easySearch.keys.value" /> </FormItem> <FormItem prop="keys"><Input placeholder="请输入关键字标题" v-model="easySearch.keys.value" /> </FormItem>
<FormItem><Button type="primary" @click="search">查询</Button></FormItem> <FormItem><Button type="primary" @click="search">查询</Button></FormItem>
...@@ -98,11 +98,14 @@ export default { ...@@ -98,11 +98,14 @@ export default {
]) ])
} }
}, },
] ],
recordList: []
} }
}, },
mounted() { mounted() {
console.log(this); if (this.eid != '' && this.eid != null) {
this.load(this.eid);
}
}, },
async fetch({ async fetch({
store, store,
...@@ -111,6 +114,23 @@ export default { ...@@ -111,6 +114,23 @@ export default {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
}, },
methods: { 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() { ok() {
this.$refs.grid.load() this.$refs.grid.load()
this.modal = false this.modal = false
...@@ -159,6 +179,13 @@ export default { ...@@ -159,6 +179,13 @@ export default {
let vkey = "project_plan_record" + "." + key; let vkey = "project_plan_record" + "." + key;
return this.$t(vkey) || key return this.$t(vkey) || key
} }
},
watch: {
eid(v) {
if (v != '' && v != null) {
this.load(v);
}
}
} }
} }
</script> </script>
......
...@@ -428,13 +428,12 @@ export default { ...@@ -428,13 +428,12 @@ export default {
}; };
this.$refs.grid.reload(where); this.$refs.grid.reload(where);
}, },
updatestatus(valId, valStatus) { updatepart(valId, valStatus) {
let params = { let params = {
id: valId, id: valId,
status: valStatus, status: valStatus
detail: ''
} }
Api.updatestatus(params).then(r => { Api.updatepart(params).then(r => {
if (r.success) { if (r.success) {
this.$refs.grid.load(); this.$refs.grid.load();
this.$Message.success('操作成功') this.$Message.success('操作成功')
......
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