|
|
@@ -47,7 +47,7 @@
|
|
|
<el-button @click="editRow(row)" type="primary" size="mini" plain v-if="row.status != 'PASS'">
|
|
|
编辑
|
|
|
</el-button>
|
|
|
- <el-button @click="dialogCode = true" type="primary" size="mini" plain v-if="row.status == 'PASS'">
|
|
|
+ <el-button @click="showCode(row)" type="primary" size="mini" plain v-if="row.status == 'PASS'">
|
|
|
二维码
|
|
|
</el-button>
|
|
|
</template>
|
|
|
@@ -119,7 +119,7 @@
|
|
|
</el-dialog>
|
|
|
<el-dialog title="二维码" :visible.sync="dialogCode" width="400px" center>
|
|
|
<div style="margin-left: 70px;">
|
|
|
- <img style="width: 200px; heght: 200px;" src="@/assets/code.png" />
|
|
|
+ <qrcode-vue :value="dialogUrl" :size="200" level="H" />
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<el-dialog title="自动编排" :visible.sync="dialogArrangement" width="400px" center>
|
|
|
@@ -132,6 +132,7 @@
|
|
|
<script>
|
|
|
import { mapState } from 'vuex';
|
|
|
import pageableTable from '@/mixins/pageableTable';
|
|
|
+import QrcodeVue from 'qrcode.vue';
|
|
|
|
|
|
export default {
|
|
|
name: 'PerformanceApplyList',
|
|
|
@@ -158,7 +159,8 @@ export default {
|
|
|
dialogCode: false,
|
|
|
canSign: false,
|
|
|
applyId: '',
|
|
|
- dialogArrangement: false
|
|
|
+ dialogArrangement: false,
|
|
|
+ dialogUrl: ''
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
@@ -166,12 +168,20 @@ export default {
|
|
|
this.canSign = true;
|
|
|
}
|
|
|
},
|
|
|
+ components: {
|
|
|
+ QrcodeVue
|
|
|
+ },
|
|
|
computed: {
|
|
|
selection() {
|
|
|
return this.$refs.table.selection.map(i => i.id);
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ showCode(row) {
|
|
|
+ this.dialogCode = true;
|
|
|
+ this.dialogUrl =
|
|
|
+ 'http://wlj.izouma.com/home?performanceId=' + row.performanceId + '&performanceApplyId=' + row.id;
|
|
|
+ },
|
|
|
statusFormatter(row, column, cellValue, index) {
|
|
|
let selectedOption = this.statusOptions.find(i => i.value === cellValue);
|
|
|
if (selectedOption) {
|