|
@@ -22,10 +22,6 @@
|
|
|
<el-option v-for="item in SourceList" :key="item.Source"
|
|
|
:label="item.SourceName" :value="item.Source"/>
|
|
|
</el-select>
|
|
|
- <!-- <el-select :placeholder="$t('SystemManage.DataRefresh.select_source_pld')" v-model="SubSource" v-if="SubSourceList.length" @change="handleSubSourceChange">
|
|
|
- <el-option v-for="item in SubSourceList" :key="item.Source"
|
|
|
- :label="$i18nt.locale==='zh'?item.SubSourceName:item.SubSourceNameEn||item.SubSourceName" :value="item.SubSource"/>
|
|
|
- </el-select> -->
|
|
|
<el-button type="primary" @click="showDialog(true)"
|
|
|
v-permission="permissionBtn.sysDepartPermission.refresh_default"
|
|
|
>{{$t('SystemManage.DataRefresh.default_time')}}</el-button>
|
|
@@ -119,6 +115,9 @@
|
|
|
<span v-if="column.key==='IsStop'">
|
|
|
{{row.IsStop? $t('SystemManage.DataRefresh.pause_op') : $t('SystemManage.DataRefresh.enable_op') }}
|
|
|
</span>
|
|
|
+ <span v-else-if="column.key==='EndDate'">
|
|
|
+ {{row.EndDate ? row.EndDate.substring(0,10) : ''}}
|
|
|
+ </span>
|
|
|
<span v-else>
|
|
|
{{row[column.key]}}
|
|
|
</span>
|
|
@@ -274,8 +273,6 @@ export default {
|
|
|
settingTab:'time',
|
|
|
Source:'',
|
|
|
SourceList:[],
|
|
|
- SubSource:'',
|
|
|
- SubSourceList:[],
|
|
|
|
|
|
terminalCodeList:[],
|
|
|
edbClassifyList:[],
|
|
@@ -449,10 +446,6 @@ export default {
|
|
|
this.$message.warning(this.$t('SystemManage.DataRefresh.select_source_pld'))
|
|
|
return
|
|
|
}
|
|
|
- /* if(this.SubSourceList.length&&!this.SubSource){
|
|
|
- this.$message.warning("$t('SystemManage.DataRefresh.complete_data_source')")
|
|
|
- return
|
|
|
- } */
|
|
|
//SMM不带频度
|
|
|
if(this.Source===11){
|
|
|
this.defaultFrequency=''
|
|
@@ -477,7 +470,6 @@ export default {
|
|
|
dataRefreshInterface.getDefaultConfig({
|
|
|
Frequency:this.defaultFrequency,
|
|
|
Source:Number(this.Source),
|
|
|
- SubSource:Number(this.SubSource)
|
|
|
}).then(res=>{
|
|
|
this.defaultDialogLoading = false
|
|
|
if(res.Ret!==200) return
|
|
@@ -505,7 +497,6 @@ export default {
|
|
|
dataRefreshInterface.getSimgleEdbRefreshTime({
|
|
|
EdbInfoId,
|
|
|
Source:Number(this.Source),
|
|
|
- SubSource:Number(this.SubSource)
|
|
|
}).then(res=>{
|
|
|
this.defaultDialogLoading = false
|
|
|
if(res.Ret!==200) return
|
|
@@ -535,23 +526,13 @@ export default {
|
|
|
//一级数据源改变时,二级数据源和筛选项也重新赋值
|
|
|
handleSourceChange(){
|
|
|
const source = this.SourceList.find(i=>i.Source===this.Source)||{Child:[]}
|
|
|
- this.SubSourceList = source.Child
|
|
|
- this.SubSource=''
|
|
|
- this.hasSelectOption = ![34,11].includes(this.Source)
|
|
|
+ this.hasSelectOption = true
|
|
|
if(this.hasSelectOption){
|
|
|
this.resetSelect()
|
|
|
this.tableData = []
|
|
|
}
|
|
|
- //如果没有二级数据源,则请求表格筛选项数据;钢联化工,SMM没有筛选项数据
|
|
|
- if(!this.SubSourceList.length&&this.hasSelectOption){
|
|
|
- this.getSelectOption()
|
|
|
- this.selectOptionChange()
|
|
|
- }
|
|
|
- //如果有二级数据源,默认选中第一个
|
|
|
- if(this.SubSourceList.length){
|
|
|
- this.SubSource = this.SubSourceList[0].SubSource
|
|
|
- this.handleSubSourceChange()
|
|
|
- }
|
|
|
+ this.getSelectOption()
|
|
|
+ this.selectOptionChange()
|
|
|
},
|
|
|
handleSubSourceChange(){
|
|
|
this.getSelectOption()
|
|
@@ -620,7 +601,6 @@ export default {
|
|
|
const classifyId = [...new Set(classifyArr.join(',').split(','))]
|
|
|
const res = await dataRefreshInterface.getEdbTableList({
|
|
|
Source:Number(this.Source),
|
|
|
- SubSource:Number(this.SubSource),
|
|
|
ClassifyId:classifyId.join(','),
|
|
|
TerminalCode:terminalCode,
|
|
|
SysUserId:Array.isArray(user)?user.join(','):user,
|
|
@@ -784,7 +764,6 @@ export default {
|
|
|
const classifyId = [...new Set(classifyArr.join(',').split(','))]
|
|
|
dataRefreshInterface.setRefreshTime({
|
|
|
Source:Number(this.Source),
|
|
|
- SubSource:Number(this.SubSource),
|
|
|
ClassifyId:classifyId.join(','),
|
|
|
TerminalCode:terminalCode,
|
|
|
SysUserId:Array.isArray(user)?user.join(','):user,
|
|
@@ -805,7 +784,6 @@ export default {
|
|
|
setDefaultTime(list){
|
|
|
dataRefreshInterface.setDefaultTime({
|
|
|
Source:Number(this.Source),
|
|
|
- SubSource:Number(this.SubSource),
|
|
|
Frequency:this.defaultFrequency,
|
|
|
List:list
|
|
|
}).then(res=>{
|
|
@@ -821,7 +799,6 @@ export default {
|
|
|
const classifyId = [...new Set(classifyArr.join(',').split(','))]
|
|
|
dataRefreshInterface.setRefreshStatus({
|
|
|
Source:Number(this.Source),
|
|
|
- SubSource:Number(this.SubSource),
|
|
|
ClassifyId:classifyId.join(','),
|
|
|
TerminalCode:terminalCode,
|
|
|
SysUserId:Array.isArray(user)?user.join(','):user,
|