diff --git a/examples/router/axios.js b/examples/router/axios.js index 76e20ca9..09e31fa7 100644 --- a/examples/router/axios.js +++ b/examples/router/axios.js @@ -11,6 +11,8 @@ instance.interceptors.request.eject(0); instance.interceptors.request.use(config => { if (config.url.startsWith("/node")) { config.baseURL = "/ns" + } else if (/\/project\/sass/.test(location.pathname)) { + config.baseURL = "/saas" } else if (/\/xiushan/.test(location.pathname)) { config.baseURL = "/xsjr" config.url = config.url.replace(/(app|auth|admin)\//, "") diff --git a/packages/3.0.0/AppHealthReport/components/Detail.vue b/packages/3.0.0/AppHealthReport/components/Detail.vue index 6f73a123..8b908e78 100644 --- a/packages/3.0.0/AppHealthReport/components/Detail.vue +++ b/packages/3.0.0/AppHealthReport/components/Detail.vue @@ -184,7 +184,7 @@ tableData: [], recordList: [], colConfigs: [ - {prop: 'createTime', label: '上报日期', align: 'center', dateFormart: 'YYYY-MM-DD'}, + {prop: 'createTime', label: '上报日期', align: 'center', dateFormat: 'YYYY-MM-DD'}, {prop: 'status', label: '健康状态', align: 'center', formart: v => v === '0' ? '异常' : '正常' } ], tabList: ['基本信息', '每日上报', '异常处理'] diff --git a/packages/IntelligentSecurity/AppISManage/AppISManage.vue b/packages/IntelligentSecurity/AppISManage/AppISManage.vue index dc050772..b60271e5 100644 --- a/packages/IntelligentSecurity/AppISManage/AppISManage.vue +++ b/packages/IntelligentSecurity/AppISManage/AppISManage.vue @@ -1,62 +1,36 @@ @@ -68,33 +42,34 @@ import Synergy from "../components/Synergy" export default { - name: "AppISManage", - components: {LocateDialog, DeviceSlider, AiMonitor, Synergy}, - label: "监控实况", + name: 'AppISManage', + components: { LocateDialog, DeviceSlider, AiMonitor, Synergy }, + label: '监控实况', props: { instance: Function, dict: Object, - permissions: Function + permissions: Function, }, computed: { splitOps() { return [ - {label: "单分屏", value: 1, per: "100%"}, - {label: "四分屏", value: 4, per: "49.2%"}, - {label: "九分屏", value: 9, per: "32%"} + { label: '单分屏', value: 1, per: '100%' }, + { label: '四分屏', value: 4, per: '49.2%' }, + { label: '九分屏', value: 9, per: '32%' }, ] }, currentSplitStyle() { - let per = this.splitOps.find(e => e.value == this.splitScreen)?.per || "100%" - return {width: per, height: per} + let per = + this.splitOps.find((e) => e.value == this.splitScreen)?.per || '100%' + return { width: per, height: per } }, ...mapState(['user']), - ids () { + ids() { if (!this.monitors.length) return '' - return this.monitors.map(v => v.id).join(',') - } + return this.monitors.map((v) => v.id).join(',') + }, }, data() { @@ -108,26 +83,27 @@ isLoading: false, isShowBar: true, selected: { - areaId: '' + areaId: '', }, videoUrl: '', playbackUrls: [], latlng: null, disabledLevel: 0, rules: { - name: [{required: true, message: "请填写 设备名称"}] - } + name: [{ required: true, message: '请填写 设备名称' }], + }, } }, watch: { - slider () { - this.$refs.AiMonitor && this.$refs.AiMonitor.forEach(e => { - e.reset() - }) + slider() { + this.$refs.AiMonitor && + this.$refs.AiMonitor.forEach((e) => { + e.reset() + }) this.$refs.Synergy && this.$refs.Synergy.init() - } + }, }, created() { @@ -143,18 +119,21 @@ handleSelectMonitor(monitor) { if (monitor.type !== '1') return - let {id} = monitor, - index = this.monitors.findIndex(e => e.id == id) + let { id } = monitor, + index = this.monitors.findIndex((e) => e.id == id) if (index > -1) { this.$message.error('该监控视频已存在') - } else if (this.monitors.length >= this.splitScreen && this.splitScreen > 1) { - this.$message.error("可分屏监控已满,请先取消其他的监控") + } else if ( + this.monitors.length >= this.splitScreen && + this.splitScreen > 1 + ) { + this.$message.error('可分屏监控已满,请先取消其他的监控') } else { this.showMonitor(monitor) } }, - onCheckChange (e) { + onCheckChange(e) { this.monitors.forEach((item, index) => { if (e.indexOf(item.index) === -1) { this.monitors.splice(index, 1) @@ -167,347 +146,375 @@ this.monitors = [this.monitors[0]] } - this.$refs.AiMonitor && this.$refs.AiMonitor.forEach(e => { - e.reset() - }) + this.$refs.AiMonitor && + this.$refs.AiMonitor.forEach((e) => { + e.reset() + }) }, - onReplay (e) { + onReplay(e) { this.isLoading = true - this.instance.post(`/app/appzyvideoequipment/getSlwPlaybackUrl`, null, { - params: { - ids: this.ids, - startTime: e.startTime, - endTime: e.endTime, - nvrCodes: this.ids - } - }).then(res => { - if (res.code == 0) { - if (res.data && res.data.length) { - this.playbackUrls = res.data - this.isLoading = false + this.instance + .post(`/app/appzyvideoequipment/getSlwPlaybackUrl`, null, { + params: { + ids: this.ids, + startTime: e.startTime, + endTime: e.endTime, + nvrCodes: this.ids, + }, + }) + .then((res) => { + if (res.code == 0) { + if (res.data && res.data.length) { + this.playbackUrls = res.data + this.isLoading = false + } } - } - }).catch(() => { - this.isLoading = false - }) + }) + .catch(() => { + this.isLoading = false + }) }, removeMonitor(i) { this.monitors.splice(i, 1) + + if (!this.monitors.length) { + this.isShowBar = true + } }, showMonitor(monitor, refresh = false) { - let {id: deviceId} = monitor - deviceId && this.instance.post("/app/appzyvideoequipment/getWebSdkUrl", null, { - params: {deviceId} - }).then(res => { - if (res?.data) { - this.videoUrl = res.data - let data = { - url: res.data, - isShowPlayBtn: false - } - if (refresh) { - monitor.url = data.url - } else if (this.splitScreen == 1) { - this.monitors = [{...monitor, ...data}] - } else { - if (this.monitors.findIndex(e => e.id == monitor.id) === -1 && this.monitors.length <= this.splitScreen) { - this.monitors.push({...monitor, ...data}) + let { id: deviceId } = monitor + + if (deviceId) { + this.isLoading = true + this.instance.post('/app/appzyvideoequipment/getWebSdkUrl', null, { + params: { deviceId }, + }).then((res) => { + if (res?.data) { + this.videoUrl = res.data + let data = { + url: res.data, + isShowPlayBtn: false, + } + if (refresh) { + monitor.url = data.url + } else if (this.splitScreen == 1) { + this.monitors = [{ ...monitor, ...data }] + } else { + if ( + this.monitors.findIndex((e) => e.id == monitor.id) === -1 && + this.monitors.length <= this.splitScreen + ) { + this.monitors.push({ ...monitor, ...data }) + } } } - } - }) + + this.isLoading = false + }).catch(() => { + this.isLoading = false + }) + } }, - renderTreeItem: function (h, {node, data}) { + renderTreeItem: function (h, { node, data }) { let show = data.deviceStatus == 1 ? 'show' : '' const ids = this.ids.split(',') const index = ids.indexOf(data.id) + 1 if (node.isLeaf) { return ( -
- {index > 0 ? - { index } - : '' - } - -
{node.label}
-
+
+ {index > 0 ? {index} : ''} + +
{node.label}
+
) - } else return ( + } else + return (
{node.label}
- {data.id != 'no_area' ?
-

{data.online || 0}

/{data.sum || 0} -
- :
} + {data.id != 'no_area' ? ( +
+

{data.online || 0}

/{data.sum || 0} +
+ ) : ( +
+ )}
- ) + ) }, handleSliderOption(e) { this.selected = { command: e.type, - ...e.node + ...e.node, } this.selected.areaId = e.node.areaId || this.user.info.areaId - if (e.type == "edit") {//修改名称 + if (e.type == 'edit') { + //修改名称 this.dialog = true - } else if (e.type == "area") {//绑定areaId + } else if (e.type == 'area') { + //绑定areaId this.$refs.BindArea?.chooseArea() - } else if (e.type == "locate") {//地图标绘 - this.latlng = e.node.lat && e.node.lng ? { - lat: e.node.lat, - lng: e.node.lng - } : '' + } else if (e.type == 'locate') { + //地图标绘 + this.latlng = + e.node.lat && e.node.lng + ? { + lat: e.node.lat, + lng: e.node.lng, + } + : '' this.locate = true } }, handleSubmit(row) { delete row.createTime - return this.instance.post("/app/appzyvideoequipment/addOrUpdate", { - ...row - }).then(res => { - if (res?.code == 0) { - this.$message.success("提交成功!") - this.dialog = false - this.$refs.DeviceSlider?.getDevices() - } - }) + return this.instance + .post('/app/appzyvideoequipment/addOrUpdate', { + ...row, + }) + .then((res) => { + if (res?.code == 0) { + this.$message.success('提交成功!') + this.dialog = false + this.$refs.DeviceSlider?.getDevices() + } + }) }, handleLocate(row, locate) { if (locate) { - let {lat, lng} = locate.location - this.handleSubmit({...row, lat, lng}).then(() => { + let { lat, lng } = locate.location + this.handleSubmit({ ...row, lat, lng }).then(() => { this.locate = false }) } - } + }, }, beforeDestroy() { this.monitors = [] - } + }, } diff --git a/packages/IntelligentSecurity/components/AiSlwVideo.vue b/packages/IntelligentSecurity/components/AiSlwVideo.vue index dd9de93e..30af358c 100644 --- a/packages/IntelligentSecurity/components/AiSlwVideo.vue +++ b/packages/IntelligentSecurity/components/AiSlwVideo.vue @@ -7,12 +7,7 @@ 关闭视频
-
@@ -20,24 +15,13 @@
- +
-
- +
+
- +
@@ -63,19 +47,10 @@
- + - + @@ -128,7 +103,8 @@ computed: { src () { if (this.playbackUrls.length) { - return this.playbackUrls.filter(v => v.id === this.id)[0].playbackUrl + const arr = this.playbackUrls.filter(v => v.id === this.id) + return arr.length ? arr[0].playbackUrl : [] } if (this.isLiveing) { @@ -252,6 +228,7 @@ fullScreenChange () { if (document.fullscreenElement) { + this.reset() } else { this.reset() } @@ -269,7 +246,7 @@ }, changePlayStatus () { - const subPage = document.querySelector(`#${this.id}`).contentWindow + const subPage = document.querySelector(`#${this.iframeId}`).contentWindow subPage.postMessage({ type: 'play', value: this.isPause @@ -314,7 +291,7 @@ this.$nextTick(() => { this.$refs.timeline && this.$refs.timeline.init() }) - }, 60) + }, 100) }, screenshots () { diff --git a/packages/IntelligentSecurity/components/Synergy.vue b/packages/IntelligentSecurity/components/Synergy.vue index 229d5580..dd0a8e9c 100644 --- a/packages/IntelligentSecurity/components/Synergy.vue +++ b/packages/IntelligentSecurity/components/Synergy.vue @@ -1,19 +1,9 @@ + + + + @@ -333,22 +356,22 @@ export default { }, guaranteeCheckList() { return [ - {label: '享受农村最低生活保障', value: 0}, - {label: '是否特困供养人员', value: 1}, - {label: '分散供养五保户转集中供养(减少)', value: 2}, - {label: '是否接受医疗救助', value: 3}, - {label: '是否接受其它健康扶贫', value: 4}, + {label: '享受农村最低生活保障', value: '0'}, + {label: '是否特困供养人员', value: '1'}, + {label: '分散供养五保户转集中供养(减少)', value: '2'}, + {label: '是否接受医疗救助', value: '3'}, + {label: '是否接受其它健康扶贫', value: '4'}, ] }, basicsCheckList() { return [ - {label: '城乡居民基本医疗保险', value: 0}, - {label: '城镇职工基本医疗保险', value: 1}, - {label: '大病保险', value: 2}, - {label: '商业补充医疗保险', value: 3}, - {label: '城乡居民基本养老保险', value: 4}, - {label: '城镇职工基本养老保险', value: 5}, - {label: '享受人身意外保险补贴', value: 6}, + {label: '城乡居民基本医疗保险', value: '0'}, + {label: '城镇职工基本医疗保险', value: '1'}, + {label: '大病保险', value: '2'}, + {label: '商业补充医疗保险', value: '3'}, + {label: '城乡居民基本养老保险', value: '4'}, + {label: '城镇职工基本养老保险', value: '5'}, + {label: '享受人身意外保险补贴', value: '6'}, ] }, }, @@ -403,18 +426,23 @@ export default { res.data.healthyStatusList = res.data.healthyStatus.split(',') } if(res.data.basicsCheck) { - res.data.basicsList = res.data.basicsCheck.split(',') + res.data.basicsList = res.data.basicsCheck.split(',') } if(res.data.guaranteeCheck) { - res.data.guaranteeList = res.data.guaranteeCheck.split(',') + res.data.guaranteeList = res.data.guaranteeCheck.split(',') } + console.log(res.data) this.form = {...res.data} } }) }, handleIdNumberAutocomplete(v) { - let {birthday: birthDate, sex} = this.idCardNoUtil.getIdCardInfo(v) - this.form = {...this.form, birthDate, sex, age: this.$calcAge(v)} + var idNumber = v + if(v.length == 20) { + idNumber = v.substring(0, 17) + } + let {birthday: birthDate, sex} = this.idCardNoUtil.getIdCardInfo(idNumber) + this.form = {...this.form, birthDate, sex, age: this.$calcAge(idNumber)} }, submit() { this.$refs.ruleForm.validate(v => { @@ -433,6 +461,25 @@ export default { if(this.form.guaranteeList.length) { this.form.guaranteeCheck = this.form.basicsList.join(',') } + if([1, 2, 3].includes(2)) { + this.form.jcbxCxyiliao = '01' + }else { + this.form.jcbxCxyiliao = '02' + } + this.checkInit('jcbxCxyiliao',this.form.basicsList, '0') + this.checkInit('jcbxCzyiliao',this.form.basicsList, '1') + this.checkInit('jcbxDabing',this.form.basicsList, '2') + this.checkInit('jcbxShangye',this.form.basicsList, '3') + this.checkInit('jcbxCxyanglao',this.form.basicsList, '4') + this.checkInit('jcbxCzyanglao',this.form.basicsList, '5') + this.checkInit('jcbxRenshenyiwai',this.form.basicsList, '6') + + this.checkInit('bzcsNongcundibao',this.form.guaranteeList, '0') + this.checkInit('bzcsTekungongyang',this.form.guaranteeList, '1') + this.checkInit('bzcsWubaohu',this.form.guaranteeList, '2') + this.checkInit('bzcsYiliaojiuzhu',this.form.guaranteeList, '3') + this.checkInit('bzcsQita',this.form.guaranteeList, '4') + this.instance.post(`/app/apppreventionreturntopoverty/addOrUpdate`, this.form).then(res => { if (res.code == 0) { this.$message.success('提交成功!'); @@ -441,7 +488,26 @@ export default { }) } }) - } + }, + checkInit(formName, list, value) { + if(list.includes(value)) { + this.form[formName] = '01' + }else { + this.form[formName] = '02' + } + }, + decimalInput(name) { + if(!/^(([1-9]{1}\d*)|(0{1}))(\.\d{1,2})?$/g.test(this.form[name])){ + this.form[name] = '' + return this.$message.error('最多只保留两位小数点') + } + }, + numberInput(name) { + if(!/^[0-9]*[1-9][0-9]*$/g.test(this.form[name])){ + this.form[name] = '' + return this.$message.error('请输入正整数') + } + }, }, created() { this.getDetail() diff --git a/packages/jianping/AppHelpedResident/hrDetail.vue b/packages/jianping/AppHelpedResident/hrDetail.vue index 073bb911..3f1d2561 100644 --- a/packages/jianping/AppHelpedResident/hrDetail.vue +++ b/packages/jianping/AppHelpedResident/hrDetail.vue @@ -5,20 +5,21 @@ @@ -114,7 +110,7 @@ {{ dict.getLabel("fpType", detail.objectType)}} {{ dict.getLabel("fpYesOrNo", detail.militaryMartyrs)}} {{ dict.getLabel("fpRiskType", detail.riskType)}} - {{detail.povertyYear}} + {{ dict.getLabel("fpYear", detail.povertyYear)}} {{ dict.getLabel("fpNaturalDisaster", detail.naturalDisasterType)}} {{ dict.getLabel("fpYesOrNo", detail.dropOutOfSchool)}} {{ detail.createTime}} @@ -124,10 +120,10 @@ {{ detail.updateUserPhone}} {{detail.dropOutOfSchoolReason}} - {{detail.detail}} + @@ -154,6 +150,21 @@ + + + +
@@ -256,10 +268,10 @@ - + - + @@ -271,23 +283,12 @@ - + -
- - - - - - - - - -
@@ -336,7 +337,7 @@ {{dict.getLabel("fpLaborSkills", familyInfo.labourStatus)}} {{dict.getLabel("fpYesOrNo", familyInfo.mandarin)}} {{familyInfo.workeMonths}} - {{familyInfo.employmentChannels}} + {{dict.getLabel("fpEmploymentChannels", familyInfo.employmentChannels)}} {{familyInfo.migrantEnterprises}} {{familyInfo.publicWelfarePosts}} {{dict.getLabel("fpYesOrNo", familyInfo.foreignWorkers)}} @@ -344,11 +345,6 @@ {{familyInfo.foreignWorkersAddress}} -
- {{familyInfo.sentencingYear}} - {{familyInfo.releaseFromPrisonYear}} - {{familyInfo.deathYear}} -
{{currentFullAddressFamily}}