Commit 45d6199a authored by 周远喜's avatar 周远喜

ok

parent e166fc1a
...@@ -1138,9 +1138,9 @@ html [type=button] { ...@@ -1138,9 +1138,9 @@ html [type=button] {
} }
a.disable { a.disable {
color: #CAD1D9; color: #CAD1D9;
cursor: help; cursor:not-allowed;
i:hover { i:hover {
background:#CAD1D9; background:transparent;
} }
} }
......
<template> <template>
<Tooltip trigger="hover" v-if="!disable&&title" :content="titles" placement="top-end"> <a v-if="disable" class="disable">
<slot>
<Icon v-if="type=='icon'" :type="icon" :color="colors" />
<span v-else="type=='text'" v-text="text"></span>
</slot>
</a>
<Tooltip trigger="hover" v-else-if="title" :content="titles" placement="top-end">
<a class="op" :class="css" @click="handler"> <a class="op" :class="css" @click="handler">
<slot> <slot>
<Icon v-if="type=='icon'" :type="icon" :color="colors" /> <Icon v-if="type=='icon'" :type="icon" :color="colors" />
...@@ -40,8 +46,8 @@ export default { ...@@ -40,8 +46,8 @@ export default {
type: String type: String
}, },
disable: { disable: {
type: Number, type: Boolean,
default: 0 default: false
}, },
}, },
...@@ -50,7 +56,8 @@ export default { ...@@ -50,7 +56,8 @@ export default {
text: "", text: "",
css: "detail", css: "detail",
colors: this.color, colors: this.color,
titles: this.title titles: this.title,
disabled:false,
}; };
}, },
created() { created() {
......
<template> <template>
<div> <div>
<Card> <Card>
<EditGrid :columns="columns" ref="grid" :items="list" <EditGrid :columns="columns" ref="grid" :items="list" >
>
<template slot="easySearch"><Form ref="formInline" :model="easySearch" inline><FormItem prop="keys"><Input placeholder="请输入关键字标题" v-model="easySearch.keys.value" /> </FormItem> <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><Button type="primary" @click="search">查询</Button>
</FormItem> </FormItem>
...@@ -100,7 +99,7 @@ export default { ...@@ -100,7 +99,7 @@ export default {
type: "icon", type: "icon",
title: "派发", title: "派发",
oprate: "edit", oprate: "edit",
disable:params.row.status disable:params.row.status!=0
}, },
on: { click: () => this.send(params.row) }, on: { click: () => this.send(params.row) },
}, },
...@@ -111,6 +110,7 @@ export default { ...@@ -111,6 +110,7 @@ export default {
attrs: { icon: "md-add", attrs: { icon: "md-add",
type: "icon", type: "icon",
title: "新增子任务", title: "新增子任务",
disable:params.row.status>1,
oprate: "edit",}, oprate: "edit",},
on: { click: () => this.add(params.row) }, on: { click: () => this.add(params.row) },
} }
...@@ -121,7 +121,9 @@ export default { ...@@ -121,7 +121,9 @@ export default {
attrs: { icon: "md-create", attrs: { icon: "md-create",
type: "icon", type: "icon",
title: "编辑", title: "编辑",
oprate: "edit", }, oprate: "edit",
disable:params.row.status!==0,
},
on: { click: () => this.edit(params.row.id) }, on: { click: () => this.edit(params.row.id) },
} }
), ),
...@@ -132,6 +134,7 @@ export default { ...@@ -132,6 +134,7 @@ export default {
type: "icon", type: "icon",
title: "删除", title: "删除",
oprate: "delete", oprate: "delete",
disable:params.row.status!==0,
msg: "确认要删除吗?" }, msg: "确认要删除吗?" },
on: { click: () => this.remove(params.row.id) }, on: { click: () => this.remove(params.row.id) },
} }
......
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