张雄 3 years ago
parent 1b03fb4e82
commit f5b0776eed

@ -168,3 +168,16 @@ export function getBrandOrSeriesLevel(params) {
} }
}) })
} }
// 获取查询类型
export function getQueryType(params) {
let obj = Object.assign({action: 'getQueryType'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}

@ -101,8 +101,12 @@
<a-form-model-item label="排除词"><a-input placeholder="请输入排除词多个词用隔开最多支持5个" v-model="addForm.DetailsData[0].PaiChu"></a-input></a-form-model-item> <a-form-model-item label="排除词"><a-input placeholder="请输入排除词多个词用隔开最多支持5个" v-model="addForm.DetailsData[0].PaiChu"></a-input></a-form-model-item>
</div> </div>
<v-label-div title="定向监测"></v-label-div> <v-label-div title="定向监测"></v-label-div>
<a-form-model-item label="媒体"><a-input placeholder="请输入媒体名称多个词用隔开最多支持5个"></a-input></a-form-model-item> <a-form-model-item label="媒体">
<a-form-model-item label="作者"><a-input placeholder="请输入作者名称多个词用隔开最多支持5个"></a-input></a-form-model-item> <a-textarea placeholder="请输入媒体名称多个词用隔开最多支持5个" v-model="addForm.DetailsData[0].Source"></a-textarea>
</a-form-model-item>
<a-form-model-item label="作者">
<a-textarea placeholder="请输入作者名称多个词用隔开最多支持5个" v-model="addForm.DetailsData[0].UserAuthor"></a-textarea>
</a-form-model-item>
</a-form-model> </a-form-model>
</div> </div>
<div class="modal-display"> <div class="modal-display">
@ -140,11 +144,15 @@
</a-form-model-item> </a-form-model-item>
</a-tab-pane></a-tabs> </a-tab-pane></a-tabs>
<a-tabs type="card"><a-tab-pane key="22" tab="分析词设置"> <a-tabs type="card"><a-tab-pane key="22" tab="分析词设置">
<a-form-model-item label="主题词"><a-textarea placeholder="请输入分析词" v-model="addForm.DetailsData[0].AnalyzeWord"></a-textarea></a-form-model-item> <a-form-model-item label="分析词"><a-textarea placeholder="请输入分析词" v-model="addForm.DetailsData[0].AnalyzeWord"></a-textarea></a-form-model-item>
</a-tab-pane></a-tabs> </a-tab-pane></a-tabs>
<a-tabs type="card"><a-tab-pane key="23" tab="定向监测"> <a-tabs type="card"><a-tab-pane key="23" tab="定向监测">
<a-form-model-item label="媒体"><a-textarea placeholder="请输入媒体名称多个词用隔开最多支持5个"></a-textarea></a-form-model-item> <a-form-model-item label="媒体">
<a-form-model-item label="作者"><a-textarea placeholder="请输入作者名称多个词用隔开最多支持5个"></a-textarea></a-form-model-item> <a-textarea placeholder="请输入媒体名称多个词用隔开最多支持5个" v-model="addForm.DetailsData[0].Source"></a-textarea>
</a-form-model-item>
<a-form-model-item label="作者">
<a-textarea placeholder="请输入作者名称多个词用隔开最多支持5个" v-model="addForm.DetailsData[0].UserAuthor"></a-textarea>
</a-form-model-item>
</a-tab-pane></a-tabs> </a-tab-pane></a-tabs>
</a-form-model> </a-form-model>
</div> </div>
@ -157,8 +165,7 @@
</div> </div>
</div> </div>
<div> <div>
</div>
</div>
</div> </div>
</a-modal> </a-modal>
</div> </div>
@ -203,15 +210,6 @@ export default {
} }
] ]
}, },
searchWord: {
mustWord: '', //-
huoWord: '', //
mainWord: '', //-
keyWord1: '', //1
keyWord2: '', //2
highlvlWord: '', //
paichuWord: '', //
},
mode: 0, mode: 0,
isHigh: 0, isHigh: 0,
// //

@ -70,22 +70,6 @@ export default {
}, },
//删除确认框 //删除确认框
cancel() {}, cancel() {},
//处理输入的词
doWords() {
if(this.mode == 0 && this.isHigh == 0) { //和模式
this.addForm.IsAdvancedQuery = 0;
this.addForm.AnalyzeWord = this.searchWord.mustWord;
this.addForm.HuoWord = this.searchWord.huoWord;
this.addForm.PaiChu = this.searchWord.paichuWord;
} else if (this.mode == 2 && this.isHigh == 0) { //或模式
this.addForm.AnalyzeWord = this.searchWord.mustWord;
this.addForm.HuoWord = this.searchWord.keyWord1 + ';' + this.searchWord.keyWord2;
this.addForm.PaiChu = this.searchWord.paichuWord;
} else { //高级模式
this.addForm.IsAdvancedQuery = 1;
this.addForm.AnalyzeWord = this.searchWord.highlvlWord;
}
},
//新增确认框 //新增确认框
handlerOk() { handlerOk() {
let newForm = { let newForm = {

@ -1,4 +1,4 @@
import { getQuDao, getQingGan, getTwoTime,getToExcelField} from "@/api/comm"; import { getQuDao, getQingGan, getTwoTime,getQueryType ,getToExcelField} from "@/api/comm";
import {getList} from "@/api/ThemeAnalizeDec" import {getList} from "@/api/ThemeAnalizeDec"
export default { export default {
//获取表格数据 //获取表格数据
@ -106,6 +106,19 @@ export default {
}); });
}); });
}, },
//获取查询类型
getQueryType() {
return new Promise((resolve, reject) => {
getQueryType().then((res) => {
let data = res.data;
this.plainOptions2 = data
resolve();
})
.catch(() => {
reject(false);
});
});
},
// 给后台传渠道 // 给后台传渠道
doFormQudao(val = []) { doFormQudao(val = []) {
let arr = []; let arr = [];

@ -28,7 +28,11 @@
</div> </div>
<div class="d-inner-d1"> <div class="d-inner-d1">
<span class="s1">关键词</span> <span class="s1">关键词</span>
<!-- <a-select style="width: 200px"></a-select> --> <a-select v-model="form.sTitleType" style="width: 80px" @change="handlerSearchMode">
<a-select-option :style="{ color: '#fff' }" v-for="item in plainOptions2" :value="item.key" :key="item.key">
{{ item.value }}
</a-select-option>
</a-select>
<a-input-search style="width: 250px;margin-left: 12px" placeholder="请输入关键词" enter-button v-model="searchTitle" @search="onSearch"></a-input-search> <a-input-search style="width: 250px;margin-left: 12px" placeholder="请输入关键词" enter-button v-model="searchTitle" @search="onSearch"></a-input-search>
</div> </div>
<div class="d-inner-d1"> <div class="d-inner-d1">
@ -130,6 +134,7 @@ export default {
iGroupBy: '', // 0 1 iGroupBy: '', // 0 1
isSourcetype: '', //1 0 isSourcetype: '', //1 0
listType: '', //0 1 eventList listType: '', //0 1 eventList
sTitleType: -1,
website: '', website: '',
iTimeType: '' // 0 1 iTimeType: '' // 0 1
}, },
@ -157,6 +162,7 @@ export default {
gValue2: 0, gValue2: 0,
btnTimes2:['不去重','相似度去重'], btnTimes2:['不去重','相似度去重'],
// //
plainOptions2:[],
searchTitle: '', searchTitle: '',
// //
columns: [ columns: [

@ -37,6 +37,7 @@ export default {
this.getTime(), this.getTime(),
this.getQuDao(), this.getQuDao(),
this.getQingGan(), this.getQingGan(),
this.getQueryType(),
]).then(() => { ]).then(() => {
this.form.token = this.getToken; this.form.token = this.getToken;
this.form.sGuid = this.$route.query.sGuid; this.form.sGuid = this.$route.query.sGuid;
@ -44,6 +45,7 @@ export default {
this.form.iGroupBy = '0'; this.form.iGroupBy = '0';
this.form.listType = '0'; this.form.listType = '0';
this.form.isSourcetype = '0'; this.form.isSourcetype = '0';
this.form.sTitleType = -1;
let series = this.$route.query.series || []; let series = this.$route.query.series || [];
let qudao = this.$route.query.qudao || []; let qudao = this.$route.query.qudao || [];
this.doFormQudao(qudao); this.doFormQudao(qudao);
@ -188,6 +190,10 @@ export default {
this.form.sTitle = this.searchTitle; this.form.sTitle = this.searchTitle;
this.getTableData(); this.getTableData();
}, },
// 改变搜索模式
handlerSearchMode(val) {
this.form.sTitleType = val;
},
// 改变页面的数据 // 改变页面的数据
handlerPage(p) { handlerPage(p) {
let iPageIndex = p.current; let iPageIndex = p.current;
@ -227,9 +233,9 @@ export default {
sQuDao: this.form.sTimeType, sQuDao: this.form.sTimeType,
sQingGan: this.form.sQingGan, sQingGan: this.form.sQingGan,
sTitle: this.form.sTitle, sTitle: this.form.sTitle,
sTitleType: '1', sTitleType: this.form.sTitleType,
sGuid: this.form.sGuid, sGuid: this.form.sGuid,
iTimeType: this.form.sGuid, iTimeType: this.form.iTimeType,
website: this.form.website, website: this.form.website,
} }
let eForm = Object.assign(o,this.execlForm); let eForm = Object.assign(o,this.execlForm);

Loading…
Cancel
Save