[add] 认证增删改查

This commit is contained in:
zhaomeijing
2022-04-21 19:47:57 +08:00
parent c51c037e9a
commit 7f8ac4bd7b
2 changed files with 175 additions and 72 deletions
+20 -21
View File
@@ -4,10 +4,10 @@
<a-row :gutter="24">
<a-col :md="6" :sm="8">
<div class="box-title-text">
<div class="title-text" :title="$t('zoneOfApplication')">
<div class="title-text" :title="$t('entryName')">
<span>{{$t('zoneOfApplication')}}</span>
</div>
<j-dict-select-tag class="box-input" v-model="queryParam.region"
<j-dict-select-tag class="box-input" v-model="queryParam.targetMarket"
:placeholder="$t('PleaseSelect')+$t('zoneOfApplication')"
:type="'select'"
:triggerChange="false" :dictCode="'region'"/>
@@ -15,12 +15,11 @@
</a-col>
<a-col :md="6" :sm="8">
<div class="box-title-text">
<div class="title-text" :title="$t('parameterTemplate')">
<div class="title-text" :title="$t('targetMarket')">
<span>{{$t('parameterTemplate')}}</span>
</div>
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('parameterTemplate')"
v-model="queryParam.paramsTemplateName"></a-input>
v-model="queryParam.projectName"></a-input>
</div>
</a-col>
<a-col :md="6" :sm="8">
@@ -28,8 +27,8 @@
<div class="title-text" :title="$t('status')">
<span>{{$t('status')}}</span>
</div>
<j-dict-select-tag class="box-input" v-model="queryParam.status"
:placeholder="$t('PleaseSelect')+$t('status')"
<j-dict-select-tag class="box-input" v-model="queryParam.targetMarket"
:placeholder="$t('PleaseSelect')+$t('zoneOfApplication')"
:type="'select'"
:triggerChange="false" :dictCode="'params_template_state'"/>
</div>
@@ -47,7 +46,7 @@
<a-icon type="plus"/>
{{$t('add')}}
</div>
<div @click="handleCode" class="operator-text" v-has="'document:getInfoById'">
<div @click="handlecody" class="operator-text" v-has="'document:getInfoById'">
<a-icon type="copy"/>
{{$t('copy')}}
</div>
@@ -74,6 +73,7 @@
<span slot="operation" slot-scope="text,record">
<a class="text-operation" @click="edit(record)">{{$t('edit')}}</a>
<a class="text-operation" @click="deleteLib(record)">{{$t('deleteLib')}}</a>
<!-- <a class="text-operation" @click="entryNameClick(record)">{{$t('see')}}</a>-->
</span>
</a-table>
</div>
@@ -99,7 +99,7 @@ import addModel from './components/addModel'
export default {
name: 'index',
components: {
addModel
addModel,
},
data() {
return {
@@ -126,21 +126,19 @@ export default {
{
title: this.$t('zoneOfApplication'),
align: 'center',
width: '10%',
dataIndex: 'region_dictText',
// width: 10%,
},
{
title: this.$t('parameterTemplate'),
align: 'center',
dataIndex: 'paramsTemplateName',
scopedSlots: { customRender: 'projectName' },
// width: 10%,
scopedSlots: { customRender: 'projectName' }
},
{
title: this.$t('contentDescription'),
align: 'center',
dataIndex: 'description',
// width: 10%
dataIndex: 'description'
},
{
title: this.$t('status'),
@@ -150,11 +148,13 @@ export default {
{
title: this.$t('createTime'),
align: 'center',
width: '10%',
dataIndex: 'createTime'
},
{
title: this.$t('updateTime'),
align: 'center',
width: '10%',
dataIndex: 'updateTime'
},
{
@@ -183,7 +183,7 @@ export default {
this.$refs.addModelRef.addModel()
},
// 复制
handleCode() {
handlecody(){
},
//批量删除
@@ -232,11 +232,11 @@ export default {
},
//虚拟清单名称事件
entryNameClick(item) {
// let newUrl = this.$router.resolve({
// path: '/ProjectDetails',
// query: item
// })
// window.open(newUrl.href, '_blank')
let newUrl = this.$router.resolve({
path: '/ProjectDetails',
query: item
})
window.open(newUrl.href, '_blank')
},
searchQuery() {
this.pageNo = 1
@@ -273,7 +273,6 @@ export default {
this.loading = true
getAction(this.url.list, query).then((res) => {
if (res.success) {
console.log(res.result)
if (res.result.current > 1 && res.result.records.length == 0) {
this.pageNo = res.result.current - 1
this.getList()