|
@@ -8,7 +8,7 @@
|
|
|
<el-option v-for="item in SourceList" :key="item.Source"
|
|
|
:label="item.SourceName" :value="item.Source"/>
|
|
|
</el-select>
|
|
|
- <el-select placeholder="请选择数据源" v-model="SubSource" v-if="SubSourceList.length">
|
|
|
+ <el-select placeholder="请选择数据源" v-model="SubSource" v-if="SubSourceList.length" @change="handleSubSourceChange">
|
|
|
<el-option v-for="item in SubSourceList" :key="item.Source"
|
|
|
:label="item.SubSourceName" :value="item.Source"/>
|
|
|
</el-select>
|
|
@@ -21,18 +21,44 @@
|
|
|
<div class="table-box" v-if="hasSelectOption">
|
|
|
<div class="table-select">
|
|
|
<div class="select-list">
|
|
|
- <el-select placeholder="终端编码">
|
|
|
+ <el-select placeholder="终端编码" no-match-text="请选择完整数据源"
|
|
|
+ v-model="selectOption.terminalCode">
|
|
|
<el-option v-for="i in terminalCodeList" :key="i.TerminalCode"
|
|
|
:label="i.Name" :value="i.TerminalCode"/>
|
|
|
</el-select>
|
|
|
- <el-select placeholder="ETA指标库分类"></el-select>
|
|
|
- <el-select placeholder="创建人"></el-select>
|
|
|
+ <el-cascader placeholder="ETA指标库分类" no-match-text="请选择完整数据源"
|
|
|
+ v-model="selectOption.classify"
|
|
|
+ :options="edbClassifyList"
|
|
|
+ :props="{
|
|
|
+ emitPath:false,
|
|
|
+ value:'ClassifyId',
|
|
|
+ label:'ClassifyName',
|
|
|
+ children:'Children'
|
|
|
+ }" />
|
|
|
+ <el-cascader
|
|
|
+ placeholder="创建人" no-match-text="请选择完整数据源"
|
|
|
+ v-model="selectOption.user"
|
|
|
+ :options="userList"
|
|
|
+ :props="{
|
|
|
+ value: 'ItemId',
|
|
|
+ label: 'ItemName',
|
|
|
+ children: 'Children',
|
|
|
+ emitPath: false
|
|
|
+ }"
|
|
|
+ collapse-tags
|
|
|
+ :show-all-levels="false"
|
|
|
+ clearable
|
|
|
+ filterable
|
|
|
+ />
|
|
|
<el-select placeholder="频度" v-model="selectOption.frequency">
|
|
|
<el-option v-for="i in frequencyList" :key="i"
|
|
|
:label="i" :value="i"
|
|
|
/>
|
|
|
</el-select>
|
|
|
- <el-select placeholder="刷新状态"></el-select>
|
|
|
+ <el-select placeholder="刷新状态" v-model="selectOption.state">
|
|
|
+ <el-option label="启用刷新" :value="1"/>
|
|
|
+ <el-option label="禁用刷新" :value="2"/>
|
|
|
+ </el-select>
|
|
|
</div>
|
|
|
<div class="select-other">
|
|
|
<el-checkbox :indeterminate="isIndeterminate" v-model="isCheckAll">列表全选</el-checkbox>
|
|
@@ -99,7 +125,7 @@
|
|
|
|
|
|
<script>
|
|
|
import RefreshConfig from './components/refreshConfig.vue';
|
|
|
-import {dataRefreshInterface} from '@/api/modules/dataApi.js';
|
|
|
+import {dataRefreshInterface,dataAuthInterface} from '@/api/modules/dataApi.js';
|
|
|
export default {
|
|
|
components: { RefreshConfig },
|
|
|
data() {
|
|
@@ -111,11 +137,15 @@ export default {
|
|
|
|
|
|
frequencyList:['日度','周度','旬度','月度','季度','半年度','年度'],
|
|
|
terminalCodeList:[],
|
|
|
-
|
|
|
-
|
|
|
+ edbClassifyList:[],
|
|
|
+ userList:[],
|
|
|
|
|
|
selectOption:{
|
|
|
- frequency:''
|
|
|
+ frequency:'',
|
|
|
+ user:'',
|
|
|
+ classify:'',
|
|
|
+ state:'',
|
|
|
+ terminalCode:''
|
|
|
},
|
|
|
hasSelectOption:false,
|
|
|
|
|
@@ -176,11 +206,19 @@ export default {
|
|
|
this.SubSourceList = source.Child
|
|
|
this.SubSource=''
|
|
|
this.hasSelectOption = ![34,11].includes(this.Source)
|
|
|
+ if(this.hasSelectOption){
|
|
|
+ this.resetSelect()
|
|
|
+ }
|
|
|
//如果没有二级数据源,则请求表格筛选项数据;钢联化工,SMM没有筛选项数据
|
|
|
if(!this.SubSourceList.length&&this.hasSelectOption){
|
|
|
this.getSelectOption()
|
|
|
}
|
|
|
},
|
|
|
+ handleSubSourceChange(){
|
|
|
+ if(this.SubSource){
|
|
|
+ this.getSelectOption()
|
|
|
+ }
|
|
|
+ },
|
|
|
//获取终端编码列表
|
|
|
getTerminalCodeList(){
|
|
|
if(!this.Source) return
|
|
@@ -194,6 +232,15 @@ export default {
|
|
|
//获取分类列表
|
|
|
getClassifyList(){
|
|
|
|
|
|
+ },
|
|
|
+ //获取用户列表
|
|
|
+ getUserList() {
|
|
|
+ dataAuthInterface.userSearch({
|
|
|
+ KeyWord: ''
|
|
|
+ }).then(res => {
|
|
|
+ if(res.Ret !== 200) return
|
|
|
+ this.userList = res.Data||[]
|
|
|
+ })
|
|
|
},
|
|
|
getSelectOption(){
|
|
|
//获取终端编码列表
|
|
@@ -204,12 +251,17 @@ export default {
|
|
|
|
|
|
this.terminalCodeList=[]
|
|
|
this.selectOption = {
|
|
|
-
|
|
|
+ frequency:'',
|
|
|
+ user:'',
|
|
|
+ classify:'',
|
|
|
+ state:'',
|
|
|
+ terminalCode:''
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
mounted(){
|
|
|
this.getSourceList()
|
|
|
+ this.getUserList()
|
|
|
}
|
|
|
};
|
|
|
</script>
|