diff --git a/src/api/common.js b/src/api/common.js index 3ec1ae0..c487bcb 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -27,3 +27,11 @@ export function getDownloadUrl(type, fileName) { }) } +// 获取特殊备案类型 +export function getSpecialRecordType() { + return request({ + url: `/system/DictionaryData/590018069787575557`, + method: 'get' + }) + } + diff --git a/src/assets/style/common.scss b/src/assets/style/common.scss index 1c0b38d..54977f8 100644 --- a/src/assets/style/common.scss +++ b/src/assets/style/common.scss @@ -31,7 +31,7 @@ body, } .common-info-box { - height: calc(100vh - 200px); + height: calc(100vh - 150px); } .item-box { width: 100%; @@ -69,7 +69,7 @@ a { justify-content: flex-start; align-items: center; flex-direction: row; - color: #C0C4CC; + color: #757678; line-height: 30px; .label { color: #000; diff --git a/src/components/InfoForm/index.vue b/src/components/InfoForm/index.vue index 2bd0d98..e62b650 100644 --- a/src/components/InfoForm/index.vue +++ b/src/components/InfoForm/index.vue @@ -45,7 +45,7 @@ - + @@ -85,6 +85,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + o.id == value[i])[0] - if (!item || !item.fullName) { + let item = options.filter(o => o.Id == value[i])[0] + if (!item || !item.FullName) { textList.push(value[i]) } else { - textList.push(item.fullName) + textList.push(item.FullName) } } return textList.join() @@ -182,6 +182,26 @@ export function dynamicTextUP(value, options) { if (!item || !item.FullName) return value return item.FullName } +export function dynamicTextClassName(value, options) { + if (!value) return '' + if (Array.isArray(value)) { + if (!options || !Array.isArray(options)) return value.join() + let textList = [] + for (let i = 0; i < value.length; i++) { + let item = options.filter(o => o.Id == value[i])[0] + if (!item || !item.ClassName) { + textList.push(value[i]) + } else { + textList.push(item.ClassName) + } + } + return textList.join() + } + if (!options || !Array.isArray(options)) return value + let item = options.filter(o => o.Id == value)[0] + if (!item || !item.ClassName) return value + return item.ClassName +} // 代码生成器数据匹配 Code export function dynamicTextCode(value, options) { diff --git a/src/mixins/info.js b/src/mixins/info.js index ea1d43f..280386e 100644 --- a/src/mixins/info.js +++ b/src/mixins/info.js @@ -4,7 +4,8 @@ export default { return { systemTypeOptions: [], areaOptions: [], - systemClassOptions: [] + systemClassOptions: [], + specialRecordTypeOption: [], } }, created() {}, @@ -24,6 +25,11 @@ export default { !list && (list = await this.$store.dispatch('getSystemType', val)); this.systemClassOptions = list; }, + async initSpecialRecordTypeOption() { + let list = this.$store.state.meta.specialRecordTypeList; + !list && (list = await this.$store.dispatch('getTypeListByCode', 'specialRecordType')); + this.specialRecordTypeOption = list; + }, }, } \ No newline at end of file diff --git a/src/store/modules/meta.js b/src/store/modules/meta.js index eeec1c6..7d47454 100644 --- a/src/store/modules/meta.js +++ b/src/store/modules/meta.js @@ -1,7 +1,7 @@ // 下拉字段配置 import { register } from "@/api"; // 系统类型 -import { getSystemTypeList } from "@/api/common"; +import { getSystemTypeList, getSpecialRecordType } from "@/api/common"; // 所属区县 import { getAreaSelect } from "@/api/baseData/area"; // 系统分类 @@ -15,6 +15,7 @@ const meta = { area: '', // 系统类型 systemClass: {}, externalAssistanceList: '', // 外协 + specialRecordTypeList: '', // 特殊备案 }, mutations: { @@ -30,6 +31,9 @@ const meta = { SET_EXTERNALASSISTANCE_CLASS: (state, data) => { state.externalAssistanceList = data; }, + SET_SPECIALRECORDTYPELIST_CLASS: (state, data) => { + state.specialRecordTypeList = data; + }, }, actions: { @@ -54,6 +58,12 @@ const meta = { resolve(res.data) }).catch(error => { reject(error) }) break; + case 'specialRecordType': + getSpecialRecordType().then(res => { + commit('SET_SPECIALRECORDTYPELIST_CLASS', res.data.list) + resolve(res.data.list) + }).catch(error => { reject(error) }) + break; default: break; diff --git a/src/utils/define.js b/src/utils/define.js index b2ff517..a447fbc 100644 --- a/src/utils/define.js +++ b/src/utils/define.js @@ -1,13 +1,13 @@ // 开发环境接口配置 // JAVA Boot版本对应后端接口地址 // JAVA Cloud对应网关地址 -const APIURl = 'http://localhost:8080' +const APIURl = 'http://8.130.38.56:8043' module.exports = { APIURl: APIURl, timeout: process.env.NODE_ENV === 'development' ? 10000 : 1000000, - WebSocketUrl: process.env.NODE_ENV === 'development' ? APIURl.replace('http', 'ws') + '/websocket' : process.env.VUE_APP_BASE_WSS, - // WebSocketUrl: process.env.NODE_ENV === 'development' ? APIURl.replace('http', 'ws') + '/api/message/websocket' : process.env.VUE_APP_BASE_WSS, + // WebSocketUrl: process.env.NODE_ENV === 'development' ? APIURl.replace('http', 'ws') + '/websocket' : process.env.VUE_APP_BASE_WSS, + WebSocketUrl: process.env.NODE_ENV === 'development' ? APIURl.replace('http', 'ws') + '/api/message/websocket' : process.env.VUE_APP_BASE_WSS, comUploadUrl: process.env.VUE_APP_BASE_API + '/api/file/Uploader', comUrl: process.env.VUE_APP_BASE_API, // 本地文件预览 diff --git a/src/utils/ncc.js b/src/utils/ncc.js index d3cfd3f..0eaf4e1 100644 --- a/src/utils/ncc.js +++ b/src/utils/ncc.js @@ -218,6 +218,21 @@ const ncc = { if (!cellValue) return '' return dayjs(cellValue).format(format) }, + timeDeadLine(time){ + let date = (new Date()).getTime(); + let timeDiff = time - date; + + if(timeDiff < 0) { + // 超时 + return 'danger' + } else if(timeDiff / (1000 * 60 * 60 * 24) < 3) { + // 小于三天警告即将超时 + return 'warning' + } else { + // 未超时 + return 'primary' + } + }, storageSet(obj) { for (let i in obj) { cacheItem(i, obj[i]) diff --git a/src/views/DisposalSuggestions/Form.vue b/src/views/DisposalSuggestions/Form.vue index 6e82bbe..ec7d5ad 100644 --- a/src/views/DisposalSuggestions/Form.vue +++ b/src/views/DisposalSuggestions/Form.vue @@ -74,8 +74,8 @@ - - + + @@ -122,7 +122,7 @@ disposalSuggestions: "", //处置建议 judgmentOpinions: "", //判断意见 judgmentClass: "", //判断分类 - endTime: '', + deadline: '', } } }, diff --git a/src/views/DisposalSuggestions/index.vue b/src/views/DisposalSuggestions/index.vue index 558c629..4e6967c 100644 --- a/src/views/DisposalSuggestions/index.vue +++ b/src/views/DisposalSuggestions/index.vue @@ -203,8 +203,5 @@ height: calc(100% - 47px); overflow-y: scroll; } - .item-body { - height: calc(100% - 35px); - } } \ No newline at end of file diff --git a/src/views/baseCaseHandling/index.vue b/src/views/baseCaseHandling/index.vue index e46f617..a9fb8f1 100644 --- a/src/views/baseCaseHandling/index.vue +++ b/src/views/baseCaseHandling/index.vue @@ -354,8 +354,5 @@ export default { height: calc(100% - 47px); overflow-y: scroll; } - .item-body { - height: calc(100% - 35px); - } } diff --git a/src/views/baseInspectionReport/Form.vue b/src/views/baseInspectionReport/Form.vue index c3e4435..57f46fd 100644 --- a/src/views/baseInspectionReport/Form.vue +++ b/src/views/baseInspectionReport/Form.vue @@ -42,13 +42,6 @@ - @@ -78,19 +71,13 @@ - - - + diff --git a/src/views/baseSpecialAction/Form.vue b/src/views/baseSpecialAction/Form.vue index 303ea65..630b30d 100644 --- a/src/views/baseSpecialAction/Form.vue +++ b/src/views/baseSpecialAction/Form.vue @@ -5,7 +5,7 @@ :visible.sync="visible" class="NCC-dialog NCC-dialog_center" lock-scroll - width="70%" + width="50%" > + + + + {{ item.fullName }} + +
+ 全选 + 反选 +
+
+
+ + + + {{ item.fullName }} + +
+ 全选 + 反选 +
+
+
@@ -145,6 +177,8 @@ export default { title: undefined, content: undefined, releaseTime: undefined, + recordCommunicationOut: [], + recordCommunicationArea: [], annex: [], communicationArea: [], communicationOut: [], diff --git a/src/views/baseSpecialAction/index.vue b/src/views/baseSpecialAction/index.vue index c36a424..253eadb 100644 --- a/src/views/baseSpecialAction/index.vue +++ b/src/views/baseSpecialAction/index.vue @@ -39,7 +39,11 @@ - + + + @@ -47,7 +51,11 @@ - + + +