|
@@ -166,6 +166,8 @@
|
|
|
<script>
|
|
|
import api from '@api/icss.js';
|
|
|
import utils from '@api/utils.js';
|
|
|
+import config from '@api/config.js';
|
|
|
+
|
|
|
/**
|
|
|
* titlePar 顶部显示左(有默认值可不填)
|
|
|
* titleSub 顶部显示右(有默认值可不填)
|
|
@@ -216,15 +218,6 @@ export default {
|
|
|
order:[], //排序方式
|
|
|
tipLis:[], //提示列表
|
|
|
},
|
|
|
- labelTypesMaps: { //// 归属和填写单类型限制
|
|
|
- '1':['2','3','4','11'],
|
|
|
- '3':['4','6'],
|
|
|
- '4':[,'2','3'],
|
|
|
- '5':['7'],
|
|
|
- '6':['9'],
|
|
|
- '7':['9'],
|
|
|
- '8':['9']
|
|
|
- },
|
|
|
rules: {
|
|
|
region1: [
|
|
|
{ required: true, message: '请选择归属', trigger: 'change' }
|
|
@@ -318,18 +311,19 @@ export default {
|
|
|
this.form.tipLis = res.data.data[6];
|
|
|
this.labelTypes = this.labelTypesList;
|
|
|
// console.log('labelTypes', this.labelTypes)
|
|
|
- this.Adscriptions = this.AdscriptionsList.filter(item => Object.keys(this.labelTypesMaps).indexOf(item.val) > -1);
|
|
|
+ this.Adscriptions = this.AdscriptionsList.filter(item => Object.keys(config.labelTypesMaps).indexOf(item.val) > -1);
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
searchTagList() {
|
|
|
let region1 = this.form.region1, region2 = this.form.region2;
|
|
|
- let param = {
|
|
|
- "type": region1,
|
|
|
- "tagType": region2 == 2?[1]:(region2 == 6?[1,2,3,4,10]:[]),
|
|
|
- "controlType":region2 == 2?[1,2]:[],
|
|
|
- "sexType": this.form.region7,
|
|
|
+
|
|
|
+ let param1 = !!region2 ? api.getGroupParams(region2): {};
|
|
|
+ let param2 = {
|
|
|
+ type: region1,
|
|
|
+ sexType: this.form.region7,
|
|
|
}
|
|
|
+ let param = Object.assign(param1,param2)
|
|
|
api.searchTagList(param).then((res) => {
|
|
|
if (res.data.code === '0') {
|
|
|
this.form.tagPool = res.data.data
|
|
@@ -369,7 +363,7 @@ export default {
|
|
|
readyChangeSelect(tmpData,type) {
|
|
|
if(type === 1) {
|
|
|
this.form.region2 = '';
|
|
|
- this.labelTypes = this.labelTypesList.filter(item => this.labelTypesMaps[tmpData].indexOf(item.val) > -1)
|
|
|
+ this.labelTypes = this.labelTypesList.filter(item => config.labelTypesMaps[tmpData].indexOf(item.val) > -1)
|
|
|
|
|
|
}
|
|
|
this.changeSex(tmpData);
|