[update] 上宝库
This commit is contained in:
@@ -45,11 +45,8 @@
|
||||
{{ text && text.length > 15 ? text.slice(0, 14) + '...' : text }}
|
||||
</a>
|
||||
</span>
|
||||
<span slot="titleName" slot-scope="text,record" :title="text">
|
||||
{{ text && text.length > 30 ? text.slice(0, 29) + '...' : text }}
|
||||
</span>
|
||||
<span slot="operation" slot-scope="text,record">
|
||||
<a class="text-operation" @click="edit(record)">{{$t('Exporthistory')}}</a>
|
||||
<a class="text-operation" @click="handlecody(record)">{{$t('Exporthistory')}}</a>
|
||||
<a class="text-operation" @click="deleteLib(record)">{{$t('See')}}</a>
|
||||
</span>
|
||||
</a-table>
|
||||
@@ -65,37 +62,16 @@
|
||||
@showSizeChange="SizeChange"
|
||||
/>
|
||||
</div>
|
||||
<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">
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="24">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text add-text-text">
|
||||
<span class="Required">*</span>
|
||||
<span class="title-text-text"
|
||||
:title="$t('templateName')">{{$t('templateName')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="paramsTemplateName">
|
||||
<a-input class="box-input add-input"
|
||||
v-model="formInline.paramsTemplateName"
|
||||
:placeholder="$t('PleaseEnter')+$t('templateName')"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form-model>
|
||||
<div class="drawer-bootom-button">
|
||||
<a-button style="margin-right: .8rem" @click="handleCancel">{{$t('cancel')}}</a-button>
|
||||
<a-button @click="handleSubmit" type="primary" :loading="confirmLoading">{{$t('submit')}}</a-button>
|
||||
</div>
|
||||
<!-- 复制参数模板-->
|
||||
<a-modal class="show-drawer" :title="titleTag" width="900px" v-model="drawerVisible" :footer="null">
|
||||
<export-history v-if='drawerVisible' @areaVisible='drawerVisible = false'></export-history>
|
||||
</a-modal>
|
||||
</a-card>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import ExportHistory from '@/components/exporthistory/index'
|
||||
import { getAction, postAction, downloadFile, deleteAction } from '@/api/manage'
|
||||
import addModel from './components/addModel'
|
||||
import axios from 'axios'
|
||||
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
||||
import eventBUs from '../../../common/event'
|
||||
@@ -103,7 +79,7 @@ import Vue from 'vue'
|
||||
export default {
|
||||
name: 'index',
|
||||
components: {
|
||||
addModel,
|
||||
ExportHistory
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -123,11 +99,6 @@ export default {
|
||||
confirmLoading: false,
|
||||
url: {
|
||||
list: 'params/report/page',
|
||||
add: 'params/template/add',
|
||||
edit: 'params/template/edit',
|
||||
deleteBatch: 'params/template/delete',
|
||||
deleteAll: 'params/template/deleteBatch',
|
||||
copy: 'params/template/copyById'
|
||||
},
|
||||
total: 0,
|
||||
pageSize: 10,
|
||||
@@ -161,6 +132,8 @@ export default {
|
||||
queryParam: {},
|
||||
areaVisible:false,
|
||||
paramsTemplateName: '',
|
||||
drawerVisible: false,
|
||||
titleTag: '导出历史'
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -196,6 +169,10 @@ export default {
|
||||
this.selectedRowKeys = value
|
||||
this.selectedRowKeysArray = this.selectedRowKeys.join(',')
|
||||
},
|
||||
// 复制
|
||||
handlecody(){
|
||||
this.drawerVisible=true
|
||||
},
|
||||
hideModal(){
|
||||
this.visible = false;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user