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