pengyh 1 год назад
Родитель
Сommit
2f96bac58f
2 измененных файлов с 18 добавлено и 5 удалено
  1. 12 4
      src/views/engineeringMaintenance/basicData/detail.vue
  2. 6 1
      src/views/login/index.vue

+ 12 - 4
src/views/engineeringMaintenance/basicData/detail.vue

@@ -147,8 +147,16 @@
 										<el-select v-model="scope.row.main" value-key="categoryId" @change="(e)=>{
 											scope.row.mainId = e.categoryId
 											scope.row.mainName = e.name
-											scope.row.smallName = ''
-											scope.row.smallId = ''
+											if(e.categoryId == 0){
+												scope.row.small = {categoryId: '0', name: '不限'}
+												scope.row.smallName = '不限'
+												scope.row.smallId = '0'
+											}else{
+												scope.row.small = null
+												scope.row.smallName = ''
+												scope.row.smallId = ''
+											}
+											
 											scope.row.smallList = e.children?e.children:[]
 										}" :disabled="isEdit != scope.$index || formType == 2" placeholder="请选择" style="width: 100%;">
 										    <el-option
@@ -494,12 +502,12 @@
 			},
 			getBrandList(){
 				getBrand().then(res => {
-					this.brandList = res.data
+					this.brandList = [...[{id: '0',brandName: '不限'}],...res.data]
 				})
 			},
 			getMainList(){
 				getMainList({type: 2}).then(res => {
-					this.mainList = res.data
+					this.mainList = [...[{categoryId: '0',name: '不限',children: [{categoryId: '0',name: '不限'}]}],...res.data]
 				})
 			},
 			getinitlbslist() {

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

@@ -73,7 +73,12 @@
         </div>
 		<div class="info-item">
 			<el-link href="https://www.zfire.top/#/" :underline="false" target="_blank">
-			  {{ companyList[0] && companyList[0].companyName ? companyList[0].companyName : '' }}
+				{{ companyList[0] && companyList[0].companyName ? companyList[0].companyName : '' }}
+			</el-link>
+		</div>
+		<div class="info-item">
+			<el-link href="https://mp.weixin.qq.com" :underline="false" target="_blank">
+			  微信公众号&小程序
 			</el-link>
 		</div>
         <div class="link_gs">