Merge branch 'develop' into 'test'

Develop

See merge request LAWS/laws-system-front-FOTON!193
This commit is contained in:
super_liu
2021-10-22 14:30:00 +08:00
33 changed files with 2082 additions and 1474 deletions
+261 -244
View File
@@ -12,8 +12,8 @@
<div class="header-right" style="display: inline-block; float: right; margin-right: 20px; color: #fff"> <div class="header-right" style="display: inline-block; float: right; margin-right: 20px; color: #fff">
<div class="user-info"> <div class="user-info">
<el-dropdown <el-dropdown
trigger="click" trigger="click"
@command="handleCommand" @command="handleCommand"
> >
<div class="user-box" style="margin-top: 23px;"> <div class="user-box" style="margin-top: 23px;">
<img :src="userAvator" v-if="$store.getters.userInfo.avator"> <img :src="userAvator" v-if="$store.getters.userInfo.avator">
@@ -27,11 +27,11 @@
</el-dropdown> </el-dropdown>
</div> </div>
</div> </div>
<div class="logo"> <!-- <div class="logo">-->
<img :src="logo" /> <!-- <img :src="logo" />-->
</div> <!-- </div>-->
</div> </div>
<!-- <com-header></com-header>--> <!-- <com-header></com-header>-->
<div class="container-box"> <div class="container-box">
<router-view /> <router-view />
</div> </div>
@@ -41,30 +41,33 @@
</template> </template>
<script> <script>
import {mapGetters, mapState} from 'vuex' import {mapGetters, mapState} from 'vuex'
export default { import { webLoginType } from '@/sysConfig'
name: 'App', export default {
data () { name: 'App',
return { data () {
isBoolean: false return {
} isBoolean: false
}, }
methods: { },
// 点击下拉选项事件 methods: {
handleCommand (command) { // 点击下拉选项事件
// 退出登录 handleCommand (command) {
if (command === 'loginOut') { // 退出登录
this.$confirm('您确认要退出吗?', '提示', { if (command === 'loginOut') {
confirmButtonText: '确定', this.$confirm('您确认要退出吗?', '提示', {
cancelButtonText: '取消', confirmButtonText: '确定',
type: 'warning', cancelButtonText: '取消',
confirmButtonClass: 'common-button-primary', type: 'warning',
roundButton: false confirmButtonClass: 'common-button-primary',
}).then(() => { roundButton: false
// this.$http.post('/logout', {}, res => { }).then(() => {
// window.location.href = 'http://testsso1.foton.com.cn/oauth2.0/authorize?client_id=app_slrs&redirect_uri=http://127.0.0.1:9090&response_type=code' if(webLoginType != null && webLoginType === 'idm' ) {
window.location.href= 'http://sso.foton.com.cn/logout?service='
// this.$http.post('logout', {}, res => {
// window.location.href= 'http://testsso1.foton.com.cn/logout?service='
// }) // })
// return }else if(webLoginType != null && webLoginType === 'dev'){
this.$store.commit('setTypeFlag', 'loginOut') this.$store.commit('setTypeFlag', 'loginOut')
this.$http.get('logout', {}, { this.$http.get('logout', {}, {
_this: this _this: this
@@ -72,241 +75,255 @@
this.$store.dispatch('logout') this.$store.dispatch('logout')
this.$router.push('/login') this.$router.push('/login')
}, e => {}) }, e => {})
}).catch(() => {
})
}
},
/**
* @description: 主题设置
* @author: xx
* @date: 2018-08-29 14:56:39
*/
setTheme (theme) {
document.getElementById('app').className = theme
},
/**
* @description: backSpace回退禁用
* @date: 2021-03-01 16:36:55
* @auth: chenxiaoxi
*/
banBackSpace(e) {
var ev = e || window.event;
//各种浏览器下获取事件对象
var obj = ev.relatedTarget || ev.srcElement || ev.target ||ev.currentTarget;
//按下Backspace键
if(ev.keyCode == 8){
var tagName = obj.nodeName //标签名称
//如果标签不是input或者textarea则阻止Backspace
if(tagName!='INPUT' && tagName!='TEXTAREA'){
return this.stopIt(ev);
} }
var tagType = obj.type.toUpperCase();//标签类型 // this.$http.post('/logout', {}, res => {
//input标签除了下面几种类型,全部阻止Backspace // window.location.href = 'http://testsso1.foton.com.cn/oauth2.0/authorize?client_id=app_slrs&redirect_uri=http://127.0.0.1:9090&response_type=code'
if(tagName=='INPUT' && (tagType!='TEXT' && tagType!='TEXTAREA' && tagType!='PASSWORD')){ // })
return this.stopIt(ev); // return
} // this.$store.commit('setTypeFlag', 'loginOut')
//input或者textarea输入框如果不可编辑则阻止Backspace // this.$http.get('logout', {}, {
if((tagName=='INPUT' || tagName=='TEXTAREA') && (obj.readOnly==true || obj.disabled ==true)){ // _this: this
return this.stopIt(ev); // }, res => {
} // this.$store.dispatch('logout')
} // this.$router.push('/login')
}, // }, e => {})
}).catch(() => {
stopIt(ev) { })
if(ev.preventDefault){
//preventDefault()方法阻止元素发生默认的行为
ev.preventDefault();
}
if(ev.returnValue){
//IE浏览器下用window.event.returnValue = false;实现阻止元素发生默认的行为
ev.returnValue = false;
}
return false;
},
// 其他标签页修改用户 或者 退出登录
refresh() {
//执行刷新操作,这里我没有写this.$route.go(0),因为整个页面抖动不是很友好
//现将app.vue下面的 头部组件,菜单组件,内容组件隐藏再放出来,实现刷新一样的效果
console.log('我要刷新页面了')
} }
}, },
computed: { /**
// 获取用户头像 * @description: 主题设置
userAvator () { * @author: xx
return this.$store.getters.userInfo.avator || require('@/assets/images/avator_default.png') * @date: 2018-08-29 14:56:39
}, */
...mapGetters([ setTheme (theme) {
'getWebSocketList', 'getTheme', 'getMenuList' document.getElementById('app').className = theme
]),
...mapState(['userInfoModifyTime','isCollapse'])
}, },
watch: {
// 'userInfoModifyTime'() { /**
// // console.log('watch global, userInfoModifyTime') * @description: backSpace回退禁用
// this.refresh() * @date: 2021-03-01 16:36:55
// }, * @auth: chenxiaoxi
getTheme (val) { */
// 主题修改 banBackSpace(e) {
this.setTheme(val) var ev = e || window.event;
}, //各种浏览器下获取事件对象
// 监听路由 控制isBoolean var obj = ev.relatedTarget || ev.srcElement || ev.target ||ev.currentTarget;
$route () { //按下Backspace键
if (this.$route.name !== 'Login' && this.$route.name !== 'Home' && !this.$route.meta.isBoolean && this.$route.name !== 'beeEChungLogin' && this.$route.name !== 'beeEnergyLogin' && this.$route.name !== 'mdLawLogin' && this.$route.name !== 'nuoBLogin' && this.$route.name !== 'sTLogin' && this.$route.name !== 'StandardSearch') { if(ev.keyCode == 8){
this.isBoolean = true var tagName = obj.nodeName //标签名称
} else { //如果标签不是input或者textarea则阻止Backspace
this.isBoolean = false if(tagName!='INPUT' && tagName!='TEXTAREA'){
return this.stopIt(ev);
}
var tagType = obj.type.toUpperCase();//标签类型
//input标签除了下面几种类型,全部阻止Backspace
if(tagName=='INPUT' && (tagType!='TEXT' && tagType!='TEXTAREA' && tagType!='PASSWORD')){
return this.stopIt(ev);
}
//input或者textarea输入框如果不可编辑则阻止Backspace
if((tagName=='INPUT' || tagName=='TEXTAREA') && (obj.readOnly==true || obj.disabled ==true)){
return this.stopIt(ev);
} }
} }
}, },
mounted () {
this.setTheme(this.getTheme)
//实现对字符码的截获,keypress中屏蔽了这些功能按键
document.onkeypress = this.banBackSpace
//对功能按键的获取
document.onkeydown = this.banBackSpace
this.visibilitychangeFn = (e) => { //这个方法是监测浏览器窗口发生变化的时候执行
// 切换到当前页面
if (document.hidden == false) {
const userInfoModifyTime = this.userInfoModifyTime
const userInfoModifyTimeInLocalStorage = localStorage.getItem('userInfoModifyTime')
// 用户未切换 不执行任何操作 stopIt(ev) {
if (userInfoModifyTime === userInfoModifyTimeInLocalStorage) { if(ev.preventDefault){
return //preventDefault()方法阻止元素发生默认的行为
} ev.preventDefault();
if (userInfoModifyTimeInLocalStorage === null) {
this.$store.dispatch('syncStorageData')
const currentPage = this.$route.name
if (currentPage === 'Login') {return}
this.currentMinute = 3
this.loading && this.loading.close()
this.loading = this.$loading({
lock: true,
// text: 'Loading',
// spinner: 'el-icon-loading',
// background: 'rgba(0, 0, 0, 0.7)'
});
this.messageForLogin && this.messageForLogin.close()
this.messageForLogin = this.$message({
message: `用户已退出,${this.currentMinute}秒后将跳转到登录页面`,
type: 'warning'
})
this.intervalForLogin = setInterval(() => {
if (this.currentMinute === 0) {
clearInterval(this.intervalForLogin)
this.loading.close()
this.$router.push('/login')
console.log('切换到登录页面', currentPage)
}
this.currentMinute--
this.messageForLogin.message = `用户已退出,${this.currentMinute}秒后将跳转到登录页面`
}, 1000)
} else if (userInfoModifyTime !== userInfoModifyTimeInLocalStorage) {
this.$store.dispatch('syncStorageData')
console.log('用户信息已更改,同步数据')
this.currentMinute = 3
this.loading && this.loading.close()
this.loading = this.$loading({
lock: true,
// text: 'Loading',
// spinner: 'el-icon-loading',
// background: 'rgba(0, 0, 0, 0.7)'
});
this.messageForHome && this.messageForHome.close()
this.messageForHome = this.$message({
message: `用户已切换,${this.currentMinute}秒后将跳转到用户首页`,
type: 'warning'
})
this.intervalForHome = setInterval(() => {
if (this.currentMinute === 0) {
clearInterval(this.intervalForHome)
this.loading.close()
this.$router.push({
path: '/redirect',
query: '/home2'
})
}
this.currentMinute--
this.messageForHome.message = `用户已切换,${this.currentMinute}秒后将跳转到用户首页`
}, 1000)
// const route = this.$router.resolve('/home')
// this.$router.push({
// path: '/redirect',
// query: '/home'
// })
// location.reload();
}
}
} }
document.addEventListener('visibilitychange', this.visibilitychangeFn); if(ev.returnValue){
//IE浏览器下用window.event.returnValue = false;实现阻止元素发生默认的行为
ev.returnValue = false;
}
return false;
}, },
beforeDestroy() { // 其他标签页修改用户 或者 退出登录
document.onkeypress = null refresh() {
document.onkeydown = null //执行刷新操作,这里我没有写this.$route.go(0),因为整个页面抖动不是很友好
document.removeEventListener('visibilitychange', this.visibilitychangeFn) //现将app.vue下面的 头部组件,菜单组件,内容组件隐藏再放出来,实现刷新一样的效果
clearInterval(this.intervalForLogin) console.log('我要刷新页面了')
clearInterval(this.intervalForHome)
} }
},
computed: {
// 获取用户头像
userAvator () {
return this.$store.getters.userInfo.avator || require('@/assets/images/avator_default.png')
},
...mapGetters([
'getWebSocketList', 'getTheme', 'getMenuList'
]),
...mapState(['userInfoModifyTime','isCollapse'])
},
watch: {
// 'userInfoModifyTime'() {
// // console.log('watch global, userInfoModifyTime')
// this.refresh()
// },
getTheme (val) {
// 主题修改
this.setTheme(val)
},
// 监听路由 控制isBoolean
$route () {
if (this.$route.name !== 'Login' && this.$route.name !== 'Home' && !this.$route.meta.isBoolean && this.$route.name !== 'beeEChungLogin' && this.$route.name !== 'beeEnergyLogin' && this.$route.name !== 'mdLawLogin' && this.$route.name !== 'nuoBLogin' && this.$route.name !== 'sTLogin' && this.$route.name !== 'StandardSearch') {
this.isBoolean = true
} else {
this.isBoolean = false
}
}
},
mounted () {
this.setTheme(this.getTheme)
//实现对字符码的截获,keypress中屏蔽了这些功能按键
document.onkeypress = this.banBackSpace
//对功能按键的获取
document.onkeydown = this.banBackSpace
this.visibilitychangeFn = (e) => { //这个方法是监测浏览器窗口发生变化的时候执行
// 切换到当前页面
if (document.hidden == false) {
const userInfoModifyTime = this.userInfoModifyTime
const userInfoModifyTimeInLocalStorage = localStorage.getItem('userInfoModifyTime')
// 用户未切换 不执行任何操作
if (userInfoModifyTime === userInfoModifyTimeInLocalStorage) {
return
}
if (userInfoModifyTimeInLocalStorage === null && webLoginType === 'idm') {
this.$store.dispatch('syncStorageData')
const currentPage = this.$route.name
if (currentPage === 'Login') {return}
this.currentMinute = 3
this.loading && this.loading.close()
this.loading = this.$loading({
lock: true,
// text: 'Loading',
// spinner: 'el-icon-loading',
// background: 'rgba(0, 0, 0, 0.7)'
});
this.messageForLogin && this.messageForLogin.close()
this.messageForLogin = this.$message({
message: `用户已退出,${this.currentMinute}秒后将跳转到登录1页面`,
type: 'warning'
})
this.intervalForLogin = setInterval(() => {
if (this.currentMinute === 0) {
clearInterval(this.intervalForLogin)
this.loading.close()
this.$router.push('/login')
console.log('切换到登录页面', currentPage)
}
this.currentMinute--
this.messageForLogin.message = `用户已退出,${this.currentMinute}秒后将跳转到登录页面`
}, 0)
} else if (userInfoModifyTime !== userInfoModifyTimeInLocalStorage && webLoginType === 'idm') {
this.$store.dispatch('syncStorageData')
console.log('用户信息已更改,同步数据')
this.currentMinute = 3
this.loading && this.loading.close()
this.loading = this.$loading({
lock: true,
// text: 'Loading',
// spinner: 'el-icon-loading',
// background: 'rgba(0, 0, 0, 0.7)'
});
this.messageForHome && this.messageForHome.close()
this.messageForHome = this.$message({
message: `用户已切换,${this.currentMinute}秒后将跳转到用户首页`,
type: 'warning'
})
this.intervalForHome = setInterval(() => {
if (this.currentMinute === 0) {
clearInterval(this.intervalForHome)
this.loading.close()
this.$router.push({
path: '/redirect',
query: '/home2'
})
}
this.currentMinute--
this.messageForHome.message = `用户已切换,${this.currentMinute}秒后将跳转到用户首页`
}, 1000)
// const route = this.$router.resolve('/home')
// this.$router.push({
// path: '/redirect',
// query: '/home'
// })
// location.reload();
}
}
}
document.addEventListener('visibilitychange', this.visibilitychangeFn);
},
beforeDestroy() {
document.onkeypress = null
document.onkeydown = null
document.removeEventListener('visibilitychange', this.visibilitychangeFn)
clearInterval(this.intervalForLogin)
clearInterval(this.intervalForHome)
} }
}
</script> </script>
<style lang="less"> <style lang="less">
#app { #app {
position: relative; position: relative;
width: 100%;
height: 100%;
overflow-y: auto;
background-color: #F0F2F5;
//background: url('~@/assets/images/shangqi/home/BG.png') no-repeat;
background-size: 100% 100%;
font-family: MicrosoftYaHei,微软雅黑;
& > div{
position: absolute;
top: 0;
left: 0;
width: 100%; width: 100%;
min-height: 100%;
}
.content-box {
display: flex;
height: 100%; height: 100%;
overflow-y: auto; .sub-container {
background: url('~@/assets/images/shangqi/home/BG.png') no-repeat;
background-size: 100% 100%;
font-family: MicrosoftYaHei,微软雅黑;
& > div{
position: absolute;
top: 0;
left: 0;
width: 100%;
min-height: 100%;
}
.content-box {
display: flex;
height: 100%; height: 100%;
.sub-container { flex: 1;
height: 100%; overflow-x: auto;
flex: 1; display: flex;
overflow-x: auto; flex-direction: column;
display: flex; .container-box {
flex-direction: column; position: relative;
.container-box { height: calc(~'100% - 65px');
position: relative; //flex: 1;
height: calc(~'100% - 50px'); background: #F4F4F4;
//flex: 1; overflow-y: auto;
background: #F4F4F4; padding: 10px 0 10px 0;
overflow-y: auto; //padding: 10px 10px 0;
padding: 10px 10px 0; .pagination {
.pagination { border-top: 1px solid #f4f4f4;
border-top: 1px solid #f4f4f4; width: calc(~'100% - 20px');
width: calc(~'100% - 20px'); left: 10px;
left: 10px;
}
} }
} }
} }
/deep/.el-menu--vertical {
background: red;
}
} }
/deep/.el-menu--vertical {
background: red;
}
}
</style> </style>
+8
View File
@@ -58,6 +58,14 @@ _axios.interceptors.request.use(
*/ */
_axios.interceptors.response.use( _axios.interceptors.response.use(
res => { res => {
// IE 8-9
if (res.data == null && res.config.responseType === 'json' && res.request.responseText != null) {
try {
res.data = JSON.parse(res.request.responseText);
} catch (e) {
// ignored
}
}
if(res.data && res.data.respCode && res.data.respCode === 'LE505'){ if(res.data && res.data.respCode && res.data.respCode === 'LE505'){
window.sessionStorage.clear() window.sessionStorage.clear()
messageOnce.warning({ messageOnce.warning({
+8
View File
@@ -53,6 +53,14 @@ service.interceptors.request.use(
*/ */
service.interceptors.response.use( service.interceptors.response.use(
res => { res => {
// IE 8-9
if (res.data == null && res.config.responseType === 'json' && res.request.responseText != null) {
try {
res.data = JSON.parse(res.request.responseText);
} catch (e) {
// ignored
}
}
if(res.data && res.data.respCode != undefined && res.data.respCode === 'LE505'){ if(res.data && res.data.respCode != undefined && res.data.respCode === 'LE505'){
window.sessionStorage.clear() window.sessionStorage.clear()
messageOnce.warning({ messageOnce.warning({
+2
View File
@@ -22,6 +22,7 @@ import GenerationNumber from './generationNumber' // 生成企标编号组件
import RoleUserTree from './roleUserTree' // 根据部门和角色查询人员 import RoleUserTree from './roleUserTree' // 根据部门和角色查询人员
import DeptRoleTree from './deptRoleTree' // 根据部门查询角色 import DeptRoleTree from './deptRoleTree' // 根据部门查询角色
import RoleTree from './roleTree' // 查询所有机构及人员 import RoleTree from './roleTree' // 查询所有机构及人员
import MechanismTree from './mechanismTree'
import SQTree from './SQTree' import SQTree from './SQTree'
import OrgTable from './OrgTable' import OrgTable from './OrgTable'
import MySelect from './mySelect' import MySelect from './mySelect'
@@ -49,6 +50,7 @@ const install = function (Vue) {
Vue.component('SQTree', SQTree) Vue.component('SQTree', SQTree)
Vue.component('OrgTable', OrgTable) Vue.component('OrgTable', OrgTable)
Vue.component('RoleTree', RoleTree) Vue.component('RoleTree', RoleTree)
Vue.component('MechanismTree', MechanismTree)
Vue.component('MySelect', MySelect) Vue.component('MySelect', MySelect)
} }
+256
View File
@@ -0,0 +1,256 @@
<template>
<div class="roleTree">
<el-drawer
:title="isTitle"
:visible.sync="isVisible2"
:wrapperClosable="false"
@close="handleTreeDrawerCancel"
size="400px">
<el-form
ref="attributeEO"
class="label-input-form"
:inline="true"
>
<el-form-item class="form-item-disabled" style="margin: 10px;">
<el-input
v-model="filterText"
placeholder="请输入部门"
></el-input>
</el-form-item>
</el-form>
<div class="demo-drawer-content">
<el-tree
class="filter-tree tree-line"
:data="treeData"
:props="defaultProps"
:current-node-key="nodeKeyId"
node-key="id"
:filter-node-method="filterNode"
highlight-current
:auto-expand-parent="true"
show-checkbox
ref="tree"
:load="loadNode"
@check="drawerCheck"
:expand-on-click-node="false"
@node-click="handleNodeClick">
<span class="custom-tree-node" slot-scope="{ node, data }">
<span :class="node.disabled ? 'is-show' : 'is-leaf-none'"></span>
<span> {{ node.label }} </span>
</span>
</el-tree>
</div>
<div id="roleFormButton" class="demo-drawer-footer">
<el-button class="common-button-primary" size="mini" icon="el-icon-check" type="primary" @click="saveUserInfo">
确定
</el-button>
<el-button class="common-button-default" size="mini" icon="el-icon-close" @click="handleTreeDrawerCancel">取消
</el-button>
</div>
<loading style="z-index: 2099;" :loading="treeLoading">导入中...</loading>
</el-drawer>
</div>
</template>
<script>
export default {
name: "MechanismTree",
props: {
checkBox: { // 单选/多选
type: Boolean,
default: false,
},
isTitle: { // 标题
type: String
},
isVisible: { // drawer开关
type: Boolean,
default: false,
},
nodeList: { // 回显
type: Array,
default: () => {
return []
}
}
},
data() {
return {
roleList: [],
nodeKeyId: '',
isVisible2: false,
filterText: '',
defaultProps: {
children: 'children',
label: 'name',
isLeaf: (data, node) => {
if (!node.disabled) {
return true
}
}
},
treeData1: [],
treeData: [],
open1: true,
treeLoading: false,
roleRow: {}
}
},
methods: {
treeClass() {
},
handleTreeDrawerCancel() {
this.filterText = ''
this.isVisible2 = false
},
saveUserInfo() {
this.isVisible2 = false
this.$emit('checkedRole', this.roleList)
},
loadNode(node, resolve) {
if (node.level === 0) {
return resolve(this.treeData);
}
},
drawerCheck(data) {
if (this.checkBox) {
// 单选判断
var getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes());
if (getlist.length == 1) {
this.roleRow = getlist[0]
} else {
this.$refs.tree.setCheckedKeys([data.id]);
this.roleRow = this.$refs.tree.getCheckedNodes()[0]
}
this.roleList = [this.roleRow]
} else {
this.roleList = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes())
}
},
getTree() {
this.$http.get('SarInstitution/institution', {}, {
_this: this,
loading: 'treeLoading'
}, res => {
this.treeData = res.data
console.log(this.treeData);
this.nodeKeyId = this.treeData[0].id
this.id = res.data[0].id
}, e => {
console.log(e);
})
},
handleNodeClick(data) {
this.id = data.id
},
filterNode(value, data) {
if (!value) return true;
return data.name.indexOf(value) !== -1;
},
},
watch: {
isVisible(val) {
this.isVisible2 = val
},
isVisible2(val) {
this.$emit('update:isVisible', val)
},
filterText(val) {
this.$refs.tree.filter(val);
},
},
mounted() {
this.getTree()
}
}
</script>
<style lang="less" scoped>
/deep/ .el-tree-node__content {
padding-left: 0px !important;
}
/deep/ .is-leaf {
background-image: none;
background-size: 100% 100%;
}
/deep/ .is-leaf-none {
position: relative;
display: inline-block;
width: 15px;
height: 15px;
background: url('~@/assets/images/shangqi/img/personnel.png');
background-size: 100% 100%;
}
/deep/ .is-show {
position: relative;
display: inline-block;
width: 15px;
height: 15px;
background: url('~@/assets/images/shangqi/img/mechanism.png');
background-size: 100% 100%;
}
/deep/ .tree-line {
min-height: calc(100vh - 170px);
.el-tree-node {
position: relative;
padding-left: 0px; // 缩进量
line-height: 30px;
}
.el-tree-node__children {
padding-left: 16px; // 缩进量
}
// 竖线
.el-tree-node::before {
content: "";
height: 100%;
width: 1px;
position: absolute;
left: -3px;
top: -26px;
border-left: 1px dashed #858990e0;
}
// 当前层最后一个节点的竖线高度固定
.el-tree-node:last-child::before {
height: 38px; // 可以自己调节到合适数值
}
// 横线
.el-tree-node::after {
content: "";
width: 11px;
height: 20px;
position: absolute;
left: -3px;
top: 12px;
border-width: 1px;
border-top: 1px dashed #858990e0;
}
// 去掉最顶层的虚线,放最下面样式才不会被上面的覆盖了
& > .el-tree-node::after {
border-top: none;
}
& > .el-tree-node::before {
border-left: none;
}
// 展开关闭的icon
.el-tree-node__expand-icon {
font-size: 16px;
// 叶子节点(无子节点)
&.is-leaf {
color: transparent;
// display: none; // 也可以去掉
}
}
}
</style>
File diff suppressed because it is too large Load Diff
+65 -46
View File
@@ -3,8 +3,13 @@
<div class="header-left"> <div class="header-left">
<span class="logo" @click="toHome" title="回到首页"></span> <span class="logo" @click="toHome" title="回到首页"></span>
</div> </div>
<div class="header-center">
<span style="color: #fff; line-height: 65px; font-size: 20px;">
标准法规管理系统 standard and regulations management system
</span>
</div>
<div class="header-right"> <div class="header-right">
<span class="date">{{currentTime}}</span> <span class="date">{{ currentTime }}</span>
<span class="divide-line"> | </span> <span class="divide-line"> | </span>
<span class="user-img"></span> <span class="user-img"></span>
<span class="user">{{ $store.getters.userInfo.uName }}</span> <span class="user">{{ $store.getters.userInfo.uName }}</span>
@@ -16,7 +21,7 @@
> >
<div class="iconfont" style="color: #fff;"><i class="el-icon-arrow-down"></i></div> <div class="iconfont" style="color: #fff;"><i class="el-icon-arrow-down"></i></div>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item name="logout" command="logout">{{$t('m.exit')}}</el-dropdown-item> <el-dropdown-item name="logout" command="logout">{{ $t("m.exit") }}</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</div> </div>
@@ -25,78 +30,83 @@
</template> </template>
<script> <script>
import {mapGetters, mapMutations} from 'vuex' import { mapGetters, mapMutations } from "vuex";
export default { export default {
name: 'useImg', name: "useImg",
data () { data() {
return { return {
// 当前系统时间 // 当前系统时间
currentTime: '', currentTime: "",
userInfoVisible: false userInfoVisible: false
} };
}, },
methods: { methods: {
toHome () { toHome() {
this.$router.push('/home2') this.$router.push("/home2");
}, },
// 获取当前时间 // 获取当前时间
getTime () { getTime() {
this.currentTime = this.$dateFormat(new Date(), 'yyyy-MM-dd hh:mm:ss') this.currentTime = this.$dateFormat(new Date(), "yyyy-MM-dd hh:mm:ss");
}, },
// 用户菜单栏点击 // 用户菜单栏点击
userInfoOpen (name) { userInfoOpen(name) {
switch (name) { switch (name) {
case 'personal': case "personal":
this.$router.push('/personal') this.$router.push("/personal");
break break;
case 'logout': case "logout":
this.$confirm('您确认要退出吗?', '提示', { this.$confirm("您确认要退出吗?", "提示", {
confirmButtonText: '确定', confirmButtonText: "确定",
cancelButtonText: '取消', cancelButtonText: "取消",
type: 'warning', type: "warning",
confirmButtonClass: 'common-button-primary', confirmButtonClass: "common-button-primary",
roundButton: true roundButton: true
}).then(() => { }).then(() => {
this.userLoginOut() this.userLoginOut();
}).catch(() => {}) }).catch(() => {
break });
break;
} }
}, },
// 用户退出登录 // 用户退出登录
userLoginOut () { userLoginOut() {
this.$http.get('logout', {}, { this.$http.get("logout", {}, {
_this: this _this: this
}, res => { }, res => {
this.$store.dispatch('logout') this.$store.dispatch("logout");
this.$router.push('/sign_in') this.$router.push("/sign_in");
}, e => {}) }, e => {
});
}, },
...mapMutations(['setProcess', 'setDynamicTotal']) ...mapMutations(["setProcess", "setDynamicTotal"])
}, },
mounted () { mounted() {
this.getTime() this.getTime();
}, },
computed: { computed: {
// 用户头像 // 用户头像
userAvator () { userAvator() {
return this.$store.getters.userInfo.avator || require('@/assets/images/avator_default.png') return this.$store.getters.userInfo.avator || require("@/assets/images/avator_default.png");
}, },
uName () { uName() {
return this.$store.getters.userInfo.uName return this.$store.getters.userInfo.uName;
}, },
...mapGetters(['getDynamicTotal', 'getMenuList']) ...mapGetters(["getDynamicTotal", "getMenuList"])
} }
} };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.header{ .header {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
background-color: #171E4A;
color: #fff; color: #fff;
.header-left{
.header-left {
text-align: left; text-align: left;
width: 50%; //width: 50%;
.logo { .logo {
display: inline-block; display: inline-block;
width: 160px; width: 160px;
@@ -106,19 +116,26 @@ export default {
cursor: pointer; cursor: pointer;
} }
} }
.header-right{ .header-center{
width: 70%;
margin-left: 60px;
}
.header-right {
width: 49%; width: 49%;
text-align: right; text-align: right;
line-height: 61px; line-height: 61px;
height: 61px; height: 61px;
display: flex; display: flex;
margin-right: 20px;
justify-content: flex-end; justify-content: flex-end;
align-items: center; align-items: center;
.date{
.date {
display: inline-block; display: inline-block;
margin-right: 20px; margin-right: 20px;
} }
.user-img{
.user-img {
display: inline-block; display: inline-block;
width: 20px; width: 20px;
height: 21px; height: 21px;
@@ -126,11 +143,13 @@ export default {
background-size: 100% 100%; background-size: 100% 100%;
margin-right: 15px; margin-right: 15px;
} }
.divide-line{
.divide-line {
display: inline-block; display: inline-block;
margin-right: 20px; margin-right: 20px;
} }
.user{
.user {
display: inline-block; display: inline-block;
} }
} }
@@ -3,19 +3,34 @@
<div id="mechanism-manage" :class="{ 'tree-close': sideClose }" class="v-class"> <div id="mechanism-manage" :class="{ 'tree-close': sideClose }" class="v-class">
<div class="tree-content" :class="{ 'tree-closed': sideClose }"> <div class="tree-content" :class="{ 'tree-closed': sideClose }">
<div class="tree"> <div class="tree">
<!-- @keyup.enter.native="searchPeople"-->
<el-input <el-input
class="filter-tree-input" class="filter-tree-input"
placeholder="输入关键字进行过滤" placeholder="输入关键字进行过滤"
v-model="filterText"> v-model="filterText">
</el-input> </el-input>
<!-- <el-tree-->
<!-- node-key="id"-->
<!-- :data="treeData"-->
<!-- :props="defaultProps"-->
<!-- :default-checked-keys="nodeList"-->
<!-- :current-node-key="nodeKeyId"-->
<!-- highlight-current-->
<!-- check-strictly-->
<!-- :expand-on-click-node="false"-->
<!-- ref="tree"-->
<!-- :load="loadNode"-->
<!-- @node-click="handleNodeClick"-->
<!-- lazy>-->
<!-- </el-tree>-->
<el-tree <el-tree
:data="treeData" :data="treeData"
:props="defaultProps" :props="defaultProps"
default-expand-all
:current-node-key="nodeKeyId" :current-node-key="nodeKeyId"
node-key="id" node-key="id"
:filter-node-method="filterNode" :filter-node-method="filterNode"
highlight-current highlight-current
default-expand-all
ref="tree" ref="tree"
:expand-on-click-node="false" :expand-on-click-node="false"
@node-click="handleNodeClick"> @node-click="handleNodeClick">
@@ -44,7 +59,7 @@
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" size="mini" <el-button type="primary" size="mini"
class="common-button-primary" @click="getData"> class="common-button-primary" @click="getDatas">
查询 查询
</el-button> </el-button>
</el-form-item> </el-form-item>
@@ -223,6 +238,7 @@ export default {
name: 'MechanismManage', name: 'MechanismManage',
data() { data() {
return { return {
peopleType: '', //1为树结构 2 为全机构
nodeKeyId: '', nodeKeyId: '',
searchForm: { searchForm: {
uname: "", uname: "",
@@ -275,7 +291,6 @@ export default {
}, {}, res => { }, {}, res => {
if (res.ok) { if (res.ok) {
this.$message.success('配置岗位成功') this.$message.success('配置岗位成功')
this.modalPost = false this.modalPost = false
this.getData() this.getData()
} }
@@ -351,6 +366,41 @@ export default {
this.id = data.id this.id = data.id
this.getData() this.getData()
}, },
// searchPeople(){
// console.log(this.filterText);
// },
// loadNode(node, resolve) {
// if (node.level === 0) {
// return resolve(this.treeData);
// }
// this.getChildren(node, resolve)
// },
// getChildren (node, resolve) {
// this.id = node.key
// this.getData()
// this.$http.get('SarInstitution/institution/getNext', {
// institutionId: node.key
// }, {}, res => {
// let people = [];
// res.forEach(item => {
// if(item.disabled === true){
// people.push(item)
// }
// })
// resolve(people)
// })
// },
// getTree() {
// this.$http.get('SarInstitution/institution/getFirstInstitution', {}, {
// _this: this,
// loading: 'treeLoading'
// }, res => {
// this.treeData = res
// this.nodeKeyId = this.treeData[0].id
// this.treeLoading = false
// }, e => {
// })
// },
getTree() { getTree() {
this.$http.get('SarInstitution/institution', {}, { this.$http.get('SarInstitution/institution', {}, {
_this: this, _this: this,
@@ -368,7 +418,33 @@ export default {
console.log(e); console.log(e);
}) })
}, },
getDatas() {
this.peopleType = 2;
this.$http.post('SarInstitution/institution/user', {
current: this.page,
size: this.pageSize,
uname: this.searchForm.uname,
email: this.searchForm.email
}, {
_this: this,
loading: 'Loading'
}, res => {
res.data.records.forEach((item) => {
let NameList = ''
item.positions.forEach((items) => {
if (NameList.length > 0) {
NameList += ','
}
NameList += items.name
})
item.NameList = NameList
})
this.data = res.data.records
this.total = res.data.total
})
},
getData() { getData() {
this.peopleType = 1;
this.$http.post('SarInstitution/institution/user', { this.$http.post('SarInstitution/institution/user', {
current: this.page, current: this.page,
size: this.pageSize, size: this.pageSize,
@@ -379,7 +455,6 @@ export default {
_this: this, _this: this,
loading: 'Loading' loading: 'Loading'
}, res => { }, res => {
console.log(res.data)
res.data.records.forEach((item) => { res.data.records.forEach((item) => {
let NameList = '' let NameList = ''
item.positions.forEach((items) => { item.positions.forEach((items) => {
@@ -396,11 +471,19 @@ export default {
}, },
pageChange(page) { pageChange(page) {
this.page = page this.page = page
this.getData() if(this.peopleType === 1){
this.getData()
}else{
this.getDatas()
}
}, },
pageSizeChange(pageSize) { pageSizeChange(pageSize) {
this.pageSize = pageSize this.pageSize = pageSize
this.getData() if(this.peopleType === 1){
this.getData()
}else{
this.getDatas()
}
}, },
pageChange2(page) { pageChange2(page) {
this.page = page this.page = page
@@ -124,8 +124,8 @@
:key="fileIndex" :key="fileIndex"
> >
<a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank">{{ file.oldFileName }}</a> <a @click="openFileInPdf(file.id, file.oldFileName)" target="_blank">{{ file.oldFileName }}</a>
<i title="下载" @click="downloadFile(file.id)" class="icon-download" v-btn-permission="'AdUThFonYX'"/> <i title="下载" @click="downloadFile(file.id)" class="icon-download" v-btn-permission="'9882f477aad895ec56a7464f3e9c0b11'"/>
<i title="下载带水印" @click="downloadFileByWater(file.id, file.fileSuffix)" class="icon-download2" v-btn-permission="'HDLSNLFDWHF'"/> <i title="下载带水印" @click="downloadFileByWater(file.id, file.fileSuffix)" class="icon-download2" v-btn-permission="'9bab2662fbd9d0507b39be813371a597'"/>
<span class="time-text">上传时间{{ dateFormat(file.modifyTime) }}</span> <span class="time-text">上传时间{{ dateFormat(file.modifyTime) }}</span>
</p> </p>
<!-- <el-button--> <!-- <el-button-->
@@ -182,13 +182,13 @@
title="下载" title="下载"
@click="downloadFile(file.id)" @click="downloadFile(file.id)"
class="icon-download" class="icon-download"
v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? '02fd6eff0537c283dd071683de10689f' : 'a772afab2a6708883335500f3f86e771'" v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? 'd5b28957b5105c805e90a16fd5056a45' : 'a772afab2a6708883335500f3f86e771'"
/> />
<i <i
title="下载带水印" title="下载带水印"
@click="downloadFileByWater(file.id, file.fileSuffix)" @click="downloadFileByWater(file.id, file.fileSuffix)"
class="icon-download2" class="icon-download2"
v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? 'd5b28957b5105c805e90a16fd5056a45' : '824f3bf9edef83fc7488917136167232'" v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? '02fd6eff0537c283dd071683de10689f' : '824f3bf9edef83fc7488917136167232'"
/> />
<span class="time-text">上传时间{{ dateFormat(file.modifyTime) }}</span> <span class="time-text">上传时间{{ dateFormat(file.modifyTime) }}</span>
</template> </template>
@@ -2261,6 +2261,7 @@
// 缺少文件 // 缺少文件
if (this.$route.params.pageType === 'INLAND_STAND') { if (this.$route.params.pageType === 'INLAND_STAND') {
if (this.$hasPermission('2d6ab9d465ab73d415194e1ca4313793')) { if (this.$hasPermission('2d6ab9d465ab73d415194e1ca4313793')) {
this.$http.get('lawss/sarStandFile/queryConvertAtt', { this.$http.get('lawss/sarStandFile/queryConvertAtt', {
attId: attId attId: attId
}, { }, {
@@ -2306,7 +2307,9 @@
} }
} else { } else {
// 国外在线预览权限 // 国外在线预览权限
if (this.$hasPermission('ee684b4a9975f5d8a6dfe898c0332f98 ')) { if (this.$hasPermission('ee684b4a9975f5d8a6dfe898c0332f98')) {
// if (this.$hasPermission('02fd6eff0537c283dd071683de10689f')) {
this.$http.get('lawss/sarStandFile/queryConvertAtt', { this.$http.get('lawss/sarStandFile/queryConvertAtt', {
attId: attId attId: attId
}, { }, {
+1 -1
View File
@@ -28,7 +28,7 @@ export default {
mounted() { mounted() {
this.getDate() this.getDate()
this.getAdvice() this.getAdvice()
this.addDate() // this.addDate()
}, },
methods: { methods: {
// 点击查看 // 点击查看
+1 -1
View File
@@ -56,7 +56,7 @@ export default {
mounted() { mounted() {
this.getDate() this.getDate()
this.getAdvice() this.getAdvice()
this.addDate() // this.addDate()
}, },
methods: { methods: {
// 点击查看 // 点击查看
+6 -6
View File
@@ -14,12 +14,12 @@
size="mini" size="mini"
type="primary" type="primary"
class="common-button-primary" class="common-button-primary"
v-btn-permission="''" v-btn-permission="'bcf0d05723689ced8f49fae7794ff0db'"
@click="searchStandList">查询</el-button> @click="searchStandList">查询</el-button>
<el-button <el-button
size="mini" size="mini"
class="common-button-default" class="common-button-default"
v-btn-permission="''" v-btn-permission="'0af780936b77df9905c988db9e90bee8'"
@click="clearSearchStand">清空</el-button> @click="clearSearchStand">清空</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
@@ -28,8 +28,8 @@
</table-tools-bar> </table-tools-bar>
<div class="content"> <div class="content">
<div class="action-bar"> <div class="action-bar">
<el-button size="small" type="primary" @click="spiltStandFile" v-btn-permission="''">拆分</el-button> <el-button size="small" type="primary" @click="spiltStandFile" v-btn-permission="'633d92e841ab4d49fb57b48b45fd0db8'">拆分</el-button>
<el-button size="small" type="danger" @click="batchDelete" v-btn-permission="''">删除</el-button> <el-button size="small" type="danger" @click="batchDelete" v-btn-permission="'10ba28487876990927f653a66e1eeb98'">删除</el-button>
</div> </div>
<div class="table-wrap"> <div class="table-wrap">
<div style="position: absolute;height: 100%;width: 100%;"> <div style="position: absolute;height: 100%;width: 100%;">
@@ -113,8 +113,8 @@
<el-dropdown trigger="click" @command="handleCommand"> <el-dropdown trigger="click" @command="handleCommand">
<i class="iconfont">&#xe61e;</i> <i class="iconfont">&#xe61e;</i>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item :command="[scope.row, '查看']" v-btn-permission="''">查看</el-dropdown-item> <el-dropdown-item :command="[scope.row, '查看']" v-btn-permission="'17ba4598eb411d6feed468a2e446a301'">查看</el-dropdown-item>
<el-dropdown-item :command="[scope.row, '删除']" v-btn-permission="''">删除</el-dropdown-item> <el-dropdown-item :command="[scope.row, '删除']" v-btn-permission="'10ba28487876990927f653a66e1eeb98'">删除</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</template> </template>
@@ -19,10 +19,12 @@
type="primary" type="primary"
size="mini" size="mini"
class="common-button-primary" class="common-button-primary"
v-btn-permission="'158298eaaf15a57a221c53f69e9ae563'"
@click="sarStandCompareHisInfo">搜索</el-button> @click="sarStandCompareHisInfo">搜索</el-button>
<el-button <el-button
class="common-button-default" class="common-button-default"
size="mini" size="mini"
v-btn-permission="'9001dda4a41c698209a4c7d05c1f76bc'"
@click="clearSearchStand">清空</el-button> @click="clearSearchStand">清空</el-button>
</el-formItem> </el-formItem>
</el-form> </el-form>
+3 -1
View File
@@ -134,7 +134,9 @@
*/ */
getMenu () { getMenu () {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.$http.get('sarUser/user/menu', {}, { this.$http.get('sarUser/user/menu', {
userId: this.$store.getters.userInfo.userId,
}, {
_this: this, _this: this,
}, res => { }, res => {
if (res.ok) { if (res.ok) {
+3 -1
View File
@@ -29,7 +29,9 @@
*/ */
getMenu () { getMenu () {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.$http.get('sarUser/user/menu', {}, { this.$http.get('sarUser/user/menu', {
userId: this.$store.getters.userInfo.userId,
}, {
_this: this, _this: this,
}, res => { }, res => {
if (res.ok) { if (res.ok) {
@@ -288,6 +288,7 @@
</div> </div>
<el-table <el-table
:data="standardData" :data="standardData"
v-loading="loading"
tooltip-effect="dark" tooltip-effect="dark"
style="width: 100%" style="width: 100%"
border border
@@ -578,6 +579,7 @@ export default {
}, },
//标准查询按钮 //标准查询按钮
getStandDataBtn(){ getStandDataBtn(){
this.loading = true
this.pageNo = 1; this.pageNo = 1;
this.getStandData(); this.getStandData();
}, },
@@ -591,6 +593,7 @@ export default {
_this: this _this: this
}, res => { }, res => {
this.standardData = res.data.list; this.standardData = res.data.list;
this.loading = false
this.standardData.forEach(item => { this.standardData.forEach(item => {
if(item.attrInfoMap === null){ if(item.attrInfoMap === null){
this.$set(item, "ZCCSSRQ", ''); this.$set(item, "ZCCSSRQ", '');
@@ -607,6 +610,8 @@ export default {
//点击添加事件 //点击添加事件
addList() { addList() {
this.standModel = true; this.standModel = true;
this.loading = true
this.getStandDataBtn()
}, },
//添加标准select的改变 //添加标准select的改变
selectThree(data) { selectThree(data) {
@@ -1329,11 +1329,10 @@
</template> </template>
<script> <script>
import {saveTaskFirst, queryTaskFirst} from "api/process";
import ProcessHeader from '../../components/ProcessHeader' import ProcessHeader from '../../components/ProcessHeader'
import ProcessFooter from '../../components/ProcessFooter' import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle' import ProcessTitle from '../../components/ProcessTitle'
import {inboundLiaisonDetail,processCreateStand,changeAssigneeNew} from 'api/process' import {inboundLiaisonDetail,processCreateStand,changeAssigneeNew,saveTaskForPub,queryTaskFirst} from 'api/process'
import TreeSelect from '@/components/treeSelect/treeSelect.vue'; import TreeSelect from '@/components/treeSelect/treeSelect.vue';
import TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue'; import TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue';
@@ -2296,16 +2295,14 @@ export default {
this.saveLoading = true this.saveLoading = true
let _formData = new FormData() let _formData = new FormData()
// _formData.append('id', this.bpnId) // _formData.append('id', this.bpnId)
_formData.append('createUser', this.$store.getters.userInfo.userId) _formData.append('taskIds', this.taskIds)
_formData.append('createUserName', this.$store.getters.userInfo.uName)
_formData.append('prcType', '1')
_formData.append('json', JSON.stringify({ _formData.append('json', JSON.stringify({
form: this.form, form: this.form,
roleForm: this.roleForm, roleForm: this.roleForm,
commentText: this.commentText, commentText: this.commentText,
taskInfo: '申请人修订', taskInfo: '申请人修订',
})) }))
saveTaskFirst(_formData).then(res => { saveTaskForPub(_formData).then(res => {
this.saveLoading = false this.saveLoading = false
this.$message.success('保存成功') this.$message.success('保存成功')
// this.bpnId = res.result // this.bpnId = res.result
@@ -337,7 +337,7 @@
label="项目分类" label="项目分类"
/> />
<el-table-column <el-table-column
prop="projectManager" prop="uname"
align="center" align="center"
label="项目经理" label="项目经理"
/> />
@@ -461,7 +461,7 @@ export default {
} }
} }
.card-top-right { .card-top-right {
width: 200px; width: 250px;
.card-top-right-text { .card-top-right-text {
margin: 40px 0 5px 0; margin: 40px 0 5px 0;
color: #e6e6e6; color: #e6e6e6;
@@ -469,7 +469,7 @@ export default {
} }
.card-top-right-line { .card-top-right-line {
height: 3px; height: 3px;
width: 200px; width: 250px;
background: #e6e6e6; background: #e6e6e6;
} }
} }
@@ -32,7 +32,7 @@ export default {
return { return {
list: [], list: [],
tabValue: "listProject", tabValue: "listProject",
menuName: ["国家/地区清单", "项目类清单", "其他清单", "重点标准跟踪清单"] menuName: ["国家/地区清单", "车型类别清单", "其他清单", "项目清单"]
}; };
}, },
methods: {}, methods: {},
@@ -49,7 +49,7 @@ export default {
var list = []; var list = [];
const menuList = this.$store.getters.getMenuList; const menuList = this.$store.getters.getMenuList;
let menuData = []; let menuData = [];
let menuID = ["b05b562950cb6d0aef539fad30b7386a", "63e05705d0c8013162caa34f9fe52865", "418123d180abf67bd2c46d5a694baaa5", "5a75523729b04102a565167004d640e9"]; let menuID = ["b05b562950cb6d0aef539fad30b7386a", "63e05705d0c8013162caa34f9fe52865", "a1170d77f4332e5f45ce520e63b00e15", "5a75523729b04102a565167004d640e9"];
this.menuName.forEach(item => { this.menuName.forEach(item => {
for (let i = 0; i < menuList.length; i++) { for (let i = 0; i < menuList.length; i++) {
let entity = menuList[i]; let entity = menuList[i];
@@ -74,7 +74,7 @@ export default {
name: "listOther" name: "listOther"
}); });
continue; continue;
} else { } else if (entity.id === "a1170d77f4332e5f45ce520e63b00e15") {
list.push({ list.push({
label: "项目清单", label: "项目清单",
name: "localProductsOrProjectLibrary" name: "localProductsOrProjectLibrary"
@@ -1751,8 +1751,9 @@ export default {
} }
if (exportList != null && exportList.length > 0) { if (exportList != null && exportList.length > 0) {
let accIdAndrestype = [] let accIdAndrestype = []
for (var accessInfo in exportList) { let accessInfo = 1
accIdAndrestype.push(exportList[accessInfo].id) for (accessInfo in exportList) {
accIdAndrestype.push(exportList[accessInfo])
} }
const exportURL = interfaceUrl + 'sarLawsAttrDetailedList/sar-laws-attr-detailed-list/ExportLawsById?' + '&exportType=apart' + '&ids=' + accIdAndrestype.join(',') + '&exportName=' + this.exportName const exportURL = interfaceUrl + 'sarLawsAttrDetailedList/sar-laws-attr-detailed-list/ExportLawsById?' + '&exportType=apart' + '&ids=' + accIdAndrestype.join(',') + '&exportName=' + this.exportName
window.open(exportURL) window.open(exportURL)
@@ -13,7 +13,7 @@
</div> </div>
<transition name="el-zoom-in-top"> <transition name="el-zoom-in-top">
<div v-show="heightShow" class="transition-box"> <div v-show="heightShow" class="transition-box">
<p class="transition-box-p" v-if="sarAccessEO.sortKey === '1'"> <p class="transition-box-p" v-if="sarAccessEO.sortKey === '1'">
<label class="transition-box-label">国家/地区</label> <label class="transition-box-label">国家/地区</label>
<span class="transition-box-span"> <span class="transition-box-span">
{{ sarAccessEO.countryAreaShow }} {{ sarAccessEO.countryAreaShow }}
@@ -71,11 +71,14 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="" class="search-item btn-box"> <el-form-item label="" class="search-item btn-box">
<el-button v-btn-permission="'670dd74a8469a6232a0762c69b575775'" class="common-button-primary" type="primary" size="small" @click="selectProductBtn">查询 <el-button v-btn-permission="'670dd74a8469a6232a0762c69b575775'" class="common-button-primary"
type="primary" size="small" @click="selectProductBtn">查询
</el-button> </el-button>
</el-form-item> </el-form-item>
<el-form-item label="" class="search-item btn-box"> <el-form-item label="" class="search-item btn-box">
<el-button v-btn-permission="'d55e2eb884449f04ecdb30f0523d965d'" class="common-button-default" @click="resetSelect" size="small">清空</el-button> <el-button v-btn-permission="'d55e2eb884449f04ecdb30f0523d965d'" class="common-button-default"
@click="resetSelect" size="small">清空
</el-button>
</el-form-item> </el-form-item>
<el-button class="common-button-default export-button" <el-button class="common-button-default export-button"
@@ -110,11 +113,11 @@
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="序号" label="序号"
align="center" align="center"
width="55" width="55"
fixed="left" fixed="left"
type="index" type="index"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -286,80 +289,80 @@
:wrapperClosable="false" :wrapperClosable="false"
:visible.sync="isAdvancedSearch"> :visible.sync="isAdvancedSearch">
<div class="demo-drawer-content"> <div class="demo-drawer-content">
<el-form :model="standardFormList" class="labelForm" label-position="right" label-width="100px"> <el-form :model="standardFormList" class="labelForm" label-position="right" label-width="100px">
<el-form-item label="中文名称" > <el-form-item label="中文名称">
<el-input <el-input
class="showBox" class="showBox"
v-model="standardFormList.standName" v-model="standardFormList.standName"
placeholder="请输入" placeholder="请输入"
:maxlength="100" :maxlength="100"
size="small" size="small"
/> />
</el-form-item> </el-form-item>
<el-form-item label="适用车型" > <el-form-item label="适用车型">
<el-select <el-select
class="showBox" class="showBox"
v-model="standardFormList.typeApplicable" v-model="standardFormList.typeApplicable"
placeholder="请选择" placeholder="请选择"
filterable filterable
size="small" size="small"
> >
<el-option <el-option
v-for="item in applyArcticOptions" v-for="item in applyArcticOptions"
:value="item.value" :value="item.value"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="能源类型" > <el-form-item label="能源类型">
<el-select <el-select
class="showBox" class="showBox"
v-model="standardFormList.nylx" v-model="standardFormList.nylx"
placeholder="请选择" placeholder="请选择"
filterable filterable
size="small" size="small"
> >
<el-option <el-option
v-for="item in categoryOptions" v-for="item in categoryOptions"
:value="item.value" :value="item.value"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="责任部门" > <el-form-item label="责任部门">
<el-select <el-select
class="showBox" class="showBox"
v-model="standardFormList.zrbm" v-model="standardFormList.zrbm"
placeholder="请选择" placeholder="请选择"
filterable filterable
size="small" size="small"
> >
<el-option <el-option
v-for="item in zrbmOptions" v-for="item in zrbmOptions"
:value="item.value" :value="item.value"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="适用产品线" > <el-form-item label="适用产品线">
<el-select <el-select
class="showBox" class="showBox"
v-model="standardFormList.sycpx" v-model="standardFormList.sycpx"
placeholder="请选择" placeholder="请选择"
filterable filterable
size="small" size="small"
> >
<el-option <el-option
v-for="item in sycpxOptions" v-for="item in sycpxOptions"
:value="item.value" :value="item.value"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
<div class="demo-drawer-footer"> <div class="demo-drawer-footer">
@@ -367,11 +370,13 @@
size="small" size="small"
icon="el-icon-check" icon="el-icon-check"
type="primary" type="primary"
@click="queryInfo">搜索</el-button> @click="queryInfo">搜索
</el-button>
<el-button <el-button
size="small" size="small"
icon="el-icon-close" icon="el-icon-close"
@click="backInfo">取消</el-button> @click="backInfo">取消
</el-button>
</div> </div>
</el-drawer> </el-drawer>
@@ -381,6 +386,7 @@
<script> <script>
import { interfaceUrl } from "@/sysConfig"; import { interfaceUrl } from "@/sysConfig";
export default { export default {
name: "AccessStandardDetails", name: "AccessStandardDetails",
data() { data() {
@@ -410,7 +416,7 @@ export default {
heightShow: true, heightShow: true,
dataLoading: false, dataLoading: false,
standardForm: { standardForm: {
zrbm: '', zrbm: "",
standNumber: "", standNumber: "",
standName: "", standName: "",
responseUnit: "", responseUnit: "",
@@ -418,13 +424,13 @@ export default {
Size: this.$store.getters.userInfo.configContent Size: this.$store.getters.userInfo.configContent
}, },
standardFormList: { standardFormList: {
zrbm: '', zrbm: "",
typeApplicable: '', typeApplicable: "",
nylx: '', nylx: "",
sycpx: '', sycpx: "",
standNumber: '', standNumber: "",
standName: '', standName: "",
responseUnit: '', responseUnit: "",
page: 1, page: 1,
Size: this.$store.getters.userInfo.configContent Size: this.$store.getters.userInfo.configContent
}, },
@@ -441,18 +447,18 @@ export default {
loading: false, loading: false,
accessSarType: "", accessSarType: "",
selectedList: [], selectedList: [],
pageId: '', pageId: "",
// 导出文件模态框控制,和文件名称 // 导出文件模态框控制,和文件名称
saveExportType: "", saveExportType: "",
depNode: [], // 部门树 depNode: [], // 部门树
sarAccessEO: {}, sarAccessEO: {},
sarAccessEOInfo: '', sarAccessEOInfo: "",
fileInfoList: [], fileInfoList: [],
// 改变颜色 // 改变颜色
dialogColor: false, dialogColor: false,
dialogType: "", dialogType: "",
color: "", color: "",
isShow: false, isShow: false
}; };
}, },
methods: { methods: {
@@ -495,44 +501,73 @@ export default {
this.$http.get("sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById", { this.$http.get("sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById", {
...this.standardFormList, ...this.standardFormList,
...this.standardForm, ...this.standardForm,
id: this.pageId, id: this.pageId
}, { }, {
_this: this _this: this
}, res => { }, res => {
console.log(res.data.records);
res.data.records.forEach(item => {
if (item.nylx === "[]") {
item.nylx = null;
}
if (item.typeApplicable === "[]") {
item.typeApplicable = null;
}
if (item.sycpx === "[]") {
item.sycpx = null;
}
if(item.zrbm === "[]"){
item.zrbm = null
}
});
this.standinfoList = res.data.records; this.standinfoList = res.data.records;
this.standardFormTotal = res.data.total this.standardFormTotal = res.data.total;
this.standinfoList.forEach(item => { this.standinfoList.forEach(item => {
if (item.standYear === null) { if (item.standYear === null) {
item.standNumber = item.standSortShow + ' ' + item.standNumber item.standNumber = item.standSortShow + " " + item.standNumber;
} else { } else {
item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear item.standNumber = item.standSortShow + " " + item.standNumber + "-" + item.standYear;
} }
}) });
}, e => { }, e => {
}); });
}, },
selectInfoMore() { selectInfoMore() {
this.$http.get("sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById", { this.$http.get("sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById", {
...this.standardFormList, ...this.standardFormList,
id: this.pageId, id: this.pageId
}, { }, {
_this: this _this: this
}, res => { }, res => {
res.data.records.forEach(item => {
if (item.nylx === "[]") {
item.nylx = null;
}
if (item.typeApplicable === "[]") {
item.typeApplicable = null;
}
if (item.sycpx === "[]") {
item.sycpx = null;
}
if(item.zrbm === "[]"){
item.zrbm = null
}
});
this.standinfoList = res.data.records; this.standinfoList = res.data.records;
this.standardFormTotal = res.data.total this.standardFormTotal = res.data.total;
this.standinfoList.forEach(item => { this.standinfoList.forEach(item => {
if (item.standYear === null) { if (item.standYear === null) {
item.standNumber = item.standSortShow + ' ' + item.standNumber item.standNumber = item.standSortShow + " " + item.standNumber;
} else { } else {
item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear item.standNumber = item.standSortShow + " " + item.standNumber + "-" + item.standYear;
} }
}) });
}, e => { }, e => {
}); });
}, },
back() { back() {
this.$router.push({name: 'AccessStandardsAndRegulations'}) this.$router.push({ name: "AccessStandardsAndRegulations" });
// this.$router.push(this.$store.state.detailMap) // this.$router.push(this.$store.state.detailMap)
// this.$store.commit('setDetailMap', '') // this.$store.commit('setDetailMap', '')
}, },
@@ -544,11 +579,11 @@ export default {
}, },
// 重置搜索 // 重置搜索
resetSelect() { resetSelect() {
this.standardForm.zrbm = '' this.standardForm.zrbm = "";
this.standardForm.standName = '' this.standardForm.standName = "";
this.standardForm.responseUnit = '' this.standardForm.responseUnit = "";
this.selectInfobyAccid() this.selectInfobyAccid();
this.selectInfoMore() this.selectInfoMore();
}, },
exportStandard() { exportStandard() {
if (this.selectedList.length > 0) { if (this.selectedList.length > 0) {
@@ -565,22 +600,22 @@ 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 = interfaceUrl + 'sarLawsAttrDetailedList/sar-laws-attr-detailed-list/ExportLawsById?' + const exportURL = interfaceUrl + "sarLawsAttrDetailedList/sar-laws-attr-detailed-list/ExportLawsById?" +
'exportType' + this.saveExportType + '&ids=' + this.selectedList.join(',') + '&exportName=' + this.exportName "exportType" + this.saveExportType + "&ids=" + this.selectedList.join(",") + "&exportName=" + this.exportName;
window.open(exportURL) window.open(exportURL);
this.$message.success('导出信息成功') this.$message.success("导出信息成功");
} }
} else if (this.saveExportType === 'all') { } else if (this.saveExportType === "all") {
const exportURL = interfaceUrl + 'sarLawsAttrDetailedList/sar-laws-attr-detailed-list/ExportLawsById?' + const exportURL = interfaceUrl + "sarLawsAttrDetailedList/sar-laws-attr-detailed-list/ExportLawsById?" +
'exportType' + this.saveExportType + '&id=' + this.pageId + '&exportName=' + this.exportName "exportType" + this.saveExportType + "&id=" + this.pageId + "&exportName=" + this.exportName;
window.open(exportURL) window.open(exportURL);
this.$message.success('导出信息成功') this.$message.success("导出信息成功");
} }
this.exportModelFlag = false this.exportModelFlag = false;
this.selectedList = [] this.selectedList = [];
}, },
// tab页切换 // tab页切换
handleClick(tab, event) { handleClick(tab, event) {
@@ -591,10 +626,10 @@ export default {
this.selectInfobyAccid(); this.selectInfobyAccid();
}, },
// 修改成表格样式后,选择项勾选改变 // 修改成表格样式后,选择项勾选改变
standSelectChange (data) { standSelectChange(data) {
this.selectedList = [] this.selectedList = [];
for (let i = 0; i < data.length; i++) { for (let i = 0; i < data.length; i++) {
this.selectedList.push(data[i].id) this.selectedList.push(data[i].id);
} }
}, },
pageChange(page) { pageChange(page) {
@@ -655,7 +690,7 @@ export default {
}, },
// 附件下载事件 // 附件下载事件
fileDownLoad(attId) { fileDownLoad(attId) {
window.location.href = "/api/att/attFile/downloadFile?fileId=" + attId window.location.href = "/api/att/attFile/downloadFile?fileId=" + attId;
}, },
// 点击查看 // 点击查看
handlePreview(data) { handlePreview(data) {
@@ -707,30 +742,30 @@ export default {
* 高级检索 * 高级检索
*/ */
selectMoreBtn() { selectMoreBtn() {
this.isAdvancedSearch = true this.isAdvancedSearch = true;
this.standardFormList.standName = '' this.standardFormList.standName = "";
this.standardFormList.typeApplicable = '' this.standardFormList.typeApplicable = "";
this.standardFormList.nylx = '' this.standardFormList.nylx = "";
this.standardFormList.zrbm = '' this.standardFormList.zrbm = "";
this.standardFormList.sycpx = '' this.standardFormList.sycpx = "";
this.showTableFlag = false this.showTableFlag = false;
this.page = 1 this.page = 1;
this.standardForm.page = 1 this.standardForm.page = 1;
this.selectInfoMore() this.selectInfoMore();
}, },
queryInfo() { queryInfo() {
this.page = 1; this.page = 1;
this.standardForm.page = 1; this.standardForm.page = 1;
this.selectInfoMore(); this.selectInfoMore();
this.isAdvancedSearch = false this.isAdvancedSearch = false;
}, },
backInfo() { backInfo() {
this.standardFormList.standName = '' this.standardFormList.standName = "";
this.standardFormList.typeApplicable = '' this.standardFormList.typeApplicable = "";
this.standardFormList.nylx = '' this.standardFormList.nylx = "";
this.standardFormList.zrbm = '' this.standardFormList.zrbm = "";
this.standardFormList.sycpx = '' this.standardFormList.sycpx = "";
this.isAdvancedSearch = false this.isAdvancedSearch = false;
}, },
// 获取工作组信息下拉框信息 // 获取工作组信息下拉框信息
getGzzOption() { getGzzOption() {
@@ -767,16 +802,16 @@ export default {
this.$refs.skillTable && this.$refs.skillTable.doLayout(); this.$refs.skillTable && this.$refs.skillTable.doLayout();
}, },
// 将文本状态的id与name对应 // 将文本状态的id与name对应
setMap(data){ setMap(data) {
data.forEach(item => { data.forEach(item => {
this.$set(this.textStatusMap, item.value, item.label) this.$set(this.textStatusMap, item.value, item.label);
}) });
} }
}, },
mounted() { mounted() {
this.$nextTick(() => { this.$nextTick(() => {
let accessRow = JSON.parse(sessionStorage.getItem("accessRow")); let accessRow = JSON.parse(sessionStorage.getItem("accessRow"));
this.pageId = accessRow.id this.pageId = accessRow.id;
this.sarAccessEO = accessRow; this.sarAccessEO = accessRow;
this.selectInfobyAccid(); this.selectInfobyAccid();
this.getOrgTreeSource(); this.getOrgTreeSource();
@@ -800,11 +835,11 @@ export default {
this.ROLELIST = res.data.ROLELIST; this.ROLELIST = res.data.ROLELIST;
this.GXHBQOptions = res.data.GXHBQXX; this.GXHBQOptions = res.data.GXHBQXX;
this.askNatureOptions = res.data.ACCESSTYPE; this.askNatureOptions = res.data.ACCESSTYPE;
this.zrbmOptions = res.data.ZRBMCLASS // 责任部门 this.zrbmOptions = res.data.ZRBMCLASS; // 责任部门
this.categoryOptions = res.data.NYLXCLASS // 能源类型 this.categoryOptions = res.data.NYLXCLASS; // 能源类型
this.textStatusOptions = res.data.WBZTCLASS this.textStatusOptions = res.data.WBZTCLASS;
this.sycpxOptions = res.data.SYCPXCLASS // 适用产品线 this.sycpxOptions = res.data.SYCPXCLASS; // 适用产品线
this.setMap(this.textStatusOptions) this.setMap(this.textStatusOptions);
this.getGzzOption(); this.getGzzOption();
}, e => { }, e => {
}); });
@@ -935,9 +970,11 @@ export default {
} }
} }
} }
.labelForm { .labelForm {
margin-top: 20px; margin-top: 20px;
} }
/deep/ .relateClass { /deep/ .relateClass {
& > button { & > button {
height: 30px; height: 30px;
@@ -969,9 +1006,10 @@ export default {
} }
} }
/deep/.showBox{ /deep/ .showBox {
width: 300px; width: 300px;
} }
.iconClass { .iconClass {
width: 18px; width: 18px;
height: 18px; height: 18px;
@@ -995,6 +1033,7 @@ export default {
cursor: pointer cursor: pointer
} }
} }
.relateClass { .relateClass {
.el-dialog__body { .el-dialog__body {
max-height: 460px; max-height: 460px;
@@ -138,12 +138,12 @@
v-btn-permission="'b17f1d035219c47344032e261342d87d'" v-btn-permission="'b17f1d035219c47344032e261342d87d'"
title="不勾选时默认导出所有筛选项;勾选时仅导出勾选项"><i class="iconfont">&#xe6e9;</i>导出 title="不勾选时默认导出所有筛选项;勾选时仅导出勾选项"><i class="iconfont">&#xe6e9;</i>导出
</el-button> </el-button>
<!-- <el-button class="common-button-default delete-button" <!-- <el-button class="common-button-default delete-button"
:loading="delLoading" :loading="delLoading"
size="mini" size="mini"
@click="deleteStand(2)" @click="deleteStand(2)"
v-btn-permission="'c09dc12531085e30e39bbdc6cb6116ba'"><i class="iconfont">&#xe61b;</i>批量删除 v-btn-permission="'c09dc12531085e30e39bbdc6cb6116ba'"><i class="iconfont">&#xe61b;</i>批量删除
</el-button>--> </el-button>-->
<el-button class="common-button-default" <el-button class="common-button-default"
size="mini" size="mini"
@click="configurationStandard" @click="configurationStandard"
@@ -262,7 +262,9 @@
<!-- </el-tooltip>--> <!-- </el-tooltip>-->
<!-- </template>--> <!-- </template>-->
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{ textStatusMap[scope.row.textStatus] }}</span> <span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{
textStatusMap[scope.row.textStatus]
}}</span>
<span v-else>{{ textStatusMap[scope.row.textStatus] }}</span> <span v-else>{{ textStatusMap[scope.row.textStatus] }}</span>
</template> </template>
</el-table-column> </el-table-column>
@@ -272,7 +274,7 @@
<el-dropdown trigger="click" @command="handleCommand"> <el-dropdown trigger="click" @command="handleCommand">
<i class="iconfont">&#xe61e;</i> <i class="iconfont">&#xe61e;</i>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item v-btn-permission="'cac1eb379eb8e3b987cbb2e4599adb50'" <el-dropdown-item v-btn-permission="''"
v-if="scope.row.collectBtn" v-if="scope.row.collectBtn"
:command="[scope.row, '收藏']" :command="[scope.row, '收藏']"
> >
@@ -334,31 +336,31 @@
:rules="sarStandardsInfoRules" :rules="sarStandardsInfoRules"
class="label-input-form" class="label-input-form"
> >
<!-- <el-form-item--> <!-- <el-form-item
<!-- prop="isRelateAccess"--> prop="isRelateAccess"
<!-- label-width="150px"--> label-width="150px"
<!-- class="add-form-item"--> class="add-form-item"
<!-- title="A类必填项多,仅A类可纳入法规清单。"--> title="A类必填项多,仅A类可纳入法规清单。"
<!-- >--> >
<!-- <template slot="label">重要度<i class="el-icon-warning-outline"></i></template>--> <template slot="label">重要度<i class="el-icon-warning-outline"></i></template>
<!-- <el-select v-model="sarStandardsInfoEO.isRelateAccess" @change="isRegulationsChange">--> <el-select v-model="sarStandardsInfoEO.isRelateAccess" @change="isRegulationsChange">
<!-- <el-option value="1" label="A" key="1"></el-option>--> <el-option value="1" label="A" key="1"></el-option>
<!-- <el-option value="0" label="B" key="0"></el-option>--> <el-option value="0" label="B" key="0"></el-option>
<!-- </el-select>--> </el-select>
<!-- </el-form-item>--> </el-form-item>
<!-- <el-form-item label="适用区域" prop="country" label-width="150px" class="add-form-item form-item-disabled">--> <el-form-item label="适用区域" prop="country" label-width="150px" class="add-form-item form-item-disabled">
<!-- <el-select v-model="sarStandardsInfoEO.country" disabled >--> <el-select v-model="sarStandardsInfoEO.country" disabled >
<!-- <el-option v-for="opt in countryOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label }}</el-option>--> <el-option v-for="opt in countryOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label }}</el-option>
<!-- </el-select>--> </el-select>
<!-- </el-form-item>--> </el-form-item>
<!-- <el-form-item label="文本说明" prop="synopsis" label-width="150px" class="add-form-item">--> <el-form-item label="文本说明" prop="synopsis" label-width="150px" class="add-form-item">
<!-- <el-input--> <el-input
<!-- type="text"--> type="text"
<!-- v-model="sarStandardsInfoEO.synopsis"--> v-model="sarStandardsInfoEO.synopsis"
<!-- placeholder="请输入"--> placeholder="请输入"
<!-- clearable--> clearable
<!-- ></el-input>--> ></el-input>
<!-- </el-form-item>--> </el-form-item>-->
<!-- 动态数据--> <!-- 动态数据-->
<template v-for="(displayLocation, index) in dynamicFormField"> <template v-for="(displayLocation, index) in dynamicFormField">
<el-col :span="24" :key="index"> <el-col :span="24" :key="index">
@@ -628,7 +630,41 @@
</template> </template>
</template> </template>
<template v-else-if="field.attrType === 'SEL_OPTS' && field.attrField !== 'ZRLX'"> <template v-else-if="field.attrType === 'SEL_OPTS' && field.attrField !== 'ZRLX'">
<template> <template v-if="field.attrField === 'ZRBM'">
<el-form-item
prop="ZRBM"
label-width="150px"
class="add-form-item"
>
<template slot="label">责任部门</template>
<el-input
:key="field.attrField"
:config="field"
clearable
v-model="sarStandardsInfoEO['ZRBM']"
:disabled="formdisableflag" placeholder="选择责任部门"
@click.native="choiceZRBM('ZRBMId', '责任部门', sarStandardsInfoEO.ZRBMId)">
</el-input>
</el-form-item>
</template>
<template v-else-if="field.attrField === 'ZRGCS'">
<el-form-item
prop="ZRGCSUser"
label-width="150px"
class="add-form-item"
>
<template slot="label">责任工程师</template>
<el-input
:key="field.attrField"
:config="field"
clearable
v-model="sarStandardsInfoEO['ZRGCS']"
:disabled="formdisableflag" placeholder="选择责任工程师"
@click.native="choiceRole('ZRGCSUserId', '责任工程师', sarStandardsInfoEO.ZRGCSUserId)">
</el-input>
</el-form-item>
</template>
<template v-else>
<custom-select-array <custom-select-array
:key="field.attrField" :key="field.attrField"
:config="field" :config="field"
@@ -1083,7 +1119,7 @@
:url="url" :url="url"
:urlChild="urlChild" :urlChild="urlChild"
:defaultProps="defaultCodeProps" :checkedKeys="defaultCheckedKeys1" :defaultProps="defaultCodeProps" :checkedKeys="defaultCheckedKeys1"
:nodeKey="nodeKeyCode" @popoverHide="popoverHideBusVs" @popoverHideCancel="popoverHideBusVsCancel"></tree-select-new> :nodeKey="nodeKeyCode" @popoverHide="popoverHideBusVs" @popoverHideCancel="popoverHideBusVsCancel"></tree-select-new>
<tree-select-new <tree-select-new
width="500" width="500"
:lazy=true :lazy=true
@@ -1094,7 +1130,7 @@
:url="url" :url="url"
:urlChild="urlChild" :urlChild="urlChild"
:defaultProps="defaultCodeProps" :checkedKeys="defaultCheckedKeys2" :defaultProps="defaultCodeProps" :checkedKeys="defaultCheckedKeys2"
:nodeKey="nodeKeyCode" @popoverHide="popoverHideCarVs" @popoverHideCancel="popoverHideCarVsCancel()" ></tree-select-new> :nodeKey="nodeKeyCode" @popoverHide="popoverHideCarVs" @popoverHideCancel="popoverHideCarVsCancel()"></tree-select-new>
<tree-select-new <tree-select-new
width="500" width="500"
:lazy=true :lazy=true
@@ -1120,212 +1156,212 @@
</el-button> </el-button>
</div> </div>
</el-dialog> </el-dialog>
<!-- <table-tools-bar v-model="isAdvancedSearch" @search="getDomesticStandardTableBtn(sarStandardsSearch)"--> <!-- <table-tools-bar v-model="isAdvancedSearch" @search="getDomesticStandardTableBtn(sarStandardsSearch)"
<!-- @reset="clearAllSearch('sarStandardsSearch')" >--> @reset="clearAllSearch('sarStandardsSearch')" >
<!-- <div slot="content">--> <div slot="content">
<!-- <el-form :model="sarStandardsSearch" :inline="true" class="label-input-form table-lattice" style="display: flex;flex-wrap: wrap">--> <el-form :model="sarStandardsSearch" :inline="true" class="label-input-form table-lattice" style="display: flex;flex-wrap: wrap">
<!--&lt;!&ndash; 标准号&ndash;&gt;--> &lt;!&ndash; 标准号&ndash;&gt;
<!-- <el-form-item :label="$t('m.standardNo')" class="serch-form-item">--> <el-form-item :label="$t('m.standardNo')" class="serch-form-item">
<!-- <el-input v-model="sarStandardsSearch.standNumber" :placeholder="$t('m.lookUpByStandardNumber')" clearable :maxlength="100"--> <el-input v-model="sarStandardsSearch.standNumber" :placeholder="$t('m.lookUpByStandardNumber')" clearable :maxlength="100"
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>--> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
<!-- </el-form-item>--> </el-form-item>
<!--&lt;!&ndash; 标准名称&ndash;&gt;--> &lt;!&ndash; 标准名称&ndash;&gt;
<!-- <el-form-item :label="$t('m.standName')" class="serch-form-item">--> <el-form-item :label="$t('m.standName')" class="serch-form-item">
<!-- <el-input v-model="sarStandardsSearch.standName" :placeholder="$t('m.searchByStandardName')" clearable :maxlength="500"--> <el-input v-model="sarStandardsSearch.standName" :placeholder="$t('m.searchByStandardName')" clearable :maxlength="500"
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>--> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
<!-- </el-form-item>--> </el-form-item>
<!--&lt;!&ndash; 标准英文名称&ndash;&gt;--> &lt;!&ndash; 标准英文名称&ndash;&gt;
<!-- <el-form-item :label="$t('m.standardEnglishName')" class="serch-form-item">--> <el-form-item :label="$t('m.standardEnglishName')" class="serch-form-item">
<!-- <el-input v-model="sarStandardsSearch.standEnName" :placeholder="$t('m.searchAccordingToStandardEnglishName')" clearable :maxlength="500"--> <el-input v-model="sarStandardsSearch.standEnName" :placeholder="$t('m.searchAccordingToStandardEnglishName')" clearable :maxlength="500"
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>--> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
<!-- </el-form-item>--> </el-form-item>
<!--&lt;!&ndash; 标准类别&ndash;&gt;--> &lt;!&ndash; 标准类别&ndash;&gt;
<!-- <el-form-item :label="$t('m.standardCategory')" class="serch-form-item">--> <el-form-item :label="$t('m.standardCategory')" class="serch-form-item">
<!-- <search-select--> <search-select
<!-- v-model="sarStandardsSearch.standSort"--> v-model="sarStandardsSearch.standSort"
<!-- :placeholder="$t('m.standardCategoryTips')"--> :placeholder="$t('m.standardCategoryTips')"
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"--> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"
<!-- :options="standSortOptions"--> :options="standSortOptions"
<!-- clearable/>--> clearable/>
<!-- </el-form-item>--> </el-form-item>
<!--&lt;!&ndash; 文本状态&ndash;&gt;--> &lt;!&ndash; 文本状态&ndash;&gt;
<!-- <el-form-item :label="$t('m.standStateShow')" class="serch-form-item">--> <el-form-item :label="$t('m.standStateShow')" class="serch-form-item">
<!-- <el-select v-model="sarStandardsSearch.textStatus" :placeholder="$t('m.lookupByStandardStatus')" clearable--> <el-select v-model="sarStandardsSearch.textStatus" :placeholder="$t('m.lookupByStandardStatus')" clearable
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">--> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<!-- <el-option v-for="opt in standStateOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>--> <el-option v-for="opt in standStateOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>
<!-- </el-select>--> </el-select>
<!-- </el-form-item>--> </el-form-item>
<!--&lt;!&ndash; 代替标准号&ndash;&gt;--> &lt;!&ndash; 代替标准号&ndash;&gt;
<!-- <el-form-item :label="$t('m.substituteStandardNumber')" class="serch-form-item">--> <el-form-item :label="$t('m.substituteStandardNumber')" class="serch-form-item">
<!-- <el-input v-model="sarStandardsSearch.dtbjh" :placeholder="$t('m.lookUpByAlternativeCriteria')" clearable :maxlength="100"--> <el-input v-model="sarStandardsSearch.dtbjh" :placeholder="$t('m.lookUpByAlternativeCriteria')" clearable :maxlength="100"
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>--> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
<!-- </el-form-item>--> </el-form-item>
<!--&lt;!&ndash; 标准年份&ndash;&gt;--> &lt;!&ndash; 标准年份&ndash;&gt;
<!-- <el-form-item :label="$t('m.standardYear')" class="serch-form-item">--> <el-form-item :label="$t('m.standardYear')" class="serch-form-item">
<!-- <el-date-picker--> <el-date-picker
<!-- v-model="sarStandardsSearch.standYear"--> v-model="sarStandardsSearch.standYear"
<!-- type="date"--> type="date"
<!-- placeholder="根据标准年份查找">--> placeholder="根据标准年份查找">
<!-- </el-date-picker>--> </el-date-picker>
<!-- </el-form-item>--> </el-form-item>
<!-- &lt;!&ndash; 标准发布日期&ndash;&gt;--> &lt;!&ndash; 标准发布日期&ndash;&gt;
<!-- <el-form-item label="标准发布日期" class="serch-form-item">--> <el-form-item label="标准发布日期" class="serch-form-item">
<!-- <el-date-picker--> <el-date-picker
<!-- v-model="sarStandardsSearch.issueTime"--> v-model="sarStandardsSearch.issueTime"
<!-- type="date"--> type="date"
<!-- placeholder="根据标准发布日期查找">--> placeholder="根据标准发布日期查找">
<!-- </el-date-picker>--> </el-date-picker>
<!-- </el-form-item>--> </el-form-item>
<!--&lt;!&ndash; 标准性质&ndash;&gt;--> &lt;!&ndash; 标准性质&ndash;&gt;
<!-- <el-form-item :label="$t('m.standNatureShow')" class="serch-form-item">--> <el-form-item :label="$t('m.standNatureShow')" class="serch-form-item">
<!-- <el-select v-model="sarStandardsSearch.standNature" placeholder="请选择标准性质" clearable--> <el-select v-model="sarStandardsSearch.standNature" placeholder="请选择标准性质" clearable
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">--> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<!-- <el-option v-for="opt in standNatureOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>--> <el-option v-for="opt in standNatureOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>
<!-- </el-select>--> </el-select>
<!-- </el-form-item>--> </el-form-item>
<!--&lt;!&ndash; 是否纳入标准清单&ndash;&gt;--> &lt;!&ndash; 是否纳入标准清单&ndash;&gt;
<!-- <el-form-item title="是否纳入标准清单" label="是否纳入标准清单">--> <el-form-item title="是否纳入标准清单" label="是否纳入标准清单">
<!-- <el-select v-model="sarStandardsSearch.isRelateAccess" class="advanced-one" placeholder="根据是否纳入标准清单查找">--> <el-select v-model="sarStandardsSearch.isRelateAccess" class="advanced-one" placeholder="根据是否纳入标准清单查找">
<!-- <el-option value="yes" label=""></el-option>--> <el-option value="yes" label=""></el-option>
<!-- <el-option value="no" label=""></el-option>--> <el-option value="no" label=""></el-option>
<!-- </el-select>--> </el-select>
<!-- </el-form-item>--> </el-form-item>
<!--&lt;!&ndash; 实施日期&ndash;&gt;--> &lt;!&ndash; 实施日期&ndash;&gt;
<!-- <el-form-item label="实施日期">--> <el-form-item label="实施日期">
<!-- <el-date-picker--> <el-date-picker
<!-- v-model="sarStandardsSearch.putTime"--> v-model="sarStandardsSearch.putTime"
<!-- type="date"--> type="date"
<!-- placeholder="根据实施日期查找">--> placeholder="根据实施日期查找">
<!-- </el-date-picker>--> </el-date-picker>
<!-- </el-form-item>--> </el-form-item>
<!--&lt;!&ndash; 新车型实施日期&ndash;&gt;--> &lt;!&ndash; 新车型实施日期&ndash;&gt;
<!-- <el-form-item title="新车型实施日期" label="新车型实施日期">--> <el-form-item title="新车型实施日期" label="新车型实施日期">
<!-- <el-date-picker--> <el-date-picker
<!-- v-model="sarStandardsSearch.XCXTime"--> v-model="sarStandardsSearch.XCXTime"
<!-- type="date"--> type="date"
<!-- placeholder="根据新车型实施日期查找">--> placeholder="根据新车型实施日期查找">
<!-- </el-date-picker>--> </el-date-picker>
<!-- </el-form-item>--> </el-form-item>
<!--&lt;!&ndash; 在产车实施日期&ndash;&gt;--> &lt;!&ndash; 在产车实施日期&ndash;&gt;
<!-- <el-form-item title="在产车实施日期" label="在产车实施日期">--> <el-form-item title="在产车实施日期" label="在产车实施日期">
<!-- <el-date-picker--> <el-date-picker
<!-- v-model="sarStandardsSearch.ZCCTime"--> v-model="sarStandardsSearch.ZCCTime"
<!-- type="date"--> type="date"
<!-- placeholder="根据在产车实施日期查找">--> placeholder="根据在产车实施日期查找">
<!-- </el-date-picker>--> </el-date-picker>
<!-- </el-form-item>--> </el-form-item>
<!--&lt;!&ndash; 归口管理部门&ndash;&gt;--> &lt;!&ndash; 归口管理部门&ndash;&gt;
<!-- <el-form-item label="归口管理部门">--> <el-form-item label="归口管理部门">
<!-- <el-input v-model="sarStandardsSearch.nameShow" clearable placeholder="根据归口管理部门查找"--> <el-input v-model="sarStandardsSearch.nameShow" clearable placeholder="根据归口管理部门查找"
<!-- @keyup.enter.native="btnSearch"></el-input>--> @keyup.enter.native="btnSearch"></el-input>
<!-- </el-form-item>--> </el-form-item>
<!--&lt;!&ndash; 起草单位&ndash;&gt;--> &lt;!&ndash; 起草单位&ndash;&gt;
<!-- <el-form-item label="起草单位">--> <el-form-item label="起草单位">
<!-- <el-select v-model="sarStandardsSearch.qcdw" placeholder="根据起草单位查找" clearable--> <el-select v-model="sarStandardsSearch.qcdw" placeholder="根据起草单位查找" clearable
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">--> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<!-- <el-option v-for="opt in qcdwOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>--> <el-option v-for="opt in qcdwOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>
<!-- </el-select>--> </el-select>
<!-- </el-form-item>--> </el-form-item>
<!--&lt;!&ndash; 我司参与深度&ndash;&gt;--> &lt;!&ndash; 我司参与深度&ndash;&gt;
<!-- <el-form-item label="我司参与深度">--> <el-form-item label="我司参与深度">
<!-- <el-select v-model="sarStandardsSearch.nameShow" placeholder="请选择我司参与深度" clearable--> <el-select v-model="sarStandardsSearch.nameShow" placeholder="请选择我司参与深度" clearable
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">--> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<!-- <el-option v-for="opt in cysdOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>--> <el-option v-for="opt in cysdOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>
<!-- </el-select>--> </el-select>
<!-- </el-form-item>--> </el-form-item>
<!--&lt;!&ndash; 能源类型&ndash;&gt;--> &lt;!&ndash; 能源类型&ndash;&gt;
<!-- <el-form-item label="能源类型">--> <el-form-item label="能源类型">
<!-- <el-select v-model="sarStandardsSearch.energyKind" placeholder="请选择能源类型" clearable--> <el-select v-model="sarStandardsSearch.energyKind" placeholder="请选择能源类型" clearable
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">--> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<!-- <el-option v-for="opt in nylxOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>--> <el-option v-for="opt in nylxOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>
<!-- </el-select>--> </el-select>
<!-- </el-form-item>--> </el-form-item>
<!--&lt;!&ndash; 适用车型&ndash;&gt;--> &lt;!&ndash; 适用车型&ndash;&gt;
<!-- <el-form-item :label="$t('m.applicableModels')" class="serch-form-item">--> <el-form-item :label="$t('m.applicableModels')" class="serch-form-item">
<!-- <el-select v-model="sarStandardsSearch.applyArctic" :placeholder="$t('m.searchAccordingToThApplicableModel')" clearable--> <el-select v-model="sarStandardsSearch.applyArctic" :placeholder="$t('m.searchAccordingToThApplicableModel')" clearable
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">--> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<!-- <el-option v-for="opt in applyArcticOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>--> <el-option v-for="opt in applyArcticOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>
<!-- </el-select>--> </el-select>
<!-- </el-form-item>--> </el-form-item>
<!--&lt;!&ndash; 适用产品线(新增字段)&ndash;&gt;--> &lt;!&ndash; 适用产品线(新增字段)&ndash;&gt;
<!-- <el-form-item :label="$t('m.applicableProductLine')" class="serch-form-item">--> <el-form-item :label="$t('m.applicableProductLine')" class="serch-form-item">
<!-- <el-select v-model="sarStandardsSearch.sycpx" :placeholder="$t('m.searchByApplicableProductLine')" clearable--> <el-select v-model="sarStandardsSearch.sycpx" :placeholder="$t('m.searchByApplicableProductLine')" clearable
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">--> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<!-- <el-option v-for="opt in sycpxOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>--> <el-option v-for="opt in sycpxOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>
<!-- </el-select>--> </el-select>
<!-- </el-form-item>--> </el-form-item>
<!--&lt;!&ndash; 适用认证&ndash;&gt;--> &lt;!&ndash; 适用认证&ndash;&gt;
<!-- <el-form-item label="适用认证">--> <el-form-item label="适用认证">
<!-- <el-select v-model="sarStandardsSearch.syzr" placeholder="根据适用认证查找" clearable--> <el-select v-model="sarStandardsSearch.syzr" placeholder="根据适用认证查找" clearable
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">--> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<!-- <el-option v-for="opt in syzrOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>--> <el-option v-for="opt in syzrOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>
<!-- </el-select>--> </el-select>
<!-- </el-form-item>--> </el-form-item>
<!--&lt;!&ndash; 责任部门&ndash;&gt;--> &lt;!&ndash; 责任部门&ndash;&gt;
<!-- <el-form-item label="责任部门">--> <el-form-item label="责任部门">
<!-- <el-select v-model="sarStandardsSearch.zrbm" placeholder="根据责任部门查找" clearable--> <el-select v-model="sarStandardsSearch.zrbm" placeholder="根据责任部门查找" clearable
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">--> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<!-- <el-option v-for="opt in zrbmOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>--> <el-option v-for="opt in zrbmOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>
<!-- </el-select>--> </el-select>
<!-- </el-form-item>--> </el-form-item>
<!--&lt;!&ndash; 责任工程师&ndash;&gt;--> &lt;!&ndash; 责任工程师&ndash;&gt;
<!-- <el-form-item label="责任工程师">--> <el-form-item label="责任工程师">
<!-- <el-select v-model="sarStandardsSearch.dutyEngineer" placeholder="根据责任工程师查找" clearable--> <el-select v-model="sarStandardsSearch.dutyEngineer" placeholder="根据责任工程师查找" clearable
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">--> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<!-- <el-option v-for="opt in zrgcsOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>--> <el-option v-for="opt in zrgcsOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>
<!-- </el-select>--> </el-select>
<!-- </el-form-item>--> </el-form-item>
<!--&lt;!&ndash; 关联模块-VPPS编码&ndash;&gt;--> &lt;!&ndash; 关联模块-VPPS编码&ndash;&gt;
<!-- <el-form-item title="关联模块-VPPS编码" label="关联模块-VPPS编码" prop="standNumber">--> <el-form-item title="关联模块-VPPS编码" label="关联模块-VPPS编码" prop="standNumber">
<!-- <el-input v-model="sarStandardsSearch.svpps" clearable--> <el-input v-model="sarStandardsSearch.svpps" clearable
<!-- placeholder="根据关联模块-VPPS编码查找"--> placeholder="根据关联模块-VPPS编码查找"
<!-- @keyup.enter.native="btnSearch"></el-input>--> @keyup.enter.native="btnSearch"></el-input>
<!-- </el-form-item>--> </el-form-item>
<!--&lt;!&ndash; 代替标准号&ndash;&gt;--> &lt;!&ndash; 代替标准号&ndash;&gt;
<!-- <el-form-item label="代替标准号">--> <el-form-item label="代替标准号">
<!-- <el-input v-model="sarStandardsSearch.replaceStandNum" clearable placeholder="根据代替标准号查找"--> <el-input v-model="sarStandardsSearch.replaceStandNum" clearable placeholder="根据代替标准号查找"
<!-- @keyup.enter.native="btnSearch"></el-input>--> @keyup.enter.native="btnSearch"></el-input>
<!-- </el-form-item>--> </el-form-item>
<!--&lt;!&ndash; 关联模块-中文名称&ndash;&gt;--> &lt;!&ndash; 关联模块-中文名称&ndash;&gt;
<!-- <el-form-item title="关联模块-中文名称" label="关联模块-中文名称" prop="standNumber">--> <el-form-item title="关联模块-中文名称" label="关联模块-中文名称" prop="standNumber">
<!-- <el-input v-model="sarStandardsSearch.standNumber" clearable--> <el-input v-model="sarStandardsSearch.standNumber" clearable
<!-- placeholder="根据关联模块-中文名称"--> placeholder="根据关联模块-中文名称"
<!-- @keyup.enter.native="btnSearch"></el-input>--> @keyup.enter.native="btnSearch"></el-input>
<!-- </el-form-item>--> </el-form-item>
<!--&lt;!&ndash; 采标编号&ndash;&gt;--> &lt;!&ndash; 采标编号&ndash;&gt;
<!-- <el-form-item label="采标编号" prop="nameShow">--> <el-form-item label="采标编号" prop="nameShow">
<!-- <el-input v-model="sarStandardsSearch.nameShow" clearable placeholder="根据采标编号查找"--> <el-input v-model="sarStandardsSearch.nameShow" clearable placeholder="根据采标编号查找"
<!-- @keyup.enter.native="btnSearch"></el-input>--> @keyup.enter.native="btnSearch"></el-input>
<!-- </el-form-item>--> </el-form-item>
<!--&lt;!&ndash; 采标程度&ndash;&gt;--> &lt;!&ndash; 采标程度&ndash;&gt;
<!-- <el-form-item label="采标程度" prop="standNumber">--> <el-form-item label="采标程度" prop="standNumber">
<!-- <el-input v-model="sarStandardsSearch.standNumber" clearable--> <el-input v-model="sarStandardsSearch.standNumber" clearable
<!-- placeholder="根据采标程度查找"--> placeholder="根据采标程度查找"
<!-- @keyup.enter.native="btnSearch"></el-input>--> @keyup.enter.native="btnSearch"></el-input>
<!-- </el-form-item>--> </el-form-item>
<!--&lt;!&ndash; 引用标准&ndash;&gt;--> &lt;!&ndash; 引用标准&ndash;&gt;
<!-- <el-form-item label="引用标准">--> <el-form-item label="引用标准">
<!-- <el-input v-model="sarStandardsSearch.citeStand" clearable placeholder="根据引用标准查找"--> <el-input v-model="sarStandardsSearch.citeStand" clearable placeholder="根据引用标准查找"
<!-- @keyup.enter.native="btnSearch"></el-input>--> @keyup.enter.native="btnSearch"></el-input>
<!-- </el-form-item>--> </el-form-item>
<!--&lt;!&ndash; 被引用标准&ndash;&gt;--> &lt;!&ndash; 被引用标准&ndash;&gt;
<!-- <el-form-item label="被引用标准">--> <el-form-item label="被引用标准">
<!-- <el-input v-model="sarStandardsSearch.citedStand" clearable--> <el-input v-model="sarStandardsSearch.citedStand" clearable
<!-- placeholder="根据被引用标准查找"--> placeholder="根据被引用标准查找"
<!-- @keyup.enter.native="btnSearch"></el-input>--> @keyup.enter.native="btnSearch"></el-input>
<!-- </el-form-item>--> </el-form-item>
<!--&lt;!&ndash; 关联模块(新增字段)&ndash;&gt;--> &lt;!&ndash; 关联模块(新增字段)&ndash;&gt;
<!-- <el-form-item :label="$t('m.associatedModule')" class="serch-form-item">--> <el-form-item :label="$t('m.associatedModule')" class="serch-form-item">
<!-- <el-select v-model="sarStandardsSearch.cycvppsbm" :placeholder="$t('m.SearchByAssociatedModule')" clearable--> <el-select v-model="sarStandardsSearch.cycvppsbm" :placeholder="$t('m.SearchByAssociatedModule')" clearable
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">--> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<!-- <el-option v-for="opt in standNatureOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}--> <el-option v-for="opt in standNatureOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}
<!-- </el-option>--> </el-option>
<!-- </el-select>--> </el-select>
<!-- </el-form-item>--> </el-form-item>
<!-- </el-form>--> </el-form>
<!-- </div>--> </div>
<!-- </table-tools-bar>--> </table-tools-bar>-->
<!-- 高级筛选--> <!-- 高级筛选-->
<el-drawer <el-drawer
title="高级搜索" title="高级搜索"
@@ -1627,6 +1663,18 @@
@confirm="isTreeOk" @confirm="isTreeOk"
></org-table> ></org-table>
<loading style="z-index: 2099;" :loading="importLoading">导入中...</loading> <loading style="z-index: 2099;" :loading="importLoading">导入中...</loading>
<Role-tree
is-title="选择人员信息"
:is-visible.sync="modalshowflagRole"
:nodeList="nodeList"
@checkedRole="drawerCheck"
/>
<Mechanism-tree
is-title="选择部门信息"
:is-visible.sync="modalshowflagZRBM"
:nodeList="nodeListZRBM"
@checkedRole="drawerCheckZRBM"
/>
</div> </div>
</template> </template>
@@ -1646,6 +1694,7 @@ import CustomEopDatePick from '@/components/CustomFormComponents/DatePickerWithT
import CustomDatePickWithText, {formatText} from '@/components/CustomFormComponents/DatePickerGroupWithText' import CustomDatePickWithText, {formatText} from '@/components/CustomFormComponents/DatePickerGroupWithText'
import CustomSVPPS from '@/components/CustomFormComponents/SVPPS' import CustomSVPPS from '@/components/CustomFormComponents/SVPPS'
import CustomRoleTree from '@/components/CustomFormComponents/roleTree' import CustomRoleTree from '@/components/CustomFormComponents/roleTree'
import MechanismTree from '@/components/mechanismTree'
import CustomDatePickWithText2 from '@/components/CustomFormComponents/DatePickerWithText2' import CustomDatePickWithText2 from '@/components/CustomFormComponents/DatePickerWithText2'
import {interfaceUrl} from '@/sysConfig' import {interfaceUrl} from '@/sysConfig'
import TreeSelect from '@/components/treeSelect/treeSelect.vue'; import TreeSelect from '@/components/treeSelect/treeSelect.vue';
@@ -1671,10 +1720,15 @@ export default {
CustomRoleTree, CustomRoleTree,
CustomDatePickWithText2, CustomDatePickWithText2,
TreeSelect, TreeSelect,
MechanismTree,
TreeSelectNew TreeSelectNew
}, },
data() { data() {
return { return {
nodeList: [],
nodeListZRBM: [],
modalshowflagRole: false,
modalshowflagZRBM: false,
filterText: '', // 国内法规过滤 filterText: '', // 国内法规过滤
props: { props: {
label: 'menuName', label: 'menuName',
@@ -1960,6 +2014,8 @@ export default {
}, // 标准新增过程中用到的对象 }, // 标准新增过程中用到的对象
standClass: [], // 标准类别 standClass: [], // 标准类别
sarStandardsInfoEO: { sarStandardsInfoEO: {
ZRGCSUser: '',
ZRGCSUserId: '',
regionShow: '亚洲', regionShow: '亚洲',
region: '2T8PFTSYE7', region: '2T8PFTSYE7',
issueUnit: '', // 发布部门 issueUnit: '', // 发布部门
@@ -2406,11 +2462,11 @@ export default {
this.modalShowFlag1 = false this.modalShowFlag1 = false
this.$forceUpdate() this.$forceUpdate()
}, },
popoverHideCancel(){ popoverHideCancel() {
this.modalShowFlag1 = false this.modalShowFlag1 = false
}, },
popoverHideBusVs(checkedIds, checkedData, isShow, isLoadChild, topId) { popoverHideBusVs(checkedIds, checkedData, isShow, isLoadChild, topId) {
if (checkedData && checkedData.length != 0) { if (checkedData && checkedData.length != 0) {
if (checkedData.length > 0) { if (checkedData.length > 0) {
this.sarStandardsInfoEO.CYCVPPSBM = checkedData.map(item => item.code).join(",") this.sarStandardsInfoEO.CYCVPPSBM = checkedData.map(item => item.code).join(",")
this.sarStandardsInfoEO.CYCVPPSCN = checkedData.map(item => item.chineseName).join(",") this.sarStandardsInfoEO.CYCVPPSCN = checkedData.map(item => item.chineseName).join(",")
@@ -2418,16 +2474,16 @@ export default {
this.sarStandardsInfoEO.CYCVPPSBM = checkedData.code this.sarStandardsInfoEO.CYCVPPSBM = checkedData.code
this.sarStandardsInfoEO.CYCVPPSCN = checkedData.chineseName this.sarStandardsInfoEO.CYCVPPSCN = checkedData.chineseName
} }
this.modalShowFlag2 = false this.modalShowFlag2 = false
} }
this.$forceUpdate() this.$forceUpdate()
}, },
popoverHideBusVsCancel(){ popoverHideBusVsCancel() {
this.modalShowFlag2 = false this.modalShowFlag2 = false
}, },
popoverHideCarVs(checkedIds, checkedData, isShow, isLoadChild, topId) { popoverHideCarVs(checkedIds, checkedData, isShow, isLoadChild, topId) {
if (checkedData && checkedData.length != 0) { if (checkedData && checkedData.length != 0) {
if (checkedData.length > 0) { if (checkedData.length > 0) {
this.sarStandardsInfoEO.KCCVPPSBM = checkedData.map(item => item.code).join(",") this.sarStandardsInfoEO.KCCVPPSBM = checkedData.map(item => item.code).join(",")
this.sarStandardsInfoEO.KCCVPPSCN = checkedData.map(item => item.chineseName).join(",") this.sarStandardsInfoEO.KCCVPPSCN = checkedData.map(item => item.chineseName).join(",")
@@ -2440,11 +2496,11 @@ export default {
this.$forceUpdate() this.$forceUpdate()
}, },
popoverHideCarVsCancel(){ popoverHideCarVsCancel() {
this.modalShowFlag3 = false this.modalShowFlag3 = false
}, },
popoverHideModel(checkedIds, checkedData, isShow, isLoadChild, topId) { popoverHideModel(checkedIds, checkedData, isShow, isLoadChild, topId) {
if (checkedData && checkedData.length != 0) { if (checkedData && checkedData.length != 0) {
if (checkedData.length > 0) { if (checkedData.length > 0) {
this.sarStandardsInfoEO.DYBXH = checkedData.map(item => item.model).join(",") this.sarStandardsInfoEO.DYBXH = checkedData.map(item => item.model).join(",")
this.sarStandardsInfoEO.DYMC = checkedData.map(item => item.name).join(",") this.sarStandardsInfoEO.DYMC = checkedData.map(item => item.name).join(",")
@@ -2452,13 +2508,13 @@ export default {
this.sarStandardsInfoEO.DYBXH = checkedData.model this.sarStandardsInfoEO.DYBXH = checkedData.model
this.sarStandardsInfoEO.DYMC = checkedData.name this.sarStandardsInfoEO.DYMC = checkedData.name
} }
this.modalShowFlag4 = false this.modalShowFlag4 = false
} }
this.$forceUpdate() this.$forceUpdate()
}, },
popoverHideModelCancel(){ popoverHideModelCancel() {
this.modalShowFlag4 = false this.modalShowFlag4 = false
}, },
busVsFunc() { busVsFunc() {
this.$http.get('sarVppsTree/list', '', { this.$http.get('sarVppsTree/list', '', {
_this: this _this: this
@@ -3539,6 +3595,7 @@ export default {
this.validateStandNumber(this.sarStandardsInfoEO).then((flag) => { this.validateStandNumber(this.sarStandardsInfoEO).then((flag) => {
if (flag) { if (flag) {
// 时间格式修改 // 时间格式修改
this.ZRGCS = this.sarStandardsInfoEO.ZRGCSUserId
let nowstandinfo = JSON.parse(JSON.stringify(this.sarStandardsInfoEO)) let nowstandinfo = JSON.parse(JSON.stringify(this.sarStandardsInfoEO))
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')
@@ -4891,7 +4948,49 @@ export default {
data.forEach(item => { data.forEach(item => {
this.$set(this.textStatusMap, item.value, item.label) this.$set(this.textStatusMap, item.value, item.label)
}) })
} },
choiceRole(type, title, id) {
this.nodeList = []
this.nodeList.push(id)
this.drawerTitle = title
this.modalshowflagRole = true
},
drawerCheck(data) {
let idList = ''
let nameList = ''
data.forEach(item => {
if (nameList.length > 0) {
nameList += ','
idList += ','
}
idList += item.id
nameList += item.name
})
this.sarStandardsInfoEO.ZRGCSUserId = idList;
this.sarStandardsInfoEO['ZRGCS'] = nameList;
},
choiceZRBM(type, title, id) {
this.nodeListZRBM = []
this.nodeListZRBM.push(id)
this.drawerTitle = title
this.modalshowflagZRBM = true
},
drawerCheckZRBM(data) {
let idList = ''
let nameList = ''
data.forEach(item => {
if (item.hasChild === '0' && item.children === null) {
if (nameList.length > 0) {
nameList += ','
idList += ','
}
idList += item.id
nameList += item.name
}
})
this.sarStandardsInfoEO.ZRBMId = idList;
this.sarStandardsInfoEO['ZRBM'] = nameList;
},
}, },
computed: { computed: {
// 是否拥有拖拽权限 // 是否拥有拖拽权限
@@ -5103,7 +5202,10 @@ export default {
} }
.el-card { .el-card {
min-width: min-content; width: 500px;
min-width: 2000px;
max-width: 100%;
//min-width: min-content;
} }
height: 95%; height: 95%;
@@ -190,18 +190,18 @@
type="primary" type="primary"
size="mini" size="mini"
class="common-button-primary" class="common-button-primary"
v-btn-permission="" v-btn-permission="'d451a3e980f0536386a09443f40af772'"
@click="getBussionStandTableBtn(sarBussionessSearch)"> @click="getBussionStandTableBtn(sarBussionessSearch)">
查询 查询
</el-button> </el-button>
<el-button <el-button
size="mini" size="mini"
class="common-button-default" class="common-button-default"
v-btn-permission="" v-btn-permission="'4819e2ee2a92fdcba7643e27dba4a41b'"
@click="clearAllSearch('sarBussionessSearch')">清空 @click="clearAllSearch('sarBussionessSearch')">清空
</el-button> </el-button>
<el-button size="mini" type="primary" class="common-button-primary" <el-button size="mini" type="primary" class="common-button-primary"
v-btn-permission="" @click="selectMoreBtn"><i v-btn-permission="'62f5582b71835d1a0486d3109ff24698'" @click="selectMoreBtn"><i
class="iconfont">&#xe7a5;</i>高级检索 class="iconfont">&#xe7a5;</i>高级检索
</el-button> </el-button>
</el-form-item> </el-form-item>
@@ -4159,7 +4159,10 @@ export default {
padding: 0 !important; padding: 0 !important;
} }
.el-card{ .el-card{
min-width: min-content; width: 500px;
min-width: 2000px;
max-width: 100%;
//min-width: min-content;
} }
height: 95%; height: 95%;
width: 95%; width: 95%;
@@ -136,12 +136,12 @@
title="不勾选时默认导出所有筛选项;勾选时仅导出勾选项" title="不勾选时默认导出所有筛选项;勾选时仅导出勾选项"
v-btn-permission="'8871ed1be74cf65851659514880bb50a'"><i class="iconfont">&#xe6e9;</i>导出 v-btn-permission="'8871ed1be74cf65851659514880bb50a'"><i class="iconfont">&#xe6e9;</i>导出
</el-button> </el-button>
<!-- <el-button class="common-button-default delete-button" <!-- <el-button class="common-button-default delete-button"
:loading="delLoading" :loading="delLoading"
size="mini" size="mini"
@click="deleteStand(2)" @click="deleteStand(2)"
v-btn-permission="'4d01342db0f56f01bfceaee7b46904f4'"><i class="iconfont">&#xe61b;</i>批量删除 v-btn-permission="'4d01342db0f56f01bfceaee7b46904f4'"><i class="iconfont">&#xe61b;</i>批量删除
</el-button>--> </el-button>-->
<el-button class="common-button-default" <el-button class="common-button-default"
size="mini" @click="configurationStandard" size="mini" @click="configurationStandard"
v-btn-permission="'590049684c0af005c6b3d1f0ebcf897e'"><i class="iconfont">&#xe669;</i>配置标准 v-btn-permission="'590049684c0af005c6b3d1f0ebcf897e'"><i class="iconfont">&#xe669;</i>配置标准
@@ -151,11 +151,11 @@
@click="deleteStandFromKind(2)" @click="deleteStandFromKind(2)"
v-btn-permission="'29bf24bbd156c06f136cc89b1c7b2bb0'"><i class="iconfont">&#xe611;</i>移除标准 v-btn-permission="'29bf24bbd156c06f136cc89b1c7b2bb0'"><i class="iconfont">&#xe611;</i>移除标准
</el-button> </el-button>
<!--&lt;!&ndash; <el-button class="common-button-default" <!--&lt;!&ndash; <el-button class="common-button-default"
size="mini" :loading="searching" size="mini" :loading="searching"
@click="uploadImportModal(1)" @click="uploadImportModal(1)"
v-btn-permission="'4mFaJU3fTS'"><i class="iconfont">&#xe825;</i>模板下载&ndash;&gt; v-btn-permission="'4mFaJU3fTS'"><i class="iconfont">&#xe825;</i>模板下载&ndash;&gt;
</el-button>--> </el-button>-->
</div> </div>
<div class="content"> <div class="content">
<div class="table-wrap"> <div class="table-wrap">
@@ -191,7 +191,9 @@
<a v-else-if="scope.row.standYear" style="color: #333333" class="table-jump" @click="handlePreview(scope.row)">{{ <a v-else-if="scope.row.standYear" style="color: #333333" class="table-jump" @click="handlePreview(scope.row)">{{
scope.row.standSortShow scope.row.standSortShow
}} {{ scope.row.standNumber }}-{{ scope.row.standYear }}</a> }} {{ scope.row.standNumber }}-{{ scope.row.standYear }}</a>
<a v-else style="color: #333333" @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standSortShow }} <a v-else style="color: #333333" @click="handlePreview(scope.row)" class="table-jump">{{
scope.row.standSortShow
}}
{{ scope.row.standNumber }}</a> {{ scope.row.standNumber }}</a>
</template> </template>
</el-table-column> </el-table-column>
@@ -201,9 +203,15 @@
label="标准名称" label="标准名称"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<a v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C" @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a> <a v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C" @click="handlePreview(scope.row)" class="table-jump">{{
<a v-else-if="textStatusMap[scope.row.textStatus] === '——' " style="color: #409EFF" @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a> scope.row.standName
<a v-else style="color: #333333" @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a> }}</a>
<a v-else-if="textStatusMap[scope.row.textStatus] === '——' " style="color: #409EFF" @click="handlePreview(scope.row)" class="table-jump">{{
scope.row.standName
}}</a>
<a v-else style="color: #333333" @click="handlePreview(scope.row)" class="table-jump">{{
scope.row.standName
}}</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -213,13 +221,13 @@
label="发布日期"> label="发布日期">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C"> <div v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">
{{ formatIssueDate(scope.row.issueTime) }} {{ formatIssueDate(scope.row.issueTime) }}
</div> </div>
<div v-else-if="textStatusMap[scope.row.textStatus] === '——' " style="color: #409EFF"> <div v-else-if="textStatusMap[scope.row.textStatus] === '——' " style="color: #409EFF">
{{ formatIssueDate(scope.row.issueTime) }} {{ formatIssueDate(scope.row.issueTime) }}
</div> </div>
<div v-else style="color: #333333"> <div v-else style="color: #333333">
{{ formatIssueDate(scope.row.issueTime) }} {{ formatIssueDate(scope.row.issueTime) }}
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
@@ -230,9 +238,13 @@
label="实施日期"> label="实施日期">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- {{ formatIssueDate(scope.row.putTime) }}--> <!-- {{ formatIssueDate(scope.row.putTime) }}-->
<span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{ scope.row.SSRQ ? scope.row.SSRQ.substring(0,10) : '-' }}</span> <span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{
<span v-else-if="textStatusMap[scope.row.textStatus] === '——' " style="color: #409EFF">{{ scope.row.SSRQ ? scope.row.SSRQ.substring(0,10) : '-' }}</span> scope.row.SSRQ ? scope.row.SSRQ.substring(0, 10) : '-'
<span v-else style="color: #333333">{{ scope.row.SSRQ ? scope.row.SSRQ.substring(0,10) : '-' }}</span> }}</span>
<span v-else-if="textStatusMap[scope.row.textStatus] === '——' " style="color: #409EFF">{{
scope.row.SSRQ ? scope.row.SSRQ.substring(0, 10) : '-'
}}</span>
<span v-else style="color: #333333">{{ scope.row.SSRQ ? scope.row.SSRQ.substring(0, 10) : '-' }}</span>
</template> </template>
</el-table-column> </el-table-column>
@@ -242,9 +254,15 @@
width="150px" width="150px"
label="新车型实施日期"> label="新车型实施日期">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{ scope.row.XCXSSRQ ? scope.row.XCXSSRQ.substring(0,10) : '-' }}</span> <span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{
<span v-else-if="textStatusMap[scope.row.textStatus] === '——' " style="color: #409EFF">{{ scope.row.XCXSSRQ ? scope.row.XCXSSRQ.substring(0,10) : '-' }}</span> scope.row.XCXSSRQ ? scope.row.XCXSSRQ.substring(0, 10) : '-'
<span v-else style="color: #333333">{{ scope.row.XCXSSRQ ? scope.row.XCXSSRQ.substring(0,10) : '-' }}</span> }}</span>
<span v-else-if="textStatusMap[scope.row.textStatus] === '——' " style="color: #409EFF">{{
scope.row.XCXSSRQ ? scope.row.XCXSSRQ.substring(0, 10) : '-'
}}</span>
<span v-else style="color: #333333">{{
scope.row.XCXSSRQ ? scope.row.XCXSSRQ.substring(0, 10) : '-'
}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -253,9 +271,15 @@
width="150px" width="150px"
label="在产车实施日期"> label="在产车实施日期">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{ scope.row.ZCCSSRQ ? scope.row.ZCCSSRQ.substring(0,10) : '-' }}</span> <span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{
<span v-else-if="textStatusMap[scope.row.textStatus] === '——' " style="color: #409EFF">{{ scope.row.ZCCSSRQ ? scope.row.ZCCSSRQ.substring(0,10) : '-' }}</span> scope.row.ZCCSSRQ ? scope.row.ZCCSSRQ.substring(0, 10) : '-'
<span v-else style="color: #333333">{{ scope.row.ZCCSSRQ ? scope.row.ZCCSSRQ.substring(0,10) : '-' }}</span> }}</span>
<span v-else-if="textStatusMap[scope.row.textStatus] === '——' " style="color: #409EFF">{{
scope.row.ZCCSSRQ ? scope.row.ZCCSSRQ.substring(0, 10) : '-'
}}</span>
<span v-else style="color: #333333">{{
scope.row.ZCCSSRQ ? scope.row.ZCCSSRQ.substring(0, 10) : '-'
}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -269,12 +293,16 @@
<!-- </el-tooltip>--> <!-- </el-tooltip>-->
<!-- </template>--> <!-- </template>-->
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{ textStatusMap[scope.row.textStatus] }}</span> <span v-if="textStatusMap[scope.row.textStatus] === '废止' || textStatusMap[scope.row.textStatus] === '被代替'" style="color: #F56C6C">{{
<span v-else-if="textStatusMap[scope.row.textStatus] === '——' " style="color: #409EFF">{{ textStatusMap[scope.row.textStatus] }}</span> textStatusMap[scope.row.textStatus]
}}</span>
<span v-else-if="textStatusMap[scope.row.textStatus] === '——' " style="color: #409EFF">{{
textStatusMap[scope.row.textStatus]
}}</span>
<span v-else style="color: #333333">{{ textStatusMap[scope.row.textStatus] }}</span> <span v-else style="color: #333333">{{ textStatusMap[scope.row.textStatus] }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" width="50" > <el-table-column label="操作" align="center" width="50">
<template slot-scope="scope"> <template slot-scope="scope">
<div @click.stop style="display: inline-block"> <div @click.stop style="display: inline-block">
<el-dropdown trigger="click" @command="handleCommand"> <el-dropdown trigger="click" @command="handleCommand">
@@ -983,12 +1011,48 @@
></custom-select> ></custom-select>
</template> </template>
<template v-else-if="field.attrType === 'SEL_OPTS' && field.attrField !== 'ZRLX'"> <template v-else-if="field.attrType === 'SEL_OPTS' && field.attrField !== 'ZRLX'">
<custom-select-array <template v-if="field.attrField === 'ZRBM'">
:key="field.attrField" <el-form-item
:config="field" prop="ZRBM"
v-model="sarStandardsInfoEO[field.attrField]" label-width="150px"
:disabled="formdisableflag" class="add-form-item"
></custom-select-array> >
<template slot="label">责任部门</template>
<el-input
:key="field.attrField"
:config="field"
clearable
v-model="sarStandardsInfoEO['ZRBM']"
:disabled="formdisableflag" placeholder="选择责任部门"
@click.native="choiceZRBM('ZRBMId', '责任部门', sarStandardsInfoEO.ZRBMId)">
</el-input>
</el-form-item>
</template>
<template v-else-if="field.attrField === 'ZRGCS'">
<el-form-item
prop="ZRGCSUser"
label-width="150px"
class="add-form-item"
>
<template slot="label">责任工程师</template>
<el-input
:key="field.attrField"
:config="field"
clearable
v-model="sarStandardsInfoEO['ZRGCS']"
:disabled="formdisableflag" placeholder="选择责任工程师"
@click.native="choiceRole('ZRGCSUserId', '责任工程师', sarStandardsInfoEO.ZRGCSUserId)">
</el-input>
</el-form-item>
</template>
<template v-else>
<custom-select-array
:key="field.attrField"
:config="field"
v-model="sarStandardsInfoEO[field.attrField]"
:disabled="formdisableflag"
></custom-select-array>
</template>
</template> </template>
</template> </template>
</template> </template>
@@ -1434,7 +1498,7 @@
:url="url" :url="url"
:urlChild="urlChild" :urlChild="urlChild"
:defaultProps="defaultCodeProps" :checkedKeys="defaultCheckedKeys2" :defaultProps="defaultCodeProps" :checkedKeys="defaultCheckedKeys2"
:nodeKey="nodeKeyCode" @popoverHide="popoverHideCarVs" @popoverHideCancel="popoverHideCarVsCancel"></tree-select-new> :nodeKey="nodeKeyCode" @popoverHide="popoverHideCarVs" @popoverHideCancel="popoverHideCarVsCancel"></tree-select-new>
<tree-select-new <tree-select-new
width="500" width="500"
:lazy=true :lazy=true
@@ -1473,6 +1537,18 @@
@confirm="isTreeOk" @confirm="isTreeOk"
></org-table> ></org-table>
<loading style="z-index: 2099;" :loading="exportLoading">导入中...</loading> <loading style="z-index: 2099;" :loading="exportLoading">导入中...</loading>
<Role-tree
is-title="选择人员信息"
:is-visible.sync="modalshowflagRole"
:nodeList="nodeList"
@checkedRole="drawerCheck"
/>
<Mechanism-tree
is-title="选择部门信息"
:is-visible.sync="modalshowflagZRBM"
:nodeList="nodeListZRBM"
@checkedRole="drawerCheckZRBM"
/>
</div> </div>
</template> </template>
@@ -1492,6 +1568,7 @@ import CustomEopDatePick from '@/components/CustomFormComponents/DatePickerWithT
import CustomDatePickWithText, {formatText} from '@/components/CustomFormComponents/DatePickerGroupWithText' import CustomDatePickWithText, {formatText} from '@/components/CustomFormComponents/DatePickerGroupWithText'
import CustomSVPPS from '@/components/CustomFormComponents/SVPPS' import CustomSVPPS from '@/components/CustomFormComponents/SVPPS'
import CustomRoleTree from '@/components/CustomFormComponents/roleTree' import CustomRoleTree from '@/components/CustomFormComponents/roleTree'
import MechanismTree from '@/components/mechanismTree'
import CustomDatePickWithText2 from '@/components/CustomFormComponents/DatePickerWithText2' import CustomDatePickWithText2 from '@/components/CustomFormComponents/DatePickerWithText2'
import {interfaceUrl} from "@/sysConfig"; import {interfaceUrl} from "@/sysConfig";
import TreeSelect from '@/components/treeSelect/treeSelect.vue'; import TreeSelect from '@/components/treeSelect/treeSelect.vue';
@@ -1515,12 +1592,19 @@ export default {
CustomDatePickWithText, CustomDatePickWithText,
CustomSVPPS, CustomSVPPS,
CustomRoleTree, CustomRoleTree,
MechanismTree,
CustomDatePickWithText2, CustomDatePickWithText2,
TreeSelect, TreeSelect,
TreeSelectNew TreeSelectNew
}, },
data() { data() {
return { return {
//
nodeList: [],
nodeListZRBM: [],
modalshowflagRole: false,
modalshowflagZRBM: false,
textStatusMap: {}, // idname textStatusMap: {}, // idname
treeList: [], treeList: [],
props: { props: {
@@ -2235,7 +2319,7 @@ export default {
this.modalShowFlag2 = false this.modalShowFlag2 = false
this.$forceUpdate() this.$forceUpdate()
}, },
popoverHideBusVsCancel(){ popoverHideBusVsCancel() {
this.modalShowFlag2 = false this.modalShowFlag2 = false
}, },
popoverHideCarVs(checkedIds, checkedData, isShow, isLoadChild, topId) { popoverHideCarVs(checkedIds, checkedData, isShow, isLoadChild, topId) {
@@ -2250,7 +2334,7 @@ export default {
} }
this.modalShowFlag3 = false this.modalShowFlag3 = false
this.$forceUpdate() this.$forceUpdate()
},popoverHideCarVsCancel(){ }, popoverHideCarVsCancel() {
this.modalShowFlag3 = false this.modalShowFlag3 = false
}, },
popoverHideModel(checkedIds, checkedData, isShow, isLoadChild, topId) { popoverHideModel(checkedIds, checkedData, isShow, isLoadChild, topId) {
@@ -2265,7 +2349,7 @@ export default {
} }
this.modalShowFlag4 = false this.modalShowFlag4 = false
this.$forceUpdate() this.$forceUpdate()
},popoverHideModelCancel(){ }, popoverHideModelCancel() {
this.modalShowFlag4 = false this.modalShowFlag4 = false
}, },
// idname // idname
@@ -4566,7 +4650,49 @@ export default {
break break
} }
} }
} },
choiceRole(type, title, id) {
this.nodeList = []
this.nodeList.push(id)
this.drawerTitle = title
this.modalshowflagRole = true
},
drawerCheck(data) {
let idList = ''
let nameList = ''
data.forEach(item => {
if (nameList.length > 0) {
nameList += ','
idList += ','
}
idList += item.id
nameList += item.name
})
this.sarStandardsInfoEO.ZRGCSUserId = idList;
this.sarStandardsInfoEO['ZRGCS'] = nameList;
},
choiceZRBM(type, title, id) {
this.nodeListZRBM = []
this.nodeListZRBM.push(id)
this.drawerTitle = title
this.modalshowflagZRBM = true
},
drawerCheckZRBM(data) {
let idList = ''
let nameList = ''
data.forEach(item => {
if (item.hasChild === '0' && item.children === null) {
if (nameList.length > 0) {
nameList += ','
idList += ','
}
idList += item.id
nameList += item.name
}
})
this.sarStandardsInfoEO.ZRBMId = idList;
this.sarStandardsInfoEO['ZRBM'] = nameList;
},
}, },
computed: { computed: {
// //
@@ -4777,8 +4903,12 @@ export default {
} }
.el-card { .el-card {
min-width: min-content; width: 500px;
min-width: 2000px;
max-width: 100%;
//min-width: min-content;
} }
height: 95%; height: 95%;
width: calc(~'100% - 15px'); width: calc(~'100% - 15px');
position: absolute; position: absolute;
@@ -50,7 +50,7 @@
type="primary" type="primary"
class="common-button-primary" class="common-button-primary"
size="small" size="small"
v-btn-permission="'d1b1bffb39a67dea0d452a8ba4e3ae35'" v-btn-permission="'b1ac4fb12eeb08c525b018ef839dbd40'"
@click="getLocalProductTableBtn">查询 @click="getLocalProductTableBtn">查询
</el-button> </el-button>
</el-form-item> </el-form-item>
@@ -58,7 +58,7 @@
<el-button <el-button
class="common-button-default" class="common-button-default"
size="small" size="small"
v-btn-permission="'10e3fdd2d816d64022f2928cd65b9bb1'" v-btn-permission="'7238d3ca40d709ba6b089c9aaa560760'"
@click="clearAllSearch">清空 @click="clearAllSearch">清空
</el-button> </el-button>
</el-form-item> </el-form-item>
@@ -67,7 +67,7 @@
type="primary" type="primary"
class="common-button-primary" class="common-button-primary"
size="mini" size="mini"
v-btn-permission="'e5ca15122f554414e6365eb09efac5c4'" v-btn-permission="'11a6fc355f457eff8ad70278224a2f3b'"
@click="selectMoreBtn" @click="selectMoreBtn"
><i class="iconfont">&#xe7a5;</i>高级查询 ><i class="iconfont">&#xe7a5;</i>高级查询
</el-button> </el-button>
@@ -185,7 +185,7 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
prop="projectManager" prop="uname"
align="center" align="center"
label="项目经理"> label="项目经理">
</el-table-column> </el-table-column>
@@ -195,11 +195,11 @@
<el-dropdown trigger="click" @command="handleCommand"> <el-dropdown trigger="click" @command="handleCommand">
<i class="iconfont">&#xe61e;</i> <i class="iconfont">&#xe61e;</i>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item :command="[scope.row, '查看']" v-btn-permission="'633e82816590af9027dc2fddc562d046'"> <el-dropdown-item :command="[scope.row, '查看']" v-btn-permission="'881cfa2f3c898e0954d90ee7d521ed70'">
查看 查看
</el-dropdown-item> </el-dropdown-item>
<!-- // id 91ed4c216c019e869aad04baf7bc7db4--> <!-- // id -->
<el-dropdown-item :command="[scope.row, '发起确认流程']" v-btn-permission="''"> <el-dropdown-item :command="[scope.row, '发起确认流程']" v-btn-permission="'dd87f572b6c807b6982fa071fcbe0d41'">
发起确认流程 发起确认流程
</el-dropdown-item> </el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
@@ -209,7 +209,8 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination <pagination
:page="localProTableSearch.page" :page="page"
:pageSize="pageSize"
:total="total" :total="total"
@pageChange="pageChange" @pageChange="pageChange"
@pageSizeChange="pageSizeChange"></pagination> @pageSizeChange="pageSizeChange"></pagination>
@@ -483,12 +484,11 @@ export default {
projectClassification: "", projectClassification: "",
// //
projectStatus: "", projectStatus: "",
page: ""
}, },
page: 1,
pageSize: this.$store.getters.userInfo.configContent,
// //
localProTableSearch: { localProTableSearch: {
page: 1,
pageSize: this.$store.getters.userInfo.configContent,
validFlag: 0, validFlag: 0,
// //
projectNumber: "", projectNumber: "",
@@ -519,8 +519,6 @@ export default {
}, },
// //
localProTableSearchDefault: { localProTableSearchDefault: {
page: 1,
pageSize: this.$store.getters.userInfo.configContent,
validFlag: 0, validFlag: 0,
// //
projectNumber: "", projectNumber: "",
@@ -1188,96 +1186,6 @@ export default {
}); });
return newData; return newData;
}, },
saveOrUpdateLocalPro() {
this.$refs["addLocalProductForm"].validate((valid, fields) => {
if (valid) {
const formData = this.resolveTime(this.localProEO);
if (formData.energyKind != null && (formData.energyKind instanceof Array)) {
formData.energyKind = formData.energyKind.join(","); //
}
if (formData.productTypeCode != null && (formData.productTypeCode instanceof Array)) {
formData.productTypeCode = formData.productTypeCode.join(","); //
}
if (formData.producePlace != null && (formData.producePlace instanceof Array)) {
formData.producePlace = formData.producePlace.join(","); //
}
formData.targetMarket = formData.targetMarket.toString();
//
if (this.flag === 0) {
this.$http.postData("lawss/sarProductInfo/addSarProductInfo", formData, {
_this: this
}, res => {
if (res.ok) {
// this.modalProductAddShowflag = false
this.closeProductAddDrawer();
this.isSubmit = false;
if (this.localProEO.prodectCode === "INLAND") {
this.activeName = "INLAND";
this.localProTableSearch.prodectCode = this.activeName;
this.$nextTick(() => {
this.getLocalProductTable();
});
} else {
this.activeName = "FOREIGN";
this.localProTableSearch.prodectCode = this.activeName;
this.$nextTick(() => {
this.getLocalProductTable();
});
}
}
}, e => {
});
} else {
//
this.$http.postData("lawss/sarProductInfo/updateSarProductInfo", formData, {
_this: this
}, res => {
if (res.ok) {
this.isSubmit = false;
// this.modalProductAddShowflag = false
this.closeProductAddDrawer();
if (this.localProEO.prodectCode === "INLAND") {
this.activeName = "INLAND";
this.localProTableSearch.prodectCode = this.activeName;
if (this.localProEO.dataType === "LOCAL") {
this.insideTabsActiveName = "LOCAL";
this.localProTableSearch.dataType = this.insideTabsActiveName;
this.$nextTick(() => {
this.getLocalProductTable();
});
} else {
this.insideTabsActiveName = "PDPM";
this.localProTableSearch.dataType = this.insideTabsActiveName;
this.$nextTick(() => {
this.getLocalProductTable();
});
}
} else {
this.activeName = "FOREIGN";
this.localProTableSearch.prodectCode = this.activeName;
if (this.localProEO.dataType === "LOCAL") {
this.insideTabsActiveName = "LOCAL";
this.localProTableSearch.dataType = this.insideTabsActiveName;
this.$nextTick(() => {
this.getLocalProductTable();
});
} else {
this.insideTabsActiveName = "PDPM";
this.localProTableSearch.dataType = this.insideTabsActiveName;
this.$nextTick(() => {
this.getLocalProductTable();
});
}
}
}
}, e => {
});
}
} else {
this.$message.error("请检查表单是否填写正确!");
}
});
},
// //
getLocalProductTableBtn() { getLocalProductTableBtn() {
this.projectLibrarySearch.page = 1; this.projectLibrarySearch.page = 1;
@@ -1290,11 +1198,10 @@ export default {
this.localProTableSearch.dataType = this.insideTabsActiveName; this.localProTableSearch.dataType = this.insideTabsActiveName;
this.SarExportSearchEo = this.localProTableSearch; this.SarExportSearchEo = this.localProTableSearch;
this.$http.get("sarStandProjectLibrary/queryProject", { this.$http.get("sarStandProjectLibrary/queryProject", {
// projectName: this.projectLibrarySearch.projectName,
// projectClassification: this.projectLibrarySearch.projectSort,
// projectStatus: this.projectLibrarySearch.projectStatus
...this.localProTableSearch, ...this.localProTableSearch,
...this.projectLibrarySearch ...this.projectLibrarySearch,
page: this.page,
pageSize: this.pageSize,
}, { }, {
_this: this, loading: "loading" _this: this, loading: "loading"
}, res => { }, res => {
@@ -1440,15 +1347,6 @@ export default {
this.relateProductId = this.relectonSelectNum[0].id; this.relateProductId = this.relectonSelectNum[0].id;
} }
}, },
//
reletionPageChange(page) {
this.relationPage = page;
this.getLocalProductTable();
},
reletionPageSizeChange(pageSize) {
this.reletionPageSize = pageSize;
this.getLocalProductTable();
},
// //
saveOrUpdateReletion() { saveOrUpdateReletion() {
if (this.relectonSelectNum.length === 0) { if (this.relectonSelectNum.length === 0) {
@@ -1487,12 +1385,13 @@ export default {
}, },
// //
pageChange(page) { pageChange(page) {
this.localProTableSearch.page = page; console.log(page);
this.page = page;
this.getLocalProductTable(); this.getLocalProductTable();
}, },
// //
pageSizeChange(pageSize) { pageSizeChange(pageSize) {
this.localProTableSearch.pageSize = pageSize; this.pageSize = pageSize;
this.getLocalProductTable(); this.getLocalProductTable();
// //
}, },
@@ -54,7 +54,7 @@
type="primary" type="primary"
class="common-button-default export-button" class="common-button-default export-button"
size="mini" @click="exportStandard" size="mini" @click="exportStandard"
v-btn-permission="''" v-btn-permission="'b46217ac825d49933b0f7349ba924ea7'"
title="不勾选时默认导出所有筛选项;勾选时仅导出勾选项" title="不勾选时默认导出所有筛选项;勾选时仅导出勾选项"
icon="export" icon="export"
>导出 >导出
@@ -79,7 +79,7 @@
size="mini" size="mini"
@click="exportStandard()" @click="exportStandard()"
title="不勾选时默认导出所有筛选项;勾选时仅导出勾选项" title="不勾选时默认导出所有筛选项;勾选时仅导出勾选项"
v-btn-permission="'620e6da5808bf104e576c763546a33b6'" v-btn-permission="'c3c8c107fb4ca1ab089d5b4b73cfcee1'"
><i class="iconfont">&#xe6e9;</i>导出</el-button> ><i class="iconfont">&#xe6e9;</i>导出</el-button>
<el-button <el-button
class="common-button-primary" class="common-button-primary"
@@ -41,12 +41,13 @@
type="primary" type="primary"
size="mini" size="mini"
class="common-button-primary" class="common-button-primary"
v-btn-permission="'0514cd2c6b0e6311a7632f8bef87aecb'"
@click="sarStandCompareHisInfo">查询 @click="sarStandCompareHisInfo">查询
</el-button> </el-button>
<el-button <el-button
class="common-button-default" class="common-button-default"
size="mini" size="mini"
v-btn-permission="'bb7386429dabf20b8006e03efacc0673'"
@click="clearSearchStand">清空 @click="clearSearchStand">清空
</el-button> </el-button>
</el-formItem> </el-formItem>
@@ -25,9 +25,9 @@
<!-- {{ this.$route.query.item.cname || '-' }}--> <!-- {{ this.$route.query.item.cname || '-' }}-->
<!-- </span>--> <!-- </span>-->
<!-- </p>--> <!-- </p>-->
<p class="transition-box-p"> <div class="transition-box-p">
<label class="transition-box-label">附件</label> <label class="transition-box-label">附件</label>
<span class="file-box" v-if="fileInfoList.length > 0"> <div class="file-box" v-if="fileInfoList.length > 0">
<div style="display: flex;"> <div style="display: flex;">
<div v-for="(file,item) in fileInfoList" <div v-for="(file,item) in fileInfoList"
target="_blank" target="_blank"
@@ -35,12 +35,12 @@
@click="handleQueryPdf(file)" @click="handleQueryPdf(file)"
:key="item"> :key="item">
{{ file.name }} {{ file.name }}
<el-button type="primary" class="common-button-primary" size="mini" @click="downloadFile(file.attId)">下载</el-button> <el-button type="primary" class="common-button-primary" size="mini" @click="downloadFile(file.attId)">下载</el-button>
</div> </div>
</div> </div>
</span> </div>
<span class="transition-box-span" v-else>-</span> <span class="transition-box-span" v-else>-</span>
</p> </div>
<p class="transition-box-p"> <p class="transition-box-p">
<label class="transition-box-label">上传时间</label> <label class="transition-box-label">上传时间</label>
<span class="transition-box-span">{{ this.$route.query.item.startTime || '-' }}</span> <span class="transition-box-span">{{ this.$route.query.item.startTime || '-' }}</span>
@@ -56,7 +56,7 @@
<el-button v-if="ideaKey" type="primary" class="common-button-primary" size="mini" @click="selectStandardPro('add')"> <el-button v-if="ideaKey" type="primary" class="common-button-primary" size="mini" @click="selectStandardPro('add')">
添加 添加
</el-button> </el-button>
<el-button type="primary" class="common-button-primary" size="mini" @click="exportAll">导出</el-button> <el-button type="primary" class="common-button-primary" size="mini" @click="exportAll">导出</el-button>
</div> </div>
<div class="container"> <div class="container">
<el-table <el-table
@@ -5,7 +5,7 @@
<div class="standard-search-content"> <div class="standard-search-content">
<div style="position: absolute;left: 0;right: 0;top: 0;bottom: 0;"> <div style="position: absolute;left: 0;right: 0;top: 0;bottom: 0;">
<div class="content-left"> <div class="content-left">
<div class="search"> <div class="search" style="padding: 40px;">
<div class="search-box"> <div class="search-box">
<div class="home-input"> <div class="home-input">
<el-input <el-input
@@ -2565,7 +2565,7 @@
border-bottom-left-radius: 20px; border-bottom-left-radius: 20px;
} }
.standard-search { .standard-search {
padding: 6px 26px; //padding: 6px 26px;
@borderColor: #BFBFBF; @borderColor: #BFBFBF;
height: 100%; height: 100%;
font-size: 14px; font-size: 14px;
@@ -2634,14 +2634,14 @@
text-align: center; text-align: center;
} }
.header{ .header{
height: 50px; //height: 50px;
.home-header{ .home-header{
height: 100%; height: 100%;
} }
} }
@media screen and (min-width: 1920px) { @media screen and (min-width: 1920px) {
.header{ .header{
height: 75px; height: 65px;
} }
} }
.standard-search-content{ .standard-search-content{
@@ -3065,7 +3065,7 @@
} }
.router-link{ .router-link{
position: relative; position: relative;
color: #fff; color: #333;
top: 17px; top: 17px;
left: 44px; left: 44px;
font-family: PingFang-SC-Medium; font-family: PingFang-SC-Medium;
@@ -3074,7 +3074,7 @@
} }
.router-link1{ .router-link1{
position: relative; position: relative;
color: #fff; color: #333;
top: 17px; top: 17px;
left: 54px; left: 54px;
font-family: PingFang-SC-Medium; font-family: PingFang-SC-Medium;
@@ -3107,7 +3107,8 @@
border-radius: 20px; border-radius: 20px;
flex: 1; flex: 1;
overflow: hidden; overflow: hidden;
margin-top: 20px; //margin-top: 20px;
margin: 20px 26px 0 26px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
.all-box__wrap { .all-box__wrap {
+3 -4
View File
@@ -10,7 +10,7 @@
const devIp = '62.234.136.153' const devIp = '62.234.136.153'
const devInterfacePORT = '8033' const devInterfacePORT = '8033'
// 配置 idm 认证 // 配置 idm 认证
const ssoLogin = 'http://testsso1.foton.com.cn/oauth2.0/authorize?client_id=app_slrs&response_type=code&redirect_uri=' const ssoLogin = 'http://sso.foton.com.cn/oauth2.0/authorize?client_id=app_slrs&response_type=code&redirect_uri='
// 配置 前端服务 // 配置 前端服务
const devWebUrl = 'http://62.234.136.153:8038/#/' const devWebUrl = 'http://62.234.136.153:8038/#/'
// webLoginType : idm (线上统一登录) 、 webLoginType: dev (测试环境登录) // webLoginType : idm (线上统一登录) 、 webLoginType: dev (测试环境登录)
@@ -37,9 +37,8 @@ const processPort = '17210'
*****************************************************************/ *****************************************************************/
// 生产环境配置 // 生产环境配置
const prodIp = '62.234.136.153' const prodIp = '10.100.5.117'
const prodInterfacePORT = '8033' const prodInterfacePORT = '4202'
// 判断环境 // 判断环境
const serverIP = process.env.NODE_ENV === 'production' ? prodIp : devIp const serverIP = process.env.NODE_ENV === 'production' ? prodIp : devIp