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

ok

parent e166fc1a
......@@ -1138,9 +1138,9 @@ html [type=button] {
}
a.disable {
color: #CAD1D9;
cursor: help;
cursor:not-allowed;
i:hover {
background:#CAD1D9;
background:transparent;
}
}
......
<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">
<slot>
<Icon v-if="type=='icon'" :type="icon" :color="colors" />
......@@ -40,8 +46,8 @@ export default {
type: String
},
disable: {
type: Number,
default: 0
type: Boolean,
default: false
},
},
......@@ -50,7 +56,8 @@ export default {
text: "",
css: "detail",
colors: this.color,
titles: this.title
titles: this.title,
disabled:false,
};
},
created() {
......
<template>
<div>
<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>
<FormItem><Button type="primary" @click="search">查询</Button>
</FormItem>
......@@ -100,7 +99,7 @@ export default {
type: "icon",
title: "派发",
oprate: "edit",
disable:params.row.status
disable:params.row.status!=0
},
on: { click: () => this.send(params.row) },
},
......@@ -111,6 +110,7 @@ export default {
attrs: { icon: "md-add",
type: "icon",
title: "新增子任务",
disable:params.row.status>1,
oprate: "edit",},
on: { click: () => this.add(params.row) },
}
......@@ -121,7 +121,9 @@ export default {
attrs: { icon: "md-create",
type: "icon",
title: "编辑",
oprate: "edit", },
oprate: "edit",
disable:params.row.status!==0,
},
on: { click: () => this.edit(params.row.id) },
}
),
......@@ -132,6 +134,7 @@ export default {
type: "icon",
title: "删除",
oprate: "delete",
disable:params.row.status!==0,
msg: "确认要删除吗?" },
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