Commit 08dc673c authored by 仇晓婷's avatar 仇晓婷

gongyi

parent b6f1c961
......@@ -116,6 +116,14 @@ export default {
easySearch: {
keys: { op: "title", value: null },
type: { op: "Equal", value: 1 },
// routingHeaderId: {
// op: "Equal",
// value: Number(this.$route.query.headid),
// },
// routingDetailId: {
// op: "Equal",
// value: Number(this.$route.query.routid),
// },
},
modal: false,
deletelModal: false,
......
......@@ -7,10 +7,10 @@
:action="action"
:conditions="easySearch"
type="card"
:span="6"
:span="6"
:high="false"
>
<template slot="easySearch">
<template slot="easySearch">
<Form ref="formInline" :model="easySearch" inline>
<FormItem prop="keys">
<Input placeholder="请输入关键字名称" v-model="easySearch.keys.value" />
......@@ -20,39 +20,44 @@
</FormItem>
</Form>
</template>
<template slot="buttons">
<!-- <template slot="buttons">
<Button type="primary" @click="add">新增</Button>
</template>
</template>-->
<template slot="card" slot-scope="{row}">
<div class="card_body">
<Row class="title_i">
<Col :span="21">工艺名称:{{row.title}}</Col>
<Col :span="3" class="btn_click">
<!-- <a @click="edit(row.id)">
<Row class="title_i">
<Col :span="21">工艺名称:{{row.title}}</Col>
<Col :span="3" class="btn_click">
<!-- <a @click="edit(row.id)">
<Icon type="ios-create" @click="edit(row.id)" />
</a> -->
<a @click="view(row.id)">
</a>-->
<!-- <a @click="view(row.id)">
<Icon type="ios-paper" />
</a>
<a @click="remove(row.id)">
<Icon type="ios-trash" />
</a>
</a>-->
</Col>
</Row>
<div class="down_text">
<Row :gutter="16">
<Col span="6">
<div class="file">
<Icon type="ios-paper" v-if="row.filePaths" />
<Icon type="md-film" v-else />
</div>
</Col>
<Col span="18">
<p>创建时间:{{row.creationTime}}</p>
<p>创建人:{{row.creator}}</p>
<p>内容:{{row.content}}</p>
<p>
状态:
<state code="processCase.status" :value="row.status+''" type="text" />
</p>
</Col>
</Row>
<div class="down_text">
<Row :gutter="16">
<Col span="6">
<div class="file">
<Icon type="ios-paper" v-if="row.filePaths" />
<Icon type="md-film" v-else />
</div>
</Col>
<Col span="18">
<p>{{row.creationTime}}</p>
<p>{{row.id}}{{row.creator}}</p>
</Col>
</Row>
</div>
</div>
</div>
<!-- <div class="card_box" @click="changeCards(row)">
<Row :gutter="16">
......@@ -70,15 +75,15 @@
<p>{{row.id}}{{row.creator}}</p>
</Col>
</Row>
</div> -->
</div>-->
</template>
</DataGrid>
<Modal v-model="modal" :title="title" width="800" footer-hide :mask-closable="false">
<!-- <Modal v-model="modal" :title="title" width="800" footer-hide :mask-closable="false">
<component :is="detail" :eid="curId" @on-close="cancel" @on-ok="ok" />
</Modal>
<Modal v-model="deletelModal" title="删除" @on-ok="removeOk" @on-cancel="cancel" :mask-closable="false">
<p>确定删除?</p>
</Modal>
</Modal>-->
</div>
</template>
<script>
......@@ -87,7 +92,7 @@ import Search from "./search";
export default {
name: "list",
components: {
Search
Search,
},
head: {
title: "工艺提醒",
......@@ -99,7 +104,15 @@ export default {
action: Api.index,
easySearch: {
keys: { op: "title", value: null },
type: { op: "Equal", value: 2 }
type: { op: "Equal", value: 2 },
routingHeaderId: {
op: "Equal",
value: Number(this.$route.query.headid),
},
routingDetailId: {
op: "Equal",
value: Number(this.$route.query.routid),
},
},
modal: false,
deletelModal: false,
......@@ -112,89 +125,54 @@ export default {
title: this.$t("id"),
hide: true,
align: "left",
high: true
},
{
key: "creationTime",
title: this.l("creationTime"),
align: "left",
high: true
high: true,
},
{
key: "creatorUserId",
title: this.l("creatorUserId"),
key: "routingDetail",
title: this.l("routingDetail"),
align: "left",
high: true
},
{
key: "lastModificationTime",
title: this.l("lastModificationTime"),
align: "left",
high: true
},
{
key: "lastModifierUserId",
title: this.l("lastModifierUserId"),
align: "left",
high: true
},
{
key: "isDeleted",
title: this.l("isDeleted"),
align: "left",
high: true
},
{
key: "deletionTime",
title: this.l("deletionTime"),
align: "left",
high: true
},
{
key: "deleterUserId",
title: this.l("deleterUserId"),
align: "left",
high: true
high: true,
tooltip: true,
},
{
key: "title",
title: this.l("title"),
align: "left",
easy: true,
high: true
},
{ key: "creator", title: this.l("creator"), align: "left", high: true },
{
key: "filePath",
title: this.l("filePath"),
key: "creator",
title: this.l("creator"),
align: "left",
high: true
type: "user",
},
{
key: "filePaths",
title: this.l("filePaths"),
key: "content",
title: this.l("content"),
align: "left",
high: true
},
{
key: "dispatchId",
title: this.l("dispatchId"),
align: "left",
high: true
},
{
key: "routingDetailId",
title: this.l("routingDetailId"),
key: "filePaths",
title: this.l("filePath"),
align: "left",
high: true
easy: true,
render: (h, params) => {
return h(
"op",
{
attrs: { oprate: "detail" },
on: { click: () => this.view(params.row.id) },
},
"查看"
);
},
},
{
key: "routingHeaderId",
title: this.l("routingHeaderId"),
key: "status",
title: this.l("status"),
align: "left",
high: true
easy: true,
code: "process.status",
},
{ key: "type", title: this.l("type"), align: "left", high: true },
{
title: "操作",
key: "action",
......@@ -206,7 +184,7 @@ export default {
"op",
{
attrs: { oprate: "detail" },
on: { click: () => this.view(params.row.id) }
on: { click: () => this.view(params.row.id) },
},
"查看"
),
......@@ -215,7 +193,7 @@ export default {
"op",
{
attrs: { oprate: "edit" },
on: { click: () => this.edit(params.row.id) }
on: { click: () => this.edit(params.row.id) },
},
"编辑"
),
......@@ -223,14 +201,14 @@ export default {
"op",
{
attrs: { oprate: "delete" },
on: { click: () => this.remove(params.row.id) }
on: { click: () => this.remove(params.row.id) },
},
"删除"
)
),
]);
}
}
]
},
},
],
};
},
mounted() {
......@@ -277,11 +255,11 @@ export default {
},
remove(id) {
this.deletelModal = true;
this.curId = id;
this.curId = id;
},
removeOk(){
removeOk() {
let id = this.curId;
Api.delete(id).then(r => {
Api.delete(id).then((r) => {
if (r.success) {
this.$refs.grid.load();
this.$Message.success("删除成功");
......@@ -314,10 +292,10 @@ export default {
type:'类型(工艺案例还是工艺提醒)',
}
*/
let vkey = "process_case" + "." + key;
let vkey = "remind" + "." + key;
return this.$t(vkey) || key;
}
}
},
},
};
</script>
<style lang="less">
......
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