|
@@ -15,11 +15,30 @@
|
|
|
>
|
|
>
|
|
|
<span class="actions" slot="action" slot-scope="text, item">
|
|
<span class="actions" slot="action" slot-scope="text, item">
|
|
|
<a @click="handleInto(item)">进入商城</a>
|
|
<a @click="handleInto(item)">进入商城</a>
|
|
|
- <a @click="handleDelete(item)">删除</a>
|
|
|
|
|
- <!-- <a @click="handleModule(item)">功能模块</a> -->
|
|
|
|
|
|
|
+ <a-dropdown>
|
|
|
|
|
+ <a-menu slot="overlay">
|
|
|
|
|
+ <!-- <a-menu-item>
|
|
|
|
|
+ <a @click="handleModule(item)">功能模块</a>
|
|
|
|
|
+ </a-menu-item>-->
|
|
|
|
|
+ <a-menu-item>
|
|
|
|
|
+ <a @click="handleAccount(item)">修改账户</a>
|
|
|
|
|
+ </a-menu-item>
|
|
|
|
|
+ <!-- <a-menu-item>
|
|
|
|
|
+ <a @click="handleH5Domain(item)">H5域名绑定</a>
|
|
|
|
|
+ </a-menu-item>-->
|
|
|
|
|
+ <a-menu-item>
|
|
|
|
|
+ <a @click="handleDelete(item)">删除</a>
|
|
|
|
|
+ </a-menu-item>
|
|
|
|
|
+ </a-menu>
|
|
|
|
|
+ <a>
|
|
|
|
|
+ <span>更多</span>
|
|
|
|
|
+ <a-icon type="down" />
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </a-dropdown>
|
|
|
</span>
|
|
</span>
|
|
|
</s-table>
|
|
</s-table>
|
|
|
<create-form ref="createModal" @handleSubmit="handleRefresh" />
|
|
<create-form ref="createModal" @handleSubmit="handleRefresh" />
|
|
|
|
|
+ <AccountForm ref="AccountForm" @handleSubmit="handleRefresh" />
|
|
|
</a-card>
|
|
</a-card>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -27,13 +46,15 @@
|
|
|
import * as Api from '@/api/store'
|
|
import * as Api from '@/api/store'
|
|
|
import { ContentHeader, STable } from '@/components'
|
|
import { ContentHeader, STable } from '@/components'
|
|
|
import CreateForm from './modules/CreateForm'
|
|
import CreateForm from './modules/CreateForm'
|
|
|
|
|
+import AccountForm from './modules/AccountForm'
|
|
|
import { urlEncode } from '@/utils/util'
|
|
import { urlEncode } from '@/utils/util'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
|
ContentHeader,
|
|
ContentHeader,
|
|
|
STable,
|
|
STable,
|
|
|
- CreateForm
|
|
|
|
|
|
|
+ CreateForm,
|
|
|
|
|
+ AccountForm
|
|
|
},
|
|
},
|
|
|
data () {
|
|
data () {
|
|
|
return {
|
|
return {
|
|
@@ -73,13 +94,10 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- created () {
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ created () { },
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
|
|
|
- /**
|
|
|
|
|
- * 进入商城
|
|
|
|
|
- */
|
|
|
|
|
|
|
+ // 进入商城
|
|
|
handleInto (item) {
|
|
handleInto (item) {
|
|
|
if (process.env.NODE_ENV !== 'production') {
|
|
if (process.env.NODE_ENV !== 'production') {
|
|
|
this.$message.error('很抱歉,开发环境中不支持')
|
|
this.$message.error('很抱歉,开发环境中不支持')
|
|
@@ -90,9 +108,7 @@ export default {
|
|
|
window.open(url, '_blank')
|
|
window.open(url, '_blank')
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- /**
|
|
|
|
|
- * 删除记录
|
|
|
|
|
- */
|
|
|
|
|
|
|
+ // 删除记录
|
|
|
handleDelete (item) {
|
|
handleDelete (item) {
|
|
|
const app = this
|
|
const app = this
|
|
|
app.$confirm({
|
|
app.$confirm({
|
|
@@ -106,9 +122,7 @@ export default {
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- /**
|
|
|
|
|
- * 确认删除
|
|
|
|
|
- */
|
|
|
|
|
|
|
+ // 确认删除
|
|
|
onSubmitDelete (item) {
|
|
onSubmitDelete (item) {
|
|
|
return Api.recovery({ storeId: item['store_id'] })
|
|
return Api.recovery({ storeId: item['store_id'] })
|
|
|
.then(result => {
|
|
.then(result => {
|
|
@@ -117,15 +131,17 @@ export default {
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- // // 分配功能模块
|
|
|
|
|
|
|
+ // // 设置功能模块
|
|
|
// handleModule (item) {
|
|
// handleModule (item) {
|
|
|
- // // 显示对话框
|
|
|
|
|
// this.$refs.ModuleForm.show(item)
|
|
// this.$refs.ModuleForm.show(item)
|
|
|
// },
|
|
// },
|
|
|
|
|
|
|
|
- /**
|
|
|
|
|
- * 刷新列表
|
|
|
|
|
- */
|
|
|
|
|
|
|
+ // 修改商家账户
|
|
|
|
|
+ handleAccount (item) {
|
|
|
|
|
+ this.$refs.AccountForm.show(item)
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ // 刷新列表
|
|
|
handleRefresh () {
|
|
handleRefresh () {
|
|
|
this.$refs.table.refresh()
|
|
this.$refs.table.refresh()
|
|
|
}
|
|
}
|