|
@@ -19,7 +19,7 @@
|
|
<script>
|
|
<script>
|
|
import toolbar from './toolbar';
|
|
import toolbar from './toolbar';
|
|
import mxFilterList from '@/mixins/filterList';
|
|
import mxFilterList from '@/mixins/filterList';
|
|
-import { getPage, delItem } from '@/api/scene';
|
|
|
|
|
|
+import { getPage, delItem, sendCode } from '@/api/scene';
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'SceneList',
|
|
name: 'SceneList',
|
|
@@ -143,6 +143,23 @@ export default {
|
|
);
|
|
);
|
|
action.push(
|
|
action.push(
|
|
h(
|
|
h(
|
|
|
|
+ 'el-button',
|
|
|
|
+ {
|
|
|
|
+ props: {
|
|
|
|
+ type: 'text'
|
|
|
|
+ },
|
|
|
|
+ on: {
|
|
|
|
+ click: () =>
|
|
|
|
+ this.handleSend({
|
|
|
|
+ id: row.id
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ '发送邮件'
|
|
|
|
+ )
|
|
|
|
+ );
|
|
|
|
+ action.push(
|
|
|
|
+ h(
|
|
'BaseBtn',
|
|
'BaseBtn',
|
|
{
|
|
{
|
|
props: {
|
|
props: {
|
|
@@ -178,6 +195,14 @@ export default {
|
|
handleAdd() {
|
|
handleAdd() {
|
|
this.$SceneItemModal();
|
|
this.$SceneItemModal();
|
|
},
|
|
},
|
|
|
|
+ async handleSend(id) {
|
|
|
|
+ const { success, msg } = await sendCode({
|
|
|
|
+ id
|
|
|
|
+ });
|
|
|
|
+ if (success) {
|
|
|
|
+ this.$success('发送成功!');
|
|
|
|
+ }
|
|
|
|
+ },
|
|
async handleDelItem(item) {
|
|
async handleDelItem(item) {
|
|
const { success, msg } = await delItem({
|
|
const { success, msg } = await delItem({
|
|
id: item.id
|
|
id: item.id
|