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