diff --git a/src/views/modules/custom/evaluateofficer.vue b/src/views/modules/custom/evaluateofficer.vue
index 86e82b0c..4d789557 100644
--- a/src/views/modules/custom/evaluateofficer.vue
+++ b/src/views/modules/custom/evaluateofficer.vue
@@ -106,7 +106,8 @@ export default {
id: '',
deptId: ''
},
- evaluateofficerAddVisible: false
+ evaluateofficerAddVisible: false,
+ upLoadUrl: ''
}
},
mounted () {
@@ -117,6 +118,9 @@ export default {
AddOrUpdate,
evaluateofficerAdd
},
+ created: function () {
+ this.uploadUrl = `${window.SITE_CONFIG['apiURL']}/custom/evaluateofficer/importExcel?token=${Cookies.get('token')}`
+ },
methods: {
showFlagFormat (row, column) {
if (row.sex === '0') {
@@ -131,6 +135,27 @@ export default {
this.$refs.evaluateofficerAdd.dataForm.deptId = deptId
this.$refs.evaluateofficerAdd.init()
})
+ },
+ errorExceed (file, fileList) {
+ this.$message.error('上传失败请重试')
+ },
+ uploadSuccess (response, file, fileList) {
+ this.getDataList()// 刷新列表
+ this.dataListLoading = false
+ this.$refs.upload.clearFiles()
+ if (response.data !== null && response.data.length > 0) {
+ this.faultDataVisible = true
+ this.errordataList = response.data
+ return
+ }
+ this.$message({
+ message: this.$t('prompt.success'),
+ type: 'success',
+ duration: 500,
+ onClose: () => {
+ this.getDataList()
+ }
+ })
}
}
}
diff --git a/src/views/modules/custom/evaluaterole-add-or-update.vue b/src/views/modules/custom/evaluaterole-add-or-update.vue
index a9d11b54..7a1f43c2 100644
--- a/src/views/modules/custom/evaluaterole-add-or-update.vue
+++ b/src/views/modules/custom/evaluaterole-add-or-update.vue
@@ -9,24 +9,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/modules/custom/evaluaterole-switch.vue b/src/views/modules/custom/evaluaterole-switch.vue
new file mode 100644
index 00000000..51b2368b
--- /dev/null
+++ b/src/views/modules/custom/evaluaterole-switch.vue
@@ -0,0 +1,69 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/custom/evaluaterole.vue b/src/views/modules/custom/evaluaterole.vue
index c0c38a31..2080f4a1 100644
--- a/src/views/modules/custom/evaluaterole.vue
+++ b/src/views/modules/custom/evaluaterole.vue
@@ -9,7 +9,7 @@
{{ $t('query') }}
- {{ $t('add') }}
+ {{ $t('add') }}
{{ $t('deleteBatch') }}