[add] 冻结
This commit is contained in:
@@ -140,8 +140,8 @@
|
||||
<a-row :gutter='24'>
|
||||
<a-col :span='12'>
|
||||
<a-form-model-item ref='region' :label="$t('FreezeConfiguration')" prop='region'>
|
||||
<a-select :placeholder="$t('PleaseSelect')+$t('FreezeConfiguration')" v-model="Dateline.querySdt">
|
||||
<a-select-option v-for="(item, key) in querySdtList" :key="key" :value="item.value">
|
||||
<a-select :placeholder="$t('PleaseSelect')+$t('FreezeConfiguration')" v-model="Dateline.paramsConfig">
|
||||
<a-select-option v-for="(item, key) in FreezeList" :key="key" :value="item.value">
|
||||
<span style="display: inline-block;width: 100%" :title=" item.label ">
|
||||
{{ item.label }}
|
||||
</span>
|
||||
@@ -264,7 +264,8 @@ export default {
|
||||
xs: { span: 24 },
|
||||
sm: { span: 7 }
|
||||
},
|
||||
rules: {}
|
||||
rules: {},
|
||||
FreezeList: [], // 冻结字段
|
||||
}
|
||||
},
|
||||
props: {
|
||||
@@ -332,7 +333,37 @@ export default {
|
||||
},
|
||||
// 冻结配置提交
|
||||
handleSubmitFreeze() {
|
||||
this.areaVisibleFreeze = false
|
||||
let _this = this
|
||||
let param = {paramsManifestId: this.paramsManifest.id, paramsConfigIds: this.Dateline.paramsConfig}
|
||||
axios({
|
||||
url: '/jero-boot/params/collectManifest/lockConfigColumn',
|
||||
method: 'post',
|
||||
data: param,
|
||||
transformRequest: [function (data) {
|
||||
let ret = ''
|
||||
for (let it in data) {
|
||||
ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
|
||||
}
|
||||
return ret
|
||||
}],
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
'X-Access-Token':_this.token
|
||||
}
|
||||
})
|
||||
.then( (res) =>{
|
||||
console.log(res)
|
||||
if (res.data.success) {
|
||||
_this.$message.success(res.data.result)
|
||||
this.areaVisibleFreeze = false
|
||||
this.$refs.CollectionTabel.getTableList()
|
||||
}else{
|
||||
_this.$message.warning(res.data.result)
|
||||
}
|
||||
})
|
||||
.catch( (error) =>{
|
||||
console.log(error);
|
||||
});
|
||||
},
|
||||
// 冻结配置取消
|
||||
cancleImportsFreeze() {
|
||||
@@ -340,8 +371,7 @@ export default {
|
||||
},
|
||||
getFreeze() {
|
||||
let _this = this
|
||||
console.log(this.paramsManifest,'this.paramsManifest,')
|
||||
let param = {paramsManifestId: this.$route.query.id, configFlag: 2}
|
||||
let param = {paramsManifestId: this.paramsManifest.id, configFlag: 2}
|
||||
axios({
|
||||
url: '/jero-boot/params/collectManifest/getConfigLableList',
|
||||
method: 'post',
|
||||
@@ -361,10 +391,7 @@ export default {
|
||||
.then( (res) =>{
|
||||
console.log(res)
|
||||
if (res.data.success) {
|
||||
_this.$message.success(res.data.result)
|
||||
_this.areaVisible = false
|
||||
_this.getTableList()
|
||||
_this.selectedRowKeysValue=[]
|
||||
this.FreezeList = res.data.result
|
||||
}else{
|
||||
_this.$message.warning(res.data.result)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user