标准预警

This commit is contained in:
宋伟佳
2021-06-08 10:07:16 +08:00
parent 8bedbf1822
commit 5d6ab83c30
4 changed files with 125 additions and 349 deletions
+1 -1
View File
@@ -7,7 +7,7 @@
<el-pagination <el-pagination
:total="total" :total="total"
:current-page="page" :current-page="page"
:page-sizes="[10, 20, 30, 50]" :page-sizes="[1, 10, 20, 30, 50]"
:page-size="pageSize" :page-size="pageSize"
@current-change="pageChange" @current-change="pageChange"
@size-change="pageSizeChange" @size-change="pageSizeChange"
+110 -324
View File
@@ -31,13 +31,13 @@
<div class="content" style="height: 100%; padding-top: 5px; "> <div class="content" style="height: 100%; padding-top: 5px; ">
<el-divider content-position="left" class="dynamic-child-title">新车型实施日期预警</el-divider> <el-divider content-position="left" class="dynamic-child-title">新车型实施日期预警</el-divider>
<el-table <el-table
:data="newTypeDatas" :data="newItems"
:height="height" :height="height"
border border
:resizable="false" :resizable="false"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}" :header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
> >
<el-table-column prop="sortName" label="类型" align="center"> <el-table-column prop="standType" label="类型" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.sortName === 'BUSINESS_STAND'">企业标准</div> <div v-if="scope.row.sortName === 'BUSINESS_STAND'">企业标准</div>
<div v-if="scope.row.sortName === 'FOREIGN_STAND'">海外标准法规</div> <div v-if="scope.row.sortName === 'FOREIGN_STAND'">海外标准法规</div>
@@ -46,7 +46,7 @@
<div v-if="scope.row.sortName === 'FOREIGN_LAWS'">国外政策</div> <div v-if="scope.row.sortName === 'FOREIGN_LAWS'">国外政策</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="standNum" label="编号" align="center"> <el-table-column prop="standCode" label="编号" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<a @click="showStandDetails(scope.row)">{{ scope.row.standNum }}</a> <a @click="showStandDetails(scope.row)">{{ scope.row.standNum }}</a>
</template> </template>
@@ -61,7 +61,7 @@
{{ (scope.row.putTime ? scope.row.putTime.substring(0, 11) : "") }} {{ (scope.row.putTime ? scope.row.putTime.substring(0, 11) : "") }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="standName" label="适用车型" align="center"> <el-table-column prop="applyType" label="适用车型" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<a @click="showStandDetails(scope.row)">{{ scope.row.standName }}</a> <a @click="showStandDetails(scope.row)">{{ scope.row.standName }}</a>
</template> </template>
@@ -71,7 +71,7 @@
<a @click="showStandDetails(scope.row)">{{ scope.row.standName }}</a> <a @click="showStandDetails(scope.row)">{{ scope.row.standName }}</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="standName" label="标准责任工程师" align="center"> <el-table-column prop="dutyEngineer" label="标准责任工程师" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<a @click="showStandDetails(scope.row)">{{ scope.row.standName }}</a> <a @click="showStandDetails(scope.row)">{{ scope.row.standName }}</a>
</template> </template>
@@ -79,13 +79,13 @@
</el-table> </el-table>
<pagination <pagination
style="position: static;" style="position: static;"
:page="newModelPageConfig.page" :page="pageConfig.current1"
:total="newModelPageConfig.total" :total="pageConfig.count1"
@pageChange="page => handlePageChange('newModel', page)" @pageChange="page => handlePageChange('newItems', page)"
@pageSizeChange="pageSize => handlePageSizeChange('newModel', pageSize)"></pagination> @pageSizeChange="pageSize => handlePageSizeChange('newItems', pageSize)"></pagination>
<el-divider content-position="left" class="dynamic-child-title">在产车实施日期预警</el-divider> <el-divider content-position="left" class="dynamic-child-title">在产车实施日期预警</el-divider>
<el-table <el-table
:data="productionVehicleDatas" :data="oldItems"
:height="height" :height="height"
border border
:resizable="false" :resizable="false"
@@ -133,13 +133,13 @@
</el-table> </el-table>
<pagination <pagination
style="position: static;" style="position: static;"
:page="newModelPageConfig.page" :page="pageConfig.current2"
:total="newModelPageConfig.total" :total="pageConfig.count2"
@pageChange="page => handlePageChange('newModel', page)" @pageChange="page => handlePageChange('newStand', page)"
@pageSizeChange="pageSize => handlePageSizeChange('newModel', pageSize)"></pagination> @pageSizeChange="pageSize => handlePageSizeChange('newStand', pageSize)"></pagination>
<el-divider content-position="left" class="dynamic-child-title">新车型条款预警</el-divider> <el-divider content-position="left" class="dynamic-child-title">新车型条款预警</el-divider>
<el-table <el-table
:data="productionVehicleDatas" :data="newStand"
:height="height" :height="height"
border border
:resizable="false" :resizable="false"
@@ -193,13 +193,13 @@
</el-table> </el-table>
<pagination <pagination
style="position: static;" style="position: static;"
:page="newModelPageConfig.page" :page="pageConfig.current3"
:total="newModelPageConfig.total" :total="pageConfig.count3"
@pageChange="page => handlePageChange('newModel', page)" @pageChange="page => handlePageChange('oldItems', page)"
@pageSizeChange="pageSize => handlePageSizeChange('newModel', pageSize)"></pagination> @pageSizeChange="pageSize => handlePageSizeChange('oldItems', pageSize)"></pagination>
<el-divider content-position="left" class="dynamic-child-title">在产车条款预警</el-divider> <el-divider content-position="left" class="dynamic-child-title">在产车条款预警</el-divider>
<el-table <el-table
:data="productionVehicleDatas" :data="oldStand"
:height="height" :height="height"
border border
:resizable="false" :resizable="false"
@@ -253,10 +253,10 @@
</el-table> </el-table>
<pagination <pagination
style="position: static;" style="position: static;"
:page="newModelPageConfig.page" :page="pageConfig.current4"
:total="newModelPageConfig.total" :total="pageConfig.count4"
@pageChange="page => handlePageChange('newModel', page)" @pageChange="page => handlePageChange('oldStand', page)"
@pageSizeChange="pageSize => handlePageSizeChange('newModel', pageSize)"></pagination> @pageSizeChange="pageSize => handlePageSizeChange('oldStand', pageSize)"></pagination>
</div> </div>
</div> </div>
</el-tab-pane> </el-tab-pane>
@@ -268,7 +268,7 @@
<el-divider content-position="left" class="dynamic-child-title">新车型实施日期预警</el-divider> <el-divider content-position="left" class="dynamic-child-title">新车型实施日期预警</el-divider>
<div class="table-wrap"> <div class="table-wrap">
<el-table <el-table
:data="newTypeDatas" :data="newItems"
:height="tableHeight" :height="tableHeight"
border border
:resizable="false" :resizable="false"
@@ -293,8 +293,8 @@
</div> </div>
<pagination <pagination
style="position: static;" style="position: static;"
:page="newModelPageConfig.page" :page="pageConfig.current1"
:total="newModelPageConfig.total" :total="pageConfig.count1"
@pageChange="page => handlePageChange('newModel', page)" @pageChange="page => handlePageChange('newModel', page)"
@pageSizeChange="pageSize => handlePageSizeChange('newModel', pageSize)"></pagination> @pageSizeChange="pageSize => handlePageSizeChange('newModel', pageSize)"></pagination>
</div> </div>
@@ -302,7 +302,7 @@
<el-divider content-position="left" class="dynamic-child-title">在产车实施日期预警</el-divider> <el-divider content-position="left" class="dynamic-child-title">在产车实施日期预警</el-divider>
<div class="table-wrap"> <div class="table-wrap">
<el-table <el-table
:data="productionVehicleDatas" :data="newItems"
:height="tableHeight" :height="tableHeight"
border border
:resizable="false" :resizable="false"
@@ -327,8 +327,8 @@
</div> </div>
<pagination <pagination
style="position: static;" style="position: static;"
:page="newModelPageConfig.page" :page="pageConfig.current1"
:total="newModelPageConfig.total" :total="pageConfig.count1"
@pageChange="page => handlePageChange('newModel', page)" @pageChange="page => handlePageChange('newModel', page)"
@pageSizeChange="pageSize => handlePageSizeChange('newModel', pageSize)"></pagination> @pageSizeChange="pageSize => handlePageSizeChange('newModel', pageSize)"></pagination>
</div> </div>
@@ -354,55 +354,52 @@ export default {
// 头部搜索框 // 头部搜索框
dynamic: { dynamic: {
keyWord: "", keyWord: "",
openData: "",
closeData: ""
},
MsgInterInfoEOPage: {
msgType: ""
},
MsgDynamicInfoEOPage: {
msgType: ""
},
MsgResourceInfoEOPage: {
msgType: ""
}, },
height: null, height: null,
productionVehicleDatas: [], // 新车型实施日期预警
newTypeDatas: [], newItems: [],
newProductionDatas: [], // 新车型条款预警
inlandMsgList: [], newStand: [],
foreignMsgList: [], // 在产车实施日期预警
resourceMsgList: [], oldItems: [],
newCarWarning: [], // 在产车条款预警
producCarWarning: [], oldStand: [],
// 轮播图 tableHeight: 0,
carouselValue1: 0, pageConfig: {
// 有图片的动态信息列表 current1: 1,
imgInformationList: [], pageSize1: 10,
// 轮播图宽度 count1: 0,
carouselImgWidth: 0, current2: 1,
// loading pageSize2: 10,
loading: { count2: 0,
inlandLoading: false, current3: 1,
foreignLoading: false, pageSize3: 10,
resourceLoading: false count3: 0,
}, current4: 1,
roleModuleList: [], pageSize4: 10,
// 轮播索引 count4: 0
swiperIndex: -1, }
dynamicFormRules: {
keyWord: [
{ type: "string", max: 100, message: "关键字长度不能超过100个字符", trigger: "blur" }
]
},
newModelPageConfig: {
page: 1,
total: 0
},
tableHeight: 0
}; };
}, },
methods: { methods: {
// 获取数据 (type用于区别分页器切换)
getEarlyDate() {
this.$http.get('sys/EarlyWarning/StandWarning', {
applyType: '',
...this.pageConfig
}, {
_this: this
},res => {
const result = res.data[0]
Object.keys(result).forEach((tableName, index) => {
const tableRes = result[tableName]
const count = `count${index + 1}`
this.pageConfig[count] = tableRes.total
this[tableName] = tableRes.records
})
}, e => {
});
},
// 切换tab // 切换tab
handleClick(tab, event) { handleClick(tab, event) {
switch (tab.name) { switch (tab.name) {
@@ -478,107 +475,8 @@ export default {
}, e => { }, e => {
}); });
}, },
// 获取国内动态
queryMsgByPage() {
this.MsgDynamicInfoEOPage.msgType = "INLAND";
this.MsgDynamicInfoEOPage.rowLimit = 10;
this.$http.get("lawss/msgDynamicInfo/page", this.MsgDynamicInfoEOPage, {
_this: this,
loading: "loading.inlandLoading"
}, res => {
this.inlandMsgList = res.data.list;
}, e => {
});
},
// 国内动态更多查看
dynamicDomestic() {
this.$store.commit("setDetailMap", this.$route.path);
this.$router.push({
name: "DomesticDynamics"
});
},
// 国际动态更多查看
dynamicInternational() {
this.$router.push({
name: "InternationalDynamics"
});
},
// 获取国外动态
queryForeignMsgByPage() {
this.MsgInterInfoEOPage.msgType = "FOREIGN";
this.MsgInterInfoEOPage.rowLimit = 10;
this.$http.get("lawss/msgDynamicInfo/page", this.MsgInterInfoEOPage, {
_this: this,
loading: "loading.foreignLoading"
}, res => {
this.foreignMsgList = res.data.list;
}, e => {
});
},
// 资料中心更多查看
informationCenter() {
this.$store.commit("setDetailMap", this.$route.path);
this.$router.push({
name: "InformationCenter"
});
},
// 实施预警更多查看
dynamicWarning() {
this.$store.commit("setDetailMap", this.$route.path);
this.$router.push({
name: "ImplementWarning"
});
},
// 获取资料中心
queryResourceMsgByPage() {
this.MsgResourceInfoEOPage.msgType = "RESOURCE";
this.MsgResourceInfoEOPage.rowLimit = 10;
this.$http.get("lawss/msgDynamicInfo/page", this.MsgResourceInfoEOPage, {
_this: this,
loading: "loading.resourceLoading"
}, res => {
this.resourceMsgList = res.data.list;
}, e => {
});
},
showMsgDetails(id, pageType) {
this.$store.commit("setDetailMap", this.$route.path);
this.$router.push({
name: "DomesticDynamicsDetails",
params: {
id: id,
pageType: pageType
}
});
},
showDynmicMsgDetails(item) {
let isContains = 0;
if (this.roleModuleList != null && this.roleModuleList.length > 0) {
for (let module in this.roleModuleList) {
if (this.roleModuleList[module].id === item.msgMode) {
isContains = 1;
break;
}
}
if (isContains === 1) {
this.$store.commit("setDetailMap", this.$route.path);
this.$router.push({
name: "DomesticDynamicsDetails",
params: {
id: item.id,
pageType: item.msgType + "_MSG"
}
});
} else {
this.$message.error("当前角色无权限查看此信息");
}
} else {
this.$message.error("当前角色无权限查看此信息");
}
},
queryProductionVehicleByPage() { queryProductionVehicleByPage() {
this.$http.get("lawss/msgSarPutTime/page", { this.$http.get("sys/EarlyWarning/StandWarning", {
sarPutType: "ZCCSSRQ", sarPutType: "ZCCSSRQ",
pageSize: 5 pageSize: 5
}, { }, {
@@ -589,120 +487,16 @@ export default {
}); });
}, },
queryNewTypeByPage() { queryNewTypeByPage() {
this.$http.get("lawss/msgSarPutTime/page", { this.$http.get("sys/EarlyWarning/StandWarning", {
sarPutType: "XCXSSRQ", sarPutType: "XCXSSRQ",
pageSize: 5 pageSize: 5
}, { }, {
_this: this _this: this
}, res => { }, res => {
this.newTypeDatas = res.data.list; // this.newTypeDatas = res.data.list;
}, e => { }, e => {
}); });
}, },
queryNewProductionByPage() {
this.$http.get("lawss/msgSarPutTime/page", {
warnType: "STAND",
sarPutType: "NEWPRODUCT",
pageSize: 5
}, {
_this: this
}, res => {
this.newProductionDatas = res.data.list;
}, e => {
});
},
/*
*@description:新车型条款预警Table
*@modifyContent:
*@author: 刘志超
*@date: 2020-09-16 10:02:10
*/
querynewCarWarningByPage() {
this.$http.get("lawss/msgSarPutTime/page", {
warnType: "ITEM",
sarPutType: "NEWCAR",
pageSize: 5
}, {
_this: this
}, res => {
this.newCarWarning = res.data.list;
}, e => {
});
},
/*
*@description:在产车条款预警Table
*@modifyContent:
*@author: 刘志超
*@date: 2020-09-16 10:02:19
*/
queryProducCarWarningByPage() {
this.$http.get("lawss/msgSarPutTime/page", {
warnType: "ITEM",
sarPutType: "PRODUCT",
pageSize: 5
}, {
_this: this
}, res => {
this.producCarWarning = res.data.list;
}, e => {
});
},
/**
* @description: 本地动态搜索
* @author: chenxiaoxi
* @date: 2018/10/19 15:15:30
*/
queryDynamicInformation(formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
this.$router.push({
name: "QueryDynamicInformation",
query: {
keywords: this.dynamic.keyWord,
startTime: this.dynamic.openData !== "" ? this.dateFormat(this.dynamic.openData) : "",
endTime: this.dynamic.closeData !== "" ? this.dateFormat(this.dynamic.closeData) : ""
}
});
} else {
this.$message.error("请检查表单是否填写正确");
}
});
},
// 获取轮播图
getHorseLantern() {
this.$http.get("lawss/msgDynamicInfo/queryNewsPic", {
rowLimit: 5
}, {
_this: this
}, res => {
this.imgInformationList = res.data.list;
}, e => {
});
},
/**
* @description: 查看图片信息详情
* @author: chenxiaoxi
* @date: 2018/10/26 14:08:38
*/
imgInformationDetail(information) {
this.setDetailMap(this.$route.path);
this.$router.push({
name: "DomesticDynamicsDetails",
params: {
id: information.id,
pageType: information.msgType
}
});
},
isNew(pubTime) {
if (pubTime != null && pubTime !== "" && pubTime !== undefined) {
pubTime = pubTime.replace(new RegExp(/-/gm), "/");
return new Date().getTime() - new Date(pubTime).getTime() < 7 * 24 * 3600 * 1000;
} else {
return "";
}
},
/** /**
* @description: 日期转换 * @description: 日期转换
* @author: chenxiaoxi * @author: chenxiaoxi
@@ -717,43 +511,48 @@ export default {
getDate(date) { getDate(date) {
return date !== undefined && date != null ? date.split(" ")[0] : ""; return date !== undefined && date != null ? date.split(" ")[0] : "";
}, },
/**
* @description: 轮播点击
* @author: chenxiaoxi
* @date: 2018/11/10 13:22:15
*/
swiperClick(index) {
if (index === 6 || index === 0) {
this.imgInformationDetail(this.imgInformationList[0]);
} else {
this.imgInformationDetail(this.imgInformationList[index - 1]);
}
},
// 查询当前登录人拥有的全部模块权限
showRoleModules() {
this.$http.get("lawss/msgModule/selectMsgModuleByRole", {}, { _this: this }, res => {
if (res.data) {
this.roleModuleList = res.data;
}
});
},
handlePageChange(field, page) { handlePageChange(field, page) {
switch (field) { switch (field) {
case "newModel": // 新车型实施日期预警
break; case 'newItems':
case "": this.pageConfig.current1 = page
break; break
// 新车型条款预警
case 'newStand':
this.pageConfig.current2 = page
break
// 在产车实施日期预警
case 'oldItems':
this.pageConfig.current3 = page
break
// 在产车条款预警
case 'oldStand':
this.pageConfig.current4 = page
break
} }
this.getEarlyDate()
}, },
//分页每页显示数改变后方法
handlePageSizeChange(field, pageSize) { handlePageSizeChange(field, pageSize) {
switch (field) { switch (field) {
case "newModel": // 新车型实施日期预警
break; case 'newItems':
case "": this.pageConfig.pageSize1 = pageSize
break; break
// 新车型条款预警
case 'newStand':
this.pageConfig.pageSize2 = pageSize
break
// 在产车实施日期预警
case 'oldItems':
this.pageConfig.pageSize3 = pageSize
break
// 在产车条款预警
case 'oldStand':
this.pageConfig.pageSize4 = pageSize
break
} }
this.getEarlyDate()
}, },
...mapMutations(["setDetailMap"]) ...mapMutations(["setDetailMap"])
}, },
@@ -763,9 +562,6 @@ export default {
} }
}, },
computed: { computed: {
showSwiper() {
return this.imgInformationList.length;
},
containerStyle() { containerStyle() {
return this.activeName === 'POLICY' ? { return this.activeName === 'POLICY' ? {
height: '100%' height: '100%'
@@ -778,19 +574,9 @@ export default {
window.onresize = () => { window.onresize = () => {
this.height = $(".content").height() * 0.4; this.height = $(".content").height() * 0.4;
}; };
// this.queryMsgByPage()
// this.queryForeignMsgByPage()
// this.queryResourceMsgByPage()
this.queryNewTypeByPage(); this.queryNewTypeByPage();
this.queryProductionVehicleByPage(); this.queryProductionVehicleByPage();
// this.queryNewProductionByPage() this.getEarlyDate();
// this.querynewCarWarningByPage()
// this.queryProducCarWarningByPage()
// this.showRoleModules()
this.getHorseLantern();
for (let key in this.dynamic) {
this.dynamic[key] = "";
}
} }
}; };
</script> </script>
@@ -318,10 +318,6 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!--<el-form-item label="发布日期" prop="issueTime" label-width="150px" class="add-form-item">-->
<!--<el-datePicker v-model="sarStandardsInfoEO.issueTime"-->
<!-- :editable="false"-->
<!-- placeholder="请选择发布日期"></el-datePicker>-->
<custom-date-pick-with-text2 <custom-date-pick-with-text2
:config="{ :config="{
attrName: '发布日期', attrName: '发布日期',
@@ -948,6 +944,7 @@ import CustomSVPPS from '@/components/CustomFormComponents/SVPPS'
import CustomRoleTree from '@/components/CustomFormComponents/roleTree' import CustomRoleTree from '@/components/CustomFormComponents/roleTree'
import Bus from '@/common/eventHub' import Bus from '@/common/eventHub'
import CustomDatePickWithText2 from '@/components/CustomFormComponents/DatePickerWithText2' import CustomDatePickWithText2 from '@/components/CustomFormComponents/DatePickerWithText2'
import { interfaceUrl } from '@/sysConfig'
export default { export default {
name: 'domesticStandardsAndRegulations', name: 'domesticStandardsAndRegulations',
@@ -2094,14 +2091,18 @@ export default {
exportTestItem () { exportTestItem () {
if (this.saveExportType === 'apart') { if (this.saveExportType === 'apart') {
if (this.selectedList != null && this.selectedList !== '') { if (this.selectedList != null && this.selectedList !== '') {
const exportURL = '/api/lawss/sarStandardsInfo/exportStandardsInfoExcel?exportType=' + this.saveExportType + '&exportContent=' + this.selectedList.join(',') + '&exportName=' + this.exportName + '&standType=' + this.standType const exportURL = interfaceUrl + 'sarStandardsInfo/sar-standards-info/exportStandardsInfoExcel?' +
'exportType' + this.saveExportType + '&exportContent=' + this.selectedList.join(',') + '&exportName=' + this.exportName + '&standType=' + this.standType
window.open(exportURL) window.open(exportURL)
this.$message.success('导出信息成功') this.$message.success('导出信息成功')
} }
} else if (this.saveExportType === 'all') { } else if (this.saveExportType === 'all') {
console.log('批量导出')
let exportEOStr = JSON.stringify(this.SarExportSearchEo) let exportEOStr = JSON.stringify(this.SarExportSearchEo)
console.log(exportEOStr)
exportEOStr = exportEOStr.replace(/""/g, null) exportEOStr = exportEOStr.replace(/""/g, null)
window.open('/api/lawss/sarStandardsInfo/exportStandardsInfoExcel?exportType=' + this.saveExportType + '&exportContent=' + exportEOStr + '&exportName=' + this.exportName + '&standType=' + this.standType) window.open(interfaceUrl + 'sarStandardsInfo/sar-standards-info/exportStandardsInfoExcel?' +
'exportType' + this.saveExportType + '&exportContent=' + exportEOStr + '&exportName=' + this.exportName + '&standType=' + this.standType)
this.$message.success('导出信息成功') this.$message.success('导出信息成功')
} }
this.exportModelFlag = false this.exportModelFlag = false
@@ -2270,7 +2271,7 @@ export default {
roundButton: false, roundButton: false,
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.$http.post('lawss/sarStandardsInfo/deleteSarStandards', {ids: this.selectedList.join(',')}, { this.$http.post('sarStandardsInfo/sar-standards-info/deleteSarStandards', {ids: this.selectedList.join(',')}, {
_this: this _this: this
}, res => { }, res => {
if (res.ok) { if (res.ok) {
@@ -2289,7 +2290,7 @@ export default {
}, },
// 模板下载 // 模板下载
uploadImportModal (flag) { uploadImportModal (flag) {
window.open('/api/lawss/sarStandardsInfo/exportTemplate?standType=INLAND') window.open('/api/sarStandardsInfo/sar-standards-info/exportTemplate')
// if (flag === 1) { // if (flag === 1) {
// } else { // } else {
// window.open('/api/lawss/sarStandardsInfo/exportTemplate?fileName=标准条目导入模板.xlsx') // window.open('/api/lawss/sarStandardsInfo/exportTemplate?fileName=标准条目导入模板.xlsx')
@@ -2336,7 +2337,7 @@ export default {
validateStandNumber (standinfo) { validateStandNumber (standinfo) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
let obj = JSON.parse(JSON.stringify(standinfo)) let obj = JSON.parse(JSON.stringify(standinfo))
this.$http.post('sarStandardsInfo/sar-standards-info/updateSarStandardsInfo', obj, { this.$http.post('sarStandardsInfo/sar-standards-info/validateStandNumber', obj, {
_this: this _this: this
}, res => { }, res => {
if (res.ok) { if (res.ok) {
@@ -2366,9 +2367,6 @@ export default {
if (flag) { if (flag) {
// 时间格式修改 // 时间格式修改
let nowstandinfo = JSON.parse(JSON.stringify(this.sarStandardsInfoEO)) let nowstandinfo = JSON.parse(JSON.stringify(this.sarStandardsInfoEO))
// if (nowstandinfo.issueTime != null && nowstandinfo.issueTime !== '') {
// nowstandinfo.issueTime = this.$moment(this.sarStandardsInfoEO.issueTime).format('YYYY-MM-DD')
// }
if (nowstandinfo.putTime != null && nowstandinfo.putTime !== '') { if (nowstandinfo.putTime != null && nowstandinfo.putTime !== '') {
nowstandinfo.putTime = this.$dateFormat(this.sarStandardsInfoEO.putTime, 'yyyy-MM-dd hh:mm:ss') nowstandinfo.putTime = this.$dateFormat(this.sarStandardsInfoEO.putTime, 'yyyy-MM-dd hh:mm:ss')
} }
@@ -2398,13 +2396,6 @@ export default {
sarStandAttrObj[item.attrField] = nowstandinfo[item.attrField] sarStandAttrObj[item.attrField] = nowstandinfo[item.attrField]
}) })
nowstandinfo['sarStandAttrEOStr'] = JSON.stringify(sarStandAttrObj).replace(/"/g, "'") nowstandinfo['sarStandAttrEOStr'] = JSON.stringify(sarStandAttrObj).replace(/"/g, "'")
// 判断三个实施日期不能全部未N/A和TBD
// if ((nowstandinfo.EOPSSRQ === 'N/A' || nowstandinfo.EOPSSRQ === 'TBD' || nowstandinfo.EOPSSRQ === '已实施') &&
// (nowstandinfo.XCXSSRQ === 'N/A' || nowstandinfo.XCXSSRQ === 'TBD' || nowstandinfo.XCXSSRQ === '已实施') &&
// (nowstandinfo.ZCCSSRQ === 'N/A' || nowstandinfo.ZCCSSRQ === 'TBD' || nowstandinfo.ZCCSSRQ === '已实施')) {
// this.isSubmit = false
// return this.$message.warning('实施日期必须有一项为日期格式')
// }
this.$http.postData(this.addOrUPdateFlag === 1 ? 'lawss/sarStandardsInfo/addarStandardsInfo' : 'lawss/sarStandardsInfo/updateSarStandardsInfo', nowstandinfo, { this.$http.postData(this.addOrUPdateFlag === 1 ? 'lawss/sarStandardsInfo/addarStandardsInfo' : 'lawss/sarStandardsInfo/updateSarStandardsInfo', nowstandinfo, {
_this: this _this: this
}, res => { }, res => {
@@ -2479,7 +2470,6 @@ export default {
formData.standType = 'INLAND' formData.standType = 'INLAND'
this.SarExportSearchEo = formData this.SarExportSearchEo = formData
this.loading = true this.loading = true
console.log(2496)
this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage', formData, { this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage', formData, {
_this: this, loading: 'loading' _this: this, loading: 'loading'
}, res => { }, res => {
+4 -4
View File
@@ -4,10 +4,10 @@
* @date: 2018-09-04 17:47:46 * @date: 2018-09-04 17:47:46
*/ */
// 服务器地址 // 服务器地址
const devIp = '39.98.140.126' // const devIp = '39.98.140.126'
const devInterfacePORT = '10005' // const devInterfacePORT = '10005'
// const devIp = '192.168.10.145' const devIp = '192.168.10.47'
// const devInterfacePORT = '9999' const devInterfacePORT = '9999'
// 云端端口号 // 云端端口号
const DEV_CLOUD_RES_INTERFACE_PORT = '7777' const DEV_CLOUD_RES_INTERFACE_PORT = '7777'
const simpleFilePath = 'att/attFile/upload' const simpleFilePath = 'att/attFile/upload'