[update] 上报库

This commit is contained in:
zhaomeijing
2022-06-22 14:26:59 +08:00
parent fa9c39394b
commit d58bb131d4
4 changed files with 24 additions and 43 deletions
+2 -1
View File
@@ -963,5 +963,6 @@ module.exports = {
uploadedBy:'Uploaded by',
uploadMonthly:'Upload monthly',
// 上报库
Enable: '启用',
Enable: 'Enable',
Latestupdatetime: 'Latest update time',
}
+1 -1
View File
@@ -969,5 +969,5 @@ module.exports = {
uploadMonthly:'上传月报',
// 上报库
Enable: '启用',
Latestupdatetime: '最新更新时间',
}
@@ -33,8 +33,8 @@
<span class="Required">*</span>
<span class="title-text-text" :title="$t('status')">{{$t('status')}}</span>
</div>
<a-form-model-item class="itemModel" prop="status">
<a-select allowClear :placeholder="$t('PleaseSelect')+$t('status')" v-model='formInline.status'>
<a-form-model-item class="itemModel" prop="state">
<a-select allowClear :placeholder="$t('PleaseSelect')+$t('status')" v-model='formInline.state'>
<a-select-option :key="'0'" :value="'0'">{{$t('Enable')}}
</a-select-option>
<a-select-option :key="'1'" :value="'1'">{{$t('disable')}}
@@ -137,7 +137,7 @@ export default {
this.visible = true
this.title = '新增'
this.formInline = {}
this.formInline.status = '0'
this.formInline.state = '0'
this.formInline = {...this.formInline}
this.$nextTick(() => {
this.$refs['ruleForm'].clearValidate()
@@ -24,10 +24,6 @@
<a-icon type="plus"/>
{{$t('newlyAdded')}}
</div>
<div @click="handlecody" class="operator-text" v-has="'params:template:copy'">
<a-icon type="copy"/>
{{$t('copy')}}
</div>
<div @click="handleDel" class="operator-text" v-has="'params:template:delete'">
<a-icon type="delete"/>
{{$t('BatchDelete')}}
@@ -46,12 +42,7 @@
:columns="columns"
>
<span slot="projectName" slot-scope="text,record" :title="text">
<a @click="entryNameClick(record)">
{{ 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 }}
{{ text && text.length > 100 ? text.slice(0, 99) + '...' : text }}
</span>
<span slot="operation" slot-scope="text,record">
<a class="text-operation" v-has="'params:template:edit'" @click="edit(record)">{{$t('edit')}}</a>
@@ -138,17 +129,17 @@ export default {
pageNo: 1,
title: '新增',
columns: [
{
title: this.$t('serialNumber'),
dataIndex: '',
key: 'rowIndex',
width: 50,
ellipsis: true,
align: 'center',
customRender: function(t, r, index) {
return parseInt(index) + 1
}
},
// {
// title: this.$t('serialNumber'),
// dataIndex: '',
// key: 'rowIndex',
// width: 50,
// ellipsis: true,
// align: 'center',
// customRender: function(t, r, index) {
// return parseInt(index) + 1
// }
// },
{
title: this.$t('templateName'),
align: 'center',
@@ -158,22 +149,22 @@ export default {
title: this.$t('contentDescription'),
align: 'center',
dataIndex: 'description',
scopedSlots: { customRender: 'titleName' }
scopedSlots: { customRender: 'projectName' }
},
{
title: this.$t('status'),
align: 'center',
width: '5%',
dataIndex: 'createTime'
dataIndex: 'state'
},
{
title: this.$t('createTime'),
title: this.$t('creater'),
align: 'center',
width: '10%',
dataIndex: 'createTime'
dataIndex: 'createBy'
},
{
title: this.$t('updateTime'),
title: this.$t('Latestupdatetime'),
align: 'center',
width: '10%',
dataIndex: 'updateTime'
@@ -228,17 +219,6 @@ export default {
handleAdd() {
this.$refs.addModelRef.addModel()
},
// 复制
handlecody(){
if (this.selectedRowKeys.length > 1) {
this.$message.warning(this.$t('OnlyOneSelected'))
} else if(this.selectedRowKeys.length == 0){
this.$message.warning(this.$t('pleaseSelectData'))
} else {
this.areaVisible=true
this.formInline = {}
}
},
hideModal(){
this.visible = false;
},
@@ -253,7 +233,7 @@ export default {
content: _this.$t('ConfirmBatchDeletion'),
onOk() {
axios({
url: '/jero-boot/params/template/deleteBatch',
url: '/jero-boot/report/exportTemplate/deleteBatch',
method: 'post',
data: param,
transformRequest: [function (data) {