Parcourir la source

提交代码到测试分支

yuan il y a 5 mois
Parent
commit
7dd840e94e
2 fichiers modifiés avec 38 ajouts et 38 suppressions
  1. 2 2
      src/utils/httpRequest.js
  2. 36 36
      src/views/autonym/autonym.vue

+ 2 - 2
src/utils/httpRequest.js

@@ -43,8 +43,8 @@ http.interceptors.response.use(response => {
 http.adornUrl = (actionName) => {
   // 非生产环境 && 开启代理, 接口前缀统一使用[/proxyApi/]前缀做代理拦截!
   // return (process.env.NODE_ENV !== 'production' && process.env.OPEN_PROXY ? '/proxyApi/' : window.SITE_CONFIG.baseUrl) + actionName
-	// return 'http://yizhizan.edccc.cn/sqx_fast/' + actionName
-  return 'https://manger.bosszan.com/sqx_fast/' + actionName
+	return 'http://yizhizan.edccc.cn/sqx_fast/' + actionName
+  // return 'https://manger.bosszan.com/sqx_fast/' + actionName
 	// return 'https://zpadmin.xianmaxiong.com/sqx_fast/' + actionName
 	// return '/sqx_fast/' + actionName
   // return 'http://localhost:7155/sqx_fast/' + actionName

+ 36 - 36
src/views/autonym/autonym.vue

@@ -218,7 +218,7 @@
 			</el-table-column>
 			<el-table-column prop="createTime" label="创建时间" width="160">
 			</el-table-column>
-			<!-- <el-table-column prop="isRecommend" label="是否推荐" fixed="right">
+			<el-table-column prop="isRecommend" label="是否推荐" fixed="right">
 				<template slot-scope="scope">
 					<el-switch v-model="scope.row.isRecommend"
 						@change="changeTj(scope.row.companyId,scope.row.isRecommend)"
@@ -226,7 +226,7 @@
 						:inactive-value="closeValue" active-color="#13ce66" inactive-color="#ff4949">
 					</el-switch>
 				</template>
-			</el-table-column> -->
+			</el-table-column>
 			<el-table-column fixed='right' prop="status" label="状态" width="160">
 				<template slot-scope="scope">
 					<span v-if="scope.row.status == 1">待审核</span>
@@ -739,8 +739,8 @@
 				dialogFormVisibleImg:false,
 				imgUrl:'',
 				hangyeData: [],
-				// openValue:1,
-				// closeValue:2,
+				openValue:1,
+				closeValue:2,
 			}
 		},
 		methods: {
@@ -1563,39 +1563,39 @@
 				}).catch(() => {})
 			},
 			// 是否推荐
-			// changeTj(companyId, isRecommend) {
-			// 	this.$http({
-			// 		url: this.$http.adornUrl('company/updateCompanyIsRecommend'),
-			// 		method: 'post',
-			// 		params: this.$http.adornParams({
-			// 			'companyId': companyId,
-			// 			'isRecommend':isRecommend
-			// 		})
-			// 	}).then(({
-			// 		data
-			// 	}) => {
-			// 		if (data.code == 0) {
-			// 			this.$message({
-			// 				message: '操作成功',
-			// 				type: 'success',
-			// 				duration: 1500,
-			// 				onClose: () => {
-			// 					this.dataSelect()
-			// 				}
-			// 			})
-			// 		} else {
-			// 			this.$message({
-			// 				message: data.msg,
-			// 				type: 'warning',
-			// 				duration: 1500,
-			// 				onClose: () => {
-			// 					this.dataSelect()
-			// 				}
-			// 			})
-			// 		}
+			changeTj(companyId, isRecommend) {
+				this.$http({
+					url: this.$http.adornUrl('company/updateCompanyIsRecommend'),
+					method: 'post',
+					params: this.$http.adornParams({
+						'companyId': companyId,
+						'isRecommend':isRecommend
+					})
+				}).then(({
+					data
+				}) => {
+					if (data.code == 0) {
+						this.$message({
+							message: '操作成功',
+							type: 'success',
+							duration: 1500,
+							onClose: () => {
+								this.dataSelect()
+							}
+						})
+					} else {
+						this.$message({
+							message: data.msg,
+							type: 'warning',
+							duration: 1500,
+							onClose: () => {
+								this.dataSelect()
+							}
+						})
+					}
 
-			// 	})
-			// },
+				})
+			},
 			// 发票记录按钮
 			fapiaoClick(row){
 				this.userId = row.userId