[add] 参数模板
This commit is contained in:
@@ -4,10 +4,10 @@
|
|||||||
<a-row :gutter="24">
|
<a-row :gutter="24">
|
||||||
<a-col :md="6" :sm="8">
|
<a-col :md="6" :sm="8">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text" :title="$t('entryName')">
|
<div class="title-text" :title="$t('zoneOfApplication')">
|
||||||
<span>{{$t('zoneOfApplication')}}</span>
|
<span>{{$t('zoneOfApplication')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<j-dict-select-tag class="box-input" v-model="queryParam.targetMarket"
|
<j-dict-select-tag class="box-input" v-model="queryParam.region"
|
||||||
:placeholder="$t('PleaseSelect')+$t('zoneOfApplication')"
|
:placeholder="$t('PleaseSelect')+$t('zoneOfApplication')"
|
||||||
:type="'select'"
|
:type="'select'"
|
||||||
:triggerChange="false" :dictCode="'region'"/>
|
:triggerChange="false" :dictCode="'region'"/>
|
||||||
@@ -15,11 +15,11 @@
|
|||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="6" :sm="8">
|
<a-col :md="6" :sm="8">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text" :title="$t('targetMarket')">
|
<div class="title-text" :title="$t('parameterTemplate')">
|
||||||
<span>{{$t('parameterTemplate')}}</span>
|
<span>{{$t('parameterTemplate')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('parameterTemplate')"
|
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('parameterTemplate')"
|
||||||
v-model="queryParam.projectName"></a-input>
|
v-model="queryParam.description"></a-input>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="6" :sm="8">
|
<a-col :md="6" :sm="8">
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
<div class="title-text" :title="$t('status')">
|
<div class="title-text" :title="$t('status')">
|
||||||
<span>{{$t('status')}}</span>
|
<span>{{$t('status')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<j-dict-select-tag class="box-input" v-model="queryParam.targetMarket"
|
<j-dict-select-tag class="box-input" v-model="queryParam.state"
|
||||||
:placeholder="$t('PleaseSelect')+$t('zoneOfApplication')"
|
:placeholder="$t('PleaseSelect')+$t('zoneOfApplication')"
|
||||||
:type="'select'"
|
:type="'select'"
|
||||||
:triggerChange="false" :dictCode="'params_template_state'"/>
|
:triggerChange="false" :dictCode="'params_template_state'"/>
|
||||||
@@ -194,7 +194,7 @@ export default {
|
|||||||
content: _this.$t('ConfirmBatchDeletion'),
|
content: _this.$t('ConfirmBatchDeletion'),
|
||||||
onOk() {
|
onOk() {
|
||||||
let idList = JSON.parse(JSON.stringify(_this.selectedRowKeys))
|
let idList = JSON.parse(JSON.stringify(_this.selectedRowKeys))
|
||||||
deleteAction(_this.url.deleteAll, { ids: idList.join(',') }).then((res) => {
|
postAction(_this.url.deleteAll, { ids: idList.join(',') }).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||||
_this.selectedRowKeys = []
|
_this.selectedRowKeys = []
|
||||||
@@ -219,7 +219,7 @@ export default {
|
|||||||
this.$confirm({
|
this.$confirm({
|
||||||
content: _this.$t('ConfirmDelete'),
|
content: _this.$t('ConfirmDelete'),
|
||||||
onOk() {
|
onOk() {
|
||||||
deleteAction(_this.url.deleteBatch, { id: val.id }).then((res) => {
|
getAction(_this.url.deleteBatch, { id: val.id }).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||||
_this.getList()
|
_this.getList()
|
||||||
@@ -278,7 +278,9 @@ export default {
|
|||||||
this.getList()
|
this.getList()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
console.log(res.result.records,'res.result.recordsres.result.records')
|
||||||
this.dataSource = res.result.records || []
|
this.dataSource = res.result.records || []
|
||||||
|
// console.log(this.dataSource,'res.result.recordsres.result.records')
|
||||||
this.total = res.result.total
|
this.total = res.result.total
|
||||||
this.loading = false
|
this.loading = false
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user