Commit a72385df authored by renjintao's avatar renjintao

bug:cetificate

parent 5b927673
<template> <template>
<div class="end-issued"> <div class="end-issued">
<DataGrid <DataGrid :columns="columns" ref="grid" :action="action" :conditions="easySearch" :high="false" :height="tdHeight"></DataGrid>
:columns="columns" <Modal v-model="detailModal" title="查看合格证" @on-cancel="reload" footer-hide width="1000" :mask-closable="false">
ref="grid"
:action="action"
:conditions="easySearch"
:high="false"
:height="tdHeight"
></DataGrid>
<Modal
v-model="detailModal"
title="查看合格证"
@on-cancel="reload"
footer-hide
width="1000"
:mask-closable="false"
>
<Detail @on-close="cancel" @on-ok="addOk" :eid="curId" ref="listDetail" /> <Detail @on-close="cancel" @on-ok="addOk" :eid="curId" ref="listDetail" />
</Modal> </Modal>
</div> </div>
</template> </template>
<script> <script>
...@@ -37,10 +23,18 @@ export default { ...@@ -37,10 +23,18 @@ export default {
modalInfo: false, modalInfo: false,
tdHeight: "", tdHeight: "",
rules: { rules: {
approveUser: [{ required: true, message: "必填", trigger: "blur" }] approveUser: [{
required: true,
message: "必填",
trigger: "blur"
}]
},
columns: [{
key: "id",
title: this.l("id"),
hide: true,
align: "left"
}, },
columns: [
{ key: "id", title: this.l("id"), hide: true, align: "left" },
// { // {
// type: 'selection', // type: 'selection',
// width: 60, // width: 60,
...@@ -98,9 +92,9 @@ export default { ...@@ -98,9 +92,9 @@ export default {
render: (h, params) => { render: (h, params) => {
return h( return h(
"span", "span",
params.row.actualFinishDate == "0001-01-01 00:00:00" params.row.actualFinishDate == "0001-01-01 00:00:00" ?
? "" "" :
: params.row.actualFinishDate params.row.actualFinishDate
); );
} }
}, },
...@@ -121,17 +115,20 @@ export default { ...@@ -121,17 +115,20 @@ export default {
}, },
{ {
title: "操作", title: "操作",
key: "id", key: "action",
render: (h, params) => { render: (h, params) => {
return h("div", { class: "action" }, [ return h("div", {
class: "action"
}, [
h( h(
"op", "op", {
{
attrs: { attrs: {
oprate: "detail",title: "查看合格证" oprate: "detail",
title: "查看合格证"
}, },
on: { click: () => this.detail(params.row.id) } on: {
click: () => this.detail(params.row.id)
}
}, },
"查看合格证" "查看合格证"
) )
...@@ -140,8 +137,15 @@ export default { ...@@ -140,8 +137,15 @@ export default {
} }
], ],
easySearch: { easySearch: {
keys: { op: "mesCode", value: "", default: true }, keys: {
type: { op: "Equal", value: 2 } op: "mesCode",
value: "",
default: true
},
type: {
op: "Equal",
value: 2
}
} }
}; };
}, },
......
<template> <template>
<div class="wait-opened"> <div class="wait-opened">
<DataGrid <DataGrid :columns="columns" ref="grid" :action="action" :conditions="easySearch" :high="false" :height="tdHeight"></DataGrid>
:columns="columns"
ref="grid"
:action="action"
:conditions="easySearch"
:high="false"
:height="tdHeight"
></DataGrid>
<Modal v-model="addModal" title="开合格证" fullscreen footer-hide :mask-closable="false"> <Modal v-model="addModal" title="开合格证" fullscreen footer-hide :mask-closable="false">
<Add @on-close="cancel" @on-ok="addOk" :eid="curId" ref="addFile" /> <Add @on-close="cancel" @on-ok="addOk" :eid="curId" ref="addFile" />
</Modal> </Modal>
</div> </div>
</template> </template>
<script> <script>
...@@ -29,8 +22,12 @@ export default { ...@@ -29,8 +22,12 @@ export default {
addModal: false, addModal: false,
curId: null, curId: null,
tdHeight: "", tdHeight: "",
columns: [ columns: [{
{ key: "id", title: this.l("id"), hide: true, align: "left" }, key: "id",
title: this.l("id"),
hide: true,
align: "left"
},
{ {
key: "mesCode", key: "mesCode",
title: this.l("mesCode"), title: this.l("mesCode"),
...@@ -84,9 +81,9 @@ export default { ...@@ -84,9 +81,9 @@ export default {
render: (h, params) => { render: (h, params) => {
return h( return h(
"span", "span",
params.row.actualFinishDate == "0001-01-01 00:00:00" params.row.actualFinishDate == "0001-01-01 00:00:00" ?
? "" "" :
: params.row.actualFinishDate params.row.actualFinishDate
); );
} }
}, },
...@@ -107,18 +104,21 @@ export default { ...@@ -107,18 +104,21 @@ export default {
}, },
{ {
title: "操作", title: "操作",
key: "id", key: "action",
// width: 250, // width: 250,
align: "center", align: "center",
render: (h, params) => { render: (h, params) => {
return h("div", { class: "action" }, [ return h("div", {
class: "action"
}, [
h( h(
"op", "op", {
{
attrs: { attrs: {
oprate: "add" oprate: "add"
}, },
on: { click: () => this.add(params.row) } on: {
click: () => this.add(params.row)
}
}, },
"开合格证" "开合格证"
) )
...@@ -127,12 +127,22 @@ export default { ...@@ -127,12 +127,22 @@ export default {
} }
], ],
easySearch: { easySearch: {
keys: { op: "mesCode", value: null, default: true }, keys: {
type: { op: "Equal", value: 1 } op: "mesCode",
value: null,
default: true
},
type: {
op: "Equal",
value: 1
}
} }
}; };
}, },
async fetch({ store, params }) { async fetch({
store,
params
}) {
await store.dispatch("loadDictionary"); // 加载数据字典 await store.dispatch("loadDictionary"); // 加载数据字典
}, },
mounted() {}, mounted() {},
......
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