@liuqiongqiong/vue-pages 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -37,12 +37,6 @@
|
|
|
37
37
|
<!-- <el-tag>{{ row.type | typeFilter }}</el-tag> -->
|
|
38
38
|
</template>
|
|
39
39
|
</el-table-column>
|
|
40
|
-
<el-table-column :label="'身份证号'" align="center">
|
|
41
|
-
<template slot-scope="{ row }">
|
|
42
|
-
<span>{{ row.idCard }}</span>
|
|
43
|
-
<!-- <span style="color:red;">{{ row.reviewer }}</span> -->
|
|
44
|
-
</template>
|
|
45
|
-
</el-table-column>
|
|
46
40
|
<el-table-column :label="'状态'" align="center">
|
|
47
41
|
<template slot-scope="{ row }">
|
|
48
42
|
<el-tag size="medium" :type="row.approveStatus == 0 ? 'danger' : row.approveStatus == 1 ? 'success' : ''
|
|
@@ -64,24 +58,20 @@
|
|
|
64
58
|
:src="`${constant}${img(item)}`" :preview-src-list="[`${constant}${img(item)}`]" />
|
|
65
59
|
</template>
|
|
66
60
|
</el-table-column>
|
|
67
|
-
<el-table-column :label="'
|
|
61
|
+
<el-table-column :label="'健康证'" align="center">
|
|
68
62
|
<template slot-scope="{ row }">
|
|
69
63
|
<el-image v-for="(item, index) in row.xlUrlList" :key="index" style="width: 50px; height: 50px"
|
|
70
64
|
:src="`${constant}${img(item)}`" :preview-src-list="[`${constant}${img(item)}`]" />
|
|
71
65
|
</template>
|
|
72
66
|
</el-table-column>
|
|
73
|
-
<!-- <el-table-column :label="'状态'" align="center">
|
|
74
|
-
<template slot-scope="{row}">
|
|
75
|
-
<el-tag size="medium" :type="row.status == '1' ? 'success' : row.status == '2' ? 'warning' : '' " >{{ row.status == '1' ? '有效' : row.status == '2' ? '无效' : row.status == '0' ? '待审核' : '-'}}</el-tag>
|
|
76
|
-
</template>
|
|
77
|
-
</el-table-column> -->
|
|
78
67
|
<el-table-column :label="'操作'" align="center" width="280" class-name="small-padding fixed-width">
|
|
79
68
|
<template slot-scope="{ row, $index }">
|
|
80
|
-
|
|
69
|
+
<el-button size="mini" type="success" @click="update(row, 'draft')">
|
|
70
|
+
更新状态
|
|
71
|
+
</el-button>
|
|
81
72
|
<el-button size="mini" type="primary" @click="edit(row, 'draft')">
|
|
82
73
|
修改
|
|
83
74
|
</el-button>
|
|
84
|
-
|
|
85
75
|
</template>
|
|
86
76
|
</el-table-column>
|
|
87
77
|
</el-table>
|
|
@@ -199,9 +189,9 @@
|
|
|
199
189
|
<script>
|
|
200
190
|
import {
|
|
201
191
|
SPersonSave,
|
|
202
|
-
|
|
192
|
+
SPersonMedicalPage,
|
|
203
193
|
SPersonDel,
|
|
204
|
-
|
|
194
|
+
SPersonMedicalStatus,
|
|
205
195
|
} from "@/api/article";
|
|
206
196
|
import { SysUnitPage } from "@/api/institution";
|
|
207
197
|
import { uploadTP, uploadPDF, uploadThird } from "@/api/upload";
|
|
@@ -521,7 +511,7 @@ export default {
|
|
|
521
511
|
this.temp.sfzUrlList = [];
|
|
522
512
|
},
|
|
523
513
|
update(row) {
|
|
524
|
-
|
|
514
|
+
SPersonMedicalStatus({ id: row.id }).then((res) => {
|
|
525
515
|
if (res.status == 1) {
|
|
526
516
|
this.getList();
|
|
527
517
|
this.$notify({
|
|
@@ -585,7 +575,7 @@ export default {
|
|
|
585
575
|
if (
|
|
586
576
|
this.temp.thirdFileList[i].att_type == "01" ||
|
|
587
577
|
this.temp.thirdFileList[i].att_type == "21" ||
|
|
588
|
-
this.temp.thirdFileList[i].att_type == "
|
|
578
|
+
this.temp.thirdFileList[i].att_type == "99"
|
|
589
579
|
) {
|
|
590
580
|
this.temp.longtermPsnAttDtoList.push(this.temp.thirdFileList[i]);
|
|
591
581
|
}
|
|
@@ -594,14 +584,14 @@ export default {
|
|
|
594
584
|
},
|
|
595
585
|
getList() {
|
|
596
586
|
this.listLoading = true;
|
|
597
|
-
|
|
587
|
+
SPersonMedicalPage(this.listQuery).then((response) => {
|
|
598
588
|
this.list = response.result.data;
|
|
599
589
|
this.total = response.result.count;
|
|
600
590
|
setTimeout(() => {
|
|
601
591
|
this.listLoading = false;
|
|
602
592
|
}, 1.5 * 1000);
|
|
603
593
|
});
|
|
604
|
-
|
|
594
|
+
SPersonMedicalPage({ size: 9999, pageNo: 1 }).then((response) => {
|
|
605
595
|
this.renyuanxinxi = response.result.data;
|
|
606
596
|
});
|
|
607
597
|
},
|
|
@@ -171,6 +171,15 @@
|
|
|
171
171
|
</el-date-picker>
|
|
172
172
|
</el-form-item>
|
|
173
173
|
</el-col>
|
|
174
|
+
<el-col :span="12">
|
|
175
|
+
<el-form-item label="学历" prop="educ">
|
|
176
|
+
<el-select v-model="temp.educ" style="width: 100%" clearable filterable size="small" class="filter-item"
|
|
177
|
+
placeholder="请选择所属机构">
|
|
178
|
+
<el-option v-for="(item, index) in [{label:'初中',value:'初中'},{label:'高中',value:'高中'},{label:'大专',value:'大专'},{label:'本科',value:'本科'},{label:'硕士',value:'硕士'},{label:'博士',value:'博士'}]" :key="index" :label="item.label"
|
|
179
|
+
:value="item.value" />
|
|
180
|
+
</el-select>
|
|
181
|
+
</el-form-item>
|
|
182
|
+
</el-col>
|
|
174
183
|
<el-col :span="24">
|
|
175
184
|
<el-form-item label="注:" prop="unitId">
|
|
176
185
|
<span style="color: red">上传的文件请使用姓名+类型去命名。防止文件名字重复被覆盖</span>
|
|
@@ -195,7 +204,7 @@
|
|
|
195
204
|
</el-form-item>
|
|
196
205
|
</el-col>
|
|
197
206
|
<el-col :span="12">
|
|
198
|
-
<el-form-item label="
|
|
207
|
+
<el-form-item label="健康证" prop="xlUrlList">
|
|
199
208
|
<el-upload action="#" :limit="1" :data="{ att_type: '21' }" :before-upload="beforeAvatarUploada"
|
|
200
209
|
:http-request="xlhandleFileUpload" :on-remove="handleXlUrlRemove" :before-remove="beforeRemove"
|
|
201
210
|
:file-list="temp.xlUrlList" :on-preview="onPreview">
|