瀏覽代碼

no message

linwenxin 7 月之前
父節點
當前提交
b53e35dcdd

+ 4 - 0
src/api/departmentManagement.js

@@ -1,5 +1,9 @@
 import request, { postBlob, getBlob, handleImport } from '@/utils/request'
 
+export function adminDeptImport(data) {
+  return handleImport('/admin/dept/import', data.formdata, data.id || '')
+}
+
 export function adminDeptList(data) {
   return request({
     url: `/admin/dept/list?moduleId=${data.moduleId}`,

+ 1 - 1
src/views/login/index.vue

@@ -81,7 +81,7 @@
                   />
                   <div class="code" @click="getCode"><img :src="'data:image/jpeg;base64,' + codeImage" alt="" /></div>
                 </el-form-item>
-                <el-checkbox v-model="isRemenberPw">记住密码</el-checkbox>
+                <!-- <el-checkbox v-model="isRemenberPw">记住密码</el-checkbox> -->
                 <div class="button-container">
                   <el-button :loading="loading" type="primary" @click.native.prevent="handleLogin">登录</el-button>
                 </div>

+ 31 - 2
src/views/setting/departmentManagement/index.vue

@@ -106,14 +106,17 @@ import {
   adminDeptDel,
   adminDeptAddWebsit,
   adminDeptUpdateWebsit,
-  adminDeptDelWebsit
+  adminDeptDelWebsit,
+  adminDeptImport
 } from '@/api/departmentManagement.js'
 import operation_mixin from '@/components/template/operation_mixin.js'
+import { commonTemplateDownload } from '@/api/common.js'
+import import_mixin from '@/components/template/import_mixin.js'
 export default {
   components: {
     TemplatePage
   },
-  mixins: [operation_mixin],
+  mixins: [operation_mixin, import_mixin],
   data() {
     return {
       // 表格属性
@@ -155,6 +158,32 @@ export default {
     optionsEvensGroup() {
       return [
         [
+          [
+            this.optionsEvensAuth('import', ({ moduleName }) => {
+              return {
+                name: moduleName,
+                render: () => {
+                  return this.importButton(adminDeptImport, moduleName)
+                }
+              }
+            })
+          ],
+          [
+            this.optionsEvensAuth('download', {
+              click: () => {
+                commonTemplateDownload({ name: '部门网点导入.xlsx' }, `${this.$route.meta.title}`)
+                  .then(res => {
+                    this.$message({
+                      message: '下载成功',
+                      type: 'success'
+                    })
+                  })
+                  .catch(err => {
+                    this.$message.error('下载失败')
+                  })
+              }
+            })
+          ],
           this?.keyixuan?.length
             ? [
                 this.optionsEvensAuth('add', {

+ 1 - 1
src/views/workOrder/workOrderPool/detailModule/workOrderInfo/buttons/processFeedback.vue

@@ -177,7 +177,7 @@ export default {
           md: 24,
           name: 'slot-component',
           formItemAttributes: {
-            label: '上传图片(最多6个)',
+            label: '上传附件(最多6个)',
             prop: 'imgSrc',
             rules: []
           },