mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-17 08:25:52 +08:00
style(components): 将按钮组件替换为链接样式
- 统一将页面中的 Button 组件替换为 a 标签,保持样式一致 - 添加统一的链接样式类 ops-link 和分隔符样式类 ops-sep - 更新操作列中按钮的样式,使用颜色、光标和文本装饰属性替代原有 props 配置 - 在多个文件中调整了操作项之间的分隔符显示逻辑 - 优化表格操作列渲染函数,去除冗余的 Button 属性配置 - 保持功能不变的前提下提升界面视觉一致性
This commit is contained in:
@@ -111,7 +111,7 @@ export const changeMobile = (params) => {
|
|||||||
};
|
};
|
||||||
// 获取用户数据 多条件
|
// 获取用户数据 多条件
|
||||||
export const getUserListData = (params) => {
|
export const getUserListData = (params) => {
|
||||||
return getRequest("/passport/user", params);
|
return getRequest("/passport/user/getByCondition", params);
|
||||||
};
|
};
|
||||||
// 通过用户名搜索
|
// 通过用户名搜索
|
||||||
export const searchUserByName = (username, params) => {
|
export const searchUserByName = (username, params) => {
|
||||||
|
|||||||
@@ -101,12 +101,12 @@ export default {
|
|||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
style: {
|
||||||
// type: this.index == params.index ? "primary" : "",
|
color: "#2d8cf0",
|
||||||
type: 'default',
|
cursor: "pointer",
|
||||||
size: "small",
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
@@ -194,12 +194,12 @@ export default {
|
|||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
style: {
|
||||||
// type: this.index == params.index ? "primary" : "",
|
color: "#2d8cf0",
|
||||||
type: 'default',
|
cursor: "pointer",
|
||||||
size: "small",
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
@@ -246,12 +246,12 @@ export default {
|
|||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
style: {
|
||||||
// type: this.index == params.index ? "primary" : "",
|
color: "#2d8cf0",
|
||||||
type: 'default',
|
cursor: "pointer",
|
||||||
size: "small",
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
|
|||||||
@@ -124,14 +124,12 @@ export default {
|
|||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "info",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
@@ -142,14 +140,17 @@ export default {
|
|||||||
"修改"
|
"修改"
|
||||||
),
|
),
|
||||||
h(
|
h(
|
||||||
"Button",
|
"span",
|
||||||
|
{ style: { margin: "0 8px", color: "#dcdee2" } },
|
||||||
|
"|"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "error",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
|
|||||||
@@ -115,17 +115,10 @@ export default {
|
|||||||
fixed: "right",
|
fixed: "right",
|
||||||
width: 200,
|
width: 200,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", { class: "ops" }, [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "success",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
|
||||||
marginRight: "5px",
|
|
||||||
},
|
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
this.audit(params.row, "PASS");
|
this.audit(params.row, "PASS");
|
||||||
@@ -134,13 +127,10 @@ export default {
|
|||||||
},
|
},
|
||||||
"通过"
|
"通过"
|
||||||
),
|
),
|
||||||
|
h("span", {}, "|"),
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "error",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
this.audit(params.row, "REFUSE");
|
this.audit(params.row, "REFUSE");
|
||||||
@@ -224,3 +214,15 @@ export default {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.ops a {
|
||||||
|
color: #2d8cf0;
|
||||||
|
cursor: pointer;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
.ops span {
|
||||||
|
display: inline-block;
|
||||||
|
margin: 0 8px;
|
||||||
|
color: #dcdee2;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
@@ -160,50 +160,34 @@ export default {
|
|||||||
fixed: "right",
|
fixed: "right",
|
||||||
width: 130,
|
width: 130,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
if(params.row.distributionCashStatus != 'APPLY'){
|
if (params.row.distributionCashStatus != 'APPLY') {
|
||||||
return h("div", [
|
return h("div", { class: "ops" }, [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
on: {
|
||||||
type: "primary",
|
click: () => {
|
||||||
size: "small",
|
this.view(params.row);
|
||||||
},
|
|
||||||
style: {
|
|
||||||
marginRight: "5px"
|
|
||||||
},
|
|
||||||
on: {
|
|
||||||
click: () => {
|
|
||||||
this.view(params.row);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"查看"
|
},
|
||||||
),
|
"查看"
|
||||||
|
),
|
||||||
]);
|
]);
|
||||||
}else {
|
} else {
|
||||||
return h("div", [
|
return h("div", { class: "ops" }, [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
on: {
|
||||||
type: "primary",
|
click: () => {
|
||||||
size: "small",
|
this.edit(params.row);
|
||||||
},
|
|
||||||
style: {
|
|
||||||
marginRight: "5px"
|
|
||||||
},
|
|
||||||
on: {
|
|
||||||
click: () => {
|
|
||||||
this.edit(params.row);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"审核"
|
},
|
||||||
),
|
"审核"
|
||||||
|
),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -312,3 +296,15 @@ export default {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.ops a {
|
||||||
|
color: #2d8cf0;
|
||||||
|
cursor: pointer;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
.ops span {
|
||||||
|
display: inline-block;
|
||||||
|
margin: 0 8px;
|
||||||
|
color: #dcdee2;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
@@ -137,14 +137,10 @@ export default {
|
|||||||
fixed: "right",
|
fixed: "right",
|
||||||
minWidth: 100,
|
minWidth: 100,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", { class: "ops" }, [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "error",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
this.remove(params.row);
|
this.remove(params.row);
|
||||||
@@ -256,5 +252,17 @@ export default {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.ops a {
|
||||||
|
color: #2d8cf0;
|
||||||
|
cursor: pointer;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
.ops span {
|
||||||
|
display: inline-block;
|
||||||
|
margin: 0 8px;
|
||||||
|
color: #dcdee2;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -121,18 +121,17 @@ export default {
|
|||||||
title: "操作",
|
title: "操作",
|
||||||
key: "action",
|
key: "action",
|
||||||
align: "center",
|
align: "center",
|
||||||
|
fixed: "right",
|
||||||
width: 200,
|
width: 200,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "info",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
@@ -143,14 +142,17 @@ export default {
|
|||||||
"修改"
|
"修改"
|
||||||
),
|
),
|
||||||
h(
|
h(
|
||||||
"Button",
|
"span",
|
||||||
|
{ style: { margin: "0 8px", color: "#dcdee2" } },
|
||||||
|
"|"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "error",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
|
|||||||
@@ -171,13 +171,12 @@ export default {
|
|||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "success",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
marginRight: "5px",
|
marginRight: "5px",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
@@ -189,13 +188,17 @@ export default {
|
|||||||
"通过"
|
"通过"
|
||||||
),
|
),
|
||||||
h(
|
h(
|
||||||
"Button",
|
"span",
|
||||||
|
{ style: { margin: "0 8px", color: "#dcdee2" } },
|
||||||
|
"|"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "error",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
marginRight: "5px",
|
marginRight: "5px",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
@@ -207,11 +210,17 @@ export default {
|
|||||||
"拒绝"
|
"拒绝"
|
||||||
),
|
),
|
||||||
h(
|
h(
|
||||||
"Button",
|
"span",
|
||||||
|
{ style: { margin: "0 8px", color: "#dcdee2" } },
|
||||||
|
"|"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
style: {
|
||||||
type: 'default',
|
color: "#2d8cf0",
|
||||||
size: "small",
|
cursor: "pointer",
|
||||||
|
textDecoration: "none"
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
|
|||||||
@@ -153,13 +153,12 @@ export default {
|
|||||||
let enableOrDisable = "";
|
let enableOrDisable = "";
|
||||||
if (params.row.deleteFlag == 0) {
|
if (params.row.deleteFlag == 0) {
|
||||||
enableOrDisable = h(
|
enableOrDisable = h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
size: "small",
|
|
||||||
type: "error",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
marginRight: "5px",
|
marginRight: "5px",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
@@ -172,13 +171,12 @@ export default {
|
|||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
enableOrDisable = h(
|
enableOrDisable = h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "success",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
marginRight: "5px",
|
marginRight: "5px",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
@@ -192,13 +190,12 @@ export default {
|
|||||||
}
|
}
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "info",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
marginRight: "5px",
|
marginRight: "5px",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
@@ -209,17 +206,24 @@ export default {
|
|||||||
},
|
},
|
||||||
"编辑"
|
"编辑"
|
||||||
),
|
),
|
||||||
enableOrDisable,
|
|
||||||
|
|
||||||
h(
|
h(
|
||||||
"Button",
|
"span",
|
||||||
|
{ style: { margin: "0 8px", color: "#dcdee2" } },
|
||||||
|
"|"
|
||||||
|
),
|
||||||
|
enableOrDisable,
|
||||||
|
h(
|
||||||
|
"span",
|
||||||
|
{ style: { margin: "0 8px", color: "#dcdee2" } },
|
||||||
|
"|"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: 'default',
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
|
|||||||
@@ -15,54 +15,31 @@
|
|||||||
>
|
>
|
||||||
<template slot="action" slot-scope="scope">
|
<template slot="action" slot-scope="scope">
|
||||||
<Dropdown v-show="scope.row.level == 2" trigger="click">
|
<Dropdown v-show="scope.row.level == 2" trigger="click">
|
||||||
<Button size="small">
|
<a class="ops-link">
|
||||||
绑定
|
绑定
|
||||||
<Icon type="ios-arrow-down"></Icon>
|
<Icon type="ios-arrow-down"></Icon>
|
||||||
</Button>
|
</a>
|
||||||
<DropdownMenu slot="list">
|
<DropdownMenu slot="list">
|
||||||
<DropdownItem @click.native="brandOperation(scope.row)"
|
<DropdownItem @click.native="brandOperation(scope.row)">编辑绑定品牌</DropdownItem>
|
||||||
>编辑绑定品牌</DropdownItem
|
<DropdownItem @click.native="specOperation(scope.row)">编辑绑定规格</DropdownItem>
|
||||||
>
|
<DropdownItem @click.native="parameterOperation(scope.row)">编辑绑定参数</DropdownItem>
|
||||||
<DropdownItem @click.native="specOperation(scope.row)"
|
|
||||||
>编辑绑定规格</DropdownItem
|
|
||||||
>
|
|
||||||
<DropdownItem @click.native="parameterOperation(scope.row)"
|
|
||||||
>编辑绑定参数</DropdownItem
|
|
||||||
>
|
|
||||||
</DropdownMenu>
|
</DropdownMenu>
|
||||||
</Dropdown>
|
</Dropdown>
|
||||||
|
<span class="ops-sep">|</span>
|
||||||
|
|
||||||
<Dropdown trigger="click">
|
<Dropdown trigger="click">
|
||||||
<Button size="small">
|
<a class="ops-link">
|
||||||
操作
|
操作
|
||||||
<Icon type="ios-arrow-down"></Icon>
|
<Icon type="ios-arrow-down"></Icon>
|
||||||
</Button>
|
</a>
|
||||||
<DropdownMenu slot="list">
|
<DropdownMenu slot="list">
|
||||||
<DropdownItem @click.native="edit(scope.row)">编辑</DropdownItem>
|
<DropdownItem @click.native="edit(scope.row)">编辑</DropdownItem>
|
||||||
<DropdownItem
|
<DropdownItem v-if="scope.row.deleteFlag == 1" @click.native="enable(scope.row)">启用</DropdownItem>
|
||||||
v-if="scope.row.deleteFlag == 1"
|
<DropdownItem v-if="scope.row.deleteFlag == 0" @click.native="disable(scope.row)">禁用</DropdownItem>
|
||||||
@click.native="enable(scope.row)"
|
|
||||||
>启用</DropdownItem
|
|
||||||
>
|
|
||||||
<DropdownItem
|
|
||||||
v-if="scope.row.deleteFlag == 0"
|
|
||||||
@click.native="disable(scope.row)"
|
|
||||||
>禁用</DropdownItem
|
|
||||||
>
|
|
||||||
<DropdownItem @click.native="remove(scope.row)">删除</DropdownItem>
|
<DropdownItem @click.native="remove(scope.row)">删除</DropdownItem>
|
||||||
</DropdownMenu>
|
</DropdownMenu>
|
||||||
</Dropdown>
|
</Dropdown>
|
||||||
|
<span v-if="scope.row.level != 2" class="ops-sep">|</span>
|
||||||
<Button
|
<a v-show="scope.row.level != 2" class="ops-link" @click="addChildren(scope.row)">添加子分类</a>
|
||||||
v-show="scope.row.level != 2"
|
|
||||||
type="primary"
|
|
||||||
@click="addChildren(scope.row)"
|
|
||||||
size="small"
|
|
||||||
icon="md-add"
|
|
||||||
style="margin-right: 5px"
|
|
||||||
>添加子分类
|
|
||||||
</Button>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template slot="commissionRate" slot-scope="scope">
|
<template slot="commissionRate" slot-scope="scope">
|
||||||
@@ -550,4 +527,14 @@ export default {
|
|||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
|
.ops-link {
|
||||||
|
color: #2d8cf0;
|
||||||
|
cursor: pointer;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
.ops-sep {
|
||||||
|
display: inline-block;
|
||||||
|
margin: 0 8px;
|
||||||
|
color: #dcdee2;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -110,13 +110,12 @@ export default {
|
|||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "info",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
marginRight: "5px",
|
marginRight: "5px",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
@@ -128,11 +127,17 @@ export default {
|
|||||||
"编辑"
|
"编辑"
|
||||||
),
|
),
|
||||||
h(
|
h(
|
||||||
"Button",
|
"span",
|
||||||
|
{ style: { margin: "0 8px", color: "#dcdee2" } },
|
||||||
|
"|"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
style: {
|
||||||
type: "error",
|
color: "#2d8cf0",
|
||||||
size: "small",
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
|
|||||||
@@ -189,18 +189,15 @@ export default {
|
|||||||
width: 150,
|
width: 150,
|
||||||
align: "center",
|
align: "center",
|
||||||
fixed: "right",
|
fixed: "right",
|
||||||
|
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", { class: "ops" }, [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
size: "small",
|
|
||||||
type: "info",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
@@ -211,22 +208,38 @@ export default {
|
|||||||
"查看"
|
"查看"
|
||||||
),
|
),
|
||||||
h(
|
h(
|
||||||
"Button",
|
"span",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "error",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
margin: "0 8px",
|
||||||
|
color: "#dcdee2",
|
||||||
},
|
},
|
||||||
|
},
|
||||||
|
"|"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"Poptip",
|
||||||
|
{
|
||||||
|
props: { confirm: true, title: "确认删除" },
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
"on-ok": () => {
|
||||||
this.remove(params.row);
|
this.remove(params.row);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"删除"
|
[
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
|
{
|
||||||
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"删除"
|
||||||
|
),
|
||||||
|
]
|
||||||
),
|
),
|
||||||
]);
|
]);
|
||||||
},
|
},
|
||||||
@@ -372,4 +385,14 @@ label {
|
|||||||
margin: 5px 0;
|
margin: 5px 0;
|
||||||
span{margin-right: 20px;}
|
span{margin-right: 20px;}
|
||||||
}
|
}
|
||||||
|
.ops a {
|
||||||
|
color: #2d8cf0;
|
||||||
|
cursor: pointer;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
.ops span {
|
||||||
|
display: inline-block;
|
||||||
|
margin: 0 8px;
|
||||||
|
color: #dcdee2;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -194,49 +194,49 @@ export default {
|
|||||||
fixed: "right",
|
fixed: "right",
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
if (params.row.applyStatus == "APPLY") {
|
if (params.row.applyStatus == "APPLY") {
|
||||||
return h(
|
return h("div", { class: "ops" }, [
|
||||||
"Button",
|
h(
|
||||||
{
|
"a",
|
||||||
props: {
|
{
|
||||||
type: "primary",
|
style: {
|
||||||
size: "small",
|
color: "#2d8cf0",
|
||||||
},
|
cursor: "pointer",
|
||||||
style: {
|
textDecoration: "none",
|
||||||
marginRight: "5px",
|
},
|
||||||
},
|
on: {
|
||||||
on: {
|
click: () => {
|
||||||
click: () => {
|
this.showList = {};
|
||||||
this.showList = {};
|
this.roleModalVisible = true;
|
||||||
this.roleModalVisible = true;
|
this.showList = params.row;
|
||||||
this.showList = params.row;
|
this.audit = "";
|
||||||
this.audit =""
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
"审核"
|
||||||
"审核"
|
),
|
||||||
);
|
]);
|
||||||
} else {
|
} else {
|
||||||
return h(
|
return h("div", { class: "ops" }, [
|
||||||
"Button",
|
h(
|
||||||
{
|
"a",
|
||||||
props: {
|
{
|
||||||
type: "default",
|
style: {
|
||||||
size: "small",
|
color: "#2d8cf0",
|
||||||
},
|
cursor: "pointer",
|
||||||
style: {
|
textDecoration: "none",
|
||||||
marginRight: "5px",
|
},
|
||||||
},
|
on: {
|
||||||
on: {
|
click: () => {
|
||||||
click: () => {
|
this.showList = {};
|
||||||
this.showList = {};
|
this.queryModalVisible = true;
|
||||||
this.queryModalVisible = true;
|
this.showList = params.row;
|
||||||
this.showList = params.row;
|
this.modalTitle = "查看";
|
||||||
this.modalTitle = "查看";
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
"查看"
|
||||||
"查看"
|
),
|
||||||
);
|
]);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -347,4 +347,16 @@ export default {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.ops a {
|
||||||
|
color: #2d8cf0;
|
||||||
|
cursor: pointer;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
.ops span {
|
||||||
|
display: inline-block;
|
||||||
|
margin: 0 8px;
|
||||||
|
color: #dcdee2;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|||||||
@@ -248,15 +248,13 @@ export default {
|
|||||||
},
|
},
|
||||||
[
|
[
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
size: "small",
|
|
||||||
type: params.row.___selected ? "primary" : "default",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
display: this.selectedMember ? "block" : "none",
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
|
display: this.selectedMember ? "inline-block" : "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
@@ -266,17 +264,25 @@ export default {
|
|||||||
},
|
},
|
||||||
params.row.___selected ? "已选择" : "选择"
|
params.row.___selected ? "已选择" : "选择"
|
||||||
),
|
),
|
||||||
|
|
||||||
h(
|
h(
|
||||||
"Button",
|
"span",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "info",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
margin: "0 8px",
|
||||||
display: this.selectedMember ? "none" : "block",
|
color: "#dcdee2",
|
||||||
|
display: this.selectedMember ? "inline-block" : "none",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"|"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
|
{
|
||||||
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
|
display: this.selectedMember ? "none" : "inline-block",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
@@ -287,16 +293,24 @@ export default {
|
|||||||
"查看"
|
"查看"
|
||||||
),
|
),
|
||||||
h(
|
h(
|
||||||
"Button",
|
"span",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "info",
|
|
||||||
size: "small",
|
|
||||||
ghost: true,
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
margin: "0 8px",
|
||||||
display: this.selectedMember ? "none" : "block",
|
color: "#dcdee2",
|
||||||
|
display: this.selectedMember ? "none" : "inline-block",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"|"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
|
{
|
||||||
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
|
display: this.selectedMember ? "none" : "inline-block",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
@@ -307,15 +321,24 @@ export default {
|
|||||||
"编辑"
|
"编辑"
|
||||||
),
|
),
|
||||||
h(
|
h(
|
||||||
"Button",
|
"span",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
size: "small",
|
|
||||||
type: "error",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
margin: "0 8px",
|
||||||
display: this.selectedMember ? "none" : "block",
|
color: "#dcdee2",
|
||||||
|
display: this.selectedMember ? "none" : "inline-block",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"|"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
|
{
|
||||||
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
|
display: this.selectedMember ? "none" : "inline-block",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
|
|||||||
@@ -584,13 +584,12 @@
|
|||||||
}
|
}
|
||||||
}, [
|
}, [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "info",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
marginRight: "5px",
|
marginRight: "5px",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
|
|||||||
@@ -230,92 +230,56 @@ export default {
|
|||||||
width: 200,
|
width: 200,
|
||||||
fixed: "right",
|
fixed: "right",
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
|
const linkStyle = {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
|
};
|
||||||
|
const sep = h(
|
||||||
|
"span",
|
||||||
|
{ style: { margin: "0 8px", color: "#dcdee2" } },
|
||||||
|
"|"
|
||||||
|
);
|
||||||
|
const children = [];
|
||||||
|
if (this.selectedMember) {
|
||||||
|
children.push(
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
|
{ style: linkStyle, on: { click: () => this.callback(params.row) } },
|
||||||
|
"选择"
|
||||||
|
)
|
||||||
|
);
|
||||||
|
children.push(sep);
|
||||||
|
}
|
||||||
|
children.push(
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
|
{ style: linkStyle, on: { click: () => this.detail(params.row) } },
|
||||||
|
"查看"
|
||||||
|
)
|
||||||
|
);
|
||||||
|
if (!this.selectedMember) {
|
||||||
|
children.push(sep);
|
||||||
|
children.push(
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
|
{ style: linkStyle, on: { click: () => this.enable(params.row) } },
|
||||||
|
"启用"
|
||||||
|
)
|
||||||
|
);
|
||||||
|
children.push(sep);
|
||||||
|
children.push(
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
|
{ style: linkStyle, on: { click: () => this.editPerm(params.row) } },
|
||||||
|
"编辑"
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
return h(
|
return h(
|
||||||
"div",
|
"div",
|
||||||
{
|
{ class: "ops", style: { display: "flex", justifyContent: "center" } },
|
||||||
style: {
|
children
|
||||||
display: "flex",
|
|
||||||
justifyContent: "center",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
[
|
|
||||||
h(
|
|
||||||
"Button",
|
|
||||||
{
|
|
||||||
props: {
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
|
||||||
marginRight: "5px",
|
|
||||||
display: this.selectedMember ? "block" : "none",
|
|
||||||
},
|
|
||||||
on: {
|
|
||||||
click: () => {
|
|
||||||
this.callback(params.row);
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"选择"
|
|
||||||
),
|
|
||||||
h(
|
|
||||||
"Button",
|
|
||||||
{
|
|
||||||
props: {
|
|
||||||
type: "info",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
|
||||||
marginRight: "5px",
|
|
||||||
},
|
|
||||||
on: {
|
|
||||||
click: () => {
|
|
||||||
this.detail(params.row);
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"查看"
|
|
||||||
),
|
|
||||||
|
|
||||||
h(
|
|
||||||
"Button",
|
|
||||||
{
|
|
||||||
props: {
|
|
||||||
size: "small",
|
|
||||||
type: "success",
|
|
||||||
},
|
|
||||||
style: {
|
|
||||||
marginRight: "5px",
|
|
||||||
display: this.selectedMember ? "none" : "block",
|
|
||||||
},
|
|
||||||
on: {
|
|
||||||
click: () => {
|
|
||||||
this.enable(params.row);
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"启用"
|
|
||||||
),
|
|
||||||
|
|
||||||
h(
|
|
||||||
"Button",
|
|
||||||
{
|
|
||||||
props: {
|
|
||||||
type: "info",
|
|
||||||
size: "small",
|
|
||||||
ghost: true,
|
|
||||||
},
|
|
||||||
style: {
|
|
||||||
marginRight: "5px",
|
|
||||||
},
|
|
||||||
on: {
|
|
||||||
click: () => {
|
|
||||||
this.editPerm(params.row);
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"编辑"
|
|
||||||
),
|
|
||||||
]
|
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -465,4 +429,14 @@ export default {
|
|||||||
height: 60px;
|
height: 60px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
}
|
}
|
||||||
|
.ops a {
|
||||||
|
color: #2d8cf0;
|
||||||
|
cursor: pointer;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
.ops span {
|
||||||
|
display: inline-block;
|
||||||
|
margin: 0 8px;
|
||||||
|
color: #dcdee2;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -178,14 +178,12 @@ export default {
|
|||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "primary",
|
|
||||||
size: "small"
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px"
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none"
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
@@ -196,14 +194,17 @@ export default {
|
|||||||
"编辑"
|
"编辑"
|
||||||
),
|
),
|
||||||
h(
|
h(
|
||||||
"Button",
|
"span",
|
||||||
|
{ style: { margin: "0 8px", color: "#dcdee2" } },
|
||||||
|
"|"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "error",
|
|
||||||
size: "small"
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px"
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none"
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
|
|||||||
@@ -181,43 +181,48 @@
|
|||||||
key: "action",
|
key: "action",
|
||||||
align: "center",
|
align: "center",
|
||||||
width: 200,
|
width: 200,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
style: {
|
||||||
type: "info",
|
color: "#2d8cf0",
|
||||||
size: "small",
|
cursor: "pointer",
|
||||||
},
|
textDecoration: "none",
|
||||||
style: {
|
marginRight: "5px"
|
||||||
marginRight: "5px"
|
|
||||||
},
|
|
||||||
on: {
|
|
||||||
click: () => {
|
|
||||||
this.edit(params.row);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"编辑"
|
on: {
|
||||||
),
|
click: () => {
|
||||||
h(
|
this.edit(params.row);
|
||||||
"Button",
|
|
||||||
{
|
|
||||||
props: {
|
|
||||||
type: "error",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
on: {
|
|
||||||
click: () => {
|
|
||||||
this.remove(params.row);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"编辑"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"span",
|
||||||
|
{ style: { margin: "0 8px", color: "#dcdee2" } },
|
||||||
|
"|"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
|
{
|
||||||
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none"
|
||||||
},
|
},
|
||||||
"删除"
|
on: {
|
||||||
)
|
click: () => {
|
||||||
]);
|
this.remove(params.row);
|
||||||
},
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"删除"
|
||||||
|
)
|
||||||
|
]);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
data: [], // 表单数据
|
data: [], // 表单数据
|
||||||
|
|||||||
@@ -282,14 +282,12 @@ export default {
|
|||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "info",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none"
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
|
|||||||
@@ -144,24 +144,22 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
title: "操作",
|
title: "操作",
|
||||||
key: "action",
|
key: "action",
|
||||||
align: "center",
|
align: "center",
|
||||||
fixed: "right",
|
fixed: "right",
|
||||||
width: 150,
|
width: 150,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
if(params.row.complainStatus === "COMPLETE"){
|
if(params.row.complainStatus === "COMPLETE"){
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "info",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
@@ -175,14 +173,12 @@
|
|||||||
}else{
|
}else{
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "primary",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
|
|||||||
@@ -357,17 +357,26 @@ export default {
|
|||||||
width: 100,
|
width: 100,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h(
|
return h(
|
||||||
"Button",
|
"div",
|
||||||
{
|
{ class: "ops" },
|
||||||
props: { type: "info", size: "small" },
|
[
|
||||||
style: { marginRight: "5px" },
|
h(
|
||||||
on: {
|
"a",
|
||||||
click: () => {
|
{
|
||||||
this.detail(params.row);
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
|
},
|
||||||
|
on: {
|
||||||
|
click: () => {
|
||||||
|
this.detail(params.row);
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
"查看"
|
||||||
},
|
),
|
||||||
"查看"
|
]
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -536,4 +545,14 @@ export default {
|
|||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.ops a {
|
||||||
|
color: #2d8cf0;
|
||||||
|
cursor: pointer;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
.ops span {
|
||||||
|
display: inline-block;
|
||||||
|
margin: 0 8px;
|
||||||
|
color: #dcdee2;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -19,29 +19,21 @@
|
|||||||
primary-key="id"
|
primary-key="id"
|
||||||
>
|
>
|
||||||
<template slot="action" slot-scope="scope">
|
<template slot="action" slot-scope="scope">
|
||||||
<Button
|
<a
|
||||||
type="info"
|
style="color:#2d8cf0;cursor:pointer;text-decoration:none;margin-right:5px"
|
||||||
@click="edit(scope.row)"
|
@click="edit(scope.row)"
|
||||||
size="small"
|
>编辑</a>
|
||||||
style="margin-right: 5px"
|
<span style="margin:0 8px;color:#dcdee2">|</span>
|
||||||
>编辑
|
<a
|
||||||
</Button>
|
style="color:#2d8cf0;cursor:pointer;text-decoration:none;margin-right:5px"
|
||||||
|
|
||||||
<Button
|
|
||||||
type="error"
|
|
||||||
@click="remove(scope.row)"
|
@click="remove(scope.row)"
|
||||||
size="small"
|
>删除</a>
|
||||||
style="margin-right: 5px"
|
<span v-show="scope.row.level != 1" style="margin:0 8px;color:#dcdee2">|</span>
|
||||||
>删除
|
<a
|
||||||
</Button>
|
|
||||||
<Button
|
|
||||||
v-show="scope.row.level != 1"
|
v-show="scope.row.level != 1"
|
||||||
type="success"
|
style="color:#2d8cf0;cursor:pointer;text-decoration:none"
|
||||||
@click="addChildren(scope.row)"
|
@click="addChildren(scope.row)"
|
||||||
size="small"
|
>添加子分类</a>
|
||||||
style="margin-right: 5px"
|
|
||||||
>添加子分类
|
|
||||||
</Button>
|
|
||||||
</template>
|
</template>
|
||||||
</tree-table>
|
</tree-table>
|
||||||
</Card>
|
</Card>
|
||||||
|
|||||||
@@ -221,16 +221,12 @@ export default {
|
|||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
size: "small",
|
|
||||||
type:
|
|
||||||
this.selectedIndex == params.index
|
|
||||||
? "primary"
|
|
||||||
: "default",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
marginRight: "5px",
|
marginRight: "5px",
|
||||||
display: this.selected ? "" : "none",
|
display: this.selected ? "" : "none",
|
||||||
},
|
},
|
||||||
@@ -244,13 +240,17 @@ export default {
|
|||||||
this.selectedIndex == params.index ? "已选" : "选择"
|
this.selectedIndex == params.index ? "已选" : "选择"
|
||||||
),
|
),
|
||||||
h(
|
h(
|
||||||
"Button",
|
"span",
|
||||||
|
{ style: { margin: "0 8px", color: "#dcdee2" } },
|
||||||
|
"|"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
size: "small",
|
|
||||||
type: "info",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
marginRight: "5px",
|
marginRight: "5px",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
@@ -262,11 +262,17 @@ export default {
|
|||||||
"编辑"
|
"编辑"
|
||||||
),
|
),
|
||||||
h(
|
h(
|
||||||
"Button",
|
"span",
|
||||||
|
{ style: { margin: "0 8px", color: "#dcdee2" } },
|
||||||
|
"|"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
style: {
|
||||||
type: "error",
|
color: "#2d8cf0",
|
||||||
size: "small",
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
|
|||||||
@@ -133,17 +133,10 @@
|
|||||||
align: "center",
|
align: "center",
|
||||||
width: 130,
|
width: 130,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", { class: "ops" }, [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
size: "small",
|
|
||||||
type: "info"
|
|
||||||
},
|
|
||||||
style: {
|
|
||||||
marginRight: "5px",
|
|
||||||
},
|
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
this.detail(params.row);
|
this.detail(params.row);
|
||||||
@@ -208,3 +201,15 @@
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.ops a {
|
||||||
|
color: #2d8cf0;
|
||||||
|
cursor: pointer;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
.ops span {
|
||||||
|
display: inline-block;
|
||||||
|
margin: 0 8px;
|
||||||
|
color: #dcdee2;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
@@ -109,16 +109,14 @@ export default {
|
|||||||
align: "center",
|
align: "center",
|
||||||
width: 230,
|
width: 230,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", { class: "ops" }, [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
size: "small",
|
|
||||||
type: "info",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
@@ -283,4 +281,14 @@ export default {
|
|||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.ops a {
|
||||||
|
color: #2d8cf0;
|
||||||
|
cursor: pointer;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
.ops span {
|
||||||
|
display: inline-block;
|
||||||
|
margin: 0 8px;
|
||||||
|
color: #dcdee2;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -211,12 +211,12 @@ export default {
|
|||||||
align: "center",
|
align: "center",
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h(
|
return h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
style: {
|
||||||
size: "small",
|
color: "#2d8cf0",
|
||||||
type: "error",
|
cursor: "pointer",
|
||||||
ghost: true,
|
textDecoration: "none"
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
|
|||||||
@@ -13,20 +13,19 @@
|
|||||||
sortable="custom"
|
sortable="custom"
|
||||||
>
|
>
|
||||||
<template slot-scope="{ row }" slot="action">
|
<template slot-scope="{ row }" slot="action">
|
||||||
<Button type="info" size="small" style="margin-right: 10px" @click="info(row)">
|
<a
|
||||||
查看
|
:style="{ color: '#2d8cf0', cursor: 'pointer', textDecoration: 'none' }"
|
||||||
</Button>
|
@click="info(row)"
|
||||||
<Button
|
>查看</a>
|
||||||
v-if="
|
<span
|
||||||
(!checked && row.promotionStatus === 'START') ||
|
v-if="(!checked && row.promotionStatus === 'START') || row.promotionStatus === 'NEW'"
|
||||||
row.promotionStatus === 'NEW'
|
style="margin: 0 8px; color: #dcdee2"
|
||||||
"
|
>|</span>
|
||||||
type="error"
|
<a
|
||||||
size="small"
|
v-if="(!checked && row.promotionStatus === 'START') || row.promotionStatus === 'NEW'"
|
||||||
style="margin-right: 10px"
|
:style="{ color: '#2d8cf0', cursor: 'pointer', textDecoration: 'none' }"
|
||||||
@click="remove(row)"
|
@click="remove(row)"
|
||||||
>关闭
|
>关闭</a>
|
||||||
</Button>
|
|
||||||
</template>
|
</template>
|
||||||
</Table>
|
</Table>
|
||||||
<Row type="flex" justify="end" class="mt_10">
|
<Row type="flex" justify="end" class="mt_10">
|
||||||
|
|||||||
@@ -75,49 +75,30 @@
|
|||||||
@on-selection-change="changeSelect"
|
@on-selection-change="changeSelect"
|
||||||
>
|
>
|
||||||
<template slot-scope="{ row }" slot="action">
|
<template slot-scope="{ row }" slot="action">
|
||||||
<Button
|
<a
|
||||||
v-if="
|
v-if="row.promotionStatus === 'CLOSE' || row.promotionStatus === 'NEW'"
|
||||||
row.promotionStatus === 'CLOSE' || row.promotionStatus === 'NEW'
|
:style="{ color: '#2d8cf0', cursor: 'pointer', textDecoration: 'none' }"
|
||||||
"
|
|
||||||
type="info"
|
|
||||||
size="small"
|
|
||||||
@click="see(row)"
|
@click="see(row)"
|
||||||
>编辑
|
>编辑</a>
|
||||||
</Button>
|
<a
|
||||||
<Button
|
|
||||||
v-else
|
v-else
|
||||||
type="default"
|
:style="{ color: '#2d8cf0', cursor: 'pointer', textDecoration: 'none' }"
|
||||||
size="small"
|
|
||||||
@click="see(row, 'onlyView')"
|
@click="see(row, 'onlyView')"
|
||||||
>查看
|
>查看</a>
|
||||||
</Button>
|
<span
|
||||||
<Button
|
v-if="row.promotionStatus === 'START' || row.promotionStatus === 'NEW'"
|
||||||
class="ml_5"
|
style="margin: 0 8px; color: #dcdee2"
|
||||||
v-if="
|
>|</span>
|
||||||
row.promotionStatus === 'START' || row.promotionStatus === 'NEW'
|
<a
|
||||||
"
|
v-if="row.promotionStatus === 'START' || row.promotionStatus === 'NEW'"
|
||||||
type="error"
|
:style="{ color: '#2d8cf0', cursor: 'pointer', textDecoration: 'none' }"
|
||||||
size="small"
|
|
||||||
@click="close(row)"
|
@click="close(row)"
|
||||||
>关闭
|
>关闭</a>
|
||||||
</Button>
|
<span style="margin: 0 8px; color: #dcdee2">|</span>
|
||||||
<!--<Button-->
|
<a
|
||||||
<!--class="ml_5"-->
|
:style="{ color: '#2d8cf0', cursor: 'pointer', textDecoration: 'none' }"
|
||||||
<!--v-if="-->
|
|
||||||
<!--row.promotionStatus === 'CLOSE' || row.promotionStatus === 'END'-->
|
|
||||||
<!--"-->
|
|
||||||
<!--type="error"-->
|
|
||||||
<!--size="small"-->
|
|
||||||
<!--@click="remove(row)"-->
|
|
||||||
<!-->删除-->
|
|
||||||
<!--</Button>-->
|
|
||||||
<Button
|
|
||||||
style="margin: 5px"
|
|
||||||
type="info"
|
|
||||||
size="small"
|
|
||||||
@click="receivePage(row.id)"
|
@click="receivePage(row.id)"
|
||||||
>领取记录
|
>领取记录</a>
|
||||||
</Button>
|
|
||||||
</template>
|
</template>
|
||||||
</Table>
|
</Table>
|
||||||
<Row type="flex" justify="end" class="mt_10">
|
<Row type="flex" justify="end" class="mt_10">
|
||||||
|
|||||||
@@ -72,15 +72,19 @@
|
|||||||
</template>
|
</template>
|
||||||
<template slot-scope="{ row }" slot="action">
|
<template slot-scope="{ row }" slot="action">
|
||||||
<div>
|
<div>
|
||||||
<Button type="info" size="small" @click="view(row)">查看</Button>
|
<a
|
||||||
<Button
|
:style="{ color: '#2d8cf0', cursor: 'pointer', textDecoration: 'none' }"
|
||||||
type="error"
|
@click="view(row)"
|
||||||
|
>查看</a>
|
||||||
|
<span
|
||||||
v-if="row.promotionStatus === 'NEW' || row.promotionStatus === 'START'"
|
v-if="row.promotionStatus === 'NEW' || row.promotionStatus === 'START'"
|
||||||
style="margin-left: 5px"
|
style="margin: 0 8px; color: #dcdee2"
|
||||||
size="small"
|
>|</span>
|
||||||
|
<a
|
||||||
|
v-if="row.promotionStatus === 'NEW' || row.promotionStatus === 'START'"
|
||||||
|
:style="{ color: '#2d8cf0', cursor: 'pointer', textDecoration: 'none' }"
|
||||||
@click="openOrClose(row)"
|
@click="openOrClose(row)"
|
||||||
>关闭</Button
|
>关闭</a>
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</Table>
|
</Table>
|
||||||
|
|||||||
@@ -98,28 +98,18 @@
|
|||||||
<div>{{ row.stock }}</div>
|
<div>{{ row.stock }}</div>
|
||||||
</template>
|
</template>
|
||||||
<template slot-scope="{ row }" slot="action">
|
<template slot-scope="{ row }" slot="action">
|
||||||
<Button
|
<a
|
||||||
v-if="row.promotionStatus === 'CLOSE' || row.promotionStatus === 'NEW'"
|
v-if="row.promotionStatus === 'CLOSE' || row.promotionStatus === 'NEW'"
|
||||||
type="info"
|
style="color:#2d8cf0;cursor:pointer;text-decoration:none;margin-right:10px"
|
||||||
size="small"
|
|
||||||
style="margin-right: 10px"
|
|
||||||
@click="edit(row)"
|
@click="edit(row)"
|
||||||
>编辑
|
>编辑
|
||||||
</Button>
|
</a>
|
||||||
<Button
|
<a
|
||||||
v-else
|
v-else
|
||||||
size="small"
|
style="color:#2d8cf0;cursor:pointer;text-decoration:none;margin-right:10px"
|
||||||
style="margin-right: 10px"
|
|
||||||
@click="edit(row, 'onlyView')"
|
@click="edit(row, 'onlyView')"
|
||||||
>查看
|
>查看
|
||||||
</Button>
|
</a>
|
||||||
<!--<Button-->
|
|
||||||
<!--type="error"-->
|
|
||||||
<!--size="small"-->
|
|
||||||
<!--style="margin-right: 10px"-->
|
|
||||||
<!--@click="delAll(row)"-->
|
|
||||||
<!-->删除-->
|
|
||||||
<!--</Button>-->
|
|
||||||
</template>
|
</template>
|
||||||
</Table>
|
</Table>
|
||||||
<Row type="flex" justify="end" class="page">
|
<Row type="flex" justify="end" class="page">
|
||||||
|
|||||||
@@ -52,16 +52,19 @@
|
|||||||
class="mt_10"
|
class="mt_10"
|
||||||
>
|
>
|
||||||
<template slot-scope="{ row }" slot="action">
|
<template slot-scope="{ row }" slot="action">
|
||||||
<Button type="info" size="small" @click="view(row)" style="margin-right: 5px"
|
<a
|
||||||
>查看</Button
|
style="color:#2d8cf0;cursor:pointer;text-decoration:none;margin-right:5px"
|
||||||
>
|
@click="view(row)"
|
||||||
<Button
|
>查看</a>
|
||||||
type="error"
|
<span
|
||||||
size="small"
|
|
||||||
v-if="row.promotionStatus === 'START' || row.promotionStatus === 'NEW'"
|
v-if="row.promotionStatus === 'START' || row.promotionStatus === 'NEW'"
|
||||||
|
style="margin:0 8px;color:#dcdee2"
|
||||||
|
>|</span>
|
||||||
|
<a
|
||||||
|
v-if="row.promotionStatus === 'START' || row.promotionStatus === 'NEW'"
|
||||||
|
style="color:#2d8cf0;cursor:pointer;text-decoration:none"
|
||||||
@click="close(row)"
|
@click="close(row)"
|
||||||
>关闭
|
>关闭</a>
|
||||||
</Button>
|
|
||||||
</template>
|
</template>
|
||||||
</Table>
|
</Table>
|
||||||
<Row type="flex" justify="end" class="mt_10">
|
<Row type="flex" justify="end" class="mt_10">
|
||||||
|
|||||||
@@ -18,8 +18,15 @@
|
|||||||
primary-key="id"
|
primary-key="id"
|
||||||
>
|
>
|
||||||
<template slot="action" slot-scope="scope">
|
<template slot="action" slot-scope="scope">
|
||||||
<Button @click.native="edit(scope.row)" style="margin-right:10px;" size="small">编辑</Button>
|
<a
|
||||||
<Button @click.native="remove(scope.row)" type="primary" size="small">删除</Button>
|
style="color:#2d8cf0;cursor:pointer;text-decoration:none;margin-right:10px"
|
||||||
|
@click.native="edit(scope.row)"
|
||||||
|
>编辑</a>
|
||||||
|
<span style="margin:0 8px;color:#dcdee2">|</span>
|
||||||
|
<a
|
||||||
|
style="color:#2d8cf0;cursor:pointer;text-decoration:none"
|
||||||
|
@click.native="remove(scope.row)"
|
||||||
|
>删除</a>
|
||||||
</template>
|
</template>
|
||||||
</tree-table>
|
</tree-table>
|
||||||
<Row type="flex" justify="end" class="mt_10">
|
<Row type="flex" justify="end" class="mt_10">
|
||||||
|
|||||||
@@ -110,30 +110,20 @@
|
|||||||
<div>{{ row.endTime }}</div>
|
<div>{{ row.endTime }}</div>
|
||||||
</template>
|
</template>
|
||||||
<template slot-scope="{ row }" slot="action">
|
<template slot-scope="{ row }" slot="action">
|
||||||
<Button
|
<a
|
||||||
v-if="row.promotionStatus === 'CLOSE' || row.promotionStatus === 'NEW'"
|
v-if="row.promotionStatus === 'CLOSE' || row.promotionStatus === 'NEW'"
|
||||||
type="info"
|
style="color:#2d8cf0;cursor:pointer;text-decoration:none;margin-right:5px"
|
||||||
size="small"
|
|
||||||
@click="edit(row.id)"
|
@click="edit(row.id)"
|
||||||
style="margin-right: 5px"
|
>编辑</a>
|
||||||
>编辑</Button
|
<span
|
||||||
>
|
|
||||||
<Button
|
|
||||||
v-if="row.promotionStatus === 'START' || row.promotionStatus === 'NEW'"
|
v-if="row.promotionStatus === 'START' || row.promotionStatus === 'NEW'"
|
||||||
type="warning"
|
style="margin:0 8px;color:#dcdee2"
|
||||||
size="small"
|
>|</span>
|
||||||
|
<a
|
||||||
|
v-if="row.promotionStatus === 'START' || row.promotionStatus === 'NEW'"
|
||||||
|
style="color:#2d8cf0;cursor:pointer;text-decoration:none;margin-right:5px"
|
||||||
@click="statusChanged(row.id, 'CLOSE')"
|
@click="statusChanged(row.id, 'CLOSE')"
|
||||||
style="margin-right: 5px"
|
>关闭</a>
|
||||||
>关闭</Button
|
|
||||||
>
|
|
||||||
<!--<Button-->
|
|
||||||
<!--v-if="row.promotionStatus === 'CLOSE' || row.promotionStatus === 'END'"-->
|
|
||||||
<!--type="error"-->
|
|
||||||
<!--size="small"-->
|
|
||||||
<!--@click="close(row.id)"-->
|
|
||||||
<!--style="margin-right: 5px"-->
|
|
||||||
<!-->删除</Button-->
|
|
||||||
<!-->-->
|
|
||||||
</template>
|
</template>
|
||||||
</Table>
|
</Table>
|
||||||
<Row type="flex" justify="end" class="mt_10">
|
<Row type="flex" justify="end" class="mt_10">
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<template slot-scope="{ row, index }" slot="action">
|
<template slot-scope="{ row, index }" slot="action">
|
||||||
<Button type="error" size="small" @click="delGoods(index, row)">删除 </Button>
|
<a style="color:#2d8cf0;cursor:pointer;text-decoration:none" @click="delGoods(index, row)">删除</a>
|
||||||
</template>
|
</template>
|
||||||
</Table>
|
</Table>
|
||||||
<Row type="flex" justify="end" class="mt_10">
|
<Row type="flex" justify="end" class="mt_10">
|
||||||
|
|||||||
@@ -64,45 +64,34 @@
|
|||||||
class="mt_10"
|
class="mt_10"
|
||||||
>
|
>
|
||||||
<template slot-scope="{ row }" slot="action">
|
<template slot-scope="{ row }" slot="action">
|
||||||
<Button
|
<a
|
||||||
type="info"
|
|
||||||
size="small"
|
|
||||||
class="mr_5"
|
|
||||||
v-if="row.promotionStatus === 'CLOSE' || row.promotionStatus === 'NEW'"
|
v-if="row.promotionStatus === 'CLOSE' || row.promotionStatus === 'NEW'"
|
||||||
|
style="color:#2d8cf0;cursor:pointer;text-decoration:none;margin-right:5px"
|
||||||
@click="edit(row)"
|
@click="edit(row)"
|
||||||
>编辑</Button
|
>编辑</a>
|
||||||
>
|
<a
|
||||||
|
v-else
|
||||||
<Button type="info" size="small" class="mr_5" v-else @click="manage(row)"
|
style="color:#2d8cf0;cursor:pointer;text-decoration:none;margin-right:5px"
|
||||||
>查看</Button
|
|
||||||
>
|
|
||||||
|
|
||||||
<Button
|
|
||||||
type="success"
|
|
||||||
size="small"
|
|
||||||
class="mr_5"
|
|
||||||
v-if="row.promotionStatus == 'NEW'"
|
|
||||||
@click="manage(row)"
|
@click="manage(row)"
|
||||||
>管理</Button
|
>查看</a>
|
||||||
>
|
<span
|
||||||
|
v-if="row.promotionStatus"
|
||||||
<Button
|
style="margin:0 8px;color:#dcdee2"
|
||||||
type="error"
|
>|</span>
|
||||||
size="small"
|
<a
|
||||||
|
v-if="row.promotionStatus == 'NEW'"
|
||||||
|
style="color:#2d8cf0;cursor:pointer;text-decoration:none;margin-right:5px"
|
||||||
|
@click="manage(row)"
|
||||||
|
>管理</a>
|
||||||
|
<span
|
||||||
|
v-if="row.promotionStatus == 'NEW'"
|
||||||
|
style="margin:0 8px;color:#dcdee2"
|
||||||
|
>|</span>
|
||||||
|
<a
|
||||||
v-if="row.promotionStatus == 'START' || row.promotionStatus == 'NEW'"
|
v-if="row.promotionStatus == 'START' || row.promotionStatus == 'NEW'"
|
||||||
class="mr_5"
|
style="color:#2d8cf0;cursor:pointer;text-decoration:none"
|
||||||
@click="off(row)"
|
@click="off(row)"
|
||||||
>关闭</Button
|
>关闭</a>
|
||||||
>
|
|
||||||
|
|
||||||
<!--<Button-->
|
|
||||||
<!--type="error"-->
|
|
||||||
<!--size="small"-->
|
|
||||||
<!--v-if="row.promotionStatus == 'CLOSE' || row.promotionStatus == 'END'"-->
|
|
||||||
<!--ghost-->
|
|
||||||
<!--@click="expire(row)"-->
|
|
||||||
<!-->删除</Button-->
|
|
||||||
<!-->-->
|
|
||||||
</template>
|
</template>
|
||||||
</Table>
|
</Table>
|
||||||
|
|
||||||
|
|||||||
@@ -110,16 +110,14 @@ export default {
|
|||||||
fixed: "right",
|
fixed: "right",
|
||||||
width: 120,
|
width: 120,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", { class: "ops" }, [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "info",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
@@ -216,4 +214,14 @@ export default {
|
|||||||
::v-deep .ivu-col {
|
::v-deep .ivu-col {
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
}
|
}
|
||||||
|
.ops a {
|
||||||
|
color: #2d8cf0;
|
||||||
|
cursor: pointer;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
.ops span {
|
||||||
|
display: inline-block;
|
||||||
|
margin: 0 8px;
|
||||||
|
color: #dcdee2;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -121,16 +121,14 @@ export default {
|
|||||||
fixed: "right",
|
fixed: "right",
|
||||||
width: 120,
|
width: 120,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", { class: "ops" }, [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "info",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
@@ -254,3 +252,15 @@ export default {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.ops a {
|
||||||
|
color: #2d8cf0;
|
||||||
|
cursor: pointer;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
.ops span {
|
||||||
|
display: inline-block;
|
||||||
|
margin: 0 8px;
|
||||||
|
color: #dcdee2;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
@@ -152,14 +152,12 @@ export default {
|
|||||||
let enableOrDisable = "";
|
let enableOrDisable = "";
|
||||||
if (params.row.storeDisable == "OPEN") {
|
if (params.row.storeDisable == "OPEN") {
|
||||||
enableOrDisable = h(
|
enableOrDisable = h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
size: "small",
|
|
||||||
type: "error"
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
@@ -171,14 +169,12 @@ export default {
|
|||||||
);
|
);
|
||||||
} else if (params.row.storeDisable == "CLOSED") {
|
} else if (params.row.storeDisable == "CLOSED") {
|
||||||
enableOrDisable = h(
|
enableOrDisable = h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "success",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
@@ -191,14 +187,12 @@ export default {
|
|||||||
} else if (params.row.storeDisable == "APPLYING") {
|
} else if (params.row.storeDisable == "APPLYING") {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "info",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
@@ -209,14 +203,17 @@ export default {
|
|||||||
"审核"
|
"审核"
|
||||||
),
|
),
|
||||||
h(
|
h(
|
||||||
"Button",
|
"span",
|
||||||
|
{ style: { margin: "0 8px", color: "#dcdee2" } },
|
||||||
|
"|"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "primary",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
@@ -231,14 +228,12 @@ export default {
|
|||||||
|
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type:"default",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
display: this.selectedShop ? "inline-block" : "none",
|
display: this.selectedShop ? "inline-block" : "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
@@ -250,14 +245,17 @@ export default {
|
|||||||
"选择"
|
"选择"
|
||||||
),
|
),
|
||||||
h(
|
h(
|
||||||
"Button",
|
"span",
|
||||||
|
{ style: { margin: "0 8px", color: "#dcdee2", display: this.selectedShop ? "inline-block" : "none" } },
|
||||||
|
"|"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "info",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
@@ -268,15 +266,17 @@ export default {
|
|||||||
"查看"
|
"查看"
|
||||||
),
|
),
|
||||||
h(
|
h(
|
||||||
"Button",
|
"span",
|
||||||
|
{ style: { margin: "0 8px", color: "#dcdee2" } },
|
||||||
|
"|"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "info",
|
|
||||||
size: "small",
|
|
||||||
ghost:true
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
@@ -286,6 +286,11 @@ export default {
|
|||||||
},
|
},
|
||||||
"修改"
|
"修改"
|
||||||
),
|
),
|
||||||
|
h(
|
||||||
|
"span",
|
||||||
|
{ style: { margin: "0 8px", color: "#dcdee2" } },
|
||||||
|
"|"
|
||||||
|
),
|
||||||
enableOrDisable,
|
enableOrDisable,
|
||||||
]);
|
]);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -123,13 +123,12 @@ export default {
|
|||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "info",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
marginRight: "5px",
|
marginRight: "5px",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
@@ -141,14 +140,22 @@ export default {
|
|||||||
"修改"
|
"修改"
|
||||||
),
|
),
|
||||||
h(
|
h(
|
||||||
"Button",
|
"span",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "error",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
margin: "0 8px",
|
||||||
|
color: "#dcdee2",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"|"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
|
{
|
||||||
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
|
|||||||
@@ -302,20 +302,26 @@ export default {
|
|||||||
title: "操作",
|
title: "操作",
|
||||||
key: "action",
|
key: "action",
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h('Button',{
|
return h(
|
||||||
props:{
|
'a',
|
||||||
size:'small'
|
{
|
||||||
},
|
style: {
|
||||||
on:{
|
color: '#2d8cf0',
|
||||||
click: () => {
|
cursor: 'pointer',
|
||||||
const { sn } = params.row
|
textDecoration: 'none'
|
||||||
this.$router.push({
|
},
|
||||||
query: {sn},
|
on: {
|
||||||
path: this.orderOrRefund == 1 ? 'order-detail' : 'after-order-detail' + '?sn='+sn
|
click: () => {
|
||||||
})
|
const { sn } = params.row
|
||||||
|
this.$router.push({
|
||||||
|
query: { sn },
|
||||||
|
path: this.orderOrRefund == 1 ? 'order-detail' : 'after-order-detail' + '?sn=' + sn
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
},'查看')
|
'查看'
|
||||||
|
)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -213,18 +213,17 @@ export default {
|
|||||||
title: "操作",
|
title: "操作",
|
||||||
key: "action",
|
key: "action",
|
||||||
align: "center",
|
align: "center",
|
||||||
|
fixed: "right",
|
||||||
width: 230,
|
width: 230,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "info",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
@@ -235,16 +234,17 @@ export default {
|
|||||||
"查看"
|
"查看"
|
||||||
),
|
),
|
||||||
h(
|
h(
|
||||||
"Button",
|
"span",
|
||||||
|
{ style: { margin: "0 8px", color: "#dcdee2" } },
|
||||||
|
"|"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "info",
|
|
||||||
size: "small",
|
|
||||||
ghost: true,
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
@@ -255,14 +255,17 @@ export default {
|
|||||||
"修改"
|
"修改"
|
||||||
),
|
),
|
||||||
h(
|
h(
|
||||||
"Button",
|
"span",
|
||||||
|
{ style: { margin: "0 8px", color: "#dcdee2" } },
|
||||||
|
"|"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "error",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
|
|||||||
@@ -411,14 +411,8 @@
|
|||||||
let enableOrDisable = "";
|
let enableOrDisable = "";
|
||||||
if (params.row.noticeStatus == "OPEN") {
|
if (params.row.noticeStatus == "OPEN") {
|
||||||
enableOrDisable = h(
|
enableOrDisable = h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
size: "small"
|
|
||||||
},
|
|
||||||
style: {
|
|
||||||
marginRight: "5px"
|
|
||||||
},
|
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
this.disable(params.row);
|
this.disable(params.row);
|
||||||
@@ -429,15 +423,8 @@
|
|||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
enableOrDisable = h(
|
enableOrDisable = h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "success",
|
|
||||||
size: "small"
|
|
||||||
},
|
|
||||||
style: {
|
|
||||||
marginRight: "5px"
|
|
||||||
},
|
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
this.enable(params.row);
|
this.enable(params.row);
|
||||||
@@ -447,18 +434,16 @@
|
|||||||
"开启"
|
"开启"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return h("div", [
|
return h("div", { class: "ops" }, [
|
||||||
enableOrDisable,
|
enableOrDisable,
|
||||||
h(
|
h(
|
||||||
"Button",
|
"span",
|
||||||
|
{ style: { margin: "0 8px", color: "#dcdee2" } },
|
||||||
|
"|"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "primary",
|
|
||||||
size: "small"
|
|
||||||
},
|
|
||||||
style: {
|
|
||||||
marginRight: "5px"
|
|
||||||
},
|
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
this.edit(params.row);
|
this.edit(params.row);
|
||||||
@@ -491,22 +476,19 @@
|
|||||||
minWidth: 50,
|
minWidth: 50,
|
||||||
align: "center",
|
align: "center",
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h(
|
return h("div", { class: "ops" }, [
|
||||||
"Button",
|
h(
|
||||||
{
|
"a",
|
||||||
props: {
|
{
|
||||||
size: "small",
|
on: {
|
||||||
type: "error",
|
click: () => {
|
||||||
ghost: true,
|
this.delUser(params.index);
|
||||||
},
|
},
|
||||||
on: {
|
|
||||||
click: () => {
|
|
||||||
this.delUser(params.index);
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
"删除"
|
||||||
"删除"
|
)
|
||||||
);
|
]);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@@ -574,17 +556,10 @@
|
|||||||
fixed: "right",
|
fixed: "right",
|
||||||
width: 140,
|
width: 140,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", { class: "ops" }, [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "info",
|
|
||||||
size: "small"
|
|
||||||
},
|
|
||||||
style: {
|
|
||||||
marginRight: "5px"
|
|
||||||
},
|
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
this.detail(params.row);
|
this.detail(params.row);
|
||||||
@@ -594,15 +569,13 @@
|
|||||||
"详细"
|
"详细"
|
||||||
),
|
),
|
||||||
h(
|
h(
|
||||||
"Button",
|
"span",
|
||||||
|
{ style: { margin: "0 8px", color: "#dcdee2" } },
|
||||||
|
"|"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "error",
|
|
||||||
size: "small"
|
|
||||||
},
|
|
||||||
style: {
|
|
||||||
marginRight: "5px"
|
|
||||||
},
|
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
this.delete(params.row.id);
|
this.delete(params.row.id);
|
||||||
@@ -1025,3 +998,15 @@
|
|||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import "sms.scss";
|
@import "sms.scss";
|
||||||
</style>
|
</style>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.ops a {
|
||||||
|
color: #2d8cf0;
|
||||||
|
cursor: pointer;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
.ops span {
|
||||||
|
display: inline-block;
|
||||||
|
margin: 0 8px;
|
||||||
|
color: #dcdee2;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
@@ -279,18 +279,17 @@ export default {
|
|||||||
title: "操作",
|
title: "操作",
|
||||||
key: "action",
|
key: "action",
|
||||||
align: "center",
|
align: "center",
|
||||||
|
fixed: "right",
|
||||||
width: 150,
|
width: 150,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "primary",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
@@ -343,20 +342,16 @@ export default {
|
|||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "info",
|
|
||||||
size: "small"
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: params.row.templateStatus == 2 ? "#2d8cf0" : "#c5c8ce",
|
||||||
},
|
cursor: params.row.templateStatus == 2 ? "pointer" : "not-allowed",
|
||||||
attrs: {
|
textDecoration: "none",
|
||||||
disabled: params.row.templateStatus == 2 ? false : true,
|
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
|
if (params.row.templateStatus != 2) return;
|
||||||
this.editTemplate(params.row);
|
this.editTemplate(params.row);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -364,20 +359,21 @@ export default {
|
|||||||
"编辑"
|
"编辑"
|
||||||
),
|
),
|
||||||
h(
|
h(
|
||||||
"Button",
|
"span",
|
||||||
|
{ style: { margin: "0 8px", color: "#dcdee2" } },
|
||||||
|
"|"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "error",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: params.row.templateStatus == 0 ? "#c5c8ce" : "#2d8cf0",
|
||||||
},
|
cursor: params.row.templateStatus == 0 ? "not-allowed" : "pointer",
|
||||||
attrs: {
|
textDecoration: "none",
|
||||||
disabled: params.row.templateStatus == 0 ? true : false,
|
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
|
if (params.row.templateStatus == 0) return;
|
||||||
this.deleteSmsTemplate(params.row);
|
this.deleteSmsTemplate(params.row);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -415,21 +411,16 @@ export default {
|
|||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "info",
|
|
||||||
size: "small",
|
|
||||||
icon: "ios-create-outline",
|
|
||||||
},
|
|
||||||
attrs: {
|
|
||||||
disabled: params.row.signStatus == 2 ? false : true,
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: params.row.signStatus == 2 ? "#2d8cf0" : "#c5c8ce",
|
||||||
|
cursor: params.row.signStatus == 2 ? "pointer" : "not-allowed",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
|
if (params.row.signStatus != 2) return;
|
||||||
this.editSign(params.row);
|
this.editSign(params.row);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -437,21 +428,21 @@ export default {
|
|||||||
"编辑"
|
"编辑"
|
||||||
),
|
),
|
||||||
h(
|
h(
|
||||||
"Button",
|
"span",
|
||||||
|
{ style: { margin: "0 8px", color: "#dcdee2" } },
|
||||||
|
"|"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "error",
|
|
||||||
size: "small",
|
|
||||||
icon: "ios-create-outline",
|
|
||||||
},
|
|
||||||
attrs: {
|
|
||||||
disabled: params.row.signStatus == 0 ? true : false,
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: params.row.signStatus == 0 ? "#c5c8ce" : "#2d8cf0",
|
||||||
|
cursor: params.row.signStatus == 0 ? "not-allowed" : "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
|
if (params.row.signStatus == 0) return;
|
||||||
this.deleteSmsSign(params.row);
|
this.deleteSmsSign(params.row);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -635,16 +635,14 @@ export default {
|
|||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "default",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
marginRight: "5px",
|
marginRight: "5px",
|
||||||
display:
|
display: this.selectImage === true ? "inline-block" : "none",
|
||||||
this.selectImage === true ? "inline-block" : "none",
|
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
@@ -655,13 +653,23 @@ export default {
|
|||||||
"选择"
|
"选择"
|
||||||
),
|
),
|
||||||
h(
|
h(
|
||||||
"Button",
|
"span",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "info",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
|
margin: "0 8px",
|
||||||
|
color: "#dcdee2",
|
||||||
|
display: this.selectImage === true ? "inline-block" : "none",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"|"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
|
{
|
||||||
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
marginRight: "5px",
|
marginRight: "5px",
|
||||||
display: this.selectImage == true ? "none" : "inline-block",
|
display: this.selectImage == true ? "none" : "inline-block",
|
||||||
},
|
},
|
||||||
@@ -674,13 +682,23 @@ export default {
|
|||||||
"下载"
|
"下载"
|
||||||
),
|
),
|
||||||
h(
|
h(
|
||||||
"Button",
|
"span",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "error",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
|
margin: "0 8px",
|
||||||
|
color: "#dcdee2",
|
||||||
|
display: this.selectImage == true ? "none" : "inline-block",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"|"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
|
{
|
||||||
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
display: this.selectImage == true ? "none" : "inline-block",
|
display: this.selectImage == true ? "none" : "inline-block",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
|
|||||||
@@ -165,13 +165,12 @@ export default {
|
|||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "warning",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
marginRight: "5px",
|
marginRight: "5px",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
@@ -183,13 +182,17 @@ export default {
|
|||||||
"菜单权限"
|
"菜单权限"
|
||||||
),
|
),
|
||||||
h(
|
h(
|
||||||
"Button",
|
"span",
|
||||||
|
{ style: { margin: "0 8px", color: "#dcdee2" } },
|
||||||
|
"|"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
size: "small",
|
|
||||||
type: "info",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
marginRight: "5px",
|
marginRight: "5px",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
@@ -201,11 +204,17 @@ export default {
|
|||||||
"编辑"
|
"编辑"
|
||||||
),
|
),
|
||||||
h(
|
h(
|
||||||
"Button",
|
"span",
|
||||||
|
{ style: { margin: "0 8px", color: "#dcdee2" } },
|
||||||
|
"|"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
style: {
|
||||||
type: "error",
|
color: "#2d8cf0",
|
||||||
size: "small",
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
|
|||||||
@@ -196,13 +196,12 @@ export default {
|
|||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "info",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
marginRight: "5px",
|
marginRight: "5px",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
@@ -214,11 +213,17 @@ export default {
|
|||||||
"编辑"
|
"编辑"
|
||||||
),
|
),
|
||||||
h(
|
h(
|
||||||
"Button",
|
"span",
|
||||||
|
{ style: { margin: "0 8px", color: "#dcdee2" } },
|
||||||
|
"|"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
style: {
|
||||||
type: "error",
|
color: "#2d8cf0",
|
||||||
size: "small",
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
|
|||||||
@@ -266,13 +266,12 @@ export default {
|
|||||||
let enableOrDisable = "";
|
let enableOrDisable = "";
|
||||||
if (params.row.status == true) {
|
if (params.row.status == true) {
|
||||||
enableOrDisable = h(
|
enableOrDisable = h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: 'default',
|
|
||||||
size: "small"
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
marginRight: "5px"
|
marginRight: "5px"
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
@@ -285,13 +284,12 @@ export default {
|
|||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
enableOrDisable = h(
|
enableOrDisable = h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "success",
|
|
||||||
size: "small"
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
marginRight: "5px"
|
marginRight: "5px"
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
@@ -305,13 +303,12 @@ export default {
|
|||||||
}
|
}
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "info",
|
|
||||||
size: "small"
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
marginRight: "5px"
|
marginRight: "5px"
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
@@ -322,13 +319,24 @@ export default {
|
|||||||
},
|
},
|
||||||
"编辑"
|
"编辑"
|
||||||
),
|
),
|
||||||
|
h(
|
||||||
|
"span",
|
||||||
|
{ style: { margin: "0 8px", color: "#dcdee2" } },
|
||||||
|
"|"
|
||||||
|
),
|
||||||
enableOrDisable,
|
enableOrDisable,
|
||||||
h(
|
h(
|
||||||
"Button",
|
"span",
|
||||||
|
{ style: { margin: "0 8px", color: "#dcdee2" } },
|
||||||
|
"|"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
style: {
|
||||||
type: "error",
|
color: "#2d8cf0",
|
||||||
size: "small"
|
cursor: "pointer",
|
||||||
|
textDecoration: "none"
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
|
|||||||
@@ -153,20 +153,21 @@ export default {
|
|||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
style: {
|
||||||
type: "error",
|
color: "#2d8cf0",
|
||||||
size: "small"
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
this.remove(params.row);
|
this.remove(params.row);
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
"删除"
|
"删除"
|
||||||
)
|
),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<tree-table
|
<tree-table
|
||||||
ref="treeTable"
|
ref="treeTable"
|
||||||
size="default"
|
size="small"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
:data="tableData"
|
:data="tableData"
|
||||||
|
|
||||||
@@ -18,29 +18,11 @@
|
|||||||
:expand-type="false"
|
:expand-type="false"
|
||||||
primary-key="id">
|
primary-key="id">
|
||||||
<template slot="action" slot-scope="scope">
|
<template slot="action" slot-scope="scope">
|
||||||
<Button
|
<a @click="edit(scope.row)" style="color:#2d8cf0;cursor:pointer;text-decoration:none">编辑</a>
|
||||||
type="dashed"
|
<span style="margin:0 8px;color:#dcdee2">|</span>
|
||||||
@click="edit(scope.row)"
|
<a v-show="scope.row.level != 1" @click="addChildren(scope.row)" style="color:#2d8cf0;cursor:pointer;text-decoration:none">添加子分类</a>
|
||||||
size="small"
|
<span style="margin:0 8px;color:#dcdee2">|</span>
|
||||||
style="margin-right:5px"
|
<a @click="remove(scope.row)" style="color:#2d8cf0;cursor:pointer;text-decoration:none">删除</a>
|
||||||
>编辑
|
|
||||||
</Button>
|
|
||||||
<Button
|
|
||||||
v-show="scope.row.level != 1 "
|
|
||||||
type="info"
|
|
||||||
@click="addChildren(scope.row)"
|
|
||||||
size="small"
|
|
||||||
style="margin-right:5px"
|
|
||||||
>添加子分类
|
|
||||||
</Button>
|
|
||||||
<Button
|
|
||||||
type="error"
|
|
||||||
@click="remove(scope.row)"
|
|
||||||
size="small"
|
|
||||||
style="margin-right:5px"
|
|
||||||
>删除
|
|
||||||
</Button>
|
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
</tree-table>
|
</tree-table>
|
||||||
|
|
||||||
|
|||||||
@@ -306,13 +306,12 @@ export default {
|
|||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "default",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
marginRight: "5px",
|
marginRight: "5px",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
|
|||||||
@@ -104,13 +104,12 @@ export default {
|
|||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "success",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
marginRight: "5px",
|
marginRight: "5px",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
@@ -122,14 +121,19 @@ export default {
|
|||||||
"编辑"
|
"编辑"
|
||||||
),
|
),
|
||||||
h(
|
h(
|
||||||
"Button",
|
"span",
|
||||||
|
{
|
||||||
|
style: { margin: "0 8px", color: "#dcdee2" },
|
||||||
|
},
|
||||||
|
"|"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "error",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
|
|||||||
@@ -169,18 +169,16 @@ export default {
|
|||||||
key: "action",
|
key: "action",
|
||||||
align: "center",
|
align: "center",
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
width: 120,
|
width: 200,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "info",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
|
|||||||
@@ -79,7 +79,7 @@
|
|||||||
{{ mes.time }}
|
{{ mes.time }}
|
||||||
</p>
|
</p>
|
||||||
<div class="message-content-body">
|
<div class="message-content-body">
|
||||||
<p class="message-content" v-html="mes.content">{{ mes.content }}</p>
|
<p class="message-content" v-html="mes.content"></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</transition>
|
</transition>
|
||||||
@@ -95,15 +95,15 @@
|
|||||||
data() {
|
data() {
|
||||||
const markAsReadBtn = (h, params) => {
|
const markAsReadBtn = (h, params) => {
|
||||||
return h(
|
return h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
style: {
|
||||||
icon: "md-eye-off",
|
color: "#2d8cf0",
|
||||||
size: "small"
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
// 标记已读
|
|
||||||
let v = params.row;
|
let v = params.row;
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
API_Index.read(v.id).then(res => {
|
API_Index.read(v.id).then(res => {
|
||||||
@@ -112,87 +112,82 @@
|
|||||||
this.getAll();
|
this.getAll();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
"标为已读"
|
"标为已读"
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
const deleteMesBtn = (h, params) => {
|
const deleteMesBtn = (h, params) => {
|
||||||
return h(
|
return h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
style: {
|
||||||
icon: "md-trash",
|
color: "#2d8cf0",
|
||||||
size: "small",
|
cursor: "pointer",
|
||||||
type: "error"
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
// 移除
|
|
||||||
let v = params.row;
|
let v = params.row;
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
API_Index.deleteMessage(v.id).then(res => {
|
API_Index.deleteMessage(v.id).then(res => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.refreshMessage()
|
this.refreshMessage();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
"删除"
|
"删除"
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
const restoreBtn = (h, params) => {
|
const restoreBtn = (h, params) => {
|
||||||
return h(
|
return h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
icon: "md-redo",
|
|
||||||
size: "small"
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
margin: "0 5px 0 0"
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
// 还原
|
|
||||||
let v = params.row;
|
let v = params.row;
|
||||||
API_Index.reductionMessage(v.id).then(res => {
|
API_Index.reductionMessage(v.id).then(res => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.refreshMessage()
|
this.refreshMessage();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
"还原"
|
"还原"
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
const deleteRealBtn = (h, params) => {
|
const deleteRealBtn = (h, params) => {
|
||||||
return h(
|
return h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
style: {
|
||||||
icon: "md-trash",
|
color: "#2d8cf0",
|
||||||
size: "small",
|
cursor: "pointer",
|
||||||
type: "error"
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
// 彻底删除
|
|
||||||
let v = params.row;
|
let v = params.row;
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
API_Index.clearMessage(v.id).then(res => {
|
API_Index.clearMessage(v.id).then(res => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.refreshMessage()
|
this.refreshMessage();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
"彻底删除"
|
"彻底删除"
|
||||||
);
|
);
|
||||||
@@ -287,6 +282,7 @@
|
|||||||
} else {
|
} else {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
restoreBtn(h, params),
|
restoreBtn(h, params),
|
||||||
|
h("span", { style: { margin: "0 8px", color: "#dcdee2" } }, "|"),
|
||||||
deleteRealBtn(h, params)
|
deleteRealBtn(h, params)
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -141,19 +141,18 @@
|
|||||||
title: "操作",
|
title: "操作",
|
||||||
key: "action",
|
key: "action",
|
||||||
align: "center",
|
align: "center",
|
||||||
width: 120,
|
fixed: 'right',
|
||||||
|
width: 200,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
if(params.row.complainStatus === "COMPLETE"){
|
if (params.row.complainStatus === "COMPLETE") {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "info",
|
|
||||||
size: "small"
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
@@ -164,17 +163,15 @@
|
|||||||
"详情"
|
"详情"
|
||||||
),
|
),
|
||||||
]);
|
]);
|
||||||
}else{
|
} else {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "primary",
|
|
||||||
size: "small"
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
|
|||||||
@@ -195,18 +195,16 @@
|
|||||||
key: "action",
|
key: "action",
|
||||||
align: "center",
|
align: "center",
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
width: 120,
|
width: 200,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "info",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
|
|||||||
@@ -184,18 +184,17 @@
|
|||||||
title: "操作",
|
title: "操作",
|
||||||
key: "action",
|
key: "action",
|
||||||
align: "center",
|
align: "center",
|
||||||
width: 100,
|
fixed: 'right',
|
||||||
|
width: 200,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "info",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
|
|||||||
@@ -302,18 +302,17 @@ export default {
|
|||||||
title: "操作",
|
title: "操作",
|
||||||
key: "action",
|
key: "action",
|
||||||
align: "center",
|
align: "center",
|
||||||
width: 100,
|
fixed: "right",
|
||||||
|
width: 200,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "info",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
|
|||||||
@@ -153,13 +153,12 @@ export default {
|
|||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "info",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
marginRight: "5px",
|
marginRight: "5px",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
|
|||||||
@@ -159,33 +159,20 @@ export default {
|
|||||||
title: "操作",
|
title: "操作",
|
||||||
key: "action",
|
key: "action",
|
||||||
align: "center",
|
align: "center",
|
||||||
width: 80,
|
fixed: 'right',
|
||||||
|
width: 200,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
|
const disabled = !(((params.row.orderStatus === "COMPLETED" || params.row.orderStatus === "DELIVERED")) && params.row.receiptStatus === 0);
|
||||||
|
const style = disabled
|
||||||
|
? { color: "#c5c8ce", cursor: "not-allowed", textDecoration: "none" }
|
||||||
|
: { color: "#2d8cf0", cursor: "pointer", textDecoration: "none" };
|
||||||
|
const on = disabled ? {} : { click: () => { this.invoicing(params.row); } };
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
style,
|
||||||
type: "info",
|
on,
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
attrs: {
|
|
||||||
disabled:
|
|
||||||
!(
|
|
||||||
(params.row.orderStatus === "COMPLETED"
|
|
||||||
||params.row.orderStatus === "DELIVERED")
|
|
||||||
|
|
||||||
&&
|
|
||||||
params.row.receiptStatus === 0),
|
|
||||||
},
|
|
||||||
style: {
|
|
||||||
marginRight: "5px",
|
|
||||||
},
|
|
||||||
on: {
|
|
||||||
click: () => {
|
|
||||||
this.invoicing(params.row);
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
"开票"
|
"开票"
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -314,13 +314,16 @@ export default {
|
|||||||
minWidth: 50,
|
minWidth: 50,
|
||||||
align: "center",
|
align: "center",
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
|
if (this.disabled) {
|
||||||
|
return h("div");
|
||||||
|
}
|
||||||
return h(
|
return h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
style: {
|
||||||
size: "small",
|
color: "#2d8cf0",
|
||||||
type: "error",
|
cursor: "pointer",
|
||||||
ghost: true,
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
|
|||||||
@@ -67,35 +67,30 @@
|
|||||||
@on-selection-change="changeSelect"
|
@on-selection-change="changeSelect"
|
||||||
>
|
>
|
||||||
<template slot-scope="{ row }" slot="action">
|
<template slot-scope="{ row }" slot="action">
|
||||||
<Button
|
<a
|
||||||
v-if="
|
v-if="row.promotionStatus === 'NEW' || row.promotionStatus === 'CLOSE'"
|
||||||
row.promotionStatus === 'NEW' || row.promotionStatus === 'CLOSE'
|
style="color:#2d8cf0;cursor:pointer;text-decoration:none"
|
||||||
"
|
|
||||||
type="info"
|
|
||||||
size="small"
|
|
||||||
@click="see(row)"
|
@click="see(row)"
|
||||||
>编辑</Button
|
>编辑</a>
|
||||||
>
|
<a
|
||||||
<Button v-else type="default" size="small" @click="see(row, 'only')"
|
v-else
|
||||||
>查看</Button
|
style="color:#2d8cf0;cursor:pointer;text-decoration:none"
|
||||||
>
|
@click="see(row, 'only')"
|
||||||
<Button
|
>查看</a>
|
||||||
v-if="
|
<span style="margin: 0 8px; color: #dcdee2">|</span>
|
||||||
row.promotionStatus === 'START' || row.promotionStatus === 'NEW'
|
<a
|
||||||
"
|
v-if="row.promotionStatus === 'START' || row.promotionStatus === 'NEW'"
|
||||||
type="error"
|
style="color:#2d8cf0;cursor:pointer;text-decoration:none"
|
||||||
size="small"
|
|
||||||
:style="{ marginLeft: '5px' }"
|
|
||||||
@click="remove(row)"
|
@click="remove(row)"
|
||||||
>关闭</Button
|
>关闭</a>
|
||||||
>
|
<span
|
||||||
<Button
|
v-if="row.promotionStatus === 'START' || row.promotionStatus === 'NEW'"
|
||||||
style="margin: 5px"
|
style="margin: 0 8px; color: #dcdee2"
|
||||||
type="info"
|
>|</span>
|
||||||
size="small"
|
<a
|
||||||
|
style="color:#2d8cf0;cursor:pointer;text-decoration:none"
|
||||||
@click="receivePage(row.id)"
|
@click="receivePage(row.id)"
|
||||||
>领取记录
|
>领取记录</a>
|
||||||
</Button>
|
|
||||||
</template>
|
</template>
|
||||||
</Table>
|
</Table>
|
||||||
<Row type="flex" justify="end" class="mt_10">
|
<Row type="flex" justify="end" class="mt_10">
|
||||||
|
|||||||
@@ -91,8 +91,11 @@
|
|||||||
<img :src="row.QRCode || '../../../assets/lili.png'" width="50px" height="50px" alt="" />
|
<img :src="row.QRCode || '../../../assets/lili.png'" width="50px" height="50px" alt="" />
|
||||||
</template>
|
</template>
|
||||||
<template slot-scope="{ index }" slot="action">
|
<template slot-scope="{ index }" slot="action">
|
||||||
<Button type="error" :disabled="form.promotionStatus != 'NEW' && !!id" size="small" ghost
|
<a
|
||||||
@click="delGoods(index)">删除</Button>
|
v-if="form.promotionStatus == 'NEW' || !id"
|
||||||
|
style="color:#2d8cf0;cursor:pointer;text-decoration:none"
|
||||||
|
@click="delGoods(index)"
|
||||||
|
>删除</a>
|
||||||
</template>
|
</template>
|
||||||
</Table>
|
</Table>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
|
|||||||
@@ -39,14 +39,11 @@
|
|||||||
</template>
|
</template>
|
||||||
<template slot-scope="{ row }" slot="action">
|
<template slot-scope="{ row }" slot="action">
|
||||||
<div>
|
<div>
|
||||||
<Button type="primary" v-if="row.promotionStatus == 'NEW'" size="small" @click="edit(row)">编辑</Button>
|
<a v-if="row.promotionStatus == 'NEW'" @click="edit(row)" style="color:#2d8cf0;cursor:pointer;text-decoration:none">编辑</a>
|
||||||
<Button type="info" v-else size="small" @click="edit(row)">查看</Button>
|
<a v-else @click="edit(row)" style="color:#2d8cf0;cursor:pointer;text-decoration:none">查看</a>
|
||||||
<Button type="success" v-if="row.promotionStatus === 'START'" style="margin-left: 5px" size="small"
|
<span v-if="row.promotionStatus === 'START' || row.promotionStatus === 'CLOSE'" style="margin:0 8px;color:#dcdee2">|</span>
|
||||||
@click="openOrClose(row)">关闭</Button>
|
<a v-if="row.promotionStatus === 'START'" @click="openOrClose(row)" style="color:#2d8cf0;cursor:pointer;text-decoration:none">关闭</a>
|
||||||
<Button type="success" v-if="row.promotionStatus === 'CLOSE'" style="margin-left: 5px" size="small"
|
<a v-if="row.promotionStatus === 'CLOSE'" @click="openOrClose(row)" style="color:#2d8cf0;cursor:pointer;text-decoration:none">开启</a>
|
||||||
@click="openOrClose(row)">开启</Button>
|
|
||||||
<!--<Button type="error" :disabled="row.promotionStatus == 'START'" style="margin-left: 5px" size="small"-->
|
|
||||||
<!--@click="del(row)">删除</Button>-->
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</Table>
|
</Table>
|
||||||
|
|||||||
@@ -114,29 +114,23 @@
|
|||||||
</template>
|
</template>
|
||||||
<template slot-scope="{ row, index }" slot="action">
|
<template slot-scope="{ row, index }" slot="action">
|
||||||
<div class="action">
|
<div class="action">
|
||||||
<Button
|
<a
|
||||||
size="small"
|
v-if="liveStatus == 'NEW'"
|
||||||
type="primary"
|
style="color:#2d8cf0;cursor:pointer;text-decoration:none"
|
||||||
:disabled="liveStatus != 'NEW'"
|
|
||||||
@click="deleteGoods(row, index)"
|
@click="deleteGoods(row, index)"
|
||||||
>删除</Button
|
>删除</a>
|
||||||
>
|
<span v-if="liveStatus == 'NEW'" style="margin:0 8px;color:#dcdee2">|</span>
|
||||||
<Button
|
<a
|
||||||
size="small"
|
v-if="liveStatus == 'NEW'"
|
||||||
ghost
|
style="color:#2d8cf0;cursor:pointer;text-decoration:none"
|
||||||
type="primary"
|
|
||||||
:disabled="liveStatus != 'NEW'"
|
|
||||||
@click="onMove(row.id, 1)"
|
@click="onMove(row.id, 1)"
|
||||||
>上移</Button
|
>上移</a>
|
||||||
>
|
<span v-if="liveStatus == 'NEW'" style="margin:0 8px;color:#dcdee2">|</span>
|
||||||
<Button
|
<a
|
||||||
size="small"
|
v-if="liveStatus == 'NEW'"
|
||||||
ghost
|
style="color:#2d8cf0;cursor:pointer;text-decoration:none"
|
||||||
type="primary"
|
|
||||||
:disabled="liveStatus != 'NEW'"
|
|
||||||
@click="onMove(row.id, 0)"
|
@click="onMove(row.id, 0)"
|
||||||
>下移</Button
|
>下移</a>
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</Table>
|
</Table>
|
||||||
|
|||||||
@@ -122,14 +122,12 @@ export default {
|
|||||||
},
|
},
|
||||||
[
|
[
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "error",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
|
|||||||
@@ -62,10 +62,12 @@
|
|||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template slot-scope="{ row,index }" slot="action">
|
<template slot-scope="{ row ,index }" slot="action">
|
||||||
<Button v-if="params.auditStatus == 99" type="primary" @click="()=>{liveGoodsData.splice(index,1)}">删除</Button>
|
<a v-if="params.auditStatus == 99" @click="liveGoodsData.splice(index,1)" style="color:#2d8cf0;cursor:pointer;text-decoration:none">删除</a>
|
||||||
<Button v-if="params.auditStatus != 99 && !reviewed" ghost type="primary" @click="()=>{$router.push({path:'/goods-operation-edit',query:{id:row.goodsId}})}">查看</Button>
|
<span v-if="params.auditStatus == 99 || (params.auditStatus != 99 && !reviewed) || reviewed" style="margin:0 8px;color:#dcdee2">|</span>
|
||||||
<Button v-if="reviewed" :type="row.___selected ? 'primary' : 'default'" @click="selectedLiveGoods(row,index)">{{row.___selected ? '已':''}}选择</Button>
|
<a v-if="params.auditStatus != 99 && !reviewed" @click="$router.push({path:'/goods-operation-edit',query:{id:row.goodsId}})" style="color:#2d8cf0;cursor:pointer;text-decoration:none">查看</a>
|
||||||
|
<span v-if="reviewed" style="margin:0 8px;color:#dcdee2">|</span>
|
||||||
|
<a v-if="reviewed" @click="selectedLiveGoods(row,index)" style="color:#2d8cf0;cursor:pointer;text-decoration:none">{{row.___selected ? '已':''}}选择</a>
|
||||||
</template>
|
</template>
|
||||||
</Table>
|
</Table>
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
|
|||||||
@@ -35,14 +35,11 @@
|
|||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<template slot-scope="{ index }" slot="action">
|
<template slot-scope="{ index }" slot="action">
|
||||||
<Button
|
<a
|
||||||
type="error"
|
|
||||||
size="small"
|
|
||||||
ghost
|
|
||||||
v-if="status === 'manager'"
|
v-if="status === 'manager'"
|
||||||
|
style="color:#2d8cf0;cursor:pointer;text-decoration:none"
|
||||||
@click="delGoods(index)"
|
@click="delGoods(index)"
|
||||||
>删除</Button
|
>删除</a>
|
||||||
>
|
|
||||||
</template>
|
</template>
|
||||||
</Table>
|
</Table>
|
||||||
<Row type="flex" justify="end" class="page operation">
|
<Row type="flex" justify="end" class="page operation">
|
||||||
|
|||||||
@@ -58,48 +58,15 @@
|
|||||||
<Table :loading="loading" border :columns="columns" :data="data" ref="table">
|
<Table :loading="loading" border :columns="columns" :data="data" ref="table">
|
||||||
<template slot-scope="{ row }" slot="action">
|
<template slot-scope="{ row }" slot="action">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<Button
|
<a v-if="row.promotionStatus == 'NEW'" @click="edit(row)" style="color:#2d8cf0;cursor:pointer;text-decoration:none">编辑</a>
|
||||||
type="default"
|
<span v-if="row.promotionStatus == 'NEW'" style="margin:0 8px;color:#dcdee2">|</span>
|
||||||
size="small"
|
<a v-if="row.promotionStatus == 'NEW'" @click="manage(row, 'manager')" style="color:#2d8cf0;cursor:pointer;text-decoration:none">管理</a>
|
||||||
v-if="row.promotionStatus == 'NEW'"
|
<span v-if="row.promotionStatus !== 'NEW' && row.promotionStatus !== 'CLOSE'" style="margin:0 8px;color:#dcdee2">|</span>
|
||||||
@click="edit(row)"
|
<a v-if="row.promotionStatus !== 'NEW' && row.promotionStatus !== 'CLOSE'" @click="manage(row, 'view')" style="color:#2d8cf0;cursor:pointer;text-decoration:none">查看</a>
|
||||||
>编辑</Button
|
<span v-if="row.promotionStatus == 'CLOSE'" style="margin:0 8px;color:#dcdee2">|</span>
|
||||||
>
|
<a v-if="row.promotionStatus == 'CLOSE'" @click="open(row)" style="color:#2d8cf0;cursor:pointer;text-decoration:none">开启</a>
|
||||||
<Button
|
<span v-if="row.promotionStatus == 'START'" style="margin:0 8px;color:#dcdee2">|</span>
|
||||||
type="info"
|
<a v-if="row.promotionStatus == 'START'" @click="close(row)" style="color:#2d8cf0;cursor:pointer;text-decoration:none">关闭</a>
|
||||||
v-if="row.promotionStatus == 'NEW'"
|
|
||||||
size="small"
|
|
||||||
@click="manage(row, 'manager')"
|
|
||||||
>管理</Button
|
|
||||||
>
|
|
||||||
<Button
|
|
||||||
type="info"
|
|
||||||
v-if="row.promotionStatus !== 'NEW' && row.promotionStatus !== 'CLOSE'"
|
|
||||||
size="small"
|
|
||||||
@click="manage(row, 'view')"
|
|
||||||
>查看</Button
|
|
||||||
>
|
|
||||||
<!--<Button-->
|
|
||||||
<!--type="error"-->
|
|
||||||
<!--size="small"-->
|
|
||||||
<!--v-if="row.promotionStatus != 'START'"-->
|
|
||||||
<!--@click="remove(row)"-->
|
|
||||||
<!-->删除</Button-->
|
|
||||||
<!-->-->
|
|
||||||
<Button
|
|
||||||
type="success"
|
|
||||||
v-if="row.promotionStatus == 'CLOSE'"
|
|
||||||
size="small"
|
|
||||||
@click="open(row)"
|
|
||||||
>开启</Button
|
|
||||||
>
|
|
||||||
<Button
|
|
||||||
type="warning"
|
|
||||||
v-if="row.promotionStatus == 'START'"
|
|
||||||
size="small"
|
|
||||||
@click="close(row)"
|
|
||||||
>关闭</Button
|
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</Table>
|
</Table>
|
||||||
|
|||||||
@@ -95,14 +95,11 @@
|
|||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<template slot-scope="{ row, index }" slot="action">
|
<template slot-scope="{ row, index }" slot="action">
|
||||||
<Button
|
<a
|
||||||
type="error"
|
|
||||||
v-if="promotionStatus === 'NEW'"
|
v-if="promotionStatus === 'NEW'"
|
||||||
size="small"
|
style="color:#2d8cf0;cursor:pointer;text-decoration:none"
|
||||||
ghost
|
|
||||||
@click="delGoods(index, row)"
|
@click="delGoods(index, row)"
|
||||||
>删除
|
>删除</a>
|
||||||
</Button>
|
|
||||||
</template>
|
</template>
|
||||||
</Table>
|
</Table>
|
||||||
</TabPane>
|
</TabPane>
|
||||||
|
|||||||
@@ -32,8 +32,8 @@
|
|||||||
}}</Tag>
|
}}</Tag>
|
||||||
</template>
|
</template>
|
||||||
<template slot-scope="{ row }" slot="action">
|
<template slot-scope="{ row }" slot="action">
|
||||||
<Button v-if="row.promotionStatus === 'NEW'" type="primary" size="small" @click="manage(row)">管理</Button>
|
<a v-if="row.promotionStatus === 'NEW'" @click="manage(row)" style="color:#2d8cf0;cursor:pointer;text-decoration:none">管理</a>
|
||||||
<Button v-else type="info" size="small" @click="manage(row)">查看</Button>
|
<a v-else @click="manage(row)" style="color:#2d8cf0;cursor:pointer;text-decoration:none">查看</a>
|
||||||
</template>
|
</template>
|
||||||
</Table>
|
</Table>
|
||||||
<Row type="flex" justify="end" class="mt_10">
|
<Row type="flex" justify="end" class="mt_10">
|
||||||
|
|||||||
@@ -131,18 +131,17 @@
|
|||||||
title: "操作",
|
title: "操作",
|
||||||
key: "action",
|
key: "action",
|
||||||
align: "center",
|
align: "center",
|
||||||
width: 120,
|
fixed: 'right',
|
||||||
|
width: 200,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "info",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
|
|||||||
@@ -135,18 +135,17 @@
|
|||||||
title: "操作",
|
title: "操作",
|
||||||
key: "action",
|
key: "action",
|
||||||
align: "center",
|
align: "center",
|
||||||
width: 120,
|
fixed: 'right',
|
||||||
|
width: 200,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "info",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
|
|||||||
@@ -32,22 +32,18 @@
|
|||||||
<span slot="open">开</span>
|
<span slot="open">开</span>
|
||||||
<span slot="close">关</span>
|
<span slot="close">关</span>
|
||||||
</i-switch>
|
</i-switch>
|
||||||
<Button
|
<a
|
||||||
type="info"
|
style="color:#2d8cf0;cursor:pointer;text-decoration:none"
|
||||||
placement="right"
|
|
||||||
@click="Template(item)"
|
@click="Template(item)"
|
||||||
size="small"
|
>编辑</a>
|
||||||
>编辑</Button
|
<span style="margin: 0 8px; color: #dcdee2">|</span>
|
||||||
>
|
<a
|
||||||
<Button
|
style="color:#2d8cf0;cursor:pointer;text-decoration:none"
|
||||||
type="success"
|
|
||||||
placement="right"
|
|
||||||
@click="decorate(item)"
|
@click="decorate(item)"
|
||||||
size="small"
|
>装修</a>
|
||||||
>装修</Button
|
<span style="margin: 0 8px; color: #dcdee2">|</span>
|
||||||
>
|
|
||||||
<Poptip confirm title="删除此模板?" @on-ok="delTemplate(item.id)">
|
<Poptip confirm title="删除此模板?" @on-ok="delTemplate(item.id)">
|
||||||
<Button type="error" size="small">删除</Button>
|
<a style="color:#2d8cf0;cursor:pointer;text-decoration:none">删除</a>
|
||||||
</Poptip>
|
</Poptip>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -625,16 +625,14 @@
|
|||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "default",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
marginRight: "5px",
|
marginRight: "5px",
|
||||||
display:
|
display: this.selectImage === true ? "inline-block" : "none",
|
||||||
this.selectImage === true ? "inline-block" : "none",
|
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
@@ -645,13 +643,23 @@
|
|||||||
"选择"
|
"选择"
|
||||||
),
|
),
|
||||||
h(
|
h(
|
||||||
"Button",
|
"span",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "info",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
|
margin: "0 8px",
|
||||||
|
color: "#dcdee2",
|
||||||
|
display: this.selectImage === true ? "inline-block" : "none",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"|"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
|
{
|
||||||
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
marginRight: "5px",
|
marginRight: "5px",
|
||||||
display: this.selectImage == true ? "none" : "inline-block",
|
display: this.selectImage == true ? "none" : "inline-block",
|
||||||
},
|
},
|
||||||
@@ -664,13 +672,23 @@
|
|||||||
"下载"
|
"下载"
|
||||||
),
|
),
|
||||||
h(
|
h(
|
||||||
"Button",
|
"span",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "error",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
|
margin: "0 8px",
|
||||||
|
color: "#dcdee2",
|
||||||
|
display: this.selectImage == true ? "none" : "inline-block",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"|"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
|
{
|
||||||
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
display: this.selectImage == true ? "none" : "inline-block",
|
display: this.selectImage == true ? "none" : "inline-block",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
@@ -789,16 +807,14 @@
|
|||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "default",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
marginRight: "5px",
|
marginRight: "5px",
|
||||||
display:
|
display: this.selectImage === true ? "inline-block" : "none",
|
||||||
this.selectImage === true ? "inline-block" : "none",
|
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
|
|||||||
@@ -416,67 +416,85 @@
|
|||||||
align: "center",
|
align: "center",
|
||||||
fixed: "right",
|
fixed: "right",
|
||||||
// width: 300,
|
// width: 300,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
style: {
|
||||||
type: "default",
|
color: "#2d8cf0",
|
||||||
size: "small",
|
cursor: "pointer",
|
||||||
},
|
textDecoration: "none",
|
||||||
style: {
|
marginRight: "5px",
|
||||||
marginRight: "5px",
|
display: this.selectImage === true ? "inline-block" : "none",
|
||||||
display:
|
},
|
||||||
this.selectImage === true ? "inline-block" : "none",
|
on: {
|
||||||
},
|
click: () => {
|
||||||
on: {
|
this.selectedParams(params.row);
|
||||||
click: () => {
|
|
||||||
this.selectedParams(params.row);
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"选择"
|
},
|
||||||
),
|
"选择"
|
||||||
h(
|
),
|
||||||
"Button",
|
h(
|
||||||
{
|
"span",
|
||||||
props: {
|
{
|
||||||
type: "info",
|
style: {
|
||||||
size: "small",
|
margin: "0 8px",
|
||||||
},
|
color: "#dcdee2",
|
||||||
style: {
|
display: this.selectImage === true ? "inline-block" : "none",
|
||||||
marginRight: "5px",
|
},
|
||||||
display: this.selectImage == true ? "none" : "inline-block",
|
},
|
||||||
},
|
"|"
|
||||||
on: {
|
),
|
||||||
click: () => {
|
h(
|
||||||
this.download(params.row);
|
"a",
|
||||||
},
|
{
|
||||||
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
|
marginRight: "5px",
|
||||||
|
display: this.selectImage == true ? "none" : "inline-block",
|
||||||
|
},
|
||||||
|
on: {
|
||||||
|
click: () => {
|
||||||
|
this.download(params.row);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"下载"
|
},
|
||||||
),
|
"下载"
|
||||||
h(
|
),
|
||||||
"Button",
|
h(
|
||||||
{
|
"span",
|
||||||
props: {
|
{
|
||||||
type: "error",
|
style: {
|
||||||
size: "small",
|
margin: "0 8px",
|
||||||
},
|
color: "#dcdee2",
|
||||||
style: {
|
display: this.selectImage == true ? "none" : "inline-block",
|
||||||
display: this.selectImage == true ? "none" : "inline-block",
|
},
|
||||||
},
|
},
|
||||||
on: {
|
"|"
|
||||||
click: () => {
|
),
|
||||||
this.remove(params.row);
|
h(
|
||||||
},
|
"a",
|
||||||
|
{
|
||||||
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
|
display: this.selectImage == true ? "none" : "inline-block",
|
||||||
|
},
|
||||||
|
on: {
|
||||||
|
click: () => {
|
||||||
|
this.remove(params.row);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"删除"
|
},
|
||||||
),
|
"删除"
|
||||||
]);
|
),
|
||||||
},
|
]);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
viewColumns: [
|
viewColumns: [
|
||||||
@@ -583,13 +601,12 @@
|
|||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "default",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
marginRight: "5px",
|
marginRight: "5px",
|
||||||
display:
|
display:
|
||||||
this.selectImage === true ? "inline-block" : "none",
|
this.selectImage === true ? "inline-block" : "none",
|
||||||
|
|||||||
@@ -119,14 +119,12 @@ export default {
|
|||||||
if (!params.row.selected) {
|
if (!params.row.selected) {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "success",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
@@ -140,14 +138,12 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "error",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
@@ -157,12 +153,14 @@ export default {
|
|||||||
},
|
},
|
||||||
"关闭"
|
"关闭"
|
||||||
),
|
),
|
||||||
|
h("span", { style: { margin: "0 8px", color: "#dcdee2" } }, "|"),
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
style: {
|
||||||
type: "info",
|
color: "#2d8cf0",
|
||||||
size: "small",
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
|
|||||||
@@ -20,8 +20,15 @@
|
|||||||
<time style="margin-right: 20px" title="最后编辑时间">
|
<time style="margin-right: 20px" title="最后编辑时间">
|
||||||
<i class="icon-time"></i>{{item.updateTime}}
|
<i class="icon-time"></i>{{item.updateTime}}
|
||||||
</time>
|
</time>
|
||||||
<Button @click="edit(item)" type="info">修改</Button>
|
<a
|
||||||
<Button @click="remove(item.id)" type="error">删除</Button>
|
style="color:#2d8cf0;cursor:pointer;text-decoration:none"
|
||||||
|
@click="edit(item)"
|
||||||
|
>修改</a>
|
||||||
|
<span style="margin: 0 8px; color: #dcdee2">|</span>
|
||||||
|
<a
|
||||||
|
style="color:#2d8cf0;cursor:pointer;text-decoration:none"
|
||||||
|
@click="remove(item.id)"
|
||||||
|
>删除</a>
|
||||||
</span>
|
</span>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -113,12 +120,14 @@
|
|||||||
</InputNumber>
|
</InputNumber>
|
||||||
</td>
|
</td>
|
||||||
<td class="nscs-table-handle">
|
<td class="nscs-table-handle">
|
||||||
<Button @click="editRegion(item,index)" type="info" size="small"
|
<a
|
||||||
style="margin-bottom: 5px">修改
|
@click="editRegion(item,index)"
|
||||||
</Button>
|
style="display:inline-block;margin-bottom:5px;color:#2d8cf0;cursor:pointer;text-decoration:none"
|
||||||
<Button @click="removeTemplateChildren(index)" type="error"
|
>修改</a>
|
||||||
size="small" style="margin-bottom: 5px">删除
|
<a
|
||||||
</Button>
|
@click="removeTemplateChildren(index)"
|
||||||
|
style="display:inline-block;margin-bottom:5px;color:#2d8cf0;cursor:pointer;text-decoration:none"
|
||||||
|
>删除</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
@@ -630,4 +639,11 @@ em {
|
|||||||
.baoyou {
|
.baoyou {
|
||||||
margin: 6px 10px 0;
|
margin: 6px 10px 0;
|
||||||
}
|
}
|
||||||
|
/* 操作链接与分隔符不加粗 */
|
||||||
|
.order tbody tr th .fr a {
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
.order tbody tr th .fr span {
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -155,14 +155,12 @@
|
|||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "success",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
@@ -172,15 +170,14 @@
|
|||||||
},
|
},
|
||||||
"修改"
|
"修改"
|
||||||
),
|
),
|
||||||
|
h("span", { style: { margin: "0 8px", color: "#dcdee2" } }, "|"),
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "error",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
@@ -189,7 +186,7 @@
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
"删除"
|
"删除"
|
||||||
)
|
),
|
||||||
]);
|
]);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -367,77 +367,75 @@ export default {
|
|||||||
let enableOrDisable = "";
|
let enableOrDisable = "";
|
||||||
if (params.row.status == true) {
|
if (params.row.status == true) {
|
||||||
enableOrDisable = h(
|
enableOrDisable = h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
size: "small"
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px"
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
this.disable(params.row);
|
this.disable(params.row);
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
"禁用"
|
"禁用"
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
enableOrDisable = h(
|
enableOrDisable = h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "success",
|
|
||||||
size: "small"
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px"
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
this.enable(params.row);
|
this.enable(params.row);
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
"启用"
|
"启用"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "info",
|
|
||||||
size: "small"
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px"
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
this.edit(params.row);
|
this.edit(params.row);
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
"编辑"
|
"编辑"
|
||||||
),
|
),
|
||||||
|
h("span", { style: { margin: "0 8px", color: "#dcdee2" } }, "|"),
|
||||||
enableOrDisable,
|
enableOrDisable,
|
||||||
|
h("span", { style: { margin: "0 8px", color: "#dcdee2" } }, "|"),
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
style: {
|
||||||
type: "error",
|
color: "#2d8cf0",
|
||||||
size: "small"
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
this.remove(params.row);
|
this.remove(params.row);
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
"删除"
|
"删除"
|
||||||
)
|
),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -166,14 +166,12 @@ export default {
|
|||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "warning",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
@@ -183,15 +181,14 @@ export default {
|
|||||||
},
|
},
|
||||||
"菜单权限"
|
"菜单权限"
|
||||||
),
|
),
|
||||||
|
h("span", { style: { margin: "0 8px", color: "#dcdee2" } }, "|"),
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
size: "small",
|
|
||||||
type: "info",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
marginRight: "5px",
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
@@ -201,12 +198,14 @@ export default {
|
|||||||
},
|
},
|
||||||
"编辑"
|
"编辑"
|
||||||
),
|
),
|
||||||
|
h("span", { style: { margin: "0 8px", color: "#dcdee2" } }, "|"),
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
style: {
|
||||||
type: "error",
|
color: "#2d8cf0",
|
||||||
size: "small",
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
|
|||||||
@@ -20,9 +20,13 @@
|
|||||||
<span slot="open">开</span>
|
<span slot="open">开</span>
|
||||||
<span slot="close">关</span>
|
<span slot="close">关</span>
|
||||||
</i-switch>
|
</i-switch>
|
||||||
<Button type="info" placement="right" @click="handleEdit(item)" size="small">修改</Button>
|
<a
|
||||||
|
style="color:#2d8cf0;cursor:pointer;text-decoration:none"
|
||||||
|
@click="handleEdit(item)"
|
||||||
|
>修改</a>
|
||||||
|
<span style="margin: 0 8px; color: #dcdee2">|</span>
|
||||||
<Poptip confirm title="删除此模板?" @on-ok="handleDel(item)" >
|
<Poptip confirm title="删除此模板?" @on-ok="handleDel(item)" >
|
||||||
<Button type="error" size="small">删除</Button>
|
<a style="color:#2d8cf0;cursor:pointer;text-decoration:none">删除</a>
|
||||||
</Poptip>
|
</Poptip>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -475,16 +475,14 @@ export default {
|
|||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "default",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
marginRight: "5px",
|
marginRight: "5px",
|
||||||
display:
|
display: this.selectImage === true ? "inline-block" : "none",
|
||||||
this.selectImage === true ? "inline-block" : "none",
|
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
@@ -495,13 +493,23 @@ export default {
|
|||||||
"选择"
|
"选择"
|
||||||
),
|
),
|
||||||
h(
|
h(
|
||||||
"Button",
|
"span",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "info",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
|
margin: "0 8px",
|
||||||
|
color: "#dcdee2",
|
||||||
|
display: this.selectImage === true ? "inline-block" : "none",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"|"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
|
{
|
||||||
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
marginRight: "5px",
|
marginRight: "5px",
|
||||||
display: this.selectImage == true ? "none" : "inline-block",
|
display: this.selectImage == true ? "none" : "inline-block",
|
||||||
},
|
},
|
||||||
@@ -514,13 +522,23 @@ export default {
|
|||||||
"下载"
|
"下载"
|
||||||
),
|
),
|
||||||
h(
|
h(
|
||||||
"Button",
|
"span",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "error",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
|
margin: "0 8px",
|
||||||
|
color: "#dcdee2",
|
||||||
|
display: this.selectImage == true ? "none" : "inline-block",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"|"
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
"a",
|
||||||
|
{
|
||||||
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
display: this.selectImage == true ? "none" : "inline-block",
|
display: this.selectImage == true ? "none" : "inline-block",
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
@@ -639,16 +657,14 @@ export default {
|
|||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h("div", [
|
return h("div", [
|
||||||
h(
|
h(
|
||||||
"Button",
|
"a",
|
||||||
{
|
{
|
||||||
props: {
|
|
||||||
type: "default",
|
|
||||||
size: "small",
|
|
||||||
},
|
|
||||||
style: {
|
style: {
|
||||||
|
color: "#2d8cf0",
|
||||||
|
cursor: "pointer",
|
||||||
|
textDecoration: "none",
|
||||||
marginRight: "5px",
|
marginRight: "5px",
|
||||||
display:
|
display: this.selectImage === true ? "inline-block" : "none",
|
||||||
this.selectImage === true ? "inline-block" : "none",
|
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
@@ -657,7 +673,7 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
"选择"
|
"选择"
|
||||||
)
|
),
|
||||||
]);
|
]);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user