提交 68fd12c1 authored 作者: lhh's avatar lhh

商城链接相关开发

上级 1d45dc84
...@@ -149,6 +149,12 @@ const platformList: PlatformItem[] = [ ...@@ -149,6 +149,12 @@ const platformList: PlatformItem[] = [
} }
return true return true
} }
},
{
type: '15',
type_name: '紫荆商城',
icon: '100',
config_attributes: [{ label: '连接名称', prop: 'name', value: '紫荆商城' }]
} }
] ]
......
...@@ -179,4 +179,7 @@ const handleStudentFollow = function (experimentId: string, id: string, type: st ...@@ -179,4 +179,7 @@ const handleStudentFollow = function (experimentId: string, id: string, type: st
margin-right: 10px; margin-right: 10px;
} }
} }
.connect-item{
min-height: 166px;
}
</style> </style>
...@@ -514,6 +514,23 @@ const platformList = [ ...@@ -514,6 +514,23 @@ const platformList = [
type: 14, type: 14,
type_name: '小程序', type_name: '小程序',
data: [] data: []
},
{
type: 15,
type_name: '紫荆商城',
data: [
{
title: '',
children: [
{
title: '访问紫荆商城',
onClick() {
window.open('https://www.macrozheng.com/app/#/')
}
}
]
}
]
} }
] ]
......
...@@ -131,7 +131,7 @@ const popoverText = function (row: any) { ...@@ -131,7 +131,7 @@ const popoverText = function (row: any) {
<template #header> <template #header>
<div class="card-header"> <div class="card-header">
<span>事件属性字段</span> <span>事件属性字段</span>
<el-button type="primary" @click="addField">添加</el-button> <el-button type="primary" @click="addField" :disabled="props.data?.can_edit === '0'">添加</el-button>
</div> </div>
</template> </template>
<el-table :data="tableData" style="width: 100%"> <el-table :data="tableData" style="width: 100%">
...@@ -198,7 +198,7 @@ const popoverText = function (row: any) { ...@@ -198,7 +198,7 @@ const popoverText = function (row: any) {
</el-popover> </el-popover>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column width="30"> <el-table-column width="30" v-if="props.data?.can_edit !== '0'">
<template #default="scope"> <template #default="scope">
<div @click="deleteField(scope)" style="display: flex; justify-content: center; cursor: pointer"> <div @click="deleteField(scope)" style="display: flex; justify-content: center; cursor: pointer">
<el-icon size="20"><Close /></el-icon> <el-icon size="20"><Close /></el-icon>
...@@ -210,7 +210,7 @@ const popoverText = function (row: any) { ...@@ -210,7 +210,7 @@ const popoverText = function (row: any) {
<template #footer> <template #footer>
<el-row justify="center"> <el-row justify="center">
<el-button round auto-insert-space @click="$emit('update:modelValue', false)">关闭</el-button> <el-button round auto-insert-space @click="$emit('update:modelValue', false)">关闭</el-button>
<el-button type="primary" round auto-insert-space @click="handleSubmit">保存</el-button> <el-button type="primary" round auto-insert-space @click="handleSubmit" v-if="props.data?.can_edit !== '0'">保存</el-button>
</el-row> </el-row>
</template> </template>
</el-dialog> </el-dialog>
......
...@@ -8,6 +8,7 @@ export interface EventProp { ...@@ -8,6 +8,7 @@ export interface EventProp {
status_name: string status_name: string
updated_operator_name: string updated_operator_name: string
updated_time: string updated_time: string
can_edit: string
} }
export interface ConnectionOptionProp { type_name: string; id: string } export interface ConnectionOptionProp { type_name: string; id: string }
......
...@@ -122,8 +122,8 @@ const handleField = function (row: EventProp) { ...@@ -122,8 +122,8 @@ const handleField = function (row: EventProp) {
</template> </template>
<template #table-x="{ row }"> <template #table-x="{ row }">
<el-button type="primary" plain @click="handleView(row)">查看</el-button> <el-button type="primary" plain @click="handleView(row)">查看</el-button>
<el-button type="primary" plain @click="handleUpdate(row)">编辑</el-button> <el-button type="primary" plain @click="handleUpdate(row)" :disabled="row?.can_edit === '0'">编辑</el-button>
<el-button type="primary" plain @click="handleRemove(row)">删除</el-button> <el-button type="primary" plain @click="handleRemove(row)" :disabled="row?.can_edit === '0'">删除</el-button>
<el-button type="primary" plain @click="handleField(row)">字段</el-button> <el-button type="primary" plain @click="handleField(row)">字段</el-button>
</template> </template>
</AppList> </AppList>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论