修改参数模版发布,加遮罩
This commit is contained in:
@@ -91,6 +91,7 @@
|
||||
@showSizeChange="SizeChange"
|
||||
/>
|
||||
</div>
|
||||
<JLoading :loading="JLoading">{{ $t('pleaseWaitWhileRunning') }}</JLoading>
|
||||
<addModel :url="url" ref="addModelRef" @addModelList="addModelList"/>
|
||||
<a-modal class="show-copy" v-model="areaVisible" :title="$t('templateCopy')" :footer="null" @cancel="hideModal">
|
||||
<a-form-model :model="formInline" class="formAdd" :rules="rules" ref="ruleForm">
|
||||
@@ -139,6 +140,7 @@ export default {
|
||||
token:Vue.ls.get(ACCESS_TOKEN),
|
||||
loading: false,
|
||||
toggleSearchStatus: false,
|
||||
JLoading:false,
|
||||
selectedRowKeys: [],
|
||||
selectedRowKeysArray: '',
|
||||
orderBy: '1',
|
||||
@@ -299,13 +301,16 @@ export default {
|
||||
this.$confirm({
|
||||
content: item.status && item.status == '1' ? _this.$t('confirmWithdraw') : _this.$t('confirmRelease'),
|
||||
onOk() {
|
||||
_this.JLoading = true
|
||||
if (item.status && item.status == '1'){
|
||||
getAction('params/paramsInfo/withdraw', { paramsTemplateId: item.id }).then((res) => {
|
||||
if (res.success) {
|
||||
_this.$message.success(res.result)
|
||||
_this.getList()
|
||||
_this.JLoading = false
|
||||
} else {
|
||||
_this.$message.warning(res.message)
|
||||
_this.JLoading = false
|
||||
}
|
||||
})
|
||||
}else{
|
||||
@@ -313,8 +318,10 @@ export default {
|
||||
if (res.success) {
|
||||
_this.$message.success(res.result)
|
||||
_this.getList()
|
||||
_this.JLoading = false
|
||||
} else {
|
||||
_this.$message.warning(res.message)
|
||||
_this.JLoading = false
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user