|
@@ -80,9 +80,11 @@
|
|
|
<div v-else>-</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作">
|
|
|
+ <el-table-column label="操作" width="160">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button type="text" @click="editScore(scope.row)">编辑</el-button>
|
|
|
+ <el-button type="text" @click="delScore(scope.row)">删除</el-button>
|
|
|
+ <el-button type="text" @click="handlePic(scope.row)">查看照片</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -122,12 +124,21 @@
|
|
|
<el-button type="primary" @click="jfdhSubmit('jfForm')">确 定</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog title="查看照片" :visible.sync="photoVisible" width="620px">
|
|
|
+ <div v-if="photoList.length > 0">
|
|
|
+ <el-image v-for="(item, index) in photoList" :key="index" style="width: 100px; height: 100px" :src="item"
|
|
|
+ :preview-src-list="photoList">
|
|
|
+ </el-image>
|
|
|
+ </div>
|
|
|
+ <el-empty v-else description="暂无图片"></el-empty>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { xsewm_list, xsewm_export, grade_search, class_search, wypj_pf, wypj_edit, jfdh_add } from "./api";
|
|
|
+import { xsewm_list, xsewm_export, grade_search, class_search, wypj_pf, wypj_edit, jfdh_add, wypj_detail, wypj_del } from "./api";
|
|
|
import { useUserStore } from "@/stores/user";
|
|
|
+import { getFullUrl } from '@/utils/helper'
|
|
|
const { token } = useUserStore();
|
|
|
import VueQr from "vue-qr";
|
|
|
import { xqgl_list } from '../../xsxjk/xjk/api';
|
|
@@ -195,6 +206,9 @@ export default {
|
|
|
],
|
|
|
},
|
|
|
flag: false,
|
|
|
+ photo: {},
|
|
|
+ photoList: [],
|
|
|
+ photoVisible: false,
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -290,18 +304,20 @@ export default {
|
|
|
this.firstForm.class = "";
|
|
|
},
|
|
|
showQr(item) {
|
|
|
- this.appSrc =
|
|
|
+ let a =
|
|
|
"http://60.188.226.44:8000/app/mobile/#/scanCode?xsxm=" +
|
|
|
item.xdx_xsxm +
|
|
|
"&xsxh=" +
|
|
|
item.xdx_xsxh +
|
|
|
"&sm_id=" +
|
|
|
- item.sm_id +
|
|
|
+ item.dept_id +
|
|
|
"&token=" +
|
|
|
token +
|
|
|
"&xdx_id=" +
|
|
|
item.xdx_id;
|
|
|
-
|
|
|
+ // this.appSrc = a;
|
|
|
+ this.appSrc = encodeURI(a)
|
|
|
+ // this.appSrc = encodeURIComponent(a)
|
|
|
this.dialogVisible = true;
|
|
|
},
|
|
|
// #region 评分列表弹窗
|
|
@@ -391,7 +407,7 @@ export default {
|
|
|
if (this.flag) {
|
|
|
return this.$message({
|
|
|
message: `请填写不大于${this.stuData.xdx_jf}的积分值`,
|
|
|
- type:'error'
|
|
|
+ type: 'error'
|
|
|
})
|
|
|
}
|
|
|
let data = {
|
|
@@ -417,6 +433,54 @@ export default {
|
|
|
},
|
|
|
// #endregion
|
|
|
|
|
|
+ // #region 查看照片
|
|
|
+ handlePic(item) {
|
|
|
+ wypj_detail({ wdwp_id: item.wdwp_id }).then(res => {
|
|
|
+ if (res.code == '1') {
|
|
|
+ this.photo = res.data.one_info;
|
|
|
+ let pic = res.data.one_info.wdwp_pfyh_img;
|
|
|
+ this.photoList = [];
|
|
|
+ if (pic) {
|
|
|
+ let arr = pic.split(';');
|
|
|
+ arr.forEach(ele => {
|
|
|
+ this.photoList.push(getFullUrl(ele.split(',')[1]))
|
|
|
+ console.log(this.photoList);
|
|
|
+ })
|
|
|
+ }
|
|
|
+ this.photoVisible = true;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // #endregion
|
|
|
+
|
|
|
+ delScore(item) {
|
|
|
+ this.$confirm('此操作将删除该评分记录, 是否继续?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ console.log(1111111);
|
|
|
+ wypj_del({wdwp_id: item.wdwp_id}).then(res => {
|
|
|
+ if (res.code == '1') {
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: '删除成功!'
|
|
|
+ });
|
|
|
+ this.getListData();
|
|
|
+ this.getPfList();
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ console.log(333333333);
|
|
|
+ this.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: '取消操作!'
|
|
|
+ });
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
switchGrade() {
|
|
|
this.firstForm.class = "";
|
|
|
this.classListData();
|