|
@@ -240,6 +240,23 @@
|
|
>
|
|
>
|
|
<i class="el-icon-edit"></i> 编辑
|
|
<i class="el-icon-edit"></i> 编辑
|
|
</el-button>
|
|
</el-button>
|
|
|
|
+
|
|
|
|
+ <el-popover
|
|
|
|
+ placement="left"
|
|
|
|
+ width="200"
|
|
|
|
+ trigger="hover"
|
|
|
|
+ :v-model="false"
|
|
|
|
+ >
|
|
|
|
+ <div style="margin: 0">
|
|
|
|
+ <qrcode
|
|
|
|
+ :value="qrcodeContent(scope.row)"
|
|
|
|
+ :options="{ width: 180 }"
|
|
|
|
+ ></qrcode>
|
|
|
|
+ </div>
|
|
|
|
+ <el-button slot="reference" size="mini" type="primary" plain
|
|
|
|
+ ><i class="el-icon-view"></i> 二维码</el-button
|
|
|
|
+ >
|
|
|
|
+ </el-popover>
|
|
</div>
|
|
</div>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -260,10 +277,14 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { CORE_API } from "@/constants/constants.js";
|
|
import { CORE_API } from "@/constants/constants.js";
|
|
|
|
+import VueQrcode from "@chenfengyuan/vue-qrcode";
|
|
import { mapState } from "vuex";
|
|
import { mapState } from "vuex";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "School",
|
|
name: "School",
|
|
|
|
+ components: {
|
|
|
|
+ qrcode: VueQrcode,
|
|
|
|
+ },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
formSearch: {
|
|
formSearch: {
|
|
@@ -514,6 +535,9 @@ export default {
|
|
|
|
|
|
this.schoolDialog = true;
|
|
this.schoolDialog = true;
|
|
},
|
|
},
|
|
|
|
+ qrcodeContent(row) {
|
|
|
|
+ return row.id + "@" + row.name;
|
|
|
|
+ },
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|