| 
														
															@@ -63,6 +63,20 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           <el-button size="mini" type="primary" @click="openAccountForm('add')">添加账号</el-button> 
														 | 
														
														 | 
														
															           <el-button size="mini" type="primary" @click="openAccountForm('add')">添加账号</el-button> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         </div> 
														 | 
														
														 | 
														
															         </div> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         <div class="fr"> 
														 | 
														
														 | 
														
															         <div class="fr"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+          <el-upload 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            v-if="checkBtnRole('import')" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            class="import-btn" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            action="" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            :http-request="(data)=>{ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              handleImport(data,'/stock/forceUser/batch/update') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            }" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            :file-list="importFileList" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            :show-file-list="false" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+          > 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            <el-button type="primary" size="mini">导入强制仓</el-button> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+          </el-upload> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+          <el-button style="margin-left: 10px;" type="primary" size="mini" @click="handleDownloadforceexport">导出强制仓</el-button> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+          <el-button size="mini" @click="handleDownloadforceUser">下载强制仓模板</el-button> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           <el-button v-if="checkBtnRole('download')" size="mini" @click="handleDownload">下载导入模板</el-button> 
														 | 
														
														 | 
														
															           <el-button v-if="checkBtnRole('download')" size="mini" @click="handleDownload">下载导入模板</el-button> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           <ExportButton class="import-btn" :ex-url="'admin/user/user/listExport'" :ex-params="exParams" /> 
														 | 
														
														 | 
														
															           <ExportButton class="import-btn" :ex-url="'admin/user/user/listExport'" :ex-params="exParams" /> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           <ImportButton 
														 | 
														
														 | 
														
															           <ImportButton 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -71,12 +85,13 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             :im-url="'admin/user/batch/update'" 
														 | 
														
														 | 
														
															             :im-url="'admin/user/batch/update'" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             @importSuccess="getList" 
														 | 
														
														 | 
														
															             @importSuccess="getList" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           /> 
														 | 
														
														 | 
														
															           /> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															- 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           <el-upload 
														 | 
														
														 | 
														
															           <el-upload 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             v-if="checkBtnRole('import')" 
														 | 
														
														 | 
														
															             v-if="checkBtnRole('import')" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             class="import-btn" 
														 | 
														
														 | 
														
															             class="import-btn" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             action="" 
														 | 
														
														 | 
														
															             action="" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            :http-request="handleImport" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            :http-request="(data)=>{ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              handleImport(data) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            }" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             :file-list="importFileList" 
														 | 
														
														 | 
														
															             :file-list="importFileList" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             :show-file-list="false" 
														 | 
														
														 | 
														
															             :show-file-list="false" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           > 
														 | 
														
														 | 
														
															           > 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -163,6 +178,7 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           <el-table-column align="center" label="操作" min-width="230"> 
														 | 
														
														 | 
														
															           <el-table-column align="center" label="操作" min-width="230"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             <template slot-scope="scope"> 
														 | 
														
														 | 
														
															             <template slot-scope="scope"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															               <el-button 
														 | 
														
														 | 
														
															               <el-button 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                v-if="scope.row.roleId=='100'" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 type="text" 
														 | 
														
														 | 
														
															                 type="text" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 @click="setForcedHold(scope.row)" 
														 | 
														
														 | 
														
															                 @click="setForcedHold(scope.row)" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 >设置强制仓</el-button> 
														 | 
														
														 | 
														
															                 >设置强制仓</el-button> 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -785,6 +801,7 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       } 
														 | 
														
														 | 
														
															       } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															       getAccountList(params).then(res => { 
														 | 
														
														 | 
														
															       getAccountList(params).then(res => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        console.log(res.data.records) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         this.dataList = res.data.records 
														 | 
														
														 | 
														
															         this.dataList = res.data.records 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         this.listTotal = res.data.total 
														 | 
														
														 | 
														
															         this.listTotal = res.data.total 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         this.listLoading = false 
														 | 
														
														 | 
														
															         this.listLoading = false 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -1084,6 +1101,14 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       downloadFiles('admin/user/download') 
														 | 
														
														 | 
														
															       downloadFiles('admin/user/download') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     }, 
														 | 
														
														 | 
														
															     }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    handleDownloadforceUser() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      downloadFiles('stock/forceUser/downloadGongcheng') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    handleDownloadforceexport() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      downloadFiles('stock/forceUser/export') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     clickImport() { 
														 | 
														
														 | 
														
															     clickImport() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       if (!this.selectDepartment) { 
														 | 
														
														 | 
														
															       if (!this.selectDepartment) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         return this.$errorMsg('请选择部门') 
														 | 
														
														 | 
														
															         return this.$errorMsg('请选择部门') 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -1093,14 +1118,14 @@ export default { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     }, 
														 | 
														
														 | 
														
															     }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															     // 导入 
														 | 
														
														 | 
														
															     // 导入 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    async handleImport(param) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    async handleImport(param,url) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       console.log(param) 
														 | 
														
														 | 
														
															       console.log(param) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       this.importLoading = true 
														 | 
														
														 | 
														
															       this.importLoading = true 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       const file = param.file 
														 | 
														
														 | 
														
															       const file = param.file 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       const formData = new FormData() 
														 | 
														
														 | 
														
															       const formData = new FormData() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       formData.append('file', file) 
														 | 
														
														 | 
														
															       formData.append('file', file) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      const result = await handleImportTwo('/admin/user/importUser', formData) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      const result = await handleImportTwo((url||'/admin/user/importUser'), formData) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       this.importLoading = false 
														 | 
														
														 | 
														
															       this.importLoading = false 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       this.importFileList = [] 
														 | 
														
														 | 
														
															       this.importFileList = [] 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       // console.log(result,999); 
														 | 
														
														 | 
														
															       // console.log(result,999); 
														 |