Merge branch 'hi-ucs-dev' into release
# Conflicts: # front/public/static/config/basicConfig.js
This commit is contained in:
commit
1d41742942
|
@ -180,7 +180,7 @@
|
||||||
v-show="this.departmentId === 3 || this.departmentId === 4">
|
v-show="this.departmentId === 3 || this.departmentId === 4">
|
||||||
<el-table-column v-if="this.departmentId === 3" prop="deptName" label="上架部门" min-width="100%">
|
<el-table-column v-if="this.departmentId === 3" prop="deptName" label="上架部门" min-width="100%">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column v-if="this.departmentId === 4" prop="deptName" label="申请部门" min-width="100%">
|
<el-table-column v-else-if="this.departmentId === 4" prop="deptName" label="申请部门" min-width="100%">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="resourceName" label="资源名称" min-width="100%">
|
<el-table-column prop="resourceName" label="资源名称" min-width="100%">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<el-input v-model="dataForm.name" :placeholder="$t('region.name')"></el-input>
|
<el-input v-model="dataForm.name" :placeholder="$t('region.name')"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="id" :label="$t('region.id')">
|
<el-form-item prop="id" :label="$t('region.id')">
|
||||||
<el-input v-model="dataForm.id" :disabled="!insert" :placeholder="$t('region.id')"></el-input>
|
<el-input v-model="dataForm.id" :disabled="!insert" :placeholder="$t('region.id')" @change="changeId"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="sort" :label="$t('region.sort')">
|
<el-form-item prop="sort" :label="$t('region.sort')">
|
||||||
<el-input-number v-model="dataForm.sort" controls-position="right" :min="0" :label="$t('region.sort')"></el-input-number>
|
<el-input-number v-model="dataForm.sort" controls-position="right" :min="0" :label="$t('region.sort')"></el-input-number>
|
||||||
|
@ -26,6 +26,7 @@ import debounce from 'lodash/debounce'
|
||||||
export default {
|
export default {
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
flag: true,
|
||||||
visible: false,
|
visible: false,
|
||||||
insert: true,
|
insert: true,
|
||||||
regionList: [],
|
regionList: [],
|
||||||
|
@ -60,7 +61,7 @@ export default {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
this.dataForm.pid = '0'
|
this.dataForm.pid = '0'
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs['dataForm'].resetFields()
|
this.$refs.dataForm.resetFields()
|
||||||
this.dataForm.id = id
|
this.dataForm.id = id
|
||||||
if (this.dataForm.id) {
|
if (this.dataForm.id) {
|
||||||
this.insert = false
|
this.insert = false
|
||||||
|
@ -68,6 +69,13 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
changeId (val) {
|
||||||
|
if (val == parseInt(val)) {
|
||||||
|
this.flag = true
|
||||||
|
} else {
|
||||||
|
this.flag = false
|
||||||
|
}
|
||||||
|
},
|
||||||
// 获取信息
|
// 获取信息
|
||||||
getInfo () {
|
getInfo () {
|
||||||
this.$http.get(`/sys/region/${this.dataForm.id}`).then(({ data: res }) => {
|
this.$http.get(`/sys/region/${this.dataForm.id}`).then(({ data: res }) => {
|
||||||
|
@ -83,10 +91,17 @@ export default {
|
||||||
},
|
},
|
||||||
// 表单提交
|
// 表单提交
|
||||||
dataFormSubmitHandle: debounce(function () {
|
dataFormSubmitHandle: debounce(function () {
|
||||||
this.$refs['dataForm'].validate((valid) => {
|
this.$refs.dataForm.validate((valid) => {
|
||||||
if (!valid) {
|
if (!valid) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
if (!this.flag) {
|
||||||
|
this.$message({
|
||||||
|
message: '区域标识只能为数字!',
|
||||||
|
type: 'warning'
|
||||||
|
})
|
||||||
|
return false
|
||||||
|
}
|
||||||
this.$http[this.insert ? 'post' : 'put']('/sys/region', this.dataForm).then(({ data: res }) => {
|
this.$http[this.insert ? 'post' : 'put']('/sys/region', this.dataForm).then(({ data: res }) => {
|
||||||
if (res.code !== 0) {
|
if (res.code !== 0) {
|
||||||
return this.$message.error(res.msg)
|
return this.$message.error(res.msg)
|
||||||
|
@ -102,7 +117,7 @@ export default {
|
||||||
})
|
})
|
||||||
}).catch(() => {})
|
}).catch(() => {})
|
||||||
})
|
})
|
||||||
}, 1000, { 'leading': true, 'trailing': false })
|
}, 1000, { leading: true, trailing: false })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -110,12 +110,12 @@ export default {
|
||||||
this.$message.error('登陆失败,用户名或密码错误!')
|
this.$message.error('登陆失败,用户名或密码错误!')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.$http.get('/login', { params: { username: this.dataForm.username, password: Encrypt(this.dataForm.password) } }).then(({ data: res }) => {
|
this.$http.get('/login', { params: { username: Encrypt(this.dataForm.username), password: Encrypt(this.dataForm.password) } }).then(({ data: res }) => {
|
||||||
if (res.code !== 0) {
|
if (res.code !== 0) {
|
||||||
this.getCaptcha()
|
this.getCaptcha()
|
||||||
return this.$message.error(res.msg)
|
return this.$message.error(res.msg)
|
||||||
}
|
}
|
||||||
Cookies.set('ucsToken', res.data.token, { expires: 'session' })
|
Cookies.set('ucsToken', res.data.token)
|
||||||
this.$router.replace({ path: '/home' })
|
this.$router.replace({ path: '/home' })
|
||||||
}).catch(() => {})
|
}).catch(() => {})
|
||||||
})
|
})
|
||||||
|
|
|
@ -71,7 +71,7 @@
|
||||||
window.SITE_CONFIG['previewUrl'] = _global.config.previewUrl
|
window.SITE_CONFIG['previewUrl'] = _global.config.previewUrl
|
||||||
window.SITE_CONFIG['frontUrl'] =
|
window.SITE_CONFIG['frontUrl'] =
|
||||||
_global.config.previewUrl + 'document/#/devModelFile/'
|
_global.config.previewUrl + 'document/#/devModelFile/'
|
||||||
window.SITE_CONFIG['apiURL'] = 'http://' + _global.config.websocketURL
|
window.SITE_CONFIG['apiURL'] = _global.config.apiURL
|
||||||
window.SITE_CONFIG['websocketURL'] = _global.config.websocketURL
|
window.SITE_CONFIG['websocketURL'] = _global.config.websocketURL
|
||||||
window.SITE_CONFIG['POI_URL'] = _global.config.POI_URL
|
window.SITE_CONFIG['POI_URL'] = _global.config.POI_URL
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1,8 +1,13 @@
|
||||||
/*
|
/*
|
||||||
* @Author: hisense.wuhongjian
|
* @Author: hisense.wuhongjian
|
||||||
* @Date: 2020-07-07 16:03:23
|
* @Date: 2020-07-07 16:03:23
|
||||||
* @LastEditors: hisense.wuhongjian
|
<<<<<<< HEAD
|
||||||
* @LastEditTime: 2022-11-14 10:00:17
|
* @LastEditors: Light
|
||||||
|
* @LastEditTime: 2022-11-15 10:30:01
|
||||||
|
=======
|
||||||
|
* @LastEditors: Light
|
||||||
|
* @LastEditTime: 2022-11-14 18:00:12
|
||||||
|
>>>>>>> hi-ucs-dev
|
||||||
* @Description: 系统静态参数配置
|
* @Description: 系统静态参数配置
|
||||||
*/
|
*/
|
||||||
var _global = {}
|
var _global = {}
|
||||||
|
@ -11,6 +16,7 @@ var CONFIGITEM = {
|
||||||
//version: 'xihaian', // 西海岸
|
//version: 'xihaian', // 西海岸
|
||||||
//version: 'dev', // 开发
|
//version: 'dev', // 开发
|
||||||
version: 'test', // 测试
|
version: 'test', // 测试
|
||||||
|
// version: 'zhanTingDev', // 展厅dev (2022-09-13:姜永超让添加)
|
||||||
//version: 'frp', // 内网穿透
|
//version: 'frp', // 内网穿透
|
||||||
vNum: 'v0.8.15.2',
|
vNum: 'v0.8.15.2',
|
||||||
configData: {
|
configData: {
|
||||||
|
@ -86,6 +92,7 @@ var CONFIGITEM = {
|
||||||
},
|
},
|
||||||
backUrl: 'http://localhost:8001',
|
backUrl: 'http://localhost:8001',
|
||||||
previewUrl: 'http://192.168.124.243:9796/',
|
previewUrl: 'http://192.168.124.243:9796/',
|
||||||
|
apiURL: 'http://192.168.124.243:8888/ucs-admin',
|
||||||
websocketURL: '192.168.124.243:8888/ucs-admin',
|
websocketURL: '192.168.124.243:8888/ucs-admin',
|
||||||
// websocketURL: '10.18.1.99:8889/ucs-admin',
|
// websocketURL: '10.18.1.99:8889/ucs-admin',
|
||||||
POI_URL:
|
POI_URL:
|
||||||
|
@ -102,6 +109,7 @@ var CONFIGITEM = {
|
||||||
},
|
},
|
||||||
backUrl: 'http://192.168.124.243:9797',
|
backUrl: 'http://192.168.124.243:9797',
|
||||||
previewUrl: 'http://192.168.124.243:9796/',
|
previewUrl: 'http://192.168.124.243:9796/',
|
||||||
|
apiURL: 'http://192.168.124.243:8888/ucs-admin',
|
||||||
websocketURL: '192.168.124.243:8888/ucs-admin',
|
websocketURL: '192.168.124.243:8888/ucs-admin',
|
||||||
POI_URL:
|
POI_URL:
|
||||||
'http://15.72.178.129:8090/iserver/services/addressmatch-qingdaoPOI181015/restjsr/v1/address',
|
'http://15.72.178.129:8090/iserver/services/addressmatch-qingdaoPOI181015/restjsr/v1/address',
|
||||||
|
|
|
@ -904,6 +904,9 @@
|
||||||
searchValue.value = ''
|
searchValue.value = ''
|
||||||
globalFlag.value = false
|
globalFlag.value = false
|
||||||
globalData.data = []
|
globalData.data = []
|
||||||
|
if (Cardsname.value == '基础设施') {
|
||||||
|
camera.value.reSetSearch()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
paramsGetResources.name = searchValue.value
|
paramsGetResources.name = searchValue.value
|
||||||
// 重置筛选条件
|
// 重置筛选条件
|
||||||
|
@ -932,8 +935,10 @@
|
||||||
mybus.emit('chongzhi')
|
mybus.emit('chongzhi')
|
||||||
console.log(
|
console.log(
|
||||||
'paramsGetResources---chongzhi-重置-------->',
|
'paramsGetResources---chongzhi-重置-------->',
|
||||||
paramsGetResources
|
paramsGetResources,
|
||||||
|
flag
|
||||||
)
|
)
|
||||||
|
|
||||||
getAppResources()
|
getAppResources()
|
||||||
}
|
}
|
||||||
//跳转链接
|
//跳转链接
|
||||||
|
@ -1196,25 +1201,20 @@
|
||||||
return sortArr.indexOf(a) - sortArr.indexOf(b)
|
return sortArr.indexOf(a) - sortArr.indexOf(b)
|
||||||
})
|
})
|
||||||
console.log('arr', arr, Cardsname.value)
|
console.log('arr', arr, Cardsname.value)
|
||||||
// if (Cardsname.value === arr[0]) {
|
if (Cardsname.value === arr[0] && arr[0] == '基础设施') {
|
||||||
// getAppResources2()
|
getAppResources2()
|
||||||
// } else {
|
|
||||||
// changeCards(arr[0])
|
|
||||||
// }
|
|
||||||
if (arr[0]) {
|
|
||||||
changeCards(arr[0])
|
|
||||||
} else {
|
} else {
|
||||||
changeCards('应用资源')
|
changeCards(arr[0])
|
||||||
}
|
}
|
||||||
if (!mapFlag) {
|
if (!mapFlag) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (paramsGetResources.type == '基础设施') {
|
// if (paramsGetResources.type == '基础设施') {
|
||||||
console.log('camera1', camera.value)
|
// console.log('camera1', camera.value)
|
||||||
camera.value.getCamera(true, searchValue.value)
|
// camera.value.getCamera(true, searchValue.value)
|
||||||
} else {
|
// } else {
|
||||||
getAppResources()
|
// getAppResources()
|
||||||
}
|
// }
|
||||||
console.log(
|
console.log(
|
||||||
'paramsGetResources--globalSearch---------->',
|
'paramsGetResources--globalSearch---------->',
|
||||||
paramsGetResources
|
paramsGetResources
|
||||||
|
|
|
@ -55,12 +55,12 @@
|
||||||
size="large"
|
size="large"
|
||||||
@search="onSearch"
|
@search="onSearch"
|
||||||
/>
|
/>
|
||||||
<a-button
|
<!-- <a-button
|
||||||
style="width: 0.8rem; height: 0.36rem; margin-left: 0.7rem"
|
style="width: 0.8rem; height: 0.36rem; margin-left: 0.7rem"
|
||||||
@click="reSetSearch"
|
@click="reSetSearch"
|
||||||
>
|
>
|
||||||
重置
|
重置
|
||||||
</a-button>
|
</a-button> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="roomYuyue">
|
<div v-if="roomYuyue">
|
||||||
|
@ -945,10 +945,6 @@
|
||||||
const fileList = ref([])
|
const fileList = ref([])
|
||||||
const useForm = Form.useForm
|
const useForm = Form.useForm
|
||||||
const roomInput = ref('')
|
const roomInput = ref('')
|
||||||
let roomStr = router.currentRoute.value.query.str
|
|
||||||
if (roomStr) {
|
|
||||||
roomInput.value = roomStr
|
|
||||||
}
|
|
||||||
const rulesRef = reactive({
|
const rulesRef = reactive({
|
||||||
bookDate: [
|
bookDate: [
|
||||||
{
|
{
|
||||||
|
@ -1028,6 +1024,12 @@
|
||||||
// 设施类型--无人机和单兵设备
|
// 设施类型--无人机和单兵设备
|
||||||
let facilitiesType = router.currentRoute.value.query.facilitiesType || ''
|
let facilitiesType = router.currentRoute.value.query.facilitiesType || ''
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
console.log('基础设施初始化')
|
||||||
|
let roomStr = router.currentRoute.value.query.str
|
||||||
|
if (roomStr) {
|
||||||
|
roomInput.value = roomStr
|
||||||
|
getCamera()
|
||||||
|
}
|
||||||
// 获取用户信息
|
// 获取用户信息
|
||||||
handleUser()
|
handleUser()
|
||||||
if (jcssType.value) {
|
if (jcssType.value) {
|
||||||
|
@ -1264,6 +1266,7 @@
|
||||||
}
|
}
|
||||||
//重置
|
//重置
|
||||||
const reSetSearch = () => {
|
const reSetSearch = () => {
|
||||||
|
console.log('重置')
|
||||||
roomInput.value = ''
|
roomInput.value = ''
|
||||||
searchData()
|
searchData()
|
||||||
chengguoSearch()
|
chengguoSearch()
|
||||||
|
@ -2025,7 +2028,7 @@
|
||||||
if (flag) {
|
if (flag) {
|
||||||
mapSearchParam.value.cameraName = str
|
mapSearchParam.value.cameraName = str
|
||||||
}
|
}
|
||||||
console.log('初始化调用')
|
console.log('初始化调用', flag)
|
||||||
console.log(
|
console.log(
|
||||||
'不选左侧树的时候不调用接口',
|
'不选左侧树的时候不调用接口',
|
||||||
mapSearchParam.value,
|
mapSearchParam.value,
|
||||||
|
@ -2098,6 +2101,7 @@
|
||||||
}
|
}
|
||||||
defineExpose({
|
defineExpose({
|
||||||
getCamera,
|
getCamera,
|
||||||
|
reSetSearch,
|
||||||
})
|
})
|
||||||
//加入申购车
|
//加入申购车
|
||||||
const addShoppingCart = () => {
|
const addShoppingCart = () => {
|
||||||
|
|
|
@ -155,14 +155,10 @@
|
||||||
}
|
}
|
||||||
await this.login({
|
await this.login({
|
||||||
password: Encrypt(this.form.password),
|
password: Encrypt(this.form.password),
|
||||||
username: this.form.username,
|
username: Encrypt(this.form.username),
|
||||||
})
|
})
|
||||||
// window.localStorage.setItem('tokenStartTime', new Date().getTime())
|
// window.localStorage.setItem('tokenStartTime', new Date().getTime())
|
||||||
window.sessionStorage.setItem('visits', JSON.stringify([]))
|
window.sessionStorage.setItem('visits', JSON.stringify([]))
|
||||||
console.log(
|
|
||||||
'添加visits========================================>',
|
|
||||||
Cookies.get('ucsToken')
|
|
||||||
)
|
|
||||||
// console.log(this.handleRoute())
|
// console.log(this.handleRoute())
|
||||||
// 西海岸特殊处理
|
// 西海岸特殊处理
|
||||||
if (isXiHaiAn) {
|
if (isXiHaiAn) {
|
||||||
|
|
|
@ -488,7 +488,7 @@
|
||||||
refObj.value.title = item.title // 需求标题
|
refObj.value.title = item.title // 需求标题
|
||||||
refObj.value.ywlxr = item.ywlxr // 业务联系人
|
refObj.value.ywlxr = item.ywlxr // 业务联系人
|
||||||
refObj.value.ywlxrdh = item.ywlxrdh // 业务联系人电话
|
refObj.value.ywlxrdh = item.ywlxrdh // 业务联系人电话
|
||||||
refObj.value.jslxr = item.jslxr // 技术联系人
|
refObj.value.jslxr = item.jslxr // 技术联系人X
|
||||||
refObj.value.jslxrdh = item.jslxrdh // 技术联系人电话
|
refObj.value.jslxrdh = item.jslxrdh // 技术联系人电话
|
||||||
refObj.value.miaoshu = item.miaoshu // 共享数据必要性法分析
|
refObj.value.miaoshu = item.miaoshu // 共享数据必要性法分析
|
||||||
refObj.value.zt = item.zt // 办结结果
|
refObj.value.zt = item.zt // 办结结果
|
||||||
|
@ -527,7 +527,7 @@
|
||||||
refObj.value.ORG_CODE = item.ORG_CODE // 部门名称编码
|
refObj.value.ORG_CODE = item.ORG_CODE // 部门名称编码
|
||||||
refObj.value.AGENT_NAME = item.AGENT_NAME // 处室名称
|
refObj.value.AGENT_NAME = item.AGENT_NAME // 处室名称
|
||||||
refObj.value.AGENT_CODE = item.AGENT_CODE // 处室编码
|
refObj.value.AGENT_CODE = item.AGENT_CODE // 处室编码
|
||||||
refObj.value.CREATOR_NAME = item.CREATOR_NAME // 申请人
|
refObj.value.USE_CASE = item.USE_CASE // 使用场景
|
||||||
detailsVisible.value = true
|
detailsVisible.value = true
|
||||||
} else if (typeName.value == '设备申请') {
|
} else if (typeName.value == '设备申请') {
|
||||||
getDeviceDetailInfo(item.deviceId)
|
getDeviceDetailInfo(item.deviceId)
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* @Author: hisense.liangjunhua
|
* @Author: hisense.liangjunhua
|
||||||
* @Date: 2022-07-12 09:42:44
|
* @Date: 2022-07-12 09:42:44
|
||||||
* @LastEditors: Light
|
* @LastEditors: Light
|
||||||
* @LastEditTime: 2022-11-11 18:48:42
|
* @LastEditTime: 2022-11-14 10:53:30
|
||||||
* @Description:我的申请 能力申请 查看详情
|
* @Description:我的申请 能力申请 查看详情
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
|
@ -35,7 +35,7 @@
|
||||||
<span>处室编码:{{ props.refObj.AGENT_CODE || '--' }}</span>
|
<span>处室编码:{{ props.refObj.AGENT_CODE || '--' }}</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="item">
|
<p class="item">
|
||||||
<span>申请人:{{ props.refObj.CREATOR_NAME || '--' }}</span>
|
<span>使用场景;{{ props.refObj.USE_CASE || '--' }}</span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue