@@ -76,10 +76,10 @@
@@ -93,23 +93,23 @@
+ :loading="searching"
+ type="primary"
+ size="mini"
+ class="common-button-primary"
+ v-btn-permission="'967c8b1402459951b5f75fcd1c548665'"
+ @click="searchBtnClick(standCommonlySearch)">
查询
清空
+ size="mini"
+ class="common-button-default"
+ v-btn-permission="'d38fea2d0d992615f9e1c4dfb6dc76f3'"
+ @click="clearAllSearch('standCommonlySearch')">清空
高级检索
+ class="iconfont">高级检索
@@ -163,107 +163,95 @@
+ @selection-change="standSelectChange">
+ type="selection"
+ width="55"
+ align="center">
- {{ scope.row.standSortShow }} {{
scope.row.standNumber
}}-{{ scope.row.standYear }}
- {{ scope.row.standSortShow }} {{
- scope.row.standNumber
- }}-{{ scope.row.standYear }}
-
- {{ scope.row.standSortShow }}
+ {{ scope.row.standSortShow }}
{{ scope.row.standNumber }}
- {{ scope.row.standName }}
- {{ scope.row.standName }}
+ {{ scope.row.standName }}
+ prop="issueTime"
+ sortable="custom"
+ width="110px"
+ label="发布日期">
- {{ formatIssueDate(scope.row.issueTime) }}
- {{ formatIssueDate(scope.row.issueTime) }}
+ {{ formatIssueDate(scope.row.issueTime) }}
+ prop="SSRQ"
+ sortable="custom"
+ width="150px"
+ label="实施日期">
- {{ scope.row.SSRQ ? scope.row.SSRQ.substring(0, 10) : '-' }}
- {{ scope.row.SSRQ ? scope.row.SSRQ.substring(0, 10) : '-' }}
+ {{ scope.row.SSRQ ? scope.row.SSRQ.substring(0, 10) : '-' }}
+ prop="XCXSSRQ"
+ sortable="custom"
+ width="150px"
+ label="新车型实施日期">
- {{ scope.row.XCXSSRQ ? scope.row.XCXSSRQ.substring(0, 10) : '-' }}
- {{ scope.row.XCXSSRQ ? scope.row.XCXSSRQ.substring(0, 10) : '-' }}
+ {{ scope.row.XCXSSRQ ? scope.row.XCXSSRQ.substring(0, 10) : '-' }}
+ prop="ZCCSSRQ"
+ sortable="custom"
+ width="150px"
+ label="在产车实施日期">
- {{ scope.row.ZCCSSRQ ? scope.row.ZCCSSRQ.substring(0, 10) : '-' }}
- {{ scope.row.ZCCSSRQ ? scope.row.ZCCSSRQ.substring(0, 10) : '-' }}
+ {{ scope.row.ZCCSSRQ ? scope.row.ZCCSSRQ.substring(0, 10) : '-' }}
+ prop="textStatus"
+ sortable="custom"
+ width="120px"
+ label="文本状态">
- {{ textStatusMap[scope.row.textStatus] }}
- {{ textStatusMap[scope.row.textStatus] }}
+ {{ textStatusMap[scope.row.textStatus] }}
@@ -318,21 +306,21 @@
@@ -368,11 +356,11 @@
@@ -402,11 +390,11 @@
placeholder="请选择标准性质"
clearable>
{{ item.label }}
@@ -419,28 +407,28 @@
placeholder="请选择文本状态"
clearable>
{{ opt.label }}
是否纳入认证清单
@@ -449,9 +437,9 @@
标准体系
+ v-else-if="field.attrType === 'INPUT_STR' && field.attrField !== 'XGLC' && field.attrField !== 'CHJL'">
+ v-if="field.attrField === 'DTBJH' || field.attrField === 'YYBJ' || field.attrField === 'CBBH' || field.attrField === 'BFDTBZ'">
关联模块--乘用车VPPS编码
关联模块--卡车VPPS编码
模块结构单元变型号
@@ -550,90 +538,90 @@
@@ -659,61 +647,61 @@
@click.native="getDomesticStandardTableBtn(standCommonlySearch)">
+ :loading="searching"
+ icon="el-icon-search"
+ type="primary"
+ size="mini"
+ class="newSearchBtn"
+ @click="getLawsExplainQuoteRow(1,lawsExplainQuoteForm.pageSize, 'search')">
清空查询
selectLawsExplainQuoteRowSelect(selection,'select', row )"
- @select-all="(selection) =>selectLawsExplainQuoteRowSelect(selection, 'all')">
+ ref="selections"
+ :data="lawsExplainQuoteRow"
+ :loading="lawsExplainQuoteFormLoading"
+ tooltip-effect="dark"
+ style="width: 100%;height:300px; overflow-y: auto;overflow-x: hidden;"
+ border
+ :header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
+ @selection-change="selectLawsExplainQuoteRowChange"
+ @select="(selection, row) =>selectLawsExplainQuoteRowSelect(selection,'select', row )"
+ @select-all="(selection) =>selectLawsExplainQuoteRowSelect(selection, 'all')">
+ type="selection"
+ width="55"
+ align="center">
+ prop="standNumber"
+ label="标准号"
+ width="130"
+ align="center">
+ prop="standName"
+ label="标准名称"
+ width="130"
+ align="center">
+ prop="issueTime"
+ label="发布日期"
+ width="130"
+ align="center">
+ prop="putTime"
+ label="实施日期"
+ width="130"
+ align="center">
+ prop="textStatus"
+ label="文本状态"
+ width="130"
+ align="center">
{{ textStatusMap[scope.row.textStatus] }}
@@ -721,10 +709,10 @@
+ :page="page"
+ :total="total"
+ @pageChange="pageChangeLaws"
+ @pageSizeChange="pageSizeChangeLaws">
@@ -1276,8 +1300,10 @@
icon="el-icon-check"
:loading="isSubmit"
@click="newMenu"
- >提交
-
取消
+ >提交
+
+
取消
+
@@ -1294,18 +1320,20 @@
+ width="500"
+ :lazy=true
+ :multiple=true
+ :check-strictly=true
+ :modalShowFlag="modalShowFlag2"
+ :drawerTitle="drawerTitle"
+ :url="url"
+ :urlChild="urlChild"
+ :defaultProps="defaultCodeProps" :checkedKeys="defaultCheckedKeys1"
+ :nodeKey="nodeKeyCode" @popoverHide="popoverHideBusVs">
+ width="500"
+ :lazy=true
+ :multiple=true
+ :check-strictly=true
+ :modalShowFlag="modalShowFlag3"
+ :drawerTitle="drawerTitle"
+ :url="url"
+ :urlChild="urlChild"
+ :defaultProps="defaultCodeProps" :checkedKeys="defaultCheckedKeys2"
+ :nodeKey="nodeKeyCode" @popoverHide="popoverHideCarVs">
+ width="500"
+ :lazy=true
+ :multiple=true
+ :check-strictly=true
+ :modalShowFlag="modalShowFlag4"
+ :drawerTitle="drawerTitle"
+ :url="url"
+ :urlChild="urlChild"
+ :defaultProps="defaultModelProps" :checkedKeys="defaultCheckedKeys3"
+ :nodeKey="nodeKeyModel" @popoverHide="popoverHideModel">
@@ -1399,7 +1429,9 @@
@@ -1435,7 +1467,7 @@ import CustomDatePickWithText, {formatText} from '@/components/CustomFormCompone
import CustomSVPPS from '@/components/CustomFormComponents/SVPPS'
import CustomRoleTree from '@/components/CustomFormComponents/roleTree'
import CustomDatePickWithText2 from '@/components/CustomFormComponents/DatePickerWithText2'
-import { interfaceUrl } from "@/sysConfig";
+import {interfaceUrl} from "@/sysConfig";
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
import TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue';
@@ -1461,7 +1493,7 @@ export default {
TreeSelect,
TreeSelectNew
},
- data () {
+ data() {
return {
textStatusMap: {}, // 文本状态id与name对应
treeList: [],
@@ -1473,14 +1505,14 @@ export default {
children: 'children',
label: 'menuName'
},
- nodeKeyCode: 'code',
- nodeKeyModel: 'model',
+ nodeKeyCode: 'code',
+ nodeKeyModel: 'model',
modalShowFlag1: false, // drawer开关
modalShowFlag2: false, // drawer开关
modalShowFlag3: false, // drawer开关
modalShowFlag4: false, // drawer开关
- url:'',
- urlChild:'',
+ url: '',
+ urlChild: '',
drawerTitle: '', //drawer标题
nodeKey: 'id',
defaultCheckedKeys1: [],
@@ -1500,8 +1532,8 @@ export default {
modalType: '',
productTitle: '', // 模态框标题
menuTreeLoading: true,
- orderBy:'',
- nowOrder:'',
+ orderBy: '',
+ nowOrder: '',
visibleOrgTable: false,
orgTableVal: '',
orgTableValName: '',
@@ -1534,7 +1566,7 @@ export default {
standState: '',
standNature: '',//标准性质
synopsis: '', // 内容摘要
- textStatus:''//文本状态
+ textStatus: ''//文本状态
},
//高级搜索映射
advanceSearchMapping: {
@@ -1611,11 +1643,11 @@ export default {
categoryConfigOptions: [], // 所属类别下拉框
assemClassOptions: [], // 总成分类下拉框
standAttributeList: [],
- qcdwOptions:[],//起草单位下拉框
- cysdOptions:[], //我司参与深度下拉框
- nylxOptions:[],//能源类型下拉框
- syrzOptions:[],//适用认证下拉框
- gkglbmOptions:[],//归口管理部门下拉框
+ qcdwOptions: [],//起草单位下拉框
+ cysdOptions: [], //我司参与深度下拉框
+ nylxOptions: [],//能源类型下拉框
+ syrzOptions: [],//适用认证下拉框
+ gkglbmOptions: [],//归口管理部门下拉框
// 树形结构
// tree function
MoveTest: '',
@@ -1679,7 +1711,7 @@ export default {
}, // 标准新增过程中用到的对象
standClass: [], // 标准类别
sarStandardsInfoEO: {
- FOName:'',
+ FOName: '',
regionShow: '亚洲',
region: '2T8PFTSYE7',
issueUnit: '', // 发布部门
@@ -1688,7 +1720,7 @@ export default {
id: '',
standType: 'FOREIGN', // 标准分类
country: '',
- countryArr:'',
+ countryArr: '',
standSort: '',
applyArctic: '',
standNumber: '',
@@ -1796,21 +1828,21 @@ export default {
approvalFileTime: '',
approvalFileFeedback: '',
certPutTimeList: [],
- CYCVPPSBM: '',
- CYCVPPSCN: '',
- KCCVPPSBM: '',
- KCCVPPSCN: '',
- DYBXH: '',
- DYMC: '',
- CYSD:'',
- CLLX:'',
- NYLX:'',
- SYCPX:'',
- SYRZ:'',
- ZRBM:'',
- ZRGCS:'',
- WSSMR:'',
- TXLB:'',
+ CYCVPPSBM: '',
+ CYCVPPSCN: '',
+ KCCVPPSBM: '',
+ KCCVPPSCN: '',
+ DYBXH: '',
+ DYMC: '',
+ CYSD: '',
+ CLLX: '',
+ NYLX: '',
+ SYCPX: '',
+ SYRZ: '',
+ ZRBM: '',
+ ZRGCS: '',
+ WSSMR: '',
+ TXLB: '',
}, // 标准新增过程中用到的对象
currentFileList: '', // 当前操作的是哪个FormItem的上传
isList: [
@@ -1872,18 +1904,18 @@ export default {
]
},
productModelAdd: {
- id : "",
- sorDivide : "FOREIGN_STAND",
- menuName : "",
- parentId : null,
- parentIds : null,
- parentIdsName : "",
- displaySeq : "",
- validFlag : "",
- creationTime : "",
- modifyTime : "",
- remarks : "",
- children : [],
+ id: "",
+ sorDivide: "FOREIGN_STAND",
+ menuName: "",
+ parentId: null,
+ parentIds: null,
+ parentIdsName: "",
+ displaySeq: "",
+ validFlag: "",
+ creationTime: "",
+ modifyTime: "",
+ remarks: "",
+ children: [],
// 模态框信息
dicTypeName: '',
showIndex: '',
@@ -1949,15 +1981,15 @@ export default {
// {validator: this.verify.valiateEnName, trigger: 'blur'}
],
textStatus: [
- {required: true, message: '文本状态不能为空', trigger: 'change'}
- ],
+ {required: true, message: '文本状态不能为空', trigger: 'change'}
+ ],
replaceStandNum: [
{type: 'string', max: 100, message: '代替标准编号不能超过100个字符', trigger: 'change'}
],
isRelateAccess: [
- { required: false, message: '重要度不能为空', trigger: 'change' }
+ {required: false, message: '重要度不能为空', trigger: 'change'}
],
- issueTime:[
+ issueTime: [
{required: true, message: '发布日期不能为空', trigger: 'change'}
]
},
@@ -1986,7 +2018,7 @@ export default {
synopsis: [
{type: 'string', max: 1000, message: '文本说明不能超过1000个字符', trigger: 'change'}
],
- issueTime:[
+ issueTime: [
{required: true, message: '发布日期不能为空', trigger: 'change'}
]
},
@@ -2113,11 +2145,10 @@ export default {
filterText: ''
}
},
- props: {
- },
+ props: {},
watch: {
'sarStandardsInfoEO.country': {
- handler (val) {
+ handler(val) {
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
if (val instanceof Array) {
this.sarStandardsInfoEO.countryArr = val.join(",");
@@ -2139,38 +2170,37 @@ export default {
if (!value) return true;
return data.menuName.indexOf(value) !== -1;
},
- choiceZRR2 (type, title, id) {
+ choiceZRR2(type, title, id) {
this.drawerTitle = title
this.modalShowFlag2 = true
this.url = ''
this.urlChild = ''
- this.url="sarVppsTree/list"
- this.urlChild="sarVppsTree/childByList"
+ this.url = "sarVppsTree/list"
+ this.urlChild = "sarVppsTree/childByList"
},
- choiceZRR3 (type, title, id) {
+ choiceZRR3(type, title, id) {
this.drawerTitle = title
this.modalShowFlag3 = true
this.url = ''
this.urlChild = ''
- this.url="sarVppsTree/list"
- this.urlChild="sarVppsTree/childByList"
+ this.url = "sarVppsTree/list"
+ this.urlChild = "sarVppsTree/childByList"
},
- choiceZRR4 (type, title, id) {
+ choiceZRR4(type, title, id) {
this.drawerTitle = title
this.modalShowFlag4 = true
this.url = ''
this.urlChild = ''
- this.url="sarModelTree/list"
- this.urlChild="sarModelTree/childByList"
+ this.url = "sarModelTree/list"
+ this.urlChild = "sarModelTree/childByList"
},
- popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
- console.log(checkedData)
+ popoverHideBusVs(checkedIds, checkedData, isShow, isLoadChild, topId) {
debugger
- if(checkedData) {
- if(checkedData.length > 0){
+ if (checkedData) {
+ if (checkedData.length > 0) {
this.sarStandardsInfoEO.CYCVPPSBM = checkedData.map(item => item.code).join(",")
this.sarStandardsInfoEO.CYCVPPSCN = checkedData.map(item => item.chineseName).join(",")
- }else {
+ } else {
this.sarStandardsInfoEO.CYCVPPSBM = checkedData.code
this.sarStandardsInfoEO.CYCVPPSCN = checkedData.chineseName
}
@@ -2178,12 +2208,12 @@ export default {
this.modalShowFlag2 = false
this.$forceUpdate()
},
- popoverHideCarVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
- if(checkedData) {
- if(checkedData.length > 0){
+ popoverHideCarVs(checkedIds, checkedData, isShow, isLoadChild, topId) {
+ if (checkedData) {
+ if (checkedData.length > 0) {
this.sarStandardsInfoEO.KCCVPPSBM = checkedData.map(item => item.code).join(",")
this.sarStandardsInfoEO.KCCVPPSCN = checkedData.map(item => item.chineseName).join(",")
- }else {
+ } else {
this.sarStandardsInfoEO.KCCVPPSBM = checkedData.code
this.sarStandardsInfoEO.KCCVPPSCN = checkedData.chineseName
}
@@ -2191,12 +2221,12 @@ export default {
this.modalShowFlag3 = false
this.$forceUpdate()
},
- popoverHideModel (checkedIds, checkedData,isShow,isLoadChild,topId) {
- if(checkedData) {
- if(checkedData.length > 0){
+ popoverHideModel(checkedIds, checkedData, isShow, isLoadChild, topId) {
+ if (checkedData) {
+ if (checkedData.length > 0) {
this.sarStandardsInfoEO.DYBXH = checkedData.map(item => item.model).join(",")
this.sarStandardsInfoEO.DYMC = checkedData.map(item => item.name).join(",")
- }else {
+ } else {
this.sarStandardsInfoEO.DYBXH = checkedData.model
this.sarStandardsInfoEO.DYMC = checkedData.name
}
@@ -2205,37 +2235,36 @@ export default {
this.$forceUpdate()
},
// 将文本状态的id与name对应
- setMap(data){
+ setMap(data) {
data.forEach(item => {
this.$set(this.textStatusMap, item.value, item.label)
})
- console.log(this.textStatusMap, '外面的文本状态的值')
},
- busVsFunc(){
- this.$http.get('sarVppsTree/list', '', {
- _this: this
- }, res => {
- this.busVppsOptions = res.data
- })
- },
- modelFunc(){
- this.$http.get('sarModelTree/list', '', {
- _this: this
- }, res => {
- this.modelOptions = res.data
- })
- },
- popoverHide (checkedIds, checkedData) {
- if(checkedData){
- this.sarStandardsInfoEO.standSystem = checkedData.id
- }
+ busVsFunc() {
+ this.$http.get('sarVppsTree/list', '', {
+ _this: this
+ }, res => {
+ this.busVppsOptions = res.data
+ })
},
- closeModal () {
+ modelFunc() {
+ this.$http.get('sarModelTree/list', '', {
+ _this: this
+ }, res => {
+ this.modelOptions = res.data
+ })
+ },
+ popoverHide(checkedIds, checkedData) {
+ if (checkedData) {
+ this.sarStandardsInfoEO.standSystem = checkedData.id
+ }
+ },
+ closeModal() {
this.productModal = false
this.closeDrawer()
},
// 提交新增/修改
- saveProduct (name) {
+ saveProduct(name) {
this.$refs[name].validate((valid) => {
if (valid) {
if (this.modalType === 1) {
@@ -2257,7 +2286,8 @@ export default {
} else {
this.productModal = true
}
- }, e => {})
+ }, e => {
+ })
} else if (this.modalType === 2) {
this.$http.putData('sarResource/ts-resource', this.productModelAdd, {
_this: this
@@ -2280,7 +2310,7 @@ export default {
}
})
},
- closeDrawer () {
+ closeDrawer() {
this.$nextTick(() => {
this.$refs['productModelAdd'].resetFields()
this.productModelAdd = {
@@ -2296,7 +2326,7 @@ export default {
this.productModal = false
},
// 树点击
- isTreeOk (checkedList) {
+ isTreeOk(checkedList) {
this.shareStandardSelect = []
checkedList.map((item, index) => {
if (!item.isParent) {
@@ -2335,7 +2365,7 @@ export default {
},
// 更多
- handleCommand (command) {
+ handleCommand(command) {
switch (command[1]) {
case '收藏':
this.collectStandard(command[0])
@@ -2361,7 +2391,7 @@ export default {
break
}
},
- collectStandard (item) {
+ collectStandard(item) {
item.isSubmit = true
this.personCollect.collectResId = item.id
if (item.standYear != null && item.standYear !== '') {
@@ -2389,7 +2419,7 @@ export default {
})
},
// 取消收藏法规
- cancelCollectStandard (item) {
+ cancelCollectStandard(item) {
item.isSubmit = true
this.$http.put('person/personCollect/updateByUserId', {
id: item.collectId
@@ -2407,8 +2437,7 @@ export default {
})
},
// 点击查看
- handlePreview (item) {
- console.log(item);
+ handlePreview(item) {
let routeUrl = this.$router.resolve({
name: 'OtherStandardDetails',
params: {
@@ -2418,7 +2447,7 @@ export default {
})
window.open(routeUrl.href, '_blank')
},
- clickRow (row, event, column) {
+ clickRow(row, event, column) {
let routeUrl = this.$router.resolve({
name: 'OtherStandardDetails',
params: {
@@ -2429,7 +2458,7 @@ export default {
window.open(routeUrl.href, '_blank')
},
// 编辑标准属性
- selectStandardPro (item, state) {
+ selectStandardPro(item, state) {
// this.sarStandardsInfoEO.country=JSON.parse(item.country );
// console.log(this.sarStandardsInfoEO.country);
@@ -2442,10 +2471,9 @@ export default {
Promise.all([this.queryDisplayLocation()]).then((values) => {
const [displayLocation] = values
const formFieldList = this.formFieldList
- console.log(formFieldList, 'AAAAAAAAAAAAAAAAAAAAA')
this.sarStandardsInfoEO = JSON.parse(JSON.stringify(item))
this.defaultCheckedKeys = [this.sarStandardsInfoEO.standSystem];
- if(item.country !== undefined && item.country !== null && item.country !== ''){
+ if (item.country !== undefined && item.country !== null && item.country !== '') {
this.sarStandardsInfoEO.country = item.country.split(",");
}
this.sarStandardsInfoEO.standSort = item.standSort
@@ -2471,15 +2499,15 @@ export default {
if (value && field.attrType === 'DATE_PICKER') {
value = this.$moment(value).format('YYYY-MM-DD')
}
- if(field.attrField === 'CYCVPPSBM'){
- this.defaultCheckedKeys1 = [value]
- }
- if(field.attrField === 'KCCVPPSBM'){
- this.defaultCheckedKeys2 = [value]
- }
- if(field.attrField === 'DYBXH'){
- this.defaultCheckedKeys3 = [value]
- }
+ if (field.attrField === 'CYCVPPSBM') {
+ this.defaultCheckedKeys1 = [value]
+ }
+ if (field.attrField === 'KCCVPPSBM') {
+ this.defaultCheckedKeys2 = [value]
+ }
+ if (field.attrField === 'DYBXH') {
+ this.defaultCheckedKeys3 = [value]
+ }
field['value'] = value
// 追加用户名称和部门名称
if (field.selVal === 'ROLELIST' || field.selVal === 'ORGLIST' || field.selVal === 'USERLIST' || field.attrField === 'SVPPS' || field.attrField === 'XMPGJS') {
@@ -2501,28 +2529,28 @@ export default {
})
},
// 查询二级菜单
- selectChildMenu (row) {
+ selectChildMenu(row) {
this.$http.get('sarResource/ts-resource/getMenuById', {
menuId: row.id
}, {}, res => {
if (res.ok) {
- if(this.modalType === 1){
+ if (this.modalType === 1) {
let idsName = ""
- if(row.parentIds !== null){
- if(row.parentIds.indexOf(res.data.id) != -1){
+ if (row.parentIds !== null) {
+ if (row.parentIds.indexOf(res.data.id) != -1) {
this.productModelAdd.parentIds = row.parentIds
- }else {
+ } else {
this.productModelAdd.parentIds = row.parentIds + ',' + res.data.id
idsName = row.parentIdsName + ',' + res.data.menuName
}
- }else {
+ } else {
this.productModelAdd.parentIds = res.data.id
idsName = res.data.menuName;
}
this.productModelAdd.parentId = res.data.id
this.productModelAdd.parentIdsName = idsName
this.$forceUpdate()
- }else {
+ } else {
this.productModelAdd = res.data
}
}
@@ -2569,13 +2597,13 @@ export default {
resourceId: data.id
}, res => {
}, e => {
- if(e.ok){
+ if (e.ok) {
this.$message({
type: 'success',
message: "删除成功"
})
this.selectMenu()
- }else {
+ } else {
this.$message({
type: 'warning',
message: e.message
@@ -2595,41 +2623,41 @@ export default {
// children.splice(index, 1);
},
// 树节点鼠标移入移出
- mouseenter(data){
- if(data.menuName !== '我的收藏'){
+ mouseenter(data) {
+ if (data.menuName !== '我的收藏') {
this.$set(data, 'show', true)
- if(data.parentId !== null){
+ if (data.parentId !== null) {
this.$set(data, 'showDel', true)
}
}
},
- mouseleave(data){
+ mouseleave(data) {
this.$set(data, 'show', false)
this.$set(data, 'showDel', false)
},
- treeClick (treeNode) {
+ treeClick(treeNode) {
this.selectSarMenu = treeNode
this.standCommonlySearch.menuId = treeNode.id
this.standCommonlySearch.page = 1
this.getDomesticStandardTable()
},
// 点击搜索按钮
- searchBtnClick () {
+ searchBtnClick() {
this.getDomesticStandardTable()
},
// 搜索
- getDomesticStandardTableBtn (item) {
+ getDomesticStandardTableBtn(item) {
item.page = 1
this.standCommonlySearch.page = 1
this.standCommonlySearch.sarStandardsSearch = JSON.stringify(item) || ''
this.getDomesticStandardTable(item)
},
// 清空搜索框
- clearAllSearch (flag) {
- if (flag==='standCommonlySearch'){
- this.standCommonlySearch.standNumber='';
- this.standCommonlySearch.standSort='';
- this.standCommonlySearch.page=1;
+ clearAllSearch(flag) {
+ if (flag === 'standCommonlySearch') {
+ this.standCommonlySearch.standNumber = '';
+ this.standCommonlySearch.standSort = '';
+ this.standCommonlySearch.page = 1;
}
this.getDomesticStandardTable(this.standCommonlySearch)
@@ -2658,23 +2686,23 @@ export default {
}
},
// 高级检索
- selectMoreBtn () {
+ selectMoreBtn() {
this.isAdvancedSearch = true
},
- treeCollapse () {
+ treeCollapse() {
this.sideClose = !this.sideClose
},
// 收展按钮
- collapseIcon () {
+ collapseIcon() {
return this.sideClose ? 'el-icon-arrow-left' : 'el-icon-arrow-right'
// return 'el-icon-arrow-left'
},
- resetTreeDialog () {
+ resetTreeDialog() {
this.menuModalFlag = false
this.$refs['addMenuForm'].resetFields()
},
// 点击二级菜单新增模态框中的保存
- newMenu () {
+ newMenu() {
this.isSubmit = true
this.$refs['addMenuForm'].validate((valid) => {
if (valid) {
@@ -2709,18 +2737,22 @@ export default {
})
},
// 查询二级菜单
- selectMenu () {
+ selectMenu() {
this.$http.get('sarResource/ts-resource/getList', {
sorDivide: 'FOREIGN_STAND',
userId: this.$store.getters.userInfo.userId
}, {}, res => {
if (res.ok) {
- this.treeList = res.data
+ for (let i in res.data) {
+ let arr = res.data[i].children
+ arr.push(arr.shift())
+ this.treeList = res.data
+ }
}
})
},
// 树-删除
- sureDeleteSarMenu () {
+ sureDeleteSarMenu() {
this.$confirm('是否删除?', '提示', {
confirmButtonText: '确定',
confirmButtonClass: 'common-button-primary',
@@ -2751,7 +2783,7 @@ export default {
})
},
// 树点击
- treeOnCheck (checkedList) {
+ treeOnCheck(checkedList) {
this.shareStandardSelect = []
checkedList.map((item, index) => {
if (!item.isParent) {
@@ -2760,12 +2792,12 @@ export default {
})
},
// 取消
- treeCancel () {
+ treeCancel() {
this.drawerModal = false
this.$refs.drawerModalTree.treeReload()
},
// 消息推送
- shareStandardBt () {
+ shareStandardBt() {
if (this.shareStandardSelect.length === 0) {
this.$message({
message: '请选择要分享的人!',
@@ -2797,7 +2829,7 @@ export default {
}
},
// 导出选中的标准 此处因为复选框没有设置好,所以先设置导出所有数据
- exportStandard () {
+ exportStandard() {
// 区别是选择导出还是全部导出
// this.exportModelFlag = true
if (this.selectedList.length > 0) {
@@ -2821,11 +2853,11 @@ export default {
this.exportModelFlag = true
},
// 获取拖拽行的id
- dragRowClassName (row, index) {
+ dragRowClassName(row, index) {
return 'drag-row' + ' ' + 'id=' + row.row.id
},
// 拖拽事件
- drag (treeNode, dragId) {
+ drag(treeNode, dragId) {
if (treeNode !== null) {
let search = {
menuId: treeNode.id,
@@ -2851,35 +2883,35 @@ export default {
}
},
// 修改成表格样式后,选择项勾选改变
- standSelectChange (data) {
+ standSelectChange(data) {
this.selectedList = []
for (let i = 0; i < data.length; i++) {
this.selectedList.push(data[i].id)
}
},
// 导出确定功能
- exportTestItem () {
+ exportTestItem() {
if (this.saveExportType === 'apart') {
if (this.selectedList != null && this.selectedList !== '') {
- const exportURL = interfaceUrl + 'sarStandardsInfo/sar-standards-info/exportStandardsInfoExcel?' +
- 'exportType=' + this.saveExportType + '&exportContent=' + this.selectedList.join(',') + '&exportName=' + this.exportName + '&standType=' + this.standType + '&userId=' + this.$store.getters.userInfo.userId
+ const exportURL = interfaceUrl + 'sarStandardsInfo/sar-standards-info/exportStandardsInfoExcel?' +
+ 'exportType=' + this.saveExportType + '&exportContent=' + this.selectedList.join(',') + '&exportName=' + this.exportName + '&standType=' + this.standType + '&userId=' + this.$store.getters.userInfo.userId
window.open(exportURL)
this.$message.success('导出信息成功')
}
} else if (this.saveExportType === 'all') {
let exportEOStr = JSON.stringify(this.SarExportSearchEo)
- window.open(interfaceUrl+'sarStandardsInfo/sar-standards-info/exportStandardsInfoExcel?exportType=' + this.saveExportType + '&exportContent=' + exportEOStr + '&exportName=' + this.exportName + '&standType=' + this.standType+ '&userId=' + this.$store.getters.userInfo.userId)
+ window.open(interfaceUrl + 'sarStandardsInfo/sar-standards-info/exportStandardsInfoExcel?exportType=' + this.saveExportType + '&exportContent=' + exportEOStr + '&exportName=' + this.exportName + '&standType=' + this.standType + '&userId=' + this.$store.getters.userInfo.userId)
this.$message.success('导出信息成功')
}
this.exportModelFlag = false
},
// 导出取消按钮关闭模态、置空
- cancal () {
+ cancal() {
this.exportModelFlag = false
},
// 点击新增按钮弹出新增模态框
- addModal () {
+ addModal() {
this.getMenu().then(boolean => {
if (boolean) {
// 判断是否有缓存的数据
@@ -2931,7 +2963,7 @@ export default {
}
})
},
- testItemsClick () {
+ testItemsClick() {
// if (this.testItemsModel) {
// return false
// }
@@ -2942,7 +2974,7 @@ export default {
this.testItemsForm.testItemName = ''
this.getTestItemRow('')
},
- beforeUploadTop (file) {
+ beforeUploadTop(file) {
var filename = file.name
var index1 = filename.lastIndexOf('.')
var index2 = filename.length
@@ -2961,7 +2993,7 @@ export default {
return true
},
// 删除数组中的某个对象
- removeAaary (_arr, _obj) {
+ removeAaary(_arr, _obj) {
var length = _arr.length
for (var i = 0; i < length; i++) {
if (_arr[i] === _obj) {
@@ -2978,7 +3010,7 @@ export default {
}
}
},
- handleAddFormatError (file) {
+ handleAddFormatError(file) {
// this.$message.error('文件' + file.name + '格式不正确,请上传pdf、doc、docx、ppt、pptx文件')
this.$message({
showClose: true,
@@ -2987,7 +3019,7 @@ export default {
})
},
// 导入文件大小超出范围
- handleSizeError (file) {
+ handleSizeError(file) {
this.$message({
showClose: true,
message: '文件' + file.name + '大小不超过200M',
@@ -2995,7 +3027,7 @@ export default {
})
},
// 删除标准
- deleteStand (flag, itemid) {
+ deleteStand(flag, itemid) {
if (flag === 1) {
(
this.$confirm('确认删除这些数据?', '提示', {
@@ -3053,7 +3085,7 @@ export default {
}
},
// 模板下载
- uploadImportModal (flag) {
+ uploadImportModal(flag) {
window.open('/api/sarStandardsInfo/sar-standards-info/exportTemplate?standType=FOREIGN')
// if (flag === 1) {
// } else {
@@ -3061,7 +3093,7 @@ export default {
// }
},
// 点击导入标准
- addImportModal (flag) {
+ addImportModal(flag) {
this.getMenu().then(boolean => {
if (boolean) {
// this.$refs.importfile.clearFiles()
@@ -3085,20 +3117,21 @@ export default {
}
})
},
- handleClose (done) {
+ handleClose(done) {
this.$confirm('确认关闭?')
.then(_ => {
done()
})
- .catch(_ => {})
+ .catch(_ => {
+ })
},
// 表单清空
- resetForm () {
+ resetForm() {
this.modalshowflag = false
this.$refs['sarStandardsInfoForm'].resetFields()
},
// 标准号验证
- validateStandNumber (standInfo) {
+ validateStandNumber(standInfo) {
return new Promise((resolve, reject) => {
let obj = JSON.parse(JSON.stringify(standInfo))
this.$http.post('sarStandardsInfo/sar-standards-info/validateStandNumber', obj, {
@@ -3117,109 +3150,105 @@ export default {
/**
* 保存新增标准数据召浏览器缓存
* */
- saveBt () {
+ saveBt() {
sessionStorage.setItem('FOREIGN_INLAND', JSON.stringify(this.sarStandardsInfoEO))
this.$message.success('保存成功')
},
// 保存或修改标准
- saveOrUpdateStands () {
- this.isSubmit = true
- this.$refs['sarStandardsInfoForm'].validate((valid) => {
- if (valid) {
- // 验证标准号是否唯一
- this.validateStandNumber(this.sarStandardsInfoEO).then((flag) => {
- if (flag) {
- // 时间格式修改
- this.sarStandardsInfoEO.country = this.sarStandardsInfoEO.countryArr;
- let nowstandinfo = JSON.parse(JSON.stringify(this.sarStandardsInfoEO))
- if (nowstandinfo.putTime != null && nowstandinfo.putTime !== '') {
- nowstandinfo.putTime = this.$dateFormat(this.sarStandardsInfoEO.putTime, 'yyyy-MM-dd hh:mm:ss')
- }
- // 代替标准号
- if (nowstandinfo.replaceStandNum != null) {
- nowstandinfo.replaceStandNum = nowstandinfo.replaceStandNum.replace(/,/ig, ',')
- }
- if (nowstandinfo.replaceStandNum != null && nowstandinfo.replaceStandNum !== '') {
- nowstandinfo.replaceStandNum = nowstandinfo.replaceStandNum.replace(/\r\n/g, '
')
- nowstandinfo.replaceStandNum = nowstandinfo.replaceStandNum === '' ? '' : nowstandinfo.replaceStandNum.replace(/\n/g, '
')
- }
- // 处理动态表单的时间和下拉框格式
- const formFieldList = this.formFieldList
- const sarStandAttrObj = {}
-
- formFieldList.forEach((item) => {
- const value = nowstandinfo[item.attrField]
- // 时间格式处理
- if (item.attrType === 'DATE_PICKER' && value) {
- nowstandinfo[item.attrField] = this.sarStandardsInfoEO[item.attrField]
- }
- // 数组处理
- if (item.attrType === 'SEL_OPTION' || item.attrType === 'SEL_OPTS') {
- if (value != null && (value instanceof Array)) {
- nowstandinfo[item.attrField] = nowstandinfo[item.attrField].join(',')
- }
- }
- sarStandAttrObj[item.attrField] = nowstandinfo[item.attrField]
- })
-
-
- nowstandinfo['sarStandAttrEOStr'] = JSON.stringify(sarStandAttrObj).replace(/"/g, "'")
- console.log("nowstandinfo");
- console.log(nowstandinfo);
- this.$http.postData(this.addOrUPdateFlag === 1 ? 'sarStandardsInfo/sar-standards-info/addarStandardsInfo' : 'sarStandardsInfo/sar-standards-info/updateSarStandardsInfo', nowstandinfo, {
- _this: this
- }, res => {
- this.isSubmit = false
- if (res.ok) {
- this.getDomesticStandardTable(this.tableFlag)
- this.resetForm()
- if (this.addOrUPdateFlag === 1) {
- sessionStorage.removeItem('STAND_INLAND')
- }
-
- console.log("hello")
- console.log(formFieldList);
- let standardToLawsInfo={'countryArea':'','standId':'','ssrq':'','zccssrqgj':'','xcxssrqgj':''}
- standardToLawsInfo.countryArea=nowstandinfo.country;
- standardToLawsInfo.standId=nowstandinfo.id;
- standardToLawsInfo.ssrq=nowstandinfo.SSRQ;
- standardToLawsInfo.zccssrqgj=nowstandinfo.ZCCSSRQ;
- standardToLawsInfo.xcxssrqgj=nowstandinfo.XCXSSRQ;
-
- console.log("country")
- console.log(standardToLawsInfo);
- this.$http.post('sarLawsDetailedList/sar-laws-detailed-list/standardToLaws',
- standardToLawsInfo,
- {_this:this}
- )
-
-
-
- }
- }, e => {
- this.isSubmit = false
- })
-
-
-
-
-
-
- } else {
- this.isSubmit = false
- }
- }, e => {})
- } else {
- this.isSubmit = false
- this.$message({
- message: '请检查表单是否填写正确',
- type: 'warning'
- })
+ saveOrUpdateStands() {
+ this.isSubmit = true
+ this.$refs['sarStandardsInfoForm'].validate((valid) => {
+ if (valid) {
+ // 验证标准号是否唯一
+ this.validateStandNumber(this.sarStandardsInfoEO).then((flag) => {
+ if (flag) {
+ // 时间格式修改
+ this.sarStandardsInfoEO.country = this.sarStandardsInfoEO.countryArr;
+ let nowstandinfo = JSON.parse(JSON.stringify(this.sarStandardsInfoEO))
+ if (nowstandinfo.putTime != null && nowstandinfo.putTime !== '') {
+ nowstandinfo.putTime = this.$dateFormat(this.sarStandardsInfoEO.putTime, 'yyyy-MM-dd hh:mm:ss')
}
+ // 代替标准号
+ if (nowstandinfo.replaceStandNum != null) {
+ nowstandinfo.replaceStandNum = nowstandinfo.replaceStandNum.replace(/,/ig, ',')
+ }
+ if (nowstandinfo.replaceStandNum != null && nowstandinfo.replaceStandNum !== '') {
+ nowstandinfo.replaceStandNum = nowstandinfo.replaceStandNum.replace(/\r\n/g, '
')
+ nowstandinfo.replaceStandNum = nowstandinfo.replaceStandNum === '' ? '' : nowstandinfo.replaceStandNum.replace(/\n/g, '
')
+ }
+ // 处理动态表单的时间和下拉框格式
+ const formFieldList = this.formFieldList
+ const sarStandAttrObj = {}
+
+ formFieldList.forEach((item) => {
+ const value = nowstandinfo[item.attrField]
+ // 时间格式处理
+ if (item.attrType === 'DATE_PICKER' && value) {
+ nowstandinfo[item.attrField] = this.sarStandardsInfoEO[item.attrField]
+ }
+ // 数组处理
+ if (item.attrType === 'SEL_OPTION' || item.attrType === 'SEL_OPTS') {
+ if (value != null && (value instanceof Array)) {
+ nowstandinfo[item.attrField] = nowstandinfo[item.attrField].join(',')
+ }
+ }
+ sarStandAttrObj[item.attrField] = nowstandinfo[item.attrField]
+ })
+
+
+ nowstandinfo['sarStandAttrEOStr'] = JSON.stringify(sarStandAttrObj).replace(/"/g, "'")
+ this.$http.postData(this.addOrUPdateFlag === 1 ? 'sarStandardsInfo/sar-standards-info/addarStandardsInfo' : 'sarStandardsInfo/sar-standards-info/updateSarStandardsInfo', nowstandinfo, {
+ _this: this
+ }, res => {
+ this.isSubmit = false
+ if (res.ok) {
+ this.getDomesticStandardTable(this.tableFlag)
+ this.resetForm()
+ if (this.addOrUPdateFlag === 1) {
+ sessionStorage.removeItem('STAND_INLAND')
+ }
+
+ let standardToLawsInfo = {
+ 'countryArea': '',
+ 'standId': '',
+ 'ssrq': '',
+ 'zccssrqgj': '',
+ 'xcxssrqgj': ''
+ }
+ standardToLawsInfo.countryArea = nowstandinfo.country;
+ standardToLawsInfo.standId = nowstandinfo.id;
+ standardToLawsInfo.ssrq = nowstandinfo.SSRQ;
+ standardToLawsInfo.zccssrqgj = nowstandinfo.ZCCSSRQ;
+ standardToLawsInfo.xcxssrqgj = nowstandinfo.XCXSSRQ;
+
+ this.$http.post('sarLawsDetailedList/sar-laws-detailed-list/standardToLaws',
+ standardToLawsInfo,
+ {_this: this}
+ )
+
+
+ }
+ }, e => {
+ this.isSubmit = false
+ })
+
+
+ } else {
+ this.isSubmit = false
+ }
+ }, e => {
})
- },
+ } else {
+ this.isSubmit = false
+ this.$message({
+ message: '请检查表单是否填写正确',
+ type: 'warning'
+ })
+ }
+ })
+ },
// 表格排序
- sortChange (sortObj) {
+ sortChange(sortObj) {
if (sortObj.column.order !== 'normal') {
this.nowOrder = ''
@@ -3229,46 +3258,46 @@ export default {
// 后台联调
this.orderBy = 1;
this.nowOrder = sortObj.column.order
- if (this.nowOrder === 'ascending'){
- this.nowOrder=2
- }else if (this.nowOrder === 'descending') {
- this.nowOrder=1
+ if (this.nowOrder === 'ascending') {
+ this.nowOrder = 2
+ } else if (this.nowOrder === 'descending') {
+ this.nowOrder = 1
}
break
case 'XCXSSRQ' :
this.orderBy = 2;
this.nowOrder = sortObj.column.order
- if (this.nowOrder === 'ascending'){
- this.nowOrder=2
- }else if (this.nowOrder === 'descending') {
- this.nowOrder=1
+ if (this.nowOrder === 'ascending') {
+ this.nowOrder = 2
+ } else if (this.nowOrder === 'descending') {
+ this.nowOrder = 1
}
break
case 'ZCCSSRQ' :
this.orderBy = 3;
this.nowOrder = sortObj.column.order
- if (this.nowOrder === 'ascending'){
- this.nowOrder=2
- }else if (this.nowOrder === 'descending') {
- this.nowOrder=1
+ if (this.nowOrder === 'ascending') {
+ this.nowOrder = 2
+ } else if (this.nowOrder === 'descending') {
+ this.nowOrder = 1
}
break
case 'textStatus' :
this.orderBy = 5;
this.nowOrder = sortObj.column.order
- if (this.nowOrder === 'ascending'){
- this.nowOrder=2
- }else if (this.nowOrder === 'descending') {
- this.nowOrder=1
+ if (this.nowOrder === 'ascending') {
+ this.nowOrder = 2
+ } else if (this.nowOrder === 'descending') {
+ this.nowOrder = 1
}
break
case 'SSRQ' :
this.orderBy = 6;
this.nowOrder = sortObj.column.order
- if (this.nowOrder === 'ascending'){
- this.nowOrder=2
- }else if (this.nowOrder === 'descending') {
- this.nowOrder=1
+ if (this.nowOrder === 'ascending') {
+ this.nowOrder = 2
+ } else if (this.nowOrder === 'descending') {
+ this.nowOrder = 1
}
break
@@ -3278,12 +3307,12 @@ export default {
},
// 分页点击后方法
- pageChange (page) {
+ pageChange(page) {
this.standCommonlySearch.page = page
this.getDomesticStandardTable()
},
// 分页每页显示数改变后方法
- pageSizeChange (pageSize) {
+ pageSizeChange(pageSize) {
this.standCommonlySearch.pageSize = pageSize
this.standCommonlySearch.page = 1
this.getDomesticStandardTable()
@@ -3293,7 +3322,7 @@ export default {
* item 判断是高级检索还是普通检索
* 1、空:普通检索 2:高级检索
* */
- getDomesticStandardTable (item) {
+ getDomesticStandardTable(item) {
// if (item === 2) {
// data.standSort = ''
@@ -3376,7 +3405,6 @@ export default {
}
if (res.data.list[i].attrInfoMap && res.data.list[i].attrInfoMap.SSRQ) {
res.data.list[i].SSRQ = res.data.list[i].attrInfoMap.SSRQ
- console.log(res.data.list[i].SSRQ);
}
}
this.stahndinfoList = res.data.list
@@ -3399,7 +3427,7 @@ export default {
}
},
// 查询处于游离态的标准
- selectConfiguraStand () {
+ selectConfiguraStand() {
this.sarConfigStandSearch.page = this.configPage
// this.sarConfigStandSearch.pageSize = this.configRows
this.sarConfigStandSearch.pageSize = this.$store.getters.userInfo.configContent
@@ -3419,7 +3447,7 @@ export default {
})
},
// 获取组织机构数据
- getOrgTreeSource () {
+ getOrgTreeSource() {
this.$http.get('sys/org/getTree', {}, {
_this: this
},
@@ -3441,19 +3469,20 @@ export default {
this.zNodesSItem = JSON.parse(JSON.stringify(treeNode))
this.searchInlandNodes = JSON.parse(JSON.stringify(treeNode))
}
- }, e => {})
+ }, e => {
+ })
},
// 所属部门选取
- treeDblClick (treeId, treeNode) {
+ treeDblClick(treeId, treeNode) {
this.sarStandardsInfoEO.responsibleUnit = treeNode.id
this.sarStandardsInfoEO.orgName = treeNode.name
$('#deptBtn').click()
},
- inputChange () {
+ inputChange() {
this.modalshowflag = true
},
// 代替标准号搜索
- selectStands () {
+ selectStands() {
// if (this.standNumFlag === 1) {
// this.$refs.selections.selectAll(false)
// }
@@ -3461,17 +3490,17 @@ export default {
this.replaceStandNumModel = true
this.getReplaceStandNumRow('')
},
- selectReplaceStandNumRowChange (row) {
+ selectReplaceStandNumRowChange(row) {
this.replaceStandNumModelNum = row
},
- selectLawsExplainQuoteRowChange (row) {
+ selectLawsExplainQuoteRowChange(row) {
this.lawsExplainQuoteModelNum = row
},
// 试验项目
- selectTestItemRowChange (row) {
+ selectTestItemRowChange(row) {
this.testItemModelNum = row
},
- selectTestItemRowSelect (selection, flag, row) {
+ selectTestItemRowSelect(selection, flag, row) {
let index = ''
if (row) {
this.selectedList2.map((item, rowIndex) => {
@@ -3511,7 +3540,7 @@ export default {
})
}
},
- selectLawsExplainQuoteRowSelect (selection, flag, row) {
+ selectLawsExplainQuoteRowSelect(selection, flag, row) {
let index = ''
if (row) {
this.selectedList1.map((item, rowIndex) => {
@@ -3552,7 +3581,7 @@ export default {
}
},
// 代替标准号
- getReplaceStandNumRow (page = 1, pageSize = this.$store.getters.userInfo.configContent) {
+ getReplaceStandNumRow(page = 1, pageSize = this.$store.getters.userInfo.configContent) {
this.replaceStandNumForm.page = this.replacePage
this.replaceStandNumForm.pageSize = this.$store.getters.userInfo.configContent
if (page === '') {
@@ -3593,7 +3622,7 @@ export default {
*@author: zhangRui
*@time: 2020/08/25 11:52:47
*/
- selectReplaceStandNumRowSelect (selection, flag, row) {
+ selectReplaceStandNumRowSelect(selection, flag, row) {
let index = ''
if (row) {
this.selectedListRep.map((item, rowIndex) => {
@@ -3633,7 +3662,7 @@ export default {
})
}
},
- lawsExplainQuoteModelBt () {
+ lawsExplainQuoteModelBt() {
if (typeof this.sarStandardsInfoEO.lawsExplainQuote === 'string') {
this.sarStandardsInfoEO.lawsExplainQuote = this.sarStandardsInfoEO.lawsExplainQuote.split('')
}
@@ -3674,11 +3703,11 @@ export default {
this.lawsExplainQuoteModel = false
})
},
- canle () {
+ canle() {
this.lawsExplainQuoteModel = false
},
// 法规解读标准引用
- lawsExplainQuoteClick () {
+ lawsExplainQuoteClick() {
this.getLawsExplainQuoteRow('')
this.lawsExplainQuoteModel = true
if (this.lawsExplainQuoteModel) {
@@ -3690,33 +3719,33 @@ export default {
// this.$refs.selection.selectAll(false)
this.testItemsForm.standNumber = ''
},
- pageChangeLaws (page) {
+ pageChangeLaws(page) {
this.page = page
this.getLawsExplainQuoteRow()
},
- pageSizeChangeLaws (pageSize) {
+ pageSizeChangeLaws(pageSize) {
this.rows = pageSize
this.getLawsExplainQuoteRow()
},
// 法规分页
- pageChangeReplace (page) {
+ pageChangeReplace(page) {
this.replacePage = page
this.getReplaceStandNumRow()
},
- pageSizeChangeReplace (pageSize) {
+ pageSizeChangeReplace(pageSize) {
this.replaceRows = pageSize
this.getReplaceStandNumRow()
},
// 试验项目分页
- pageChangeItems (page) {
+ pageChangeItems(page) {
this.pageItems = page
this.getTestItemRow()
},
- pageSizeChangeItems (pageSize) {
+ pageSizeChangeItems(pageSize) {
this.itemsRows = pageSize
this.getTestItemRow()
},
- testItemsModellBt () {
+ testItemsModellBt() {
if (this.selectedList2.length === 0) {
return this.$message({
message: '请先选择数据',
@@ -3749,7 +3778,7 @@ export default {
this.testItemsModel = false
})
},
- getLawsExplainQuoteRow (page = 1, pageSize = this.$store.getters.userInfo.configContent) {
+ getLawsExplainQuoteRow(page = 1, pageSize = this.$store.getters.userInfo.configContent) {
this.lawsExplainQuoteForm.page = this.page
this.lawsExplainQuoteForm.pageSize = this.$store.getters.userInfo.configContent
if (page === '') {
@@ -3777,7 +3806,7 @@ export default {
}, e => {
})
},
- getTestItemRow (page = 1, pageSize = this.$store.getters.userInfo.configContent) {
+ getTestItemRow(page = 1, pageSize = this.$store.getters.userInfo.configContent) {
this.testItemsForm.page = this.pageItems
this.testItemsForm.pageSize = this.$store.getters.userInfo.configContent
if (page === '') {
@@ -3806,12 +3835,12 @@ export default {
})
},
// 文件上传时的钩子函数
- onProgress (event, file, fileList) {
+ onProgress(event, file, fileList) {
this.exportLoading = true
this.importModalshowflag = false
},
// 导入标准数据成功后执行
- importFileSuccess (response, file) {
+ importFileSuccess(response, file) {
this.exportLoading = false
if (response.ok) {
this.showUploadlist = true
@@ -3834,7 +3863,7 @@ export default {
}
},
// 查看标准条目
- selectSarStandItems (standid) {
+ selectSarStandItems(standid) {
this.modalStandItemflag = true
this.standItemSearch.standId = standid
this.$http.get('lawss/sarStandItems/getSarStandItemsList', this.standItemSearch, {
@@ -3846,7 +3875,7 @@ export default {
})
},
// 点击配置标准弹出相应模态框
- configurationStandard () {
+ configurationStandard() {
// this.getMenu().then(boolean => {
// if (boolean) {
const winWidth = window.screen.width
@@ -3889,7 +3918,7 @@ export default {
// })
},
// 判断当前左侧树节点是否是我的收藏和个性化标签
- getMenu () {
+ getMenu() {
return new Promise((resolve, reject) => {
let menu = this.selectSarMenu
if (menu.id === 'gxhbq' || menu.pId === 'gxhbq' || menu.id === 'wdsc' || menu.pId === 'wdsc') {
@@ -3900,12 +3929,12 @@ export default {
})
},
// 取消配置标准
- cancelConfigStand () {
+ cancelConfigStand() {
this.configStandFlag = false
this.selectConfigStand = []
},
// 表对应标准移除分类到
- deleteStandFromKind (flag, item) {
+ deleteStandFromKind(flag, item) {
// this.getMenu().then(boolean => {
// if (boolean) {
if (this.selectSarMenu.parentId == null || this.selectSarMenu.parentId === '') {
@@ -3974,28 +4003,28 @@ export default {
// })
},
// 分页点击后方法
- configuraPageChange (page) {
+ configuraPageChange(page) {
this.configPage = page
this.selectConfiguraStand()
},
// 分页每页显示数改变后方法
- configuraPageSizeChange (pageSize) {
+ configuraPageSizeChange(pageSize) {
this.configRows = pageSize
this.selectConfiguraStand()
// 此处需要调用接口,修改个人配置
},
- searchConfiguraStand () {
+ searchConfiguraStand() {
this.sarConfigStandSearch.page = 1
this.selectConfiguraStand()
},
- selectConfigStandChange (alldata) {
+ selectConfigStandChange(alldata) {
this.selectConfigStand = []
for (let i = 0; i < alldata.length; i++) {
this.selectConfigStand.push(alldata[i].id)
}
},
// 提交配置搜索项
- saveConfigStand () {
+ saveConfigStand() {
let search = {}
search.menuId = this.selectSarMenu.id
if (this.selectConfigStand.length === 0) {
@@ -4024,13 +4053,13 @@ export default {
/**
* 获取新增弹框的表单
*/
- getAddFormFieldList (isEdit) {
+ getAddFormFieldList(isEdit) {
this.$http.get('lawss/sarStandAttrDetails/list', {}, {
_this: this
},
res => {
if (res.ok) {
- const { data = {} } = res
+ const {data = {}} = res
this.formFieldListData = data['FOREIGN_STAND'] || []
const formFieldListData = data['FOREIGN_STAND'] || []
// 追加高级查询动态下拉框数据s
@@ -4117,12 +4146,13 @@ export default {
this.twoOptions = twoOptions
// this.resolveFormFieldList()
}
- }, e => {})
+ }, e => {
+ })
},
/**
* 展示位置
*/
- queryDisplayLocation () {
+ queryDisplayLocation() {
return new Promise((resolve, reject) => {
this.$http.get('lawssBase/utArea/getAreaList', {
sarType: 'FOREIGN_STAND'
@@ -4136,7 +4166,7 @@ export default {
})
},
// 新增时不用
- selectStandMessage () {
+ selectStandMessage() {
return new Promise((resolve, reject) => {
this.$http.get('lawss/sarStandardsInfo/getStandInfoById', {id: this.sarStandardsInfoEO.id}, {
_this: this, loading: 'loading'
@@ -4168,74 +4198,74 @@ export default {
})
})
},
- resolveFormFieldList (isEdit) {
- const data = this.formFieldListData
- this.formFieldList = data.map((item) => {
- if (item.attrType === 'SEL_OPTION' || item.attrType === 'SEL_OPTS') {
- if(item.attrField === 'WSSMR'){
- return Object.assign({}, item, {
- options: this.allSelectOptions["WSSMR"]
- })
- }else if(item.attrField === 'QCDW'){
- return Object.assign({}, item, {
- options: this.allSelectOptions["QCDW"]
- })
- }else if(item.attrField === 'CYSD'){
- return Object.assign({}, item, {
- options: this.allSelectOptions["WSCYSD"]
- })
- }else if(item.attrField === 'CLLX'){
- return Object.assign({}, item, {
- options: this.allSelectOptions["ENERGYTYPES"]
- })
- }else if(item.attrField === 'NYLX'){
- return Object.assign({}, item, {
- options: this.allSelectOptions["NYLXCLASS"]
- })
- }else if(item.attrField === 'SYCPX'){
- return Object.assign({}, item, {
- options: this.allSelectOptions["SYCPXCLASS"]
- })
- }else if(item.attrField === 'SYRZ'){
- return Object.assign({}, item, {
- options: this.allSelectOptions["SYRZCLASS"]
- })
- }else if(item.attrField === 'ZRBM'){
- return Object.assign({}, item, {
- options: this.allSelectOptions["ZRBMCLASS"]
- })
- }else if(item.attrField === 'ZRGCS'){
- return Object.assign({}, item, {
- options: this.allSelectOptions["ZRGCSCLASS"]
- })
- }else if(item.attrField === 'TXLB'){
- return Object.assign({}, item, {
- options: this.allSelectOptions["TXLBCLASS"]
- })
- }else {
- return Object.assign({}, item, {
- options: this.allSelectOptions[item.selVal]
- })
- }
- } else {
- return item
- }
- })
- // 处理时间格式的数据
- data.forEach(item => {
- if (item.attrType === 'DATE_PICKER') {
- const date = this.sarStandardsInfoEO[item.attrField] ? new Date(this.sarStandardsInfoEO[item.attrField]) : ''
- this.$set(this.sarStandardsInfoEO, item.attrField, date)
- } else {
- this.$set(this.sarStandardsInfoEO, item.attrField, this.sarStandardsInfoEO[item.attrField] || '')
- }
- })
- this.resolveFormFieldListRules(isEdit)
- },
+ resolveFormFieldList(isEdit) {
+ const data = this.formFieldListData
+ this.formFieldList = data.map((item) => {
+ if (item.attrType === 'SEL_OPTION' || item.attrType === 'SEL_OPTS') {
+ if (item.attrField === 'WSSMR') {
+ return Object.assign({}, item, {
+ options: this.allSelectOptions["WSSMR"]
+ })
+ } else if (item.attrField === 'QCDW') {
+ return Object.assign({}, item, {
+ options: this.allSelectOptions["QCDW"]
+ })
+ } else if (item.attrField === 'CYSD') {
+ return Object.assign({}, item, {
+ options: this.allSelectOptions["WSCYSD"]
+ })
+ } else if (item.attrField === 'CLLX') {
+ return Object.assign({}, item, {
+ options: this.allSelectOptions["ENERGYTYPES"]
+ })
+ } else if (item.attrField === 'NYLX') {
+ return Object.assign({}, item, {
+ options: this.allSelectOptions["NYLXCLASS"]
+ })
+ } else if (item.attrField === 'SYCPX') {
+ return Object.assign({}, item, {
+ options: this.allSelectOptions["SYCPXCLASS"]
+ })
+ } else if (item.attrField === 'SYRZ') {
+ return Object.assign({}, item, {
+ options: this.allSelectOptions["SYRZCLASS"]
+ })
+ } else if (item.attrField === 'ZRBM') {
+ return Object.assign({}, item, {
+ options: this.allSelectOptions["ZRBMCLASS"]
+ })
+ } else if (item.attrField === 'ZRGCS') {
+ return Object.assign({}, item, {
+ options: this.allSelectOptions["ZRGCSCLASS"]
+ })
+ } else if (item.attrField === 'TXLB') {
+ return Object.assign({}, item, {
+ options: this.allSelectOptions["TXLBCLASS"]
+ })
+ } else {
+ return Object.assign({}, item, {
+ options: this.allSelectOptions[item.selVal]
+ })
+ }
+ } else {
+ return item
+ }
+ })
+ // 处理时间格式的数据
+ data.forEach(item => {
+ if (item.attrType === 'DATE_PICKER') {
+ const date = this.sarStandardsInfoEO[item.attrField] ? new Date(this.sarStandardsInfoEO[item.attrField]) : ''
+ this.$set(this.sarStandardsInfoEO, item.attrField, date)
+ } else {
+ this.$set(this.sarStandardsInfoEO, item.attrField, this.sarStandardsInfoEO[item.attrField] || '')
+ }
+ })
+ this.resolveFormFieldListRules(isEdit)
+ },
/**
* 生成校验规则
*/
- resolveFormFieldListRules (isEdit) {
+ resolveFormFieldListRules(isEdit) {
this.reloadAddForm = false
const formFieldList = this.formFieldList
const rules = {...this.defaultAddFormFieldRules}
@@ -4245,15 +4275,15 @@ export default {
if (item.attrType === 'DATE_PICKER') {
rule.push({required: true, type: 'date', message: `${item.attrName}不能为空`, trigger: 'blur'})
} else if (item.attrType === 'SEL_OPTION') {
- rule.push({ required: true, message: `${item.attrName}不能为空`, trigger: 'change' })
+ rule.push({required: true, message: `${item.attrName}不能为空`, trigger: 'change'})
} else if (item.attrType === 'DATE_PIC_OPTS') {
- rule.push({ required: true, message: `${item.attrName}不能为空`, trigger: 'change' })
+ rule.push({required: true, message: `${item.attrName}不能为空`, trigger: 'change'})
} else if (item.attrType === 'INPUT_NUM') {
- rule.push({ required: true, message: `${item.attrName}不能为空`, trigger: 'blur' })
+ rule.push({required: true, message: `${item.attrName}不能为空`, trigger: 'blur'})
} else if (item.attrType === 'SEL_OPTS') {
- rule.push({ required: true, message: `${item.attrName}不能为空`, trigger: 'change' })
- }else if(item.attrType ==='INPUT_STR'){
- rule.push({ required: true, message: `${item.attrName}不能为空`, trigger: 'change' })
+ rule.push({required: true, message: `${item.attrName}不能为空`, trigger: 'change'})
+ } else if (item.attrType === 'INPUT_STR') {
+ rule.push({required: true, message: `${item.attrName}不能为空`, trigger: 'change'})
}
}
// isEdit 为0 标准状态不是必填
@@ -4265,8 +4295,14 @@ export default {
if (item.attrField === 'DTBJH' || item.attrField === 'YYBJ') {
rule.push({type: 'string', max: 100, message: `${item.attrName}不能超过100个字符`, trigger: 'blur'})
} else {
- rule.push({type: 'string', max: item.attrLen, message: `${item.attrName}不能超过${item.attrLen}个字符`, trigger: 'blur'})
- } }
+ rule.push({
+ type: 'string',
+ max: item.attrLen,
+ message: `${item.attrName}不能超过${item.attrLen}个字符`,
+ trigger: 'blur'
+ })
+ }
+ }
if (item.attrField === 'DTBJH' || item.attrField === 'YYBJ' || item.attrField === 'BYYBJ' || item.attrField === 'CBBH' || item.attrField === 'DXBZ') {
if (item.attrField === 'CBBH') {
rule.push({type: 'string', validator: this.verify.validateStandardItemNoRepeat, trigger: 'blur'})
@@ -4293,7 +4329,7 @@ export default {
* 是否添加进标准法规清单change事件
* 动态改变必填项
* */
- isRegulationsChange (val) {
+ isRegulationsChange(val) {
if (val === '0') {
const formFieldList = this.formFieldList
const rules = {...this.defaultAddFormFieldRules}
@@ -4303,17 +4339,22 @@ export default {
if (item.attrType === 'DATE_PICKER') {
rule.push({required: false, type: 'date', message: `${item.attrName}不能为空`, trigger: 'change'})
} else if (item.attrType === 'SEL_OPTION') {
- rule.push({ required: false, message: `${item.attrName}不能为空`, trigger: 'change' })
+ rule.push({required: false, message: `${item.attrName}不能为空`, trigger: 'change'})
} else if (item.attrType === 'DATE_PIC_OPTS') {
- rule.push({ required: false, message: `${item.attrName}不能为空`, trigger: 'change' })
+ rule.push({required: false, message: `${item.attrName}不能为空`, trigger: 'change'})
} else if (item.attrType === 'INPUT_NUM') {
- rule.push({ required: false, message: `${item.attrName}不能为空`, trigger: 'change' })
+ rule.push({required: false, message: `${item.attrName}不能为空`, trigger: 'change'})
} else if (item.attrType === 'SEL_OPTS') {
- rule.push({ required: false, message: `${item.attrName}不能为空`, trigger: 'change' })
+ rule.push({required: false, message: `${item.attrName}不能为空`, trigger: 'change'})
}
}
if (item.attrLen && item.attrType !== 'INPUT_NUM' && item.attrType !== 'DATE_PICKER' && item.attrType !== 'SEL_OPTION' && item.attrType !== 'SEL_OPTS' && item.attrType !== 'DATE_PIC_OPTS') {
- rule.push({type: 'string', max: item.attrLen, message: `${item.attrName}不能超过${item.attrLen}个字符`, trigger: 'change'})
+ rule.push({
+ type: 'string',
+ max: item.attrLen,
+ message: `${item.attrName}不能超过${item.attrLen}个字符`,
+ trigger: 'change'
+ })
}
if (rule.length > 0) {
rules[item.attrField] = rule
@@ -4334,19 +4375,24 @@ export default {
if (item.attrType === 'DATE_PICKER') {
rule.push({required: true, type: 'date', message: `${item.attrName}不能为空`, trigger: 'change'})
} else if (item.attrType === 'SEL_OPTION') {
- rule.push({ required: true, message: `${item.attrName}不能为空`, trigger: 'change' })
+ rule.push({required: true, message: `${item.attrName}不能为空`, trigger: 'change'})
} else if (item.attrType === 'DATE_PIC_OPTS') {
- rule.push({ required: true, message: `${item.attrName}不能为空`, trigger: 'change' })
+ rule.push({required: true, message: `${item.attrName}不能为空`, trigger: 'change'})
} else if (item.attrType === 'INPUT_NUM') {
- rule.push({ required: true, message: `${item.attrName}不能为空`, trigger: 'change' })
+ rule.push({required: true, message: `${item.attrName}不能为空`, trigger: 'change'})
} else if (item.attrType === 'SEL_OPTS') {
- rule.push({ required: true, message: `${item.attrName}不能为空`, trigger: 'change' })
- }else if(item.attrType ==='INPUT_STR'){
- rule.push({ required: true, message: `${item.attrName}不能为空`, trigger: 'change' })
+ rule.push({required: true, message: `${item.attrName}不能为空`, trigger: 'change'})
+ } else if (item.attrType === 'INPUT_STR') {
+ rule.push({required: true, message: `${item.attrName}不能为空`, trigger: 'change'})
}
}
if (item.attrLen && item.attrType !== 'INPUT_NUM' && item.attrType !== 'DATE_PICKER' && item.attrType !== 'SEL_OPTION' && item.attrType !== 'SEL_OPTS' && item.attrType !== 'DATE_PIC_OPTS') {
- rule.push({type: 'string', max: item.attrLen, message: `${item.attrName}不能超过${item.attrLen}个字符`, trigger: 'change'})
+ rule.push({
+ type: 'string',
+ max: item.attrLen,
+ message: `${item.attrName}不能超过${item.attrLen}个字符`,
+ trigger: 'change'
+ })
}
if (rule.length > 0) {
rules[item.attrField] = rule
@@ -4361,7 +4407,7 @@ export default {
}
},
// 获取工作组信息下拉框信息
- getGzzOption () {
+ getGzzOption() {
this.$http.get('lawss/sarGroupMenu/queryGroup', '', {
_this: this
}, res => {
@@ -4377,7 +4423,7 @@ export default {
}
})
},
- getDept () {
+ getDept() {
return new Promise((resolve, reject) => {
let url = 'sys/org/getTree'
this.$http.get(url, {}, {
@@ -4416,12 +4462,12 @@ export default {
formatText(str) {
return formatText(str)
},
- onChecked () {
+ onChecked() {
this.sarStandardsInfoEO.FO = ''
this.sarStandardsInfoEO.XMPGJS = ''
},
// 编辑时文件上传成功更改标准状态
- fileSuccess (boolean) {
+ fileSuccess(boolean) {
// 判断当前是新增还是编辑
if (this.addOrUPdateFlag === 2) {
let sarStandardsInfoEO = this.sarStandardsInfoEO
@@ -4479,7 +4525,7 @@ export default {
},
computed: {
// 是否拥有拖拽权限
- hasPermissionDrag () {
+ hasPermissionDrag() {
let has = false
let permissionList = this.$store.getters.getMenuList
permissionList.map((menu) => {
@@ -4489,7 +4535,7 @@ export default {
})
return has
},
- addBtnDisabled () {
+ addBtnDisabled() {
if (this.selectSarMenu.id === 'wdsc' ||
this.selectSarMenu.id === 'gxhbq' ||
this.selectSarMenu.pId === 'gxhbq') {
@@ -4499,7 +4545,7 @@ export default {
}
}
},
- async mounted () {
+ async mounted() {
// 进入页面后查询树形结构目录
this.menuTreeLoading = true
await this.selectMenu()
@@ -4529,10 +4575,10 @@ export default {
this.categoryConfigOptions = res.data.CATEGORY
this.standAttributeList = res.data.RULETYPE
this.qcdwOptions = res.data.QCDW
- this.cysdOptions=res.data.WSCYSD;
- this.nylxOptions=res.data.NYLXCLASS;//能源类型
- this.syrzOptions=res.data.SYRZCLASS;//适用认证
- this.gkglbmOptions=res.data.GKGLBM;//归口管理部门
+ this.cysdOptions = res.data.WSCYSD;
+ this.nylxOptions = res.data.NYLXCLASS;//能源类型
+ this.syrzOptions = res.data.SYRZCLASS;//适用认证
+ this.gkglbmOptions = res.data.GKGLBM;//归口管理部门
this.getGzzOption()
this.setMap(this.standStateOptions)
@@ -4547,7 +4593,7 @@ export default {
this.busVsFunc()
this.modelFunc()
},
- destroyed () {
+ destroyed() {
this.allSelectOptions = {}
this.countryOptions = []
this.regionOptions = []
@@ -4571,176 +4617,203 @@ export default {