Merge branch 'hi-ucs-dev' into release

# Conflicts:
#	front/public/static/config/basicConfig.js
This commit is contained in:
a0049873 2022-11-15 10:30:15 +08:00
commit 1d41742942
10 changed files with 64 additions and 41 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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(() => {})
}) })

View File

@ -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>

View File

@ -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',

View File

@ -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

View File

@ -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 = () => {

View File

@ -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) {

View File

@ -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)

View File

@ -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>