|
@@ -100,7 +100,7 @@
|
|
<el-table-column
|
|
<el-table-column
|
|
class-name="action-column"
|
|
class-name="action-column"
|
|
label="操作"
|
|
label="操作"
|
|
- width="140"
|
|
|
|
|
|
+ width="160"
|
|
fixed="right"
|
|
fixed="right"
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -111,6 +111,20 @@
|
|
@click="toPreview(scope.row)"
|
|
@click="toPreview(scope.row)"
|
|
>查看</el-button
|
|
>查看</el-button
|
|
>
|
|
>
|
|
|
|
+ <el-button
|
|
|
|
+ v-if="!checkPrivilege('link', 'ConvertImage')"
|
|
|
|
+ class="btn-primary"
|
|
|
|
+ type="text"
|
|
|
|
+ @click="toConvertImage(scope.row)"
|
|
|
|
+ >生成图片</el-button
|
|
|
|
+ >
|
|
|
|
+ <el-button
|
|
|
|
+ v-if="checkPrivilege('link', 'delete')"
|
|
|
|
+ class="btn-danger"
|
|
|
|
+ type="text"
|
|
|
|
+ @click="toDelete(scope.row)"
|
|
|
|
+ >删除</el-button
|
|
|
|
+ >
|
|
<el-button
|
|
<el-button
|
|
v-if="
|
|
v-if="
|
|
checkPrivilege('link', 'edit') &&
|
|
checkPrivilege('link', 'edit') &&
|
|
@@ -128,13 +142,6 @@
|
|
@click="toEditInfo(scope.row)"
|
|
@click="toEditInfo(scope.row)"
|
|
>编辑信息</el-button
|
|
>编辑信息</el-button
|
|
>
|
|
>
|
|
- <el-button
|
|
|
|
- v-if="checkPrivilege('link', 'delete')"
|
|
|
|
- class="btn-danger"
|
|
|
|
- type="text"
|
|
|
|
- @click="toDelete(scope.row)"
|
|
|
|
- >删除</el-button
|
|
|
|
- >
|
|
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -167,7 +174,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { CARD_CREATE_METHOD_TYPE } from "../../../constants/enumerate";
|
|
import { CARD_CREATE_METHOD_TYPE } from "../../../constants/enumerate";
|
|
-import { cardListPage, deleteCard } from "../api";
|
|
|
|
|
|
+import { cardListPage, deleteCard, convertCardImage } from "../api";
|
|
import ModifyCardInfo from "../components/ModifyCardInfo";
|
|
import ModifyCardInfo from "../components/ModifyCardInfo";
|
|
import pickerOptions from "@/constants/datePickerOptions";
|
|
import pickerOptions from "@/constants/datePickerOptions";
|
|
import ModifyCard from "../../card/components/ModifyCard";
|
|
import ModifyCard from "../../card/components/ModifyCard";
|
|
@@ -264,6 +271,10 @@ export default {
|
|
this.deletePageLastItem();
|
|
this.deletePageLastItem();
|
|
})
|
|
})
|
|
.catch(() => {});
|
|
.catch(() => {});
|
|
|
|
+ },
|
|
|
|
+ async toConvertImage(row) {
|
|
|
|
+ await convertCardImage(row.id);
|
|
|
|
+ this.$message.success("操作成功!");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
};
|