|  | @@ -24,6 +24,8 @@
 | 
	
		
			
				|  |  |                </el-button>
 | 
	
		
			
				|  |  |                <el-button type="primary" size="mini" icon="el-icon-top" @click="outExport">导出
 | 
	
		
			
				|  |  |                </el-button>
 | 
	
		
			
				|  |  | +              <el-button type="primary" size="mini" icon="el-icon-top" @click="synchronization">同步商品信息
 | 
	
		
			
				|  |  | +              </el-button>
 | 
	
		
			
				|  |  |              </template>
 | 
	
		
			
				|  |  |              <template slot="enableOrNot" slot-scope="{row,index,disabled}">
 | 
	
		
			
				|  |  |                <div v-if="row.enableOrNot === 1">是</div>
 | 
	
	
		
			
				|  | @@ -100,7 +102,7 @@
 | 
	
		
			
				|  |  |  <script>
 | 
	
		
			
				|  |  |  import detailsPage from "./detailsPage";
 | 
	
		
			
				|  |  |  import { option } from "./js/optionList";
 | 
	
		
			
				|  |  | -import { getList, remove, getCorpType } from "@/api/tirePartsMall/basicData/commodityInformation";
 | 
	
		
			
				|  |  | +import { getList, remove, getCorpType,synchronization } from "@/api/tirePartsMall/basicData/commodityInformation";
 | 
	
		
			
				|  |  |  import { getToken } from "@/util/auth";
 | 
	
		
			
				|  |  |  // import goodsType from '@/components/goodsType/index'
 | 
	
		
			
				|  |  |  import corpType from './components/index'
 | 
	
	
		
			
				|  | @@ -268,6 +270,18 @@ export default {
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |        window.open(routeData.href.slice(1, routeData.href.length) + '&' + `${this.website.tokenHeader}=${getToken()}`);
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +    synchronization() {
 | 
	
		
			
				|  |  | +      this.loading = true;
 | 
	
		
			
				|  |  | +      synchronization().then(res => {
 | 
	
		
			
				|  |  | +        this.$nextTick(() => {
 | 
	
		
			
				|  |  | +          this.$refs.crud.doLayout();
 | 
	
		
			
				|  |  | +          this.$refs.crud.dicInit();
 | 
	
		
			
				|  |  | +        });
 | 
	
		
			
				|  |  | +        this.$message.success(res.data.msg);
 | 
	
		
			
				|  |  | +      }).finally(() => {
 | 
	
		
			
				|  |  | +        this.loading = false;
 | 
	
		
			
				|  |  | +      });
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      uploadAfter(res, done, loading, column) {
 | 
	
		
			
				|  |  |        this.excelBox = false;
 | 
	
		
			
				|  |  |        this.refreshChange();
 |