|
@@ -108,14 +108,15 @@ export default {
|
|
|
mounted () {
|
|
|
this.getSelectData('serviceid', 14, { 1: 1 }) //所属服务
|
|
|
this.getSelectData('datasourceid', 12, { 1: 1 }) //数据源
|
|
|
- this.getSelectData('algorithmname', 20, { type: '1' }) //算法名称
|
|
|
- this.getSelectData('algorithmtype', 20, { type: '0' }) //算法类型
|
|
|
+ this.getSelectData('algorithmname', 20, { type: 'algorithm' }) //算法名称
|
|
|
+ this.getSelectData('algorithmtype', 20, { type: 'category' }) //算法类型
|
|
|
},
|
|
|
methods: {
|
|
|
//获取表单下拉数据
|
|
|
getSelectData (pagecode, serviceid, datacontent) {
|
|
|
const [allResult, allResultKey] = [[], []]
|
|
|
allResultKey.push(pagecode)
|
|
|
+ datacontent = { filter:datacontent}
|
|
|
allResult.push(Query({ serviceid, datacontent, event: '0' }))
|
|
|
this.getAnscyData(allResult, allResultKey)
|
|
|
},
|