标准预警
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<el-pagination
|
||||
:total="total"
|
||||
:current-page="page"
|
||||
:page-sizes="[10, 20, 30, 50]"
|
||||
:page-sizes="[1, 10, 20, 30, 50]"
|
||||
:page-size="pageSize"
|
||||
@current-change="pageChange"
|
||||
@size-change="pageSizeChange"
|
||||
|
||||
@@ -31,13 +31,13 @@
|
||||
<div class="content" style="height: 100%; padding-top: 5px; ">
|
||||
<el-divider content-position="left" class="dynamic-child-title">新车型实施日期预警</el-divider>
|
||||
<el-table
|
||||
:data="newTypeDatas"
|
||||
:data="newItems"
|
||||
:height="height"
|
||||
border
|
||||
:resizable="false"
|
||||
: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">
|
||||
<div v-if="scope.row.sortName === 'BUSINESS_STAND'">企业标准</div>
|
||||
<div v-if="scope.row.sortName === 'FOREIGN_STAND'">海外标准法规</div>
|
||||
@@ -46,7 +46,7 @@
|
||||
<div v-if="scope.row.sortName === 'FOREIGN_LAWS'">国外政策</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="standNum" label="编号" align="center">
|
||||
<el-table-column prop="standCode" label="编号" align="center">
|
||||
<template slot-scope="scope">
|
||||
<a @click="showStandDetails(scope.row)">{{ scope.row.standNum }}</a>
|
||||
</template>
|
||||
@@ -61,7 +61,7 @@
|
||||
{{ (scope.row.putTime ? scope.row.putTime.substring(0, 11) : "") }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="standName" label="适用车型" align="center">
|
||||
<el-table-column prop="applyType" label="适用车型" align="center">
|
||||
<template slot-scope="scope">
|
||||
<a @click="showStandDetails(scope.row)">{{ scope.row.standName }}</a>
|
||||
</template>
|
||||
@@ -71,7 +71,7 @@
|
||||
<a @click="showStandDetails(scope.row)">{{ scope.row.standName }}</a>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="standName" label="标准责任工程师" align="center">
|
||||
<el-table-column prop="dutyEngineer" label="标准责任工程师" align="center">
|
||||
<template slot-scope="scope">
|
||||
<a @click="showStandDetails(scope.row)">{{ scope.row.standName }}</a>
|
||||
</template>
|
||||
@@ -79,13 +79,13 @@
|
||||
</el-table>
|
||||
<pagination
|
||||
style="position: static;"
|
||||
:page="newModelPageConfig.page"
|
||||
:total="newModelPageConfig.total"
|
||||
@pageChange="page => handlePageChange('newModel', page)"
|
||||
@pageSizeChange="pageSize => handlePageSizeChange('newModel', pageSize)"></pagination>
|
||||
:page="pageConfig.current1"
|
||||
:total="pageConfig.count1"
|
||||
@pageChange="page => handlePageChange('newItems', page)"
|
||||
@pageSizeChange="pageSize => handlePageSizeChange('newItems', pageSize)"></pagination>
|
||||
<el-divider content-position="left" class="dynamic-child-title">在产车实施日期预警</el-divider>
|
||||
<el-table
|
||||
:data="productionVehicleDatas"
|
||||
:data="oldItems"
|
||||
:height="height"
|
||||
border
|
||||
:resizable="false"
|
||||
@@ -133,13 +133,13 @@
|
||||
</el-table>
|
||||
<pagination
|
||||
style="position: static;"
|
||||
:page="newModelPageConfig.page"
|
||||
:total="newModelPageConfig.total"
|
||||
@pageChange="page => handlePageChange('newModel', page)"
|
||||
@pageSizeChange="pageSize => handlePageSizeChange('newModel', pageSize)"></pagination>
|
||||
:page="pageConfig.current2"
|
||||
:total="pageConfig.count2"
|
||||
@pageChange="page => handlePageChange('newStand', page)"
|
||||
@pageSizeChange="pageSize => handlePageSizeChange('newStand', pageSize)"></pagination>
|
||||
<el-divider content-position="left" class="dynamic-child-title">新车型条款预警</el-divider>
|
||||
<el-table
|
||||
:data="productionVehicleDatas"
|
||||
:data="newStand"
|
||||
:height="height"
|
||||
border
|
||||
:resizable="false"
|
||||
@@ -193,13 +193,13 @@
|
||||
</el-table>
|
||||
<pagination
|
||||
style="position: static;"
|
||||
:page="newModelPageConfig.page"
|
||||
:total="newModelPageConfig.total"
|
||||
@pageChange="page => handlePageChange('newModel', page)"
|
||||
@pageSizeChange="pageSize => handlePageSizeChange('newModel', pageSize)"></pagination>
|
||||
:page="pageConfig.current3"
|
||||
:total="pageConfig.count3"
|
||||
@pageChange="page => handlePageChange('oldItems', page)"
|
||||
@pageSizeChange="pageSize => handlePageSizeChange('oldItems', pageSize)"></pagination>
|
||||
<el-divider content-position="left" class="dynamic-child-title">在产车条款预警</el-divider>
|
||||
<el-table
|
||||
:data="productionVehicleDatas"
|
||||
:data="oldStand"
|
||||
:height="height"
|
||||
border
|
||||
:resizable="false"
|
||||
@@ -253,10 +253,10 @@
|
||||
</el-table>
|
||||
<pagination
|
||||
style="position: static;"
|
||||
:page="newModelPageConfig.page"
|
||||
:total="newModelPageConfig.total"
|
||||
@pageChange="page => handlePageChange('newModel', page)"
|
||||
@pageSizeChange="pageSize => handlePageSizeChange('newModel', pageSize)"></pagination>
|
||||
:page="pageConfig.current4"
|
||||
:total="pageConfig.count4"
|
||||
@pageChange="page => handlePageChange('oldStand', page)"
|
||||
@pageSizeChange="pageSize => handlePageSizeChange('oldStand', pageSize)"></pagination>
|
||||
</div>
|
||||
</div>
|
||||
</el-tab-pane>
|
||||
@@ -268,7 +268,7 @@
|
||||
<el-divider content-position="left" class="dynamic-child-title">新车型实施日期预警</el-divider>
|
||||
<div class="table-wrap">
|
||||
<el-table
|
||||
:data="newTypeDatas"
|
||||
:data="newItems"
|
||||
:height="tableHeight"
|
||||
border
|
||||
:resizable="false"
|
||||
@@ -293,8 +293,8 @@
|
||||
</div>
|
||||
<pagination
|
||||
style="position: static;"
|
||||
:page="newModelPageConfig.page"
|
||||
:total="newModelPageConfig.total"
|
||||
:page="pageConfig.current1"
|
||||
:total="pageConfig.count1"
|
||||
@pageChange="page => handlePageChange('newModel', page)"
|
||||
@pageSizeChange="pageSize => handlePageSizeChange('newModel', pageSize)"></pagination>
|
||||
</div>
|
||||
@@ -302,7 +302,7 @@
|
||||
<el-divider content-position="left" class="dynamic-child-title">在产车实施日期预警</el-divider>
|
||||
<div class="table-wrap">
|
||||
<el-table
|
||||
:data="productionVehicleDatas"
|
||||
:data="newItems"
|
||||
:height="tableHeight"
|
||||
border
|
||||
:resizable="false"
|
||||
@@ -327,8 +327,8 @@
|
||||
</div>
|
||||
<pagination
|
||||
style="position: static;"
|
||||
:page="newModelPageConfig.page"
|
||||
:total="newModelPageConfig.total"
|
||||
:page="pageConfig.current1"
|
||||
:total="pageConfig.count1"
|
||||
@pageChange="page => handlePageChange('newModel', page)"
|
||||
@pageSizeChange="pageSize => handlePageSizeChange('newModel', pageSize)"></pagination>
|
||||
</div>
|
||||
@@ -354,55 +354,52 @@ export default {
|
||||
// 头部搜索框
|
||||
dynamic: {
|
||||
keyWord: "",
|
||||
openData: "",
|
||||
closeData: ""
|
||||
},
|
||||
MsgInterInfoEOPage: {
|
||||
msgType: ""
|
||||
},
|
||||
MsgDynamicInfoEOPage: {
|
||||
msgType: ""
|
||||
},
|
||||
MsgResourceInfoEOPage: {
|
||||
msgType: ""
|
||||
},
|
||||
height: null,
|
||||
productionVehicleDatas: [],
|
||||
newTypeDatas: [],
|
||||
newProductionDatas: [],
|
||||
inlandMsgList: [],
|
||||
foreignMsgList: [],
|
||||
resourceMsgList: [],
|
||||
newCarWarning: [],
|
||||
producCarWarning: [],
|
||||
// 轮播图
|
||||
carouselValue1: 0,
|
||||
// 有图片的动态信息列表
|
||||
imgInformationList: [],
|
||||
// 轮播图宽度
|
||||
carouselImgWidth: 0,
|
||||
// loading
|
||||
loading: {
|
||||
inlandLoading: false,
|
||||
foreignLoading: false,
|
||||
resourceLoading: false
|
||||
},
|
||||
roleModuleList: [],
|
||||
// 轮播索引
|
||||
swiperIndex: -1,
|
||||
dynamicFormRules: {
|
||||
keyWord: [
|
||||
{ type: "string", max: 100, message: "关键字长度不能超过100个字符", trigger: "blur" }
|
||||
]
|
||||
},
|
||||
newModelPageConfig: {
|
||||
page: 1,
|
||||
total: 0
|
||||
},
|
||||
tableHeight: 0
|
||||
// 新车型实施日期预警
|
||||
newItems: [],
|
||||
// 新车型条款预警
|
||||
newStand: [],
|
||||
// 在产车实施日期预警
|
||||
oldItems: [],
|
||||
// 在产车条款预警
|
||||
oldStand: [],
|
||||
tableHeight: 0,
|
||||
pageConfig: {
|
||||
current1: 1,
|
||||
pageSize1: 10,
|
||||
count1: 0,
|
||||
current2: 1,
|
||||
pageSize2: 10,
|
||||
count2: 0,
|
||||
current3: 1,
|
||||
pageSize3: 10,
|
||||
count3: 0,
|
||||
current4: 1,
|
||||
pageSize4: 10,
|
||||
count4: 0
|
||||
}
|
||||
};
|
||||
},
|
||||
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
|
||||
handleClick(tab, event) {
|
||||
switch (tab.name) {
|
||||
@@ -478,107 +475,8 @@ export default {
|
||||
}, 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() {
|
||||
this.$http.get("lawss/msgSarPutTime/page", {
|
||||
this.$http.get("sys/EarlyWarning/StandWarning", {
|
||||
sarPutType: "ZCCSSRQ",
|
||||
pageSize: 5
|
||||
}, {
|
||||
@@ -589,120 +487,16 @@ export default {
|
||||
});
|
||||
},
|
||||
queryNewTypeByPage() {
|
||||
this.$http.get("lawss/msgSarPutTime/page", {
|
||||
this.$http.get("sys/EarlyWarning/StandWarning", {
|
||||
sarPutType: "XCXSSRQ",
|
||||
pageSize: 5
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
this.newTypeDatas = res.data.list;
|
||||
// this.newTypeDatas = res.data.list;
|
||||
}, 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: 日期转换
|
||||
* @author: chenxiaoxi
|
||||
@@ -717,43 +511,48 @@ export default {
|
||||
getDate(date) {
|
||||
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) {
|
||||
switch (field) {
|
||||
case "newModel":
|
||||
break;
|
||||
case "":
|
||||
break;
|
||||
// 新车型实施日期预警
|
||||
case 'newItems':
|
||||
this.pageConfig.current1 = page
|
||||
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) {
|
||||
switch (field) {
|
||||
case "newModel":
|
||||
break;
|
||||
case "":
|
||||
break;
|
||||
// 新车型实施日期预警
|
||||
case 'newItems':
|
||||
this.pageConfig.pageSize1 = pageSize
|
||||
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"])
|
||||
},
|
||||
@@ -763,9 +562,6 @@ export default {
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
showSwiper() {
|
||||
return this.imgInformationList.length;
|
||||
},
|
||||
containerStyle() {
|
||||
return this.activeName === 'POLICY' ? {
|
||||
height: '100%'
|
||||
@@ -778,19 +574,9 @@ export default {
|
||||
window.onresize = () => {
|
||||
this.height = $(".content").height() * 0.4;
|
||||
};
|
||||
// this.queryMsgByPage()
|
||||
// this.queryForeignMsgByPage()
|
||||
// this.queryResourceMsgByPage()
|
||||
this.queryNewTypeByPage();
|
||||
this.queryProductionVehicleByPage();
|
||||
// this.queryNewProductionByPage()
|
||||
// this.querynewCarWarningByPage()
|
||||
// this.queryProducCarWarningByPage()
|
||||
// this.showRoleModules()
|
||||
this.getHorseLantern();
|
||||
for (let key in this.dynamic) {
|
||||
this.dynamic[key] = "";
|
||||
}
|
||||
this.getEarlyDate();
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -318,10 +318,6 @@
|
||||
</el-option>
|
||||
</el-select>
|
||||
</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
|
||||
:config="{
|
||||
attrName: '发布日期',
|
||||
@@ -948,6 +944,7 @@ import CustomSVPPS from '@/components/CustomFormComponents/SVPPS'
|
||||
import CustomRoleTree from '@/components/CustomFormComponents/roleTree'
|
||||
import Bus from '@/common/eventHub'
|
||||
import CustomDatePickWithText2 from '@/components/CustomFormComponents/DatePickerWithText2'
|
||||
import { interfaceUrl } from '@/sysConfig'
|
||||
|
||||
export default {
|
||||
name: 'domesticStandardsAndRegulations',
|
||||
@@ -2094,14 +2091,18 @@ export default {
|
||||
exportTestItem () {
|
||||
if (this.saveExportType === 'apart') {
|
||||
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)
|
||||
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('/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.exportModelFlag = false
|
||||
@@ -2270,7 +2271,7 @@ export default {
|
||||
roundButton: false,
|
||||
type: 'warning'
|
||||
}).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
|
||||
}, res => {
|
||||
if (res.ok) {
|
||||
@@ -2289,7 +2290,7 @@ export default {
|
||||
},
|
||||
// 模板下载
|
||||
uploadImportModal (flag) {
|
||||
window.open('/api/lawss/sarStandardsInfo/exportTemplate?standType=INLAND')
|
||||
window.open('/api/sarStandardsInfo/sar-standards-info/exportTemplate')
|
||||
// if (flag === 1) {
|
||||
// } else {
|
||||
// window.open('/api/lawss/sarStandardsInfo/exportTemplate?fileName=标准条目导入模板.xlsx')
|
||||
@@ -2336,7 +2337,7 @@ export default {
|
||||
validateStandNumber (standinfo) {
|
||||
return new Promise((resolve, reject) => {
|
||||
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
|
||||
}, res => {
|
||||
if (res.ok) {
|
||||
@@ -2366,9 +2367,6 @@ export default {
|
||||
if (flag) {
|
||||
// 时间格式修改
|
||||
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 !== '') {
|
||||
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]
|
||||
})
|
||||
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: this
|
||||
}, res => {
|
||||
@@ -2479,7 +2470,6 @@ export default {
|
||||
formData.standType = 'INLAND'
|
||||
this.SarExportSearchEo = formData
|
||||
this.loading = true
|
||||
console.log(2496)
|
||||
this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage', formData, {
|
||||
_this: this, loading: 'loading'
|
||||
}, res => {
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
* @date: 2018-09-04 17:47:46
|
||||
*/
|
||||
// 服务器地址
|
||||
const devIp = '39.98.140.126'
|
||||
const devInterfacePORT = '10005'
|
||||
// const devIp = '192.168.10.145'
|
||||
// const devInterfacePORT = '9999'
|
||||
// const devIp = '39.98.140.126'
|
||||
// const devInterfacePORT = '10005'
|
||||
const devIp = '192.168.10.47'
|
||||
const devInterfacePORT = '9999'
|
||||
// 云端端口号
|
||||
const DEV_CLOUD_RES_INTERFACE_PORT = '7777'
|
||||
const simpleFilePath = 'att/attFile/upload'
|
||||
|
||||
Reference in New Issue
Block a user