标准清单 高级检索

This commit is contained in:
宋伟佳
2021-06-25 17:57:33 +08:00
parent a2acbe7ae6
commit b843b0d975
60 changed files with 572 additions and 698 deletions
@@ -54,6 +54,25 @@ export default {
watch: {},
mounted() {
},
beforeRouteLeave(to, from, next) {
const toName = ['ListOfStandardsAndRegulationsDetails', 'Details', 'ProjectAddEit', 'OtherAddEit']
// 离开此页面之前,记录tabName以便返回使用,如果将要访问的页面不是这两个,则清空tabName
if (toName.includes(to.name)) {
this.$store.commit('SET_ACCESS_STANDARD_REG_TABS', this.tabValue)
} else {
this.$store.commit('SET_ACCESS_STANDARD_REG_TABS')
}
setTimeout(() => {
next()
}, 100)
},
beforeRouteEnter(to, from, next) {
next(vm => {
if (vm.$store.state.accessStandRegTabName !== '') {
vm.tabValue = vm.$store.state.accessStandRegTabName
}
})
}
};
</script>
@@ -105,12 +105,12 @@
</template>
</el-table-column>
<el-table-column
prop="detailedListVesion"
prop="detailedListVision"
label="清单版本"
align="center">
<template slot-scope="scope">
<span
v-if="scope.row.detailedListVesion != null && scope.row.detailedListVesion !== ''">{{ scope.row.detailedListVesion
v-if="scope.row.detailedListVision != null && scope.row.detailedListVision !== ''">{{ scope.row.detailedListVision
}}</span>
</template>
</el-table-column>
@@ -130,7 +130,7 @@
sortable
align="center">
<template slot-scope="scope">
<div>{{ scope.row.updateTime ? scope.row.updateTime.split(" ")[0] : "" }}</div>
<div>{{ scope.row.updateTime ? $moment(scope.row.updateTime).format('YYYY-MM-DD hh:mm:ss') : scope.row.updateTime }}</div>
</template>
</el-table-column>
<el-table-column
@@ -188,7 +188,7 @@ export default {
country: "",
applyArctic: "",
energyKind: "",
accessContent: "",
detailedListName: "",
region: ""
},
drawerPage: 1, // 当前抽屉分页的页码
@@ -200,9 +200,9 @@ export default {
country: [
{ required: true, message: "国家不能为空", trigger: "change" }
],
accessContent: [
{ required: true, message: "表格名称不能为空", trigger: "blur" },
{ type: "string", max: 100, message: "表格名称不能超过100个字符", trigger: "blur" }
detailedListName: [
{ required: true, message: "清单名称不能为空", trigger: "blur" },
{ type: "string", max: 100, message: "清单名称不能超过100个字符", trigger: "blur" }
]
},
countryOptions: [],
@@ -262,7 +262,6 @@ export default {
}, {
_this: this
}, res => {
console.log(res.data.records);
this.sarAccessListDatas = res.data.records;
this.sarAccessListTotal = res.data.total
}, e => {
@@ -338,7 +337,7 @@ export default {
},
// 点击 table编辑按钮 事件
editTable(item) {
sessionStorage.setItem("accessRow", JSON.stringify(item));
this.$store.commit('SET_ACCESS_STAND_REG_ROW', item)
this.$router.push({
name: "ListOfStandardsAndRegulationsDetails",
query: {
@@ -96,12 +96,12 @@
</template>
</el-table-column>
<el-table-column
prop="detailedListVesion"
prop="detailedListVision"
label="清单版本"
align="center">
<template slot-scope="scope">
<span
v-if="scope.row.detailedListVesion != null && scope.row.detailedListVesion !== ''">{{ scope.row.detailedListVesion
v-if="scope.row.detailedListVision != null && scope.row.detailedListVision !== ''">{{ scope.row.detailedListVision
}}</span>
</template>
</el-table-column>
@@ -121,7 +121,7 @@
sortable
align="center">
<template slot-scope="scope">
<div>{{ scope.row.updateTime ? scope.row.updateTime.split(" ")[0] : "" }}</div>
<div>{{ scope.row.updateTime ? $moment(scope.row.updateTime).format('YYYY-MM-DD hh:mm:ss') : scope.row.updateTime }}</div>
</template>
</el-table-column>
<el-table-column
@@ -179,7 +179,7 @@ export default {
country: "",
applyArctic: "",
energyKind: "",
accessContent: "",
detailedListName: "",
region: ""
},
drawerPage: 1, // 当前抽屉分页的页码
@@ -191,9 +191,9 @@ export default {
country: [
{ required: true, message: "国家不能为空", trigger: "change" }
],
accessContent: [
{ required: true, message: "表格名称不能为空", trigger: "blur" },
{ type: "string", max: 100, message: "表格名称不能超过100个字符", trigger: "blur" }
detailedListName: [
{ required: true, message: "清单名称不能为空", trigger: "blur" },
{ type: "string", max: 100, message: "清单名称不能超过100个字符", trigger: "blur" }
]
},
countryOptions: [],
@@ -344,7 +344,7 @@ export default {
},
// 点击 table编辑按钮 事件
editTable(item) {
sessionStorage.setItem("accessRow", JSON.stringify(item));
this.$store.commit('SET_ACCESS_STAND_REG_ROW', item)
this.$router.push({
name: "OtherAddEit",
query: {
@@ -96,12 +96,12 @@
</template>
</el-table-column>
<el-table-column
prop="detailedListVesion"
prop="detailedListVision"
label="清单版本"
align="center">
<template slot-scope="scope">
<span
v-if="scope.row.detailedListVesion != null && scope.row.detailedListVesion !== ''">{{ scope.row.detailedListVesion
v-if="scope.row.detailedListVision != null && scope.row.detailedListVision !== ''">{{ scope.row.detailedListVision
}}</span>
</template>
</el-table-column>
@@ -121,7 +121,7 @@
sortable
align="center">
<template slot-scope="scope">
<div>{{ scope.row.updateTime ? scope.row.updateTime.split(" ")[0] : "" }}</div>
<div>{{ scope.row.updateTime ? $moment(scope.row.updateTime).format('YYYY-MM-DD hh:mm:ss') : scope.row.updateTime }}</div>
</template>
</el-table-column>
<el-table-column
@@ -179,7 +179,7 @@ export default {
country: "",
applyArctic: "",
energyKind: "",
accessContent: "",
detailedListName: "",
region: ""
},
drawerPage: 1, // 当前抽屉分页的页码
@@ -191,9 +191,9 @@ export default {
country: [
{ required: true, message: "国家不能为空", trigger: "change" }
],
accessContent: [
{ required: true, message: "表格名称不能为空", trigger: "blur" },
{ type: "string", max: 100, message: "表格名称不能超过100个字符", trigger: "blur" }
detailedListName: [
{ required: true, message: "清单名称不能为空", trigger: "blur" },
{ type: "string", max: 100, message: "清单名称不能超过100个字符", trigger: "blur" }
]
},
countryOptions: [],
@@ -347,7 +347,7 @@ export default {
},
// 点击 table编辑按钮 事件
editTable(item) {
sessionStorage.setItem("accessRow", JSON.stringify(item));
this.$store.commit('SET_ACCESS_STAND_REG_ROW', item)
this.$router.push({
name: "ProjectAddEit",
query: {
@@ -131,9 +131,9 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item label="清单名称" prop="accessContent" class="search-item" v-show="isListType">
<el-form-item label="清单名称" prop="detailedListName" class="search-item" v-show="isListType">
<el-input
v-model="sarAccessInfoSearch.accessContent"
v-model="sarAccessInfoSearch.detailedListName"
placeholder="请输入"
:maxlength="100"
></el-input>
@@ -268,7 +268,7 @@
align="center">
</el-table-column>
<el-table-column
prop="accessContent"
prop="detailedListName"
label="清单名称"
align="center">
</el-table-column>
@@ -451,6 +451,7 @@ import CustomSVPPS from '@/components/CustomFormComponents/SVPPS'
import CustomInputForPolicy from '@/components/CustomFormComponents/InputForPolicy'
import CustomRoleTree from '@/components/CustomFormComponents/roleTree'
import stand from "../../../config/pages/attributeCustom/components/stand";
import { mapGetters } from 'vuex'
export default {
name: 'ListOfStandardsAndRegulationsDetails',
components: {
@@ -552,7 +553,6 @@ export default {
askType: '', // 监管类型
dataSource: 'INLAND_STAND', // 数据来源
accessSarType: 'SKILL', // 清单类型
accessContent: '', // 清单名称
page: 1,
pageSize: this.$store.getters.userInfo.configContent,
validFlag: 0,
@@ -700,6 +700,7 @@ export default {
}
],
depNode: [], // 部门树
isNext: false,
depFONode: [],
depRoleNode: [],
standNatureOptions: [], // 新增 标准性质
@@ -922,7 +923,7 @@ export default {
this.sarAccessInfoSearch.keywords = '' // 关键字
this.sarAccessInfoSearch.accessSarType = 'SKILL' // 清单类型
this.sarAccessInfoSearch.askType = '' // 监管类型
this.sarAccessInfoSearch.accessContent = '' // 清单名称
this.sarAccessInfoSearch.detailedListName = '' // 清单名称
this.sarAccessInfoSearch.dataSource = 'INLAND_STAND' // 数据来源
this.isListType = false
this.selectLawsStands()
@@ -1454,7 +1455,6 @@ export default {
sarAccessEO.inforlist = JSON.stringify(rowlist)
sarAccessEO.adminInfoList = JSON.stringify(rowList2)
sarAccessEO.countryArea = sarAccessEO.countryArea.join(',')
sarAccessEO.detailedListName = sarAccessEO.detailedListName.join(',')
// 判断是否有附件
if (this.fileInfoList.length > 0) {
let relateFile = []
@@ -1472,7 +1472,7 @@ export default {
loading: 'loadData'
}, res => {
if (res.ok) {
console.log('页面跳转 ');
this.isNext = true
this.$router.push({
name: 'AccessStandardsAndRegulations'
})
@@ -1481,11 +1481,12 @@ export default {
})
} else {
// 编辑
this.$http.post('sarLawsDetailedList/sar-laws-detailed-list/updateList', sarAccessEO, {
this.$http.putData('sarLawsDetailedList/sar-laws-detailed-list/updateList', sarAccessEO, {
_this: this,
loading: 'loadData'
}, res => {
if (res.ok) {
this.isNext = true
this.$router.push({
name: 'AccessStandardsAndRegulations'
})
@@ -1669,6 +1670,23 @@ export default {
this.selectLawsStands()
}
},
beforeRouteLeave(to, from, next) {
if (to.name === 'Login' || this.isNext) {
next()
} else {
this.$confirm('是否放弃编辑', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
confirmButtonClass: 'common-button-primary',
roundButton: true,
type: 'warning'
}).then(() => {
next()
}).catch(() => {
// alert("router")
})
}
},
// 点击清单条目 新增按钮 事件
addEntry () {
this.editAddType = 1
@@ -2183,6 +2201,9 @@ export default {
this.accessSarTypeList = []
}
},
computed: {
...mapGetters(['getAccessStandardRegRow']),
},
mounted () {
this.getDept()
// 从数据库中查询各下拉框数据
@@ -2207,7 +2228,7 @@ export default {
this.getOrgTreeSource()
// 判断是否是编辑
if (this.$route.query.id) {
let accessRow = JSON.parse(sessionStorage.getItem('accessRow'))
const accessRow = this.getAccessStandardRegRow
this.$nextTick(() => {
this.sarAccessEO.type = accessRow.type
this.sarAccessEO.countryArea = accessRow.countryArea.split(',')
@@ -2226,6 +2247,13 @@ export default {
this.$refs['sarAccessForm'].resetFields()
})
}
},
beforeRouteLeave(to, from, next) {
next()
setTimeout(() => {
// 清空详情
this.$store.commit('SET_ACCESS_STAND_REG_ROW')
}, 100)
}
}
</script>
@@ -306,7 +306,6 @@ export default {
},
// 根据准入id查询标准法规详情
selectInfobyAccid() {
console.log('309',this.pageId);
this.$http.get("sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById", {
...this.standardForm,
id: this.pageId,
@@ -116,9 +116,9 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item label="清单名称" prop="accessContent" class="search-item" v-show="isListType">
<el-form-item label="清单名称" prop="detailedListName" class="search-item" v-show="isListType">
<el-input
v-model="sarAccessInfoSearch.accessContent"
v-model="sarAccessInfoSearch.detailedListName"
placeholder="请输入"
:maxlength="100"
></el-input>
@@ -253,7 +253,7 @@
align="center">
</el-table-column>
<el-table-column
prop="accessContent"
prop="detailedListName"
label="清单名称"
align="center">
</el-table-column>
@@ -436,6 +436,7 @@ import CustomSVPPS from '@/components/CustomFormComponents/SVPPS'
import CustomInputForPolicy from '@/components/CustomFormComponents/InputForPolicy'
import CustomRoleTree from '@/components/CustomFormComponents/roleTree'
import stand from "../../../config/pages/attributeCustom/components/stand";
import { mapGetters } from "vuex";
export default {
name: 'OtherAddEit',
components: {
@@ -536,7 +537,7 @@ export default {
askType: '', // 监管类型
dataSource: 'INLAND_STAND', // 数据来源
accessSarType: 'SKILL', // 清单类型
accessContent: '', // 清单名称
detailedListName: '', // 清单名称
page: 1,
pageSize: this.$store.getters.userInfo.configContent,
validFlag: 0,
@@ -911,7 +912,7 @@ export default {
this.sarAccessInfoSearch.keywords = '' // 关键字
this.sarAccessInfoSearch.accessSarType = 'SKILL' // 清单类型
this.sarAccessInfoSearch.askType = '' // 监管类型
this.sarAccessInfoSearch.accessContent = '' // 清单名称
this.sarAccessInfoSearch.detailedListName = '' // 清单名称
this.sarAccessInfoSearch.dataSource = 'INLAND_STAND' // 数据来源
this.isListType = false
this.selectLawsStands()
@@ -1457,7 +1458,6 @@ export default {
loading: 'loadData'
}, res => {
if (res.ok) {
console.log('页面跳转 ');
this.$router.push({
name: 'AccessStandardsAndRegulations'
})
@@ -1466,7 +1466,7 @@ export default {
})
} else {
// 编辑
this.$http.post('sarLawsDetailedList/sar-laws-detailed-list/updateList', sarAccessEO, {
this.$http.putData('sarLawsDetailedList/sar-laws-detailed-list/updateList', sarAccessEO, {
_this: this,
loading: 'loadData'
}, res => {
@@ -1885,7 +1885,7 @@ export default {
res.data.ADMIN.map((item, index) => {
item.uuid = this.number
item.GXHBQ = item.gxhbq
item.eopPutTime = item.eopPutTextTime
item.eopPutTime = item.eopPutTextTime //实施日期
item.newPutTime = item.newPutTextTime
item.prodPutTime = item.prodPutTextTime
this.number++
@@ -2169,6 +2169,9 @@ export default {
this.accessSarTypeList = []
}
},
computed: {
...mapGetters(['getAccessStandardRegRow']),
},
mounted () {
this.getDept()
// 从数据库中查询各下拉框数据
@@ -2193,7 +2196,7 @@ export default {
this.getOrgTreeSource()
// 判断是否是编辑
if (this.$route.query.id) {
let accessRow = JSON.parse(sessionStorage.getItem('accessRow'))
const accessRow = this.getAccessStandardRegRow
this.$nextTick(() => {
this.sarAccessEO.type = accessRow.type
// this.sarAccessEO.countryArea = accessRow.countryArea.split(',')
@@ -116,9 +116,9 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item label="清单名称" prop="accessContent" class="search-item" v-show="isListType">
<el-form-item label="清单名称" prop="detailedListName" class="search-item" v-show="isListType">
<el-input
v-model="sarAccessInfoSearch.accessContent"
v-model="sarAccessInfoSearch.detailedListName"
placeholder="请输入"
:maxlength="100"
></el-input>
@@ -253,7 +253,7 @@
align="center">
</el-table-column>
<el-table-column
prop="accessContent"
prop="detailedListName"
label="清单名称"
align="center">
</el-table-column>
@@ -436,6 +436,7 @@ import CustomSVPPS from '@/components/CustomFormComponents/SVPPS'
import CustomInputForPolicy from '@/components/CustomFormComponents/InputForPolicy'
import CustomRoleTree from '@/components/CustomFormComponents/roleTree'
import stand from "../../../config/pages/attributeCustom/components/stand";
import { mapGetters } from "vuex";
export default {
name: 'ProjectAddEit',
components: {
@@ -536,7 +537,7 @@ export default {
askType: '', // 监管类型
dataSource: 'INLAND_STAND', // 数据来源
accessSarType: 'SKILL', // 清单类型
accessContent: '', // 清单名称
detailedListName: '', // 清单名称
page: 1,
pageSize: this.$store.getters.userInfo.configContent,
validFlag: 0,
@@ -911,7 +912,7 @@ export default {
this.sarAccessInfoSearch.keywords = '' // 关键字
this.sarAccessInfoSearch.accessSarType = 'SKILL' // 清单类型
this.sarAccessInfoSearch.askType = '' // 监管类型
this.sarAccessInfoSearch.accessContent = '' // 清单名称
this.sarAccessInfoSearch.detailedListName = '' // 清单名称
this.sarAccessInfoSearch.dataSource = 'INLAND_STAND' // 数据来源
this.isListType = false
this.selectLawsStands()
@@ -1459,7 +1460,6 @@ export default {
loading: 'loadData'
}, res => {
if (res.ok) {
console.log('页面跳转 ');
this.$router.push({
name: 'AccessStandardsAndRegulations'
})
@@ -1468,7 +1468,7 @@ export default {
})
} else {
// 编辑
this.$http.post('sarLawsDetailedList/sar-laws-detailed-list/updateList', sarAccessEO, {
this.$http.putData('sarLawsDetailedList/sar-laws-detailed-list/updateList', sarAccessEO, {
_this: this,
loading: 'loadData'
}, res => {
@@ -2170,6 +2170,9 @@ export default {
this.accessSarTypeList = []
}
},
computed: {
...mapGetters(['getAccessStandardRegRow']),
},
mounted () {
this.getDept()
// 从数据库中查询各下拉框数据
@@ -2194,7 +2197,7 @@ export default {
this.getOrgTreeSource()
// 判断是否是编辑
if (this.$route.query.id) {
let accessRow = JSON.parse(sessionStorage.getItem('accessRow'))
const accessRow = this.getAccessStandardRegRow
this.$nextTick(() => {
this.sarAccessEO.type = accessRow.type
// this.sarAccessEO.countryArea = accessRow.countryArea.split(',')
@@ -2091,9 +2091,7 @@ export default {
this.$message.success('导出信息成功')
}
} else if (this.saveExportType === 'all') {
console.log('全部导出')
let exportEOStr = JSON.stringify(this.SarExportSearchEo)
console.log(exportEOStr)
exportEOStr = exportEOStr.replace(/""/g, null)
window.open(interfaceUrl + 'sarStandardsInfo/sar-standards-info/exportStandardsInfoExcel?' +
'exportType' + this.saveExportType + '&exportContent=' + exportEOStr + '&exportName=' + this.exportName + '&standType=' + this.standType)
@@ -1601,7 +1601,6 @@ export default {
},
// 授权-查询权限
givePower (item) {
console.log('item',item)
this.standId = item.id
this.visibleOrgTable = true
},
@@ -1613,8 +1612,6 @@ export default {
idList.push(item.userId)
nameList.push(item.userName)
})
console.log('idList', idList);
console.log('idListJoin', idList.join(','));
this.$http.post('lawss/sarBussionessStand/insertPerson', {
qbid: this.standId,
userIds: idList.join(',')
@@ -1842,7 +1839,6 @@ export default {
},
// 点击查看
handlePreview (item) {
console.log(item);
const mj = item.attrInfoMap.QBMJ
if (mj === 'GXNX7D6H59') {
// C1所有人都可查看
@@ -1889,7 +1885,6 @@ export default {
const userInfo = this.userInfo
const currentId = userInfo.userId // 当前用户的id
// 如果当前用户的部门和科室不在全部部门里 就不允许查看
console.log(qcr.indexOf(currentId))
if (!(qcr.indexOf(currentId) > -1)) {
// this.$message.warning('当前用户无权限查看此详情')
this.$http.get('lawss/sarBussionessStand/selectPerson', {
@@ -184,7 +184,6 @@ export default {
json.text = arr[a].name
newArr.push(json)
}
console.log(newArr);
}
},
computed: {
@@ -203,7 +203,6 @@ export default {
},
methods: {
contentClick (link) {
console.log(this.$route)
this.$store.commit('setDetailMap', this.$route.fullPath)
this.$router.push(link)
},
@@ -324,7 +323,6 @@ export default {
// this.msgDetails.collectId = res.data.id
this.msgDetails.collectId = this.$route.params.id
this.collection = 1
// console.log('msgDetails.collectId', this.msgDetails.collectId)
}, e => {
this.isSubmit = false
})
@@ -352,7 +350,6 @@ export default {
obj.content = this.relateList[i].content
this.relateNowList.push(obj)
}
console.log('relateNowList', this.relateNowList)
}, e => {
})
@@ -387,7 +384,6 @@ export default {
this.msgDetails = res.data
this.collection = res.data.collection
console.log('this.msgDetails000000000', this.msgDetails)
this.addPersonCookie()
}, e => {
})
@@ -29,7 +29,6 @@ export default {
},
methods: {
handleClick(tab, event) {
console.log(tab, event);
}
},
watch: {},