修改排序
This commit is contained in:
@@ -263,13 +263,15 @@
|
||||
getAction(this.url.seachList, params).then((res) => {
|
||||
if (res.success) {
|
||||
this.searchList = res.result
|
||||
console.log(this.searchQueryList)
|
||||
if (this.searchQueryList && this.searchQueryList.length > 0) {
|
||||
console.log(this.searchList)
|
||||
for (let i = 0; i < this.searchList.length; i++) {
|
||||
if (this.searchList[i].db_field_name == 'issue_time') {
|
||||
this.searchList.splice(i, 1)
|
||||
i--
|
||||
}
|
||||
if (this.searchList[i].db_field_name == 'title') {
|
||||
if (this.searchList[i].db_field_name == 'title' || this.searchList[i].db_field_name == 'title_en') {
|
||||
let data = this.searchList[i + 1]
|
||||
this.searchList[i + 1] = this.searchQueryList[0]
|
||||
this.searchList.push(data)
|
||||
|
||||
@@ -104,6 +104,29 @@
|
||||
@change="onChangedatet"></a-range-picker>
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col :md="6" :sm="8">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text" :title="$t('statisticalNodes')">
|
||||
<span>{{ $t('statisticalNodes') }}</span>
|
||||
</div>
|
||||
<a-select :placeholder="$t('PleaseSelect')+$t('statisticalNodes')"
|
||||
allowClear
|
||||
class="box-input"
|
||||
show-search
|
||||
optionFilterProp="label"
|
||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
||||
v-model="queryParam.firstLevelDutyTerritory">
|
||||
<a-select-option v-for="(item, key) in firstLevelDutyTerritoryList"
|
||||
:key="key"
|
||||
:label="item.key"
|
||||
:value="item.key">
|
||||
<span style="display: inline-block;width: 100%" :title=" item.key ">
|
||||
{{ item.key }}
|
||||
</span>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
</div>
|
||||
</a-col>
|
||||
</template>
|
||||
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
|
||||
<a-col :md="6" :sm="24">
|
||||
@@ -1043,7 +1066,8 @@
|
||||
text: this.$t('areaOfResponsibility'),
|
||||
dictCode: 'duty_territory'//只要 dictCode 有值,无论 type 是什么,都显示为字典下拉框
|
||||
}
|
||||
]
|
||||
],
|
||||
firstLevelDutyTerritoryList:[],
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -1058,6 +1082,7 @@
|
||||
this.isTrue = this.$route.query.title == '市场清单详情' ? false : true
|
||||
this.getHeader()
|
||||
this.getList()
|
||||
this.getFirstLevelDutyTerritory()
|
||||
},
|
||||
computed: {
|
||||
columns() {
|
||||
@@ -1079,6 +1104,15 @@
|
||||
},
|
||||
methods: {
|
||||
...mapGetters(['userInfo']),
|
||||
getFirstLevelDutyTerritory() {
|
||||
getAction('/sys/dictItem/getFirstLevelDutyTerritory', {}).then((res) => {
|
||||
if (res.success) {
|
||||
this.firstLevelDutyTerritoryList = res.result
|
||||
} else {
|
||||
this.firstLevelDutyTerritoryList = []
|
||||
}
|
||||
})
|
||||
},
|
||||
sVisible() {
|
||||
this.getDataAdmin()
|
||||
},
|
||||
|
||||
@@ -461,7 +461,7 @@
|
||||
<batSetting :url="url" ref="batSettingRef" :roleSwitchingCode="roleSwitchingCode" @batSettingForm="batSettingForm"/>
|
||||
<addModel ref="addModelRef" @addModelForm="addModelForm"/>
|
||||
<modifyHistory ref="modifyHistoryRef"/>
|
||||
<uploadFile ref="uploadFile" :isMultiple="true" :disabled="disabled" @uploadSuccess="uploadSuccess"></uploadFile>
|
||||
<uploadFile ref="uploadFile" :isMultiple="false" :disabled="disabled" @uploadSuccess="uploadSuccess"></uploadFile>
|
||||
<TaskListModel @TaskListModelList="transferListForm" ref="TaskListModelRef"/>
|
||||
<referenceDeliverablesList ref="referenceDeliverablesListRef" @referenceDeliverablesListForm="transferListForm"/>
|
||||
<SelectedBy ref="SelectedByRef" :isSingleChoice="true"
|
||||
|
||||
@@ -113,6 +113,7 @@
|
||||
:columns="columns"
|
||||
rowKey="id"
|
||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
||||
@change="tableOnChange"
|
||||
:pagination="false"
|
||||
:scroll="{x:800,y: 500}"
|
||||
:data-source="dataSource"
|
||||
@@ -355,6 +356,7 @@
|
||||
align: 'left',
|
||||
dataIndex: 'dutyTerritory_dictText',
|
||||
ellipsis: true,
|
||||
sorter:true,
|
||||
width: 100
|
||||
},
|
||||
{
|
||||
@@ -602,6 +604,17 @@
|
||||
this.$refs.SelectedByRef.submitLoading = false
|
||||
this.getUserAllDutyTerritoryList()
|
||||
},
|
||||
tableOnChange(pagination, filters, sorter) {
|
||||
this.orderBy = sorter.order == 'ascend' ? '1' : '2'
|
||||
if (sorter.columnKey == 'flowTypeShow') {
|
||||
this.orderByField = 'flowType'
|
||||
} else if (sorter.columnKey == 'taskDefinitionKeyName') {
|
||||
this.orderByField = 'taskDefinitionKey'
|
||||
} else {
|
||||
this.orderByField = sorter.columnKey
|
||||
}
|
||||
this.getList()
|
||||
},
|
||||
getUserAllDutyTerritoryList() {
|
||||
let query = {
|
||||
projectLibraryId: this.$route.query.id,
|
||||
|
||||
+34
@@ -79,6 +79,29 @@
|
||||
:triggerChange="false" :dictCode="'duty_territory'"/>
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col :md="6" :sm="8">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text" :title="$t('statisticalNodes')">
|
||||
<span>{{ $t('statisticalNodes') }}</span>
|
||||
</div>
|
||||
<a-select :placeholder="$t('PleaseSelect')+$t('statisticalNodes')"
|
||||
allowClear
|
||||
class="box-input"
|
||||
show-search
|
||||
optionFilterProp="label"
|
||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
||||
v-model="queryParam.firstLevelDutyTerritory">
|
||||
<a-select-option v-for="(item, key) in firstLevelDutyTerritoryList"
|
||||
:key="key"
|
||||
:label="item.key"
|
||||
:value="item.key">
|
||||
<span style="display: inline-block;width: 100%" :title=" item.key ">
|
||||
{{ item.key }}
|
||||
</span>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
</div>
|
||||
</a-col>
|
||||
</template>
|
||||
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
|
||||
<a-col :md="6" :sm="24">
|
||||
@@ -320,6 +343,7 @@
|
||||
},
|
||||
queryParam: {},
|
||||
orderByField: '',
|
||||
firstLevelDutyTerritoryList:[],
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('category'),
|
||||
@@ -429,10 +453,20 @@
|
||||
this.isTrue = this.$route.query.title == '市场认证清单详情' ? false : true
|
||||
this.isFalse = this.$route.query.title == '市场认证清单详情' ? true : false
|
||||
this.getList()
|
||||
this.getFirstLevelDutyTerritory()
|
||||
},
|
||||
computed: {},
|
||||
methods: {
|
||||
...mapGetters(['userInfo']),
|
||||
getFirstLevelDutyTerritory() {
|
||||
getAction('/sys/dictItem/getFirstLevelDutyTerritory', {}).then((res) => {
|
||||
if (res.success) {
|
||||
this.firstLevelDutyTerritoryList = res.result
|
||||
} else {
|
||||
this.firstLevelDutyTerritoryList = []
|
||||
}
|
||||
})
|
||||
},
|
||||
onSelectChange(value) {
|
||||
this.selectedRowKeys = value
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user