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 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)
|
const getWorkGroupTreeList = (params) => getAction('/sys/lawsWorkingGroup/list', params)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
@primary-color: #D52C26;
|
@primary-color: #D52C26;
|
||||||
/* 页面不出全局滚动条的高度,如果在vue文件使用,就只能在style里引入common.less */
|
/* 页面不出全局滚动条的高度,如果在vue文件使用,就只能在style里引入common.less */
|
||||||
/*59px是用户信息那块,52px是标签,24px是上下的留白*/
|
/*59px是用户信息那块,52px是标签,12px是上下的留白*/
|
||||||
@page-content-h: calc(100vh - 59px - 52px - 24px);
|
@page-content-h: calc(100vh - 59px - 52px - 12px);
|
||||||
|
|
||||||
/*列表上方操作按钮区域*/
|
/*列表上方操作按钮区域*/
|
||||||
/*.ant-card-body .table-operator {
|
/*.ant-card-body .table-operator {
|
||||||
|
|||||||
@@ -76,6 +76,16 @@
|
|||||||
/>
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</template>
|
</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>
|
</a-col>
|
||||||
<template v-if="searchList.length > minLength && toggleSearchStatus">
|
<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">
|
<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>
|
</div>
|
||||||
<a-table
|
<a-table
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
rowKey="serial_number"
|
rowKey="standardNumber"
|
||||||
:scroll="{x: 1500}"
|
:scroll="{x: 900}"
|
||||||
:data-source="dataList"
|
:data-source="dataList"
|
||||||
:pagination="ipagination"
|
:pagination="ipagination"
|
||||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
||||||
@@ -101,23 +101,23 @@ export default {
|
|||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
title: this.$t('number'),
|
title: this.$t('number'),
|
||||||
dataIndex: 'serial_number',
|
dataIndex: 'standardNumber',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
align: 'left',
|
align: 'center',
|
||||||
width: 480
|
width: 150
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('title'),
|
title: this.$t('title'),
|
||||||
dataIndex: 'title',
|
dataIndex: 'standardName',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
align: 'left',
|
align: 'center',
|
||||||
width: 480
|
width: 150
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('textStatus'),
|
title: this.$t('textStatus'),
|
||||||
dataIndex: 'state',
|
dataIndex: 'standardState_dictText',
|
||||||
align: 'left',
|
align: 'center',
|
||||||
width: 480
|
width: 150
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
dataList: []
|
dataList: []
|
||||||
@@ -171,7 +171,7 @@ export default {
|
|||||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||||
// let content = JSON.parse(JSON.stringify(this.selectedRowList))
|
// let content = JSON.parse(JSON.stringify(this.selectedRowList))
|
||||||
this.selectedRowList.forEach(res => {
|
this.selectedRowList.forEach(res => {
|
||||||
serialNumber.push(res.serial_number)
|
serialNumber.push(res.standardNumber)
|
||||||
replaceStandardId.push(res.id)
|
replaceStandardId.push(res.id)
|
||||||
})
|
})
|
||||||
this.$emit('input', serialNumber.join(','))
|
this.$emit('input', serialNumber.join(','))
|
||||||
|
|||||||
@@ -180,10 +180,7 @@ export const JeroListMixin = {
|
|||||||
if (this.selectedRowKeys.length <= 0) {
|
if (this.selectedRowKeys.length <= 0) {
|
||||||
this.$message.warning(this.$t('selectARecord'))
|
this.$message.warning(this.$t('selectARecord'))
|
||||||
} else {
|
} else {
|
||||||
let ids = ''
|
const ids = this.selectedRowKeys.join(',')
|
||||||
for (let a = 0; a < this.selectedRowKeys.length; a++) {
|
|
||||||
ids += this.selectedRowKeys[a] + ','
|
|
||||||
}
|
|
||||||
const that = this
|
const that = this
|
||||||
this.$confirm({
|
this.$confirm({
|
||||||
title: this.$t('confirmBatchDeletion'),
|
title: this.$t('confirmBatchDeletion'),
|
||||||
|
|||||||
@@ -120,6 +120,7 @@
|
|||||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
||||||
:pagination="ipagination"
|
:pagination="ipagination"
|
||||||
:scroll="{x: '100%'}"
|
:scroll="{x: '100%'}"
|
||||||
|
:loading="loading"
|
||||||
@change="tableOnChange">
|
@change="tableOnChange">
|
||||||
|
|
||||||
<!-- 标准编号-->
|
<!-- 标准编号-->
|
||||||
|
|||||||
Reference in New Issue
Block a user