update 国内标准、选择标准抽屉
This commit is contained in:
+1
-1
@@ -121,7 +121,7 @@ const editCategoryItem = (params) => postAction('/sys/category/edit', params)
|
||||
const getFileInfo = (params) => getAction('/sys/oss/file/queryById', params)
|
||||
|
||||
// 标准选择框,分页查询标准数据
|
||||
const getStandardList = (params) => getAction('', params)
|
||||
const getStandardList = (params) => getAction('/laws/standard/common/getManyStandardSelectionBox', params)
|
||||
|
||||
// 内部工作组,左侧树查询
|
||||
const getWorkGroupTreeList = (params) => getAction('/sys/lawsWorkingGroup/list', params)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
@primary-color: #D52C26;
|
||||
/* 页面不出全局滚动条的高度,如果在vue文件使用,就只能在style里引入common.less */
|
||||
/*59px是用户信息那块,52px是标签,24px是上下的留白*/
|
||||
@page-content-h: calc(100vh - 59px - 52px - 24px);
|
||||
/*59px是用户信息那块,52px是标签,12px是上下的留白*/
|
||||
@page-content-h: calc(100vh - 59px - 52px - 12px);
|
||||
|
||||
/*列表上方操作按钮区域*/
|
||||
/*.ant-card-body .table-operator {
|
||||
|
||||
@@ -76,6 +76,16 @@
|
||||
/>
|
||||
</a-form-item>
|
||||
</template>
|
||||
<!-- 年份选择 -->
|
||||
<template
|
||||
v-if="item.fieldShowType === FieldType.YEAR_PICKER.value">
|
||||
<a-form-item :label="item.dbFieldTxt" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||
<j-date show-type="year"
|
||||
v-model="queryParam[item.dbFieldName]"
|
||||
date-format="YYYY"
|
||||
:placeholder="$t('pleaseSelect')+item.dbFieldTxt"/>
|
||||
</a-form-item>
|
||||
</template>
|
||||
</a-col>
|
||||
<template v-if="searchList.length > minLength && toggleSearchStatus">
|
||||
<a-col :md="(24 / (minLength + 1))" :sm="(24 / minLength)" v-for="(item) in searchList.slice(minLength)" :key="item.id" style="line-height: 48px">
|
||||
|
||||
@@ -34,8 +34,8 @@
|
||||
</div>
|
||||
<a-table
|
||||
:columns="columns"
|
||||
rowKey="serial_number"
|
||||
:scroll="{x: 1500}"
|
||||
rowKey="standardNumber"
|
||||
:scroll="{x: 900}"
|
||||
:data-source="dataList"
|
||||
:pagination="ipagination"
|
||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
||||
@@ -101,23 +101,23 @@ export default {
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('number'),
|
||||
dataIndex: 'serial_number',
|
||||
dataIndex: 'standardNumber',
|
||||
ellipsis: true,
|
||||
align: 'left',
|
||||
width: 480
|
||||
align: 'center',
|
||||
width: 150
|
||||
},
|
||||
{
|
||||
title: this.$t('title'),
|
||||
dataIndex: 'title',
|
||||
dataIndex: 'standardName',
|
||||
ellipsis: true,
|
||||
align: 'left',
|
||||
width: 480
|
||||
align: 'center',
|
||||
width: 150
|
||||
},
|
||||
{
|
||||
title: this.$t('textStatus'),
|
||||
dataIndex: 'state',
|
||||
align: 'left',
|
||||
width: 480
|
||||
dataIndex: 'standardState_dictText',
|
||||
align: 'center',
|
||||
width: 150
|
||||
}
|
||||
],
|
||||
dataList: []
|
||||
@@ -171,7 +171,7 @@ export default {
|
||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||
// let content = JSON.parse(JSON.stringify(this.selectedRowList))
|
||||
this.selectedRowList.forEach(res => {
|
||||
serialNumber.push(res.serial_number)
|
||||
serialNumber.push(res.standardNumber)
|
||||
replaceStandardId.push(res.id)
|
||||
})
|
||||
this.$emit('input', serialNumber.join(','))
|
||||
|
||||
@@ -180,10 +180,7 @@ export const JeroListMixin = {
|
||||
if (this.selectedRowKeys.length <= 0) {
|
||||
this.$message.warning(this.$t('selectARecord'))
|
||||
} else {
|
||||
let ids = ''
|
||||
for (let a = 0; a < this.selectedRowKeys.length; a++) {
|
||||
ids += this.selectedRowKeys[a] + ','
|
||||
}
|
||||
const ids = this.selectedRowKeys.join(',')
|
||||
const that = this
|
||||
this.$confirm({
|
||||
title: this.$t('confirmBatchDeletion'),
|
||||
|
||||
@@ -120,6 +120,7 @@
|
||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
||||
:pagination="ipagination"
|
||||
:scroll="{x: '100%'}"
|
||||
:loading="loading"
|
||||
@change="tableOnChange">
|
||||
|
||||
<!-- 标准编号-->
|
||||
|
||||
Reference in New Issue
Block a user