ezhizao_zx 1 year ago
parent
commit
89f89b1f62

+ 2 - 2
src/utils/auth.js

@@ -1,6 +1,6 @@
 import Cookies from 'js-cookie'
 
-const TokenKey = 'Admin-Token'
+const TokenKey = 'Dms-Admin-Token'
 
 export function getToken() {
   return Cookies.get(TokenKey)
@@ -15,7 +15,7 @@ export function removeToken() {
 }
 
 /** tentant 缓存 */
-const TenantKey = 'Tenant-Key'
+const TenantKey = 'Dms-Tenant-Key'
 
 export function getTenant() {
   const cookieTenant = Cookies.get(TenantKey)

+ 1 - 1
src/views/business/productInspectionInstruction/index.vue

@@ -124,7 +124,7 @@
 						<el-button type="primary" icon="Plus" @click="handleAddInstruction"
 							v-hasPermi="['business:productInspectionInstruction:add']"
 							:disabled="!currentTechnologicalProcessDetail.id">
-							添加工艺 </el-button>
+							添加 </el-button>
 					</el-form-item>
 				</el-form>
 				<div class="el-table-container">

+ 1 - 1
src/views/business/productInspectionStandard/index.vue

@@ -123,7 +123,7 @@
           <el-form-item>
             <el-button type="primary" icon="Plus" @click="handleAddInstruction"
               v-hasPermi="['business:productInspectionStandard:add']" :disabled="!currentTechnologicalProcessDetail.id">
-              添加工艺 </el-button>
+              添加 </el-button>
           </el-form-item>
         </el-form>
         <div class="el-table-container">

+ 4 - 2
src/views/dialog/InstructionChoiceDialog.vue

@@ -88,7 +88,7 @@
   </el-dialog>
 </template>
 <script setup>
-import { ref, toRefs } from 'vue'
+import { ref, toRefs, nextTick } from 'vue'
 import { listCategory, list } from '@/api/business/inspectionInstruction'
 const { proxy } = getCurrentInstance()
 const props = defineProps({
@@ -147,7 +147,9 @@ function close() {
 
 function open() {
   visible.value = true
-  proxy.$refs.instructionTable.clearSelection()
+  nextTick(_ => {
+    proxy.$refs.instructionTable.clearSelection()
+  })
   loadCategory()
 }