修复bug
This commit is contained in:
@@ -1946,6 +1946,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview (item) {
|
handlePreview (item) {
|
||||||
|
console.log(item);
|
||||||
let routeUrl = this.$router.resolve({
|
let routeUrl = this.$router.resolve({
|
||||||
name: 'OtherStandardDetails',
|
name: 'OtherStandardDetails',
|
||||||
params: {
|
params: {
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
<el-tab-pane label="未符合项整改数据库" name="database">
|
<el-tab-pane label="未符合项整改数据库" name="database">
|
||||||
<rectification-database></rectification-database>
|
<rectification-database></rectification-database>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="重点问题项管控" name="keynote">
|
<!-- <el-tab-pane label="重点问题项管控" name="keynote">-->
|
||||||
<key-issues></key-issues>
|
<!-- <key-issues></key-issues>-->
|
||||||
</el-tab-pane>
|
<!-- </el-tab-pane>-->
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
>
|
>
|
||||||
<el-input
|
<el-input
|
||||||
slot="reference"
|
slot="reference"
|
||||||
v-model="nonConformitySearch.responseUnitShow"
|
v-model="nonConformitySearch.responsibleUnitShow"
|
||||||
placeholder="根据责任部门查找"
|
placeholder="根据责任部门查找"
|
||||||
readonly
|
readonly
|
||||||
clearable
|
clearable
|
||||||
@@ -349,7 +349,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="typeitems">
|
<div class="typeitems">
|
||||||
<div class="itemsLeft">责任部门:</div>
|
<div class="itemsLeft">责任部门:</div>
|
||||||
<div class="itemsRight">{{item.responseUnitShow}}</div>
|
<div class="itemsRight">{{item.responsibleUnitShow}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="typeitems">
|
<div class="typeitems">
|
||||||
<div class="itemsLeft">责任工程师:</div>
|
<div class="itemsLeft">责任工程师:</div>
|
||||||
@@ -370,7 +370,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="typeitems">
|
<div class="typeitems">
|
||||||
<div class="itemsLeft">责任部门:</div>
|
<div class="itemsLeft">责任部门:</div>
|
||||||
<div class="itemsRight">{{item.responseUnitShow}}</div>
|
<div class="itemsRight">{{item.responsibleUnitShow}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="typeitems">
|
<div class="typeitems">
|
||||||
<div class="itemsLeft">责任工程师:</div>
|
<div class="itemsLeft">责任工程师:</div>
|
||||||
@@ -524,6 +524,35 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// 获取组织机构数据
|
||||||
|
getOrgTreeSource () {
|
||||||
|
this.$http.get('sys/org/getTree', {}, {
|
||||||
|
_this: this
|
||||||
|
},
|
||||||
|
res => {
|
||||||
|
if (res.ok) {
|
||||||
|
let treeNode = []
|
||||||
|
res.data.map((item, index) => {
|
||||||
|
let treeItem = {}
|
||||||
|
for (let key in item) {
|
||||||
|
if (key === 'orgName') {
|
||||||
|
treeItem.name = item[key]
|
||||||
|
} else {
|
||||||
|
treeItem[key] = item[key]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
treeNode[index] = treeItem
|
||||||
|
})
|
||||||
|
this.zNodesS = JSON.parse(JSON.stringify(treeNode))
|
||||||
|
this.zNodesSItem = JSON.parse(JSON.stringify(treeNode))
|
||||||
|
this.searchInlandNodes = JSON.parse(JSON.stringify(treeNode))
|
||||||
|
}
|
||||||
|
}, e => {})
|
||||||
|
},
|
||||||
|
treeClickSearch (treeId, treeNode) {
|
||||||
|
this.nonConformitySearch.responsibleUnit = treeNode.id
|
||||||
|
this.nonConformitySearch.responsibleUnitShow = treeNode.name
|
||||||
|
},
|
||||||
// 清空 查询条件
|
// 清空 查询条件
|
||||||
clearAllSearch (search = true) {
|
clearAllSearch (search = true) {
|
||||||
this.nonConformitySearch = {
|
this.nonConformitySearch = {
|
||||||
@@ -573,12 +602,13 @@ export default {
|
|||||||
},
|
},
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview (item) {
|
handlePreview (item) {
|
||||||
|
console.log(item);
|
||||||
let routeUrl = this.$router.resolve({
|
let routeUrl = this.$router.resolve({
|
||||||
name: 'OtherStandardDetails',
|
name: 'OtherStandardDetails',
|
||||||
params: {
|
params: {
|
||||||
//gslh3tgg7kot97ay5oz0
|
|
||||||
id: item.id,
|
id: item.id,
|
||||||
pageType: item.standType + '_STAND'
|
pageType: 'FOREIGN_STAND'
|
||||||
|
// pageType: item.standType + '_STAND'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
window.open(routeUrl.href, '_blank')
|
window.open(routeUrl.href, '_blank')
|
||||||
@@ -625,6 +655,8 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
this.getTableByPage()
|
this.getTableByPage()
|
||||||
|
// 加载所有的部门
|
||||||
|
this.getOrgTreeSource()
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -9,10 +9,12 @@
|
|||||||
<div class="search-area">
|
<div class="search-area">
|
||||||
<el-form :model="standCommonlySearch" inline class="label-input-form">
|
<el-form :model="standCommonlySearch" inline class="label-input-form">
|
||||||
<el-formItem label="类别" class="search-item">
|
<el-formItem label="类别" class="search-item">
|
||||||
<el-input v-model="standCommonlySearch.categorg" class="s-c-input" placeholder="标准/政策" clearable :maxlength="100"></el-input>
|
<el-input v-model="standCommonlySearch.categorg" class="s-c-input" placeholder="标准/政策" clearable
|
||||||
|
:maxlength="100"></el-input>
|
||||||
</el-formItem>
|
</el-formItem>
|
||||||
<el-formItem label="关键字" class="search-item">
|
<el-formItem label="关键字" class="search-item">
|
||||||
<el-input v-model="standCommonlySearch.cname" class="s-c-input" placeholder="请输入关键字" clearable :maxlength="100"></el-input>
|
<el-input v-model="standCommonlySearch.cname" class="s-c-input" placeholder="请输入关键字" clearable
|
||||||
|
:maxlength="100"></el-input>
|
||||||
</el-formItem>
|
</el-formItem>
|
||||||
<el-formItem label="开始日期" class="search-item">
|
<el-formItem label="开始日期" class="search-item">
|
||||||
<el-datePicker v-model="standCommonlySearch.start" :editable="false"
|
<el-datePicker v-model="standCommonlySearch.start" :editable="false"
|
||||||
@@ -28,11 +30,13 @@
|
|||||||
size="mini"
|
size="mini"
|
||||||
class="common-button-primary"
|
class="common-button-primary"
|
||||||
|
|
||||||
@click="sarStandCompareHisInfo">查询</el-button>
|
@click="sarStandCompareHisInfo">查询
|
||||||
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
class="common-button-default"
|
class="common-button-default"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="clearSearchStand">清空</el-button>
|
@click="clearSearchStand">清空
|
||||||
|
</el-button>
|
||||||
</el-formItem>
|
</el-formItem>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
@@ -54,7 +58,7 @@
|
|||||||
label="标准"
|
label="标准"
|
||||||
align="center">
|
align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<a class="table-jump" @click.stop="handlePreview(scope.row)">{{ scope.row.category }}</a>
|
<a class="table-jump" @click.stop="handlePreview(scope.row)">{{ scope.row.category }}</a>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@@ -79,129 +83,134 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<pagination :page="standCommonlySearch.page" :total="total" @pageChange="pageChange" @pageSizeChange="pageSizeChange"></pagination>
|
<pagination :page="standCommonlySearch.page" :total="total" @pageChange="pageChange"
|
||||||
|
@pageSizeChange="pageSizeChange"></pagination>
|
||||||
<loading :loading="spinShow">数据加载中……</loading>
|
<loading :loading="spinShow">数据加载中……</loading>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: 'standardForComments',
|
name: "standardForComments",
|
||||||
components: {
|
components: {},
|
||||||
},
|
data() {
|
||||||
data () {
|
|
||||||
return {
|
return {
|
||||||
standCommonlySearch: {
|
standCommonlySearch: {
|
||||||
categorg: '',
|
categorg: "",
|
||||||
cname: '',
|
cname: "",
|
||||||
start: '',
|
start: "",
|
||||||
end: '',
|
end: "",
|
||||||
page: 1,
|
page: 1,
|
||||||
size: this.$store.getters.userInfo.configContent
|
size: this.$store.getters.userInfo.configContent
|
||||||
},
|
},
|
||||||
spinShow: false,
|
spinShow: false,
|
||||||
standInfoList: [],
|
standInfoList: [],
|
||||||
tableHeight: null,
|
tableHeight: null,
|
||||||
total: 0
|
total: 0
|
||||||
}
|
};
|
||||||
},
|
|
||||||
props: {
|
|
||||||
},
|
|
||||||
watch: {
|
|
||||||
},
|
},
|
||||||
|
props: {},
|
||||||
|
watch: {},
|
||||||
methods: {
|
methods: {
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview (item) {
|
handlePreview(item) {
|
||||||
this.$store.commit('setDetailMap',this.$router.path)
|
this.$store.commit("setDetailMap", this.$router.path);
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'consultationDetails',
|
name: "consultationDetails",
|
||||||
query: {
|
query: {
|
||||||
item: item
|
item: item
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
},
|
|
||||||
// 清空
|
|
||||||
clearSearchStand () {
|
|
||||||
this.standCommonlySearch.page = 1
|
|
||||||
this.standCommonlySearch.start = ''
|
|
||||||
this.standCommonlySearch.end = ''
|
|
||||||
this.standCommonlySearch.categorg = ''
|
|
||||||
this.standCommonlySearch.cname = ''
|
|
||||||
this.sarStandCompareHis()
|
|
||||||
},
|
},
|
||||||
// 搜索
|
// 清空
|
||||||
sarStandCompareHisInfo() {
|
clearSearchStand() {
|
||||||
this.splitInfoPage = 1
|
this.standCommonlySearch.page = 1;
|
||||||
this.sarStandCompareHis()
|
this.standCommonlySearch.start = "";
|
||||||
},
|
this.standCommonlySearch.end = "";
|
||||||
// 查询表格
|
this.standCommonlySearch.categorg = "";
|
||||||
sarStandCompareHis () {
|
this.standCommonlySearch.cname = "";
|
||||||
this.spinShow = true
|
this.sarStandCompareHis();
|
||||||
var form = this.standCommonlySearch
|
},
|
||||||
this.$http.get('slrs/sar-public-idea/SelectAllPage', form, {
|
// 搜索
|
||||||
_this: this
|
sarStandCompareHisInfo() {
|
||||||
}, res => {
|
this.splitInfoPage = 1;
|
||||||
this.standInfoList = res.data.records
|
this.sarStandCompareHis();
|
||||||
this.total = res.data.total
|
},
|
||||||
this.spinShow = false
|
// 查询表格
|
||||||
}, e => {
|
sarStandCompareHis() {
|
||||||
})
|
this.spinShow = true;
|
||||||
},
|
var form = this.standCommonlySearch;
|
||||||
pageChange (page) {
|
this.$http.get("slrs/sar-public-idea/SelectAllPage", form, {
|
||||||
this.standCommonlySearch.page = page
|
_this: this
|
||||||
this.sarStandCompareHis()
|
}, res => {
|
||||||
},
|
this.standInfoList = res.data.records;
|
||||||
// 分页每页显示数改变后方法
|
this.total = res.data.total;
|
||||||
pageSizeChange (pageSize) {
|
this.spinShow = false;
|
||||||
this.$store.getters.userInfo.configContent = pageSize
|
}, e => {
|
||||||
this.standCommonlySearch.size = pageSize
|
});
|
||||||
this.sarStandCompareHis()
|
},
|
||||||
},
|
pageChange(page) {
|
||||||
},
|
this.standCommonlySearch.page = page;
|
||||||
computed: {
|
this.sarStandCompareHis();
|
||||||
},
|
},
|
||||||
mounted () {
|
// 分页每页显示数改变后方法
|
||||||
this.sarStandCompareHis()
|
pageSizeChange(pageSize) {
|
||||||
this.tableHeight = $('.content').height() - 44
|
this.$store.getters.userInfo.configContent = pageSize;
|
||||||
window.onresize = () => {
|
this.standCommonlySearch.size = pageSize;
|
||||||
this.tableHeight = $('.content').height() - 44
|
this.sarStandCompareHis();
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
computed: {},
|
||||||
|
mounted() {
|
||||||
|
this.sarStandCompareHis();
|
||||||
|
this.tableHeight = $(".content").height() - 44;
|
||||||
|
window.onresize = () => {
|
||||||
|
this.tableHeight = $(".content").height() - 44;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
@import '~@/assets/styles/mixins';
|
@import '~@/assets/styles/mixins';
|
||||||
@import '~@/assets/styles/style';
|
@import '~@/assets/styles/style';
|
||||||
|
|
||||||
.standardForComments {
|
.standardForComments {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
|
|
||||||
.el-divider--horizontal {
|
.el-divider--horizontal {
|
||||||
display: block;
|
display: block;
|
||||||
height: 1px;
|
height: 1px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.flex();
|
.flex();
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
.action-bar {
|
.action-bar {
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
flex: auto;
|
flex: auto;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
.table-wrap {
|
.table-wrap {
|
||||||
flex: auto;
|
flex: auto;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
& > .pagination {
|
& > .pagination {
|
||||||
position: static;
|
position: static;
|
||||||
/deep/.pagination-slot {
|
|
||||||
|
/deep/ .pagination-slot {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user