Merge branch 'dev' of http://yun.pashanhoo.com:9090/bdc/bdcdj-web into dev
Showing
72 changed files
with
1820 additions
and
399 deletions
| 1 | /* | ||
| 2 | * @Description: 定义Babel在转换JavaScript代码 | ||
| 3 | * @Autor: renchao | ||
| 4 | * @LastEditTime: 2023-07-20 15:12:44 | ||
| 5 | */ | ||
| 1 | module.exports = { | 6 | module.exports = { |
| 2 | presets: [ | 7 | presets: [ |
| 3 | // https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app | 8 | // https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app | ... | ... |
| ... | @@ -83,4 +83,4 @@ | ... | @@ -83,4 +83,4 @@ |
| 83 | "type": "git", | 83 | "type": "git", |
| 84 | "url": "git+https://github.com/PanJiaChen/vue-element-admin.git" | 84 | "url": "git+https://github.com/PanJiaChen/vue-element-admin.git" |
| 85 | } | 85 | } |
| 86 | } | 86 | } |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| 1 | <!-- | ||
| 2 | * @Description: | ||
| 3 | * @Autor: renchao | ||
| 4 | * @LastEditTime: 2023-07-20 10:22:20 | ||
| 5 | --> | ||
| 1 | <template> | 6 | <template> |
| 2 | <label class="el-checkbox" :class="[ | 7 | <label class="el-checkbox" :class="[ |
| 3 | border && checkboxSize ? 'el-checkbox--' + checkboxSize : '', | 8 | border && checkboxSize ? 'el-checkbox--' + checkboxSize : '', |
| ... | @@ -26,217 +31,217 @@ | ... | @@ -26,217 +31,217 @@ |
| 26 | </label> | 31 | </label> |
| 27 | </template> | 32 | </template> |
| 28 | <script> | 33 | <script> |
| 29 | import Emitter from 'element-ui/src/mixins/emitter'; | 34 | import Emitter from 'element-ui/src/mixins/emitter'; |
| 30 | 35 | ||
| 31 | export default { | 36 | export default { |
| 32 | name: 'ElCheckbox', | 37 | name: 'ElCheckbox', |
| 33 | 38 | ||
| 34 | mixins: [Emitter], | 39 | mixins: [Emitter], |
| 35 | 40 | ||
| 36 | inject: { | 41 | inject: { |
| 37 | elForm: { | 42 | elForm: { |
| 38 | default: '' | 43 | default: '' |
| 44 | }, | ||
| 45 | elFormItem: { | ||
| 46 | default: '' | ||
| 47 | } | ||
| 48 | }, | ||
| 49 | |||
| 50 | componentName: 'ElCheckbox', | ||
| 51 | |||
| 52 | data () { | ||
| 53 | return { | ||
| 54 | selfModel: false, | ||
| 55 | focus: false, | ||
| 56 | isLimitExceeded: false | ||
| 57 | }; | ||
| 39 | }, | 58 | }, |
| 40 | elFormItem: { | ||
| 41 | default: '' | ||
| 42 | } | ||
| 43 | }, | ||
| 44 | 59 | ||
| 45 | componentName: 'ElCheckbox', | 60 | computed: { |
| 61 | model: { | ||
| 62 | /** | ||
| 63 | * @description: get | ||
| 64 | * @author: renchao | ||
| 65 | */ | ||
| 66 | get () { | ||
| 67 | return this.isGroup | ||
| 68 | ? this.store : this.value !== undefined | ||
| 69 | ? this.value : this.selfModel; | ||
| 70 | }, | ||
| 71 | /** | ||
| 72 | * @description: set | ||
| 73 | * @param {*} val | ||
| 74 | * @author: renchao | ||
| 75 | */ | ||
| 76 | set (val) { | ||
| 77 | if (this.isGroup) { | ||
| 78 | this.isLimitExceeded = false; | ||
| 79 | (this._checkboxGroup.min !== undefined && | ||
| 80 | val.length < this._checkboxGroup.min && | ||
| 81 | (this.isLimitExceeded = true)); | ||
| 46 | 82 | ||
| 47 | data () { | 83 | (this._checkboxGroup.max !== undefined && |
| 48 | return { | 84 | val.length > this._checkboxGroup.max && |
| 49 | selfModel: false, | 85 | (this.isLimitExceeded = true)); |
| 50 | focus: false, | 86 | |
| 51 | isLimitExceeded: false | 87 | this.isLimitExceeded === false && |
| 52 | }; | 88 | this.dispatch('ElCheckboxGroup', 'input', [val]); |
| 53 | }, | 89 | } else { |
| 90 | this.$emit('input', val); | ||
| 91 | this.selfModel = val; | ||
| 92 | } | ||
| 93 | } | ||
| 94 | }, | ||
| 54 | 95 | ||
| 55 | computed: { | ||
| 56 | model: { | ||
| 57 | /** | 96 | /** |
| 58 | * @description: get | 97 | * @description: isChecked |
| 59 | * @author: renchao | 98 | * @author: renchao |
| 60 | */ | 99 | */ |
| 61 | get () { | 100 | isChecked () { |
| 62 | return this.isGroup | 101 | if ({}.toString.call(this.model) === '[object Boolean]') { |
| 63 | ? this.store : this.value !== undefined | 102 | return this.model; |
| 64 | ? this.value : this.selfModel; | 103 | } else if (Array.isArray(this.model)) { |
| 104 | return this.model.indexOf(this.label) > -1; | ||
| 105 | } else if (this.model !== null && this.model !== undefined) { | ||
| 106 | return this.model === this.trueLabel; | ||
| 107 | } | ||
| 65 | }, | 108 | }, |
| 66 | /** | 109 | /** |
| 67 | * @description: set | 110 | * @description: isGroup |
| 68 | * @param {*} val | ||
| 69 | * @author: renchao | 111 | * @author: renchao |
| 70 | */ | 112 | */ |
| 71 | set (val) { | 113 | isGroup () { |
| 72 | if (this.isGroup) { | 114 | let parent = this.$parent; |
| 73 | this.isLimitExceeded = false; | 115 | while (parent) { |
| 74 | (this._checkboxGroup.min !== undefined && | 116 | if (parent.$options.componentName !== 'ElCheckboxGroup') { |
| 75 | val.length < this._checkboxGroup.min && | 117 | parent = parent.$parent; |
| 76 | (this.isLimitExceeded = true)); | 118 | } else { |
| 77 | 119 | this._checkboxGroup = parent; | |
| 78 | (this._checkboxGroup.max !== undefined && | 120 | return true; |
| 79 | val.length > this._checkboxGroup.max && | 121 | } |
| 80 | (this.isLimitExceeded = true)); | ||
| 81 | |||
| 82 | this.isLimitExceeded === false && | ||
| 83 | this.dispatch('ElCheckboxGroup', 'input', [val]); | ||
| 84 | } else { | ||
| 85 | this.$emit('input', val); | ||
| 86 | this.selfModel = val; | ||
| 87 | } | 122 | } |
| 123 | return false; | ||
| 124 | }, | ||
| 125 | /** | ||
| 126 | * @description: store | ||
| 127 | * @author: renchao | ||
| 128 | */ | ||
| 129 | store () { | ||
| 130 | return this._checkboxGroup ? this._checkboxGroup.value : this.value; | ||
| 131 | }, | ||
| 132 | |||
| 133 | /** | ||
| 134 | * @description: isLimitDisabled | ||
| 135 | * @author: renchao | ||
| 136 | */ | ||
| 137 | isLimitDisabled () { | ||
| 138 | const { max, min } = this._checkboxGroup; | ||
| 139 | return !!(max || min) && | ||
| 140 | (this.model.length >= max && !this.isChecked) || | ||
| 141 | (this.model.length <= min && this.isChecked); | ||
| 142 | }, | ||
| 143 | /** | ||
| 144 | * @description: isDisabled | ||
| 145 | * @author: renchao | ||
| 146 | */ | ||
| 147 | isDisabled () { | ||
| 148 | return this.isGroup | ||
| 149 | ? this._checkboxGroup.disabled || this.disabled || (this.elForm || {}).disabled || this.isLimitDisabled | ||
| 150 | : this.disabled || (this.elForm || {}).disabled; | ||
| 151 | }, | ||
| 152 | /** | ||
| 153 | * @description: _elFormItemSize | ||
| 154 | * @author: renchao | ||
| 155 | */ | ||
| 156 | _elFormItemSize () { | ||
| 157 | return (this.elFormItem || {}).elFormItemSize; | ||
| 158 | }, | ||
| 159 | /** | ||
| 160 | * @description: checkboxSize | ||
| 161 | * @author: renchao | ||
| 162 | */ | ||
| 163 | checkboxSize () { | ||
| 164 | const temCheckboxSize = this.size || this._elFormItemSize || (this.$ELEMENT || {}).size; | ||
| 165 | return this.isGroup | ||
| 166 | ? this._checkboxGroup.checkboxGroupSize || temCheckboxSize | ||
| 167 | : temCheckboxSize; | ||
| 88 | } | 168 | } |
| 89 | }, | 169 | }, |
| 90 | 170 | ||
| 91 | /** | 171 | props: { |
| 92 | * @description: isChecked | 172 | value: {}, |
| 93 | * @author: renchao | 173 | label: {}, |
| 94 | */ | 174 | indeterminate: Boolean, |
| 95 | isChecked () { | 175 | disabled: Boolean, |
| 96 | if ({}.toString.call(this.model) === '[object Boolean]') { | 176 | checked: Boolean, |
| 97 | return this.model; | 177 | name: String, |
| 98 | } else if (Array.isArray(this.model)) { | 178 | trueLabel: [String, Number], |
| 99 | return this.model.indexOf(this.label) > -1; | 179 | falseLabel: [String, Number], |
| 100 | } else if (this.model !== null && this.model !== undefined) { | 180 | id: String, /* 当indeterminate为真时,为controls提供相关连的checkbox的id,表明元素间的控制关系*/ |
| 101 | return this.model === this.trueLabel; | 181 | controls: String, /* 当indeterminate为真时,为controls提供相关连的checkbox的id,表明元素间的控制关系*/ |
| 102 | } | 182 | border: Boolean, |
| 183 | size: String | ||
| 103 | }, | 184 | }, |
| 104 | /** | 185 | |
| 105 | * @description: isGroup | 186 | methods: { |
| 106 | * @author: renchao | 187 | /** |
| 107 | */ | 188 | * @description: addToStore |
| 108 | isGroup () { | 189 | * @author: renchao |
| 109 | let parent = this.$parent; | 190 | */ |
| 110 | while (parent) { | 191 | addToStore () { |
| 111 | if (parent.$options.componentName !== 'ElCheckboxGroup') { | 192 | if ( |
| 112 | parent = parent.$parent; | 193 | Array.isArray(this.model) && |
| 194 | this.model.indexOf(this.label) === -1 | ||
| 195 | ) { | ||
| 196 | this.model.push(this.label); | ||
| 113 | } else { | 197 | } else { |
| 114 | this._checkboxGroup = parent; | 198 | this.model = this.trueLabel || true; |
| 115 | return true; | ||
| 116 | } | 199 | } |
| 200 | }, | ||
| 201 | /** | ||
| 202 | * @description: handleChange | ||
| 203 | * @author: renchao | ||
| 204 | */ | ||
| 205 | handleChange (ev) { | ||
| 206 | if (this.isLimitExceeded) return; | ||
| 207 | let value; | ||
| 208 | if (ev.target.checked) { | ||
| 209 | value = this.trueLabel === undefined ? true : this.trueLabel; | ||
| 210 | } else { | ||
| 211 | value = this.falseLabel === undefined ? false : this.falseLabel; | ||
| 212 | } | ||
| 213 | this.$emit('change', value, ev); | ||
| 214 | this.$nextTick(() => { | ||
| 215 | if (this.isGroup) { | ||
| 216 | this.dispatch('ElCheckboxGroup', 'change', [this._checkboxGroup.value]); | ||
| 217 | } | ||
| 218 | }); | ||
| 117 | } | 219 | } |
| 118 | return false; | ||
| 119 | }, | ||
| 120 | /** | ||
| 121 | * @description: store | ||
| 122 | * @author: renchao | ||
| 123 | */ | ||
| 124 | store () { | ||
| 125 | return this._checkboxGroup ? this._checkboxGroup.value : this.value; | ||
| 126 | }, | ||
| 127 | |||
| 128 | /** | ||
| 129 | * @description: isLimitDisabled | ||
| 130 | * @author: renchao | ||
| 131 | */ | ||
| 132 | isLimitDisabled () { | ||
| 133 | const { max, min } = this._checkboxGroup; | ||
| 134 | return !!(max || min) && | ||
| 135 | (this.model.length >= max && !this.isChecked) || | ||
| 136 | (this.model.length <= min && this.isChecked); | ||
| 137 | }, | ||
| 138 | /** | ||
| 139 | * @description: isDisabled | ||
| 140 | * @author: renchao | ||
| 141 | */ | ||
| 142 | isDisabled () { | ||
| 143 | return this.isGroup | ||
| 144 | ? this._checkboxGroup.disabled || this.disabled || (this.elForm || {}).disabled || this.isLimitDisabled | ||
| 145 | : this.disabled || (this.elForm || {}).disabled; | ||
| 146 | }, | 220 | }, |
| 147 | /** | 221 | /** |
| 148 | * @description: _elFormItemSize | 222 | * @description: created |
| 149 | * @author: renchao | 223 | * @author: renchao |
| 150 | */ | 224 | */ |
| 151 | _elFormItemSize () { | 225 | created () { |
| 152 | return (this.elFormItem || {}).elFormItemSize; | 226 | this.checked && this.addToStore(); |
| 153 | }, | 227 | }, |
| 154 | /** | 228 | /** |
| 155 | * @description: checkboxSize | 229 | * @description: mounted |
| 156 | * @author: renchao | 230 | * @author: renchao |
| 157 | */ | 231 | */ |
| 158 | checkboxSize () { | 232 | mounted () { // 为indeterminate元素 添加aria-controls 属性 |
| 159 | const temCheckboxSize = this.size || this._elFormItemSize || (this.$ELEMENT || {}).size; | 233 | if (this.indeterminate) { |
| 160 | return this.isGroup | 234 | this.$el.setAttribute('aria-controls', this.controls); |
| 161 | ? this._checkboxGroup.checkboxGroupSize || temCheckboxSize | ||
| 162 | : temCheckboxSize; | ||
| 163 | } | ||
| 164 | }, | ||
| 165 | |||
| 166 | props: { | ||
| 167 | value: {}, | ||
| 168 | label: {}, | ||
| 169 | indeterminate: Boolean, | ||
| 170 | disabled: Boolean, | ||
| 171 | checked: Boolean, | ||
| 172 | name: String, | ||
| 173 | trueLabel: [String, Number], | ||
| 174 | falseLabel: [String, Number], | ||
| 175 | id: String, /* 当indeterminate为真时,为controls提供相关连的checkbox的id,表明元素间的控制关系*/ | ||
| 176 | controls: String, /* 当indeterminate为真时,为controls提供相关连的checkbox的id,表明元素间的控制关系*/ | ||
| 177 | border: Boolean, | ||
| 178 | size: String | ||
| 179 | }, | ||
| 180 | |||
| 181 | methods: { | ||
| 182 | /** | ||
| 183 | * @description: addToStore | ||
| 184 | * @author: renchao | ||
| 185 | */ | ||
| 186 | addToStore () { | ||
| 187 | if ( | ||
| 188 | Array.isArray(this.model) && | ||
| 189 | this.model.indexOf(this.label) === -1 | ||
| 190 | ) { | ||
| 191 | this.model.push(this.label); | ||
| 192 | } else { | ||
| 193 | this.model = this.trueLabel || true; | ||
| 194 | } | 235 | } |
| 195 | }, | 236 | }, |
| 196 | /** | 237 | /** |
| 197 | * @description: handleChange | 238 | * @description: watch |
| 198 | * @author: renchao | 239 | * @author: renchao |
| 199 | */ | 240 | */ |
| 200 | handleChange (ev) { | 241 | watch: { |
| 201 | if (this.isLimitExceeded) return; | 242 | value (value) { |
| 202 | let value; | 243 | this.dispatch('ElFormItem', 'el.form.change', value); |
| 203 | if (ev.target.checked) { | ||
| 204 | value = this.trueLabel === undefined ? true : this.trueLabel; | ||
| 205 | } else { | ||
| 206 | value = this.falseLabel === undefined ? false : this.falseLabel; | ||
| 207 | } | 244 | } |
| 208 | this.$emit('change', value, ev); | ||
| 209 | this.$nextTick(() => { | ||
| 210 | if (this.isGroup) { | ||
| 211 | this.dispatch('ElCheckboxGroup', 'change', [this._checkboxGroup.value]); | ||
| 212 | } | ||
| 213 | }); | ||
| 214 | } | ||
| 215 | }, | ||
| 216 | /** | ||
| 217 | * @description: created | ||
| 218 | * @author: renchao | ||
| 219 | */ | ||
| 220 | created () { | ||
| 221 | this.checked && this.addToStore(); | ||
| 222 | }, | ||
| 223 | /** | ||
| 224 | * @description: mounted | ||
| 225 | * @author: renchao | ||
| 226 | */ | ||
| 227 | mounted () { // 为indeterminate元素 添加aria-controls 属性 | ||
| 228 | if (this.indeterminate) { | ||
| 229 | this.$el.setAttribute('aria-controls', this.controls); | ||
| 230 | } | ||
| 231 | }, | ||
| 232 | /** | ||
| 233 | * @description: watch | ||
| 234 | * @author: renchao | ||
| 235 | */ | ||
| 236 | watch: { | ||
| 237 | value (value) { | ||
| 238 | this.dispatch('ElFormItem', 'el.form.change', value); | ||
| 239 | } | 245 | } |
| 240 | } | 246 | }; |
| 241 | }; | ||
| 242 | </script> | 247 | </script> | ... | ... |
| 1 | <!-- | ||
| 2 | * @Description: | ||
| 3 | * @Autor: renchao | ||
| 4 | * @LastEditTime: 2023-07-20 13:33:07 | ||
| 5 | --> | ||
| 1 | <template> | 6 | <template> |
| 2 | <el-dialog :visible.sync="dialogVisible" v-if="dialogVisible" :width="width" :fullscreen="fullscreen" top="0" | 7 | <el-dialog :visible.sync="dialogVisible" v-if="dialogVisible" :width="width" :fullscreen="fullscreen" top="0" |
| 3 | :append-to-body="appendToBody" :lock-scroll="true" :close-on-click-modal="false" @close="closeDialog" :key="key" | 8 | :append-to-body="appendToBody" :lock-scroll="true" :close-on-click-modal="false" @close="closeDialog" :key="key" |
| ... | @@ -23,117 +28,117 @@ | ... | @@ -23,117 +28,117 @@ |
| 23 | </el-dialog> | 28 | </el-dialog> |
| 24 | </template> | 29 | </template> |
| 25 | <script> | 30 | <script> |
| 26 | export default { | 31 | export default { |
| 27 | props: { | 32 | props: { |
| 28 | value: { type: Boolean, default: false }, | 33 | value: { type: Boolean, default: false }, |
| 29 | isMain: { | 34 | isMain: { |
| 30 | type: Boolean, | 35 | type: Boolean, |
| 31 | default: false | 36 | default: false |
| 32 | }, | 37 | }, |
| 33 | appendToBody: { | 38 | appendToBody: { |
| 34 | type: Boolean, | 39 | type: Boolean, |
| 35 | default: true | 40 | default: true |
| 36 | }, | 41 | }, |
| 37 | isButton: { | 42 | isButton: { |
| 38 | type: Boolean, | 43 | type: Boolean, |
| 39 | default: true, | 44 | default: true, |
| 40 | }, | 45 | }, |
| 41 | width: { | 46 | width: { |
| 42 | type: String, | 47 | type: String, |
| 43 | default: '70%', | 48 | default: '70%', |
| 44 | }, | 49 | }, |
| 45 | title: { | 50 | title: { |
| 46 | type: String, | 51 | type: String, |
| 47 | default: '', | 52 | default: '', |
| 48 | }, | 53 | }, |
| 49 | isFullscreen: { | 54 | isFullscreen: { |
| 50 | type: Boolean, | 55 | type: Boolean, |
| 51 | default: true, | 56 | default: true, |
| 52 | }, | 57 | }, |
| 53 | isSave: { | 58 | isSave: { |
| 54 | type: Boolean, | 59 | type: Boolean, |
| 55 | default: true, | 60 | default: true, |
| 56 | }, | 61 | }, |
| 57 | saveButton: { | 62 | saveButton: { |
| 58 | type: String, | 63 | type: String, |
| 59 | default: '提交', | 64 | default: '提交', |
| 60 | }, | 65 | }, |
| 61 | isReset: { | 66 | isReset: { |
| 62 | type: Boolean, | 67 | type: Boolean, |
| 63 | default: true, | 68 | default: true, |
| 64 | }, | 69 | }, |
| 65 | saveloding: { | 70 | saveloding: { |
| 66 | type: Boolean, | 71 | type: Boolean, |
| 67 | default: false, | 72 | default: false, |
| 73 | }, | ||
| 74 | btnDisabled: { | ||
| 75 | type: Boolean, | ||
| 76 | default: false | ||
| 77 | }, | ||
| 78 | height: { | ||
| 79 | type: String, | ||
| 80 | default: '' | ||
| 81 | } | ||
| 68 | }, | 82 | }, |
| 69 | btnDisabled: { | 83 | data () { |
| 70 | type: Boolean, | 84 | return { |
| 71 | default: false | 85 | key: 0, |
| 86 | dialogVisible: false, | ||
| 87 | fullscreen: false, | ||
| 88 | scrollerHeight: '' | ||
| 89 | } | ||
| 72 | }, | 90 | }, |
| 73 | height: { | 91 | watch: { |
| 74 | type: String, | 92 | value (val) { |
| 75 | default: '' | 93 | this.$nextTick(() => { |
| 76 | } | 94 | this.dialogVisible = val |
| 77 | }, | 95 | }) |
| 78 | data () { | 96 | this.height && (this.scrollerHeight = this.height + 'px') |
| 79 | return { | ||
| 80 | key: 0, | ||
| 81 | dialogVisible: false, | ||
| 82 | fullscreen: false, | ||
| 83 | scrollerHeight: '' | ||
| 84 | } | ||
| 85 | }, | ||
| 86 | watch: { | ||
| 87 | value (val) { | ||
| 88 | this.$nextTick(() => { | ||
| 89 | this.dialogVisible = val | ||
| 90 | }) | ||
| 91 | this.height && (this.scrollerHeight = this.height + 'px') | ||
| 92 | } | ||
| 93 | }, | ||
| 94 | methods: { | ||
| 95 | /** | ||
| 96 | * @description: handleFullscreen | ||
| 97 | * @author: renchao | ||
| 98 | */ | ||
| 99 | handleFullscreen () { | ||
| 100 | this.fullscreen = !this.fullscreen | ||
| 101 | if (!this.fullscreen) { | ||
| 102 | this.scrollerHeight = '' | ||
| 103 | } else { | ||
| 104 | this.scrollerHeight = (window.innerHeight - 120) + 'px' | ||
| 105 | } | 97 | } |
| 106 | }, | 98 | }, |
| 107 | /** | 99 | methods: { |
| 108 | * @description: submitForm | 100 | /** |
| 109 | * @author: renchao | 101 | * @description: handleFullscreen |
| 110 | */ | 102 | * @author: renchao |
| 111 | submitForm () { | 103 | */ |
| 112 | if (this.isButton) { | 104 | handleFullscreen () { |
| 113 | this.$emit('submitForm'); | 105 | this.fullscreen = !this.fullscreen |
| 106 | if (!this.fullscreen) { | ||
| 107 | this.scrollerHeight = '' | ||
| 108 | } else { | ||
| 109 | this.scrollerHeight = (window.innerHeight - 120) + 'px' | ||
| 110 | } | ||
| 111 | }, | ||
| 112 | /** | ||
| 113 | * @description: submitForm | ||
| 114 | * @author: renchao | ||
| 115 | */ | ||
| 116 | submitForm () { | ||
| 117 | if (this.isButton) { | ||
| 118 | this.$emit('submitForm'); | ||
| 119 | } | ||
| 120 | }, | ||
| 121 | /** | ||
| 122 | * @description: closeDialog | ||
| 123 | * @author: renchao | ||
| 124 | */ | ||
| 125 | closeDialog () { | ||
| 126 | this.key++ | ||
| 127 | this.$emit('input', false) | ||
| 128 | this.$emit('closeDialog') | ||
| 114 | } | 129 | } |
| 115 | }, | 130 | }, |
| 116 | /** | 131 | } |
| 117 | * @description: closeDialog | ||
| 118 | * @author: renchao | ||
| 119 | */ | ||
| 120 | closeDialog () { | ||
| 121 | this.key++ | ||
| 122 | this.$emit('input', false) | ||
| 123 | this.$emit('closeDialog') | ||
| 124 | } | ||
| 125 | }, | ||
| 126 | } | ||
| 127 | </script> | 132 | </script> |
| 128 | <style rel="stylesheet/scss" lang="scss" > | 133 | <style rel="stylesheet/scss" lang="scss" > |
| 129 | @import "~@/styles/mixin.scss"; | 134 | @import "~@/styles/mixin.scss"; |
| 130 | @import "~@/styles/dialogBox.scss"; | 135 | @import "~@/styles/dialogBox.scss"; |
| 131 | </style> | 136 | </style> |
| 132 | <style rel="stylesheet/scss" scoped lang="scss" > | 137 | <style rel="stylesheet/scss" scoped lang="scss" > |
| 133 | /deep/.is-fullscreen { | 138 | /deep/.is-fullscreen { |
| 134 | position: absolute; | 139 | position: absolute; |
| 135 | top: 50% !important; | 140 | top: 50% !important; |
| 136 | left: 50% !important; | 141 | left: 50% !important; |
| 137 | transform: translate(-50%, -50%) !important; | 142 | transform: translate(-50%, -50%) !important; |
| 138 | } | 143 | } |
| 139 | </style> | 144 | </style> | ... | ... |
| 1 | /* | 1 | /* |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-06-14 15:05:38 | 4 | * @LastEditTime: 2023-06-14 15:05:38 |
| 5 | */ | 5 | */ |
| ... | @@ -8,6 +8,10 @@ import Popup from './index.vue' | ... | @@ -8,6 +8,10 @@ import Popup from './index.vue' |
| 8 | const PopupBox = Vue.extend(Popup) | 8 | const PopupBox = Vue.extend(Popup) |
| 9 | let popuping = undefined | 9 | let popuping = undefined |
| 10 | 10 | ||
| 11 | /** | ||
| 12 | * @description: close | ||
| 13 | * @author: renchao | ||
| 14 | */ | ||
| 11 | PopupBox.prototype.close = function () { | 15 | PopupBox.prototype.close = function () { |
| 12 | // 如果Popup 有引用,则去掉引用 | 16 | // 如果Popup 有引用,则去掉引用 |
| 13 | if (popuping) { | 17 | if (popuping) { |
| ... | @@ -24,6 +28,14 @@ PopupBox.prototype.close = function () { | ... | @@ -24,6 +28,14 @@ PopupBox.prototype.close = function () { |
| 24 | }, 300) | 28 | }, 300) |
| 25 | } | 29 | } |
| 26 | 30 | ||
| 31 | /** | ||
| 32 | * @description: Popup1 | ||
| 33 | * @param {*} title | ||
| 34 | * @param {*} editItem | ||
| 35 | * @param {*} data | ||
| 36 | * @param {*} formData | ||
| 37 | * @author: renchao | ||
| 38 | */ | ||
| 27 | const Popup1 = (title, editItem, data, formData) => { | 39 | const Popup1 = (title, editItem, data, formData) => { |
| 28 | // 如果组件已渲染,则返回即可 | 40 | // 如果组件已渲染,则返回即可 |
| 29 | if (popuping) { | 41 | if (popuping) { | ... | ... |
| ... | @@ -73,9 +73,17 @@ | ... | @@ -73,9 +73,17 @@ |
| 73 | }, 300) | 73 | }, 300) |
| 74 | }, | 74 | }, |
| 75 | methods: { | 75 | methods: { |
| 76 | /** | ||
| 77 | * @description: onCancel | ||
| 78 | * @author: renchao | ||
| 79 | */ | ||
| 76 | onCancel () { | 80 | onCancel () { |
| 77 | Popup1().close() | 81 | Popup1().close() |
| 78 | }, | 82 | }, |
| 83 | /** | ||
| 84 | * @description: onConfirm | ||
| 85 | * @author: renchao | ||
| 86 | */ | ||
| 79 | onConfirm () { | 87 | onConfirm () { |
| 80 | let res = new Promise((resolve, reject) => { | 88 | let res = new Promise((resolve, reject) => { |
| 81 | this.confirm() | 89 | this.confirm() |
| ... | @@ -85,6 +93,11 @@ | ... | @@ -85,6 +93,11 @@ |
| 85 | this.isShow = false | 93 | this.isShow = false |
| 86 | } | 94 | } |
| 87 | }, | 95 | }, |
| 96 | /** | ||
| 97 | * @description: loadViewFn | ||
| 98 | * @param {*} view | ||
| 99 | * @author: renchao | ||
| 100 | */ | ||
| 88 | loadViewFn (view) { | 101 | loadViewFn (view) { |
| 89 | return (r) => | 102 | return (r) => |
| 90 | require.ensure([], () => | 103 | require.ensure([], () => |
| ... | @@ -184,4 +197,3 @@ | ... | @@ -184,4 +197,3 @@ |
| 184 | opacity: 0; | 197 | opacity: 0; |
| 185 | } | 198 | } |
| 186 | </style> | 199 | </style> |
| 187 | |||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| 1 | export const theme = { | 1 | export const theme = { |
| 2 | /** | ||
| 3 | * @description: bind | ||
| 4 | * @param {*} el | ||
| 5 | * @param {*} binding | ||
| 6 | * @param {*} vnode | ||
| 7 | * @author: renchao | ||
| 8 | */ | ||
| 2 | bind: function (el, binding, vnode) { | 9 | bind: function (el, binding, vnode) { |
| 3 | setEleStyleColorAttribute(el, binding); | 10 | setEleStyleColorAttribute(el, binding); |
| 4 | }, | 11 | }, |
| 12 | /** | ||
| 13 | * @description: update | ||
| 14 | * @param {*} el | ||
| 15 | * @param {*} binding | ||
| 16 | * @param {*} vnode | ||
| 17 | * @author: renchao | ||
| 18 | */ | ||
| 5 | update: function (el, binding, vnode) { | 19 | update: function (el, binding, vnode) { |
| 6 | setEleStyleColorAttribute(el, binding); | 20 | setEleStyleColorAttribute(el, binding); |
| 7 | }, | 21 | }, |
| 22 | /** | ||
| 23 | * @description: componentUpdated | ||
| 24 | * @param {*} el | ||
| 25 | * @param {*} binding | ||
| 26 | * @param {*} vnode | ||
| 27 | * @author: renchao | ||
| 28 | */ | ||
| 8 | componentUpdated: function (el, binding, vnode) { | 29 | componentUpdated: function (el, binding, vnode) { |
| 9 | setEleStyleColorAttribute(el, binding); | 30 | setEleStyleColorAttribute(el, binding); |
| 10 | } | 31 | } |
| ... | @@ -16,4 +37,4 @@ function setEleStyleColorAttribute (el, binding) { | ... | @@ -16,4 +37,4 @@ function setEleStyleColorAttribute (el, binding) { |
| 16 | if (background) el.style['background-color'] = value; | 37 | if (background) el.style['background-color'] = value; |
| 17 | if (font) el.style.color = value; | 38 | if (font) el.style.color = value; |
| 18 | if (border) el.style['border-color'] = value; | 39 | if (border) el.style['border-color'] = value; |
| 19 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 40 | } | ... | ... |
| ... | @@ -57,6 +57,10 @@ | ... | @@ -57,6 +57,10 @@ |
| 57 | window.removeEventListener('message') | 57 | window.removeEventListener('message') |
| 58 | }, | 58 | }, |
| 59 | methods: { | 59 | methods: { |
| 60 | /** | ||
| 61 | * @description: queryNoticeList | ||
| 62 | * @author: renchao | ||
| 63 | */ | ||
| 60 | queryNoticeList () { | 64 | queryNoticeList () { |
| 61 | getHomeNoticeList().then(res => { | 65 | getHomeNoticeList().then(res => { |
| 62 | if (res.result) { | 66 | if (res.result) { |
| ... | @@ -64,6 +68,10 @@ | ... | @@ -64,6 +68,10 @@ |
| 64 | } | 68 | } |
| 65 | }) | 69 | }) |
| 66 | }, | 70 | }, |
| 71 | /** | ||
| 72 | * @description: logout | ||
| 73 | * @author: renchao | ||
| 74 | */ | ||
| 67 | logout () { | 75 | logout () { |
| 68 | axios.post(window._config.services.management + "/management/logout").then(() => { | 76 | axios.post(window._config.services.management + "/management/logout").then(() => { |
| 69 | setToken(undefined) | 77 | setToken(undefined) |
| ... | @@ -73,12 +81,22 @@ | ... | @@ -73,12 +81,22 @@ |
| 73 | }) | 81 | }) |
| 74 | }, | 82 | }, |
| 75 | 83 | ||
| 84 | /** | ||
| 85 | * @description: themeChange | ||
| 86 | * @param {*} val | ||
| 87 | * @author: renchao | ||
| 88 | */ | ||
| 76 | themeChange (val) { | 89 | themeChange (val) { |
| 77 | this.$store.dispatch('app/updateTheme', val) | 90 | this.$store.dispatch('app/updateTheme', val) |
| 78 | }, | 91 | }, |
| 79 | searchMessageCenter () { | 92 | searchMessageCenter () { |
| 80 | this.$router.push({ name: 'messagecenter' }) | 93 | this.$router.push({ name: 'messagecenter' }) |
| 81 | }, | 94 | }, |
| 95 | /** | ||
| 96 | * @description: handleCommand | ||
| 97 | * @param {*} command | ||
| 98 | * @author: renchao | ||
| 99 | */ | ||
| 82 | handleCommand (command) { | 100 | handleCommand (command) { |
| 83 | if (command == 'a') { | 101 | if (command == 'a') { |
| 84 | //个人中心 | 102 | //个人中心 | ... | ... |
| ... | @@ -10,6 +10,10 @@ export default { | ... | @@ -10,6 +10,10 @@ export default { |
| 10 | this.fixBugIniOS() | 10 | this.fixBugIniOS() |
| 11 | }, | 11 | }, |
| 12 | methods: { | 12 | methods: { |
| 13 | /** | ||
| 14 | * @description: fixBugIniOS | ||
| 15 | * @author: renchao | ||
| 16 | */ | ||
| 13 | fixBugIniOS() { | 17 | fixBugIniOS() { |
| 14 | const $subMenu = this.$refs.subMenu | 18 | const $subMenu = this.$refs.subMenu |
| 15 | if ($subMenu) { | 19 | if ($subMenu) { | ... | ... |
| ... | @@ -26,6 +26,11 @@ export default { | ... | @@ -26,6 +26,11 @@ export default { |
| 26 | } | 26 | } |
| 27 | }, | 27 | }, |
| 28 | methods: { | 28 | methods: { |
| 29 | /** | ||
| 30 | * @description: linkProps | ||
| 31 | * @param {*} to | ||
| 32 | * @author: renchao | ||
| 33 | */ | ||
| 29 | linkProps(to) { | 34 | linkProps(to) { |
| 30 | if (this.isExternal) { | 35 | if (this.isExternal) { |
| 31 | return { | 36 | return { | ... | ... |
| ... | @@ -53,6 +53,12 @@ export default { | ... | @@ -53,6 +53,12 @@ export default { |
| 53 | return {} | 53 | return {} |
| 54 | }, | 54 | }, |
| 55 | methods: { | 55 | methods: { |
| 56 | /** | ||
| 57 | * @description: hasOneShowingChild | ||
| 58 | * @param {*} children | ||
| 59 | * @param {*} parent | ||
| 60 | * @author: renchao | ||
| 61 | */ | ||
| 56 | hasOneShowingChild (children = [], parent) { | 62 | hasOneShowingChild (children = [], parent) { |
| 57 | const showingChildren = children.filter(item => { | 63 | const showingChildren = children.filter(item => { |
| 58 | if (item.hidden) { | 64 | if (item.hidden) { |
| ... | @@ -75,6 +81,11 @@ export default { | ... | @@ -75,6 +81,11 @@ export default { |
| 75 | } | 81 | } |
| 76 | return false | 82 | return false |
| 77 | }, | 83 | }, |
| 84 | /** | ||
| 85 | * @description: resolvePath | ||
| 86 | * @param {*} routePath | ||
| 87 | * @author: renchao | ||
| 88 | */ | ||
| 78 | resolvePath (routePath) { | 89 | resolvePath (routePath) { |
| 79 | if (isExternal(routePath)) { | 90 | if (isExternal(routePath)) { |
| 80 | return routePath | 91 | return routePath |
| ... | @@ -86,4 +97,4 @@ export default { | ... | @@ -86,4 +97,4 @@ export default { |
| 86 | } | 97 | } |
| 87 | } | 98 | } |
| 88 | } | 99 | } |
| 89 | </script> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 100 | </script> | ... | ... |
| ... | @@ -26,14 +26,28 @@ export default { | ... | @@ -26,14 +26,28 @@ export default { |
| 26 | this.scrollWrapper.removeEventListener('scroll', this.emitScroll) | 26 | this.scrollWrapper.removeEventListener('scroll', this.emitScroll) |
| 27 | }, | 27 | }, |
| 28 | methods: { | 28 | methods: { |
| 29 | /** | ||
| 30 | * @description: handleScroll | ||
| 31 | * @param {*} e | ||
| 32 | * @author: renchao | ||
| 33 | */ | ||
| 29 | handleScroll (e) { | 34 | handleScroll (e) { |
| 30 | const eventDelta = e.wheelDelta || -e.deltaY * 40 | 35 | const eventDelta = e.wheelDelta || -e.deltaY * 40 |
| 31 | const $scrollWrapper = this.scrollWrapper | 36 | const $scrollWrapper = this.scrollWrapper |
| 32 | $scrollWrapper.scrollLeft = $scrollWrapper.scrollLeft + eventDelta / 4 | 37 | $scrollWrapper.scrollLeft = $scrollWrapper.scrollLeft + eventDelta / 4 |
| 33 | }, | 38 | }, |
| 39 | /** | ||
| 40 | * @description: emitScroll | ||
| 41 | * @author: renchao | ||
| 42 | */ | ||
| 34 | emitScroll () { | 43 | emitScroll () { |
| 35 | this.$emit('scroll') | 44 | this.$emit('scroll') |
| 36 | }, | 45 | }, |
| 46 | /** | ||
| 47 | * @description: moveToTarget | ||
| 48 | * @param {*} currentTag | ||
| 49 | * @author: renchao | ||
| 50 | */ | ||
| 37 | moveToTarget (currentTag) { | 51 | moveToTarget (currentTag) { |
| 38 | const $container = this.$refs.scrollContainer.$el | 52 | const $container = this.$refs.scrollContainer.$el |
| 39 | const $containerWidth = $container.offsetWidth | 53 | const $containerWidth = $container.offsetWidth | ... | ... |
| ... | @@ -59,12 +59,28 @@ | ... | @@ -59,12 +59,28 @@ |
| 59 | this.addTags() | 59 | this.addTags() |
| 60 | }, | 60 | }, |
| 61 | methods: { | 61 | methods: { |
| 62 | /** | ||
| 63 | * @description: isActive | ||
| 64 | * @param {*} route | ||
| 65 | * @author: renchao | ||
| 66 | */ | ||
| 62 | isActive (route) { | 67 | isActive (route) { |
| 63 | return route.path === this.$route.path | 68 | return route.path === this.$route.path |
| 64 | }, | 69 | }, |
| 70 | /** | ||
| 71 | * @description: isAffix | ||
| 72 | * @param {*} tag | ||
| 73 | * @author: renchao | ||
| 74 | */ | ||
| 65 | isAffix (tag) { | 75 | isAffix (tag) { |
| 66 | return tag.meta && tag.meta.affix | 76 | return tag.meta && tag.meta.affix |
| 67 | }, | 77 | }, |
| 78 | /** | ||
| 79 | * @description: filterAffixTags | ||
| 80 | * @param {*} routes | ||
| 81 | * @param {*} basePath | ||
| 82 | * @author: renchao | ||
| 83 | */ | ||
| 68 | filterAffixTags (routes, basePath = '/') { | 84 | filterAffixTags (routes, basePath = '/') { |
| 69 | let tags = [] | 85 | let tags = [] |
| 70 | routes.forEach(route => { | 86 | routes.forEach(route => { |
| ... | @@ -86,6 +102,10 @@ | ... | @@ -86,6 +102,10 @@ |
| 86 | }) | 102 | }) |
| 87 | return tags | 103 | return tags |
| 88 | }, | 104 | }, |
| 105 | /** | ||
| 106 | * @description: initTags | ||
| 107 | * @author: renchao | ||
| 108 | */ | ||
| 89 | initTags () { | 109 | initTags () { |
| 90 | const affixTags = this.affixTags = this.filterAffixTags(this.routes) | 110 | const affixTags = this.affixTags = this.filterAffixTags(this.routes) |
| 91 | for (const tag of affixTags) { | 111 | for (const tag of affixTags) { |
| ... | @@ -95,6 +115,10 @@ | ... | @@ -95,6 +115,10 @@ |
| 95 | } | 115 | } |
| 96 | } | 116 | } |
| 97 | }, | 117 | }, |
| 118 | /** | ||
| 119 | * @description: addTags | ||
| 120 | * @author: renchao | ||
| 121 | */ | ||
| 98 | addTags () { | 122 | addTags () { |
| 99 | const { name } = this.$route | 123 | const { name } = this.$route |
| 100 | if (name) { | 124 | if (name) { |
| ... | @@ -102,6 +126,10 @@ | ... | @@ -102,6 +126,10 @@ |
| 102 | } | 126 | } |
| 103 | return false | 127 | return false |
| 104 | }, | 128 | }, |
| 129 | /** | ||
| 130 | * @description: moveToCurrentTag | ||
| 131 | * @author: renchao | ||
| 132 | */ | ||
| 105 | moveToCurrentTag () { | 133 | moveToCurrentTag () { |
| 106 | const tags = this.$refs.tag | 134 | const tags = this.$refs.tag |
| 107 | this.$nextTick(() => { | 135 | this.$nextTick(() => { |
| ... | @@ -117,6 +145,11 @@ | ... | @@ -117,6 +145,11 @@ |
| 117 | } | 145 | } |
| 118 | }) | 146 | }) |
| 119 | }, | 147 | }, |
| 148 | /** | ||
| 149 | * @description: refreshSelectedTag | ||
| 150 | * @param {*} view | ||
| 151 | * @author: renchao | ||
| 152 | */ | ||
| 120 | refreshSelectedTag (view) { | 153 | refreshSelectedTag (view) { |
| 121 | this.$store.dispatch('tagsView/delCachedView', view).then(() => { | 154 | this.$store.dispatch('tagsView/delCachedView', view).then(() => { |
| 122 | const { fullPath } = view | 155 | const { fullPath } = view |
| ... | @@ -127,6 +160,11 @@ | ... | @@ -127,6 +160,11 @@ |
| 127 | }) | 160 | }) |
| 128 | }) | 161 | }) |
| 129 | }, | 162 | }, |
| 163 | /** | ||
| 164 | * @description: closeSelectedTag | ||
| 165 | * @param {*} view | ||
| 166 | * @author: renchao | ||
| 167 | */ | ||
| 130 | closeSelectedTag (view) { | 168 | closeSelectedTag (view) { |
| 131 | this.$store.dispatch('tagsView/delView', view).then(({ visitedViews }) => { | 169 | this.$store.dispatch('tagsView/delView', view).then(({ visitedViews }) => { |
| 132 | if (this.isActive(view)) { | 170 | if (this.isActive(view)) { |
| ... | @@ -134,12 +172,21 @@ | ... | @@ -134,12 +172,21 @@ |
| 134 | } | 172 | } |
| 135 | }) | 173 | }) |
| 136 | }, | 174 | }, |
| 175 | /** | ||
| 176 | * @description: closeOthersTags | ||
| 177 | * @author: renchao | ||
| 178 | */ | ||
| 137 | closeOthersTags () { | 179 | closeOthersTags () { |
| 138 | this.$router.push(this.selectedTag) | 180 | this.$router.push(this.selectedTag) |
| 139 | this.$store.dispatch('tagsView/delOthersViews', this.selectedTag).then(() => { | 181 | this.$store.dispatch('tagsView/delOthersViews', this.selectedTag).then(() => { |
| 140 | this.moveToCurrentTag() | 182 | this.moveToCurrentTag() |
| 141 | }) | 183 | }) |
| 142 | }, | 184 | }, |
| 185 | /** | ||
| 186 | * @description: closeAllTags | ||
| 187 | * @param {*} view | ||
| 188 | * @author: renchao | ||
| 189 | */ | ||
| 143 | closeAllTags (view) { | 190 | closeAllTags (view) { |
| 144 | this.$store.dispatch('tagsView/delAllViews').then(({ visitedViews }) => { | 191 | this.$store.dispatch('tagsView/delAllViews').then(({ visitedViews }) => { |
| 145 | if (this.affixTags.some(tag => tag.path === view.path)) { | 192 | if (this.affixTags.some(tag => tag.path === view.path)) { |
| ... | @@ -148,6 +195,12 @@ | ... | @@ -148,6 +195,12 @@ |
| 148 | this.toLastView(visitedViews, view) | 195 | this.toLastView(visitedViews, view) |
| 149 | }) | 196 | }) |
| 150 | }, | 197 | }, |
| 198 | /** | ||
| 199 | * @description: toLastView | ||
| 200 | * @param {*} visitedViews | ||
| 201 | * @param {*} view | ||
| 202 | * @author: renchao | ||
| 203 | */ | ||
| 151 | toLastView (visitedViews, view) { | 204 | toLastView (visitedViews, view) { |
| 152 | const latestView = visitedViews.slice(-1)[0] | 205 | const latestView = visitedViews.slice(-1)[0] |
| 153 | if (latestView) { | 206 | if (latestView) { |
| ... | @@ -163,6 +216,12 @@ | ... | @@ -163,6 +216,12 @@ |
| 163 | } | 216 | } |
| 164 | } | 217 | } |
| 165 | }, | 218 | }, |
| 219 | /** | ||
| 220 | * @description: openMenu | ||
| 221 | * @param {*} tag | ||
| 222 | * @param {*} e | ||
| 223 | * @author: renchao | ||
| 224 | */ | ||
| 166 | openMenu (tag, e) { | 225 | openMenu (tag, e) { |
| 167 | // const menuMinWidth = 105 | 226 | // const menuMinWidth = 105 |
| 168 | // const offsetLeft = this.$el.getBoundingClientRect().left // container margin left | 227 | // const offsetLeft = this.$el.getBoundingClientRect().left // container margin left |
| ... | @@ -179,9 +238,17 @@ | ... | @@ -179,9 +238,17 @@ |
| 179 | this.visible = true | 238 | this.visible = true |
| 180 | this.selectedTag = tag | 239 | this.selectedTag = tag |
| 181 | }, | 240 | }, |
| 241 | /** | ||
| 242 | * @description: closeMenu | ||
| 243 | * @author: renchao | ||
| 244 | */ | ||
| 182 | closeMenu () { | 245 | closeMenu () { |
| 183 | this.visible = false | 246 | this.visible = false |
| 184 | }, | 247 | }, |
| 248 | /** | ||
| 249 | * @description: handleScroll | ||
| 250 | * @author: renchao | ||
| 251 | */ | ||
| 185 | handleScroll () { | 252 | handleScroll () { |
| 186 | this.closeMenu() | 253 | this.closeMenu() |
| 187 | } | 254 | } | ... | ... |
| ... | @@ -27,10 +27,18 @@ export default { | ... | @@ -27,10 +27,18 @@ export default { |
| 27 | methods: { | 27 | methods: { |
| 28 | // use $_ for mixins properties | 28 | // use $_ for mixins properties |
| 29 | // https://vuejs.org/v2/style-guide/index.html#Private-property-names-essential | 29 | // https://vuejs.org/v2/style-guide/index.html#Private-property-names-essential |
| 30 | /** | ||
| 31 | * @description: $_isMobile | ||
| 32 | * @author: renchao | ||
| 33 | */ | ||
| 30 | $_isMobile() { | 34 | $_isMobile() { |
| 31 | const rect = body.getBoundingClientRect() | 35 | const rect = body.getBoundingClientRect() |
| 32 | return rect.width - 1 < WIDTH | 36 | return rect.width - 1 < WIDTH |
| 33 | }, | 37 | }, |
| 38 | /** | ||
| 39 | * @description: $_resizeHandler | ||
| 40 | * @author: renchao | ||
| 41 | */ | ||
| 34 | $_resizeHandler() { | 42 | $_resizeHandler() { |
| 35 | if (!document.hidden) { | 43 | if (!document.hidden) { |
| 36 | const isMobile = this.$_isMobile() | 44 | const isMobile = this.$_isMobile() | ... | ... |
| ... | @@ -20,6 +20,10 @@ const mutations = { | ... | @@ -20,6 +20,10 @@ const mutations = { |
| 20 | } | 20 | } |
| 21 | 21 | ||
| 22 | const actions = { | 22 | const actions = { |
| 23 | /** | ||
| 24 | * @description: generateDic | ||
| 25 | * @author: renchao | ||
| 26 | */ | ||
| 23 | generateDic ({ commit }) { | 27 | generateDic ({ commit }) { |
| 24 | return new Promise(async (resolve) => { | 28 | return new Promise(async (resolve) => { |
| 25 | let { result: res } = await getAllDict() | 29 | let { result: res } = await getAllDict() |
| ... | @@ -27,6 +31,10 @@ const actions = { | ... | @@ -27,6 +31,10 @@ const actions = { |
| 27 | resolve(true) | 31 | resolve(true) |
| 28 | }) | 32 | }) |
| 29 | }, | 33 | }, |
| 34 | /** | ||
| 35 | * @description: resetdict | ||
| 36 | * @author: renchao | ||
| 37 | */ | ||
| 30 | resetdict ({ commit }) { | 38 | resetdict ({ commit }) { |
| 31 | commit('RESET_DICT') | 39 | commit('RESET_DICT') |
| 32 | } | 40 | } | ... | ... |
| ... | @@ -3,6 +3,10 @@ import { MessageBox } from 'element-ui'; | ... | @@ -3,6 +3,10 @@ import { MessageBox } from 'element-ui'; |
| 3 | var CreatedOKLodopObject, CLodopIsLocal, CLodopJsState; | 3 | var CreatedOKLodopObject, CLodopIsLocal, CLodopJsState; |
| 4 | 4 | ||
| 5 | //==判断是否需要CLodop(那些不支持插件的浏览器):== | 5 | //==判断是否需要CLodop(那些不支持插件的浏览器):== |
| 6 | /** | ||
| 7 | * @description: 判断是否需要CLodop | ||
| 8 | * @author: renchao | ||
| 9 | */ | ||
| 6 | function needCLodop () { | 10 | function needCLodop () { |
| 7 | try { | 11 | try { |
| 8 | var ua = navigator.userAgent; | 12 | var ua = navigator.userAgent; |
| ... | @@ -45,6 +49,10 @@ function needCLodop () { | ... | @@ -45,6 +49,10 @@ function needCLodop () { |
| 45 | } | 49 | } |
| 46 | 50 | ||
| 47 | //==加载引用CLodop的主JS,用双端口8000和18000(以防其中一个被占):== | 51 | //==加载引用CLodop的主JS,用双端口8000和18000(以防其中一个被占):== |
| 52 | /** | ||
| 53 | * @description: 加载引用CLodop的主JS,用双端口8000和18000 | ||
| 54 | * @author: renchao | ||
| 55 | */ | ||
| 48 | function loadCLodop () { | 56 | function loadCLodop () { |
| 49 | if (CLodopJsState == "loading" || CLodopJsState == "complete") return; | 57 | if (CLodopJsState == "loading" || CLodopJsState == "complete") return; |
| 50 | CLodopJsState = "loading"; | 58 | CLodopJsState = "loading"; |
| ... | @@ -63,7 +71,12 @@ function loadCLodop () { | ... | @@ -63,7 +71,12 @@ function loadCLodop () { |
| 63 | if (needCLodop()) { loadCLodop(); }//加载 | 71 | if (needCLodop()) { loadCLodop(); }//加载 |
| 64 | 72 | ||
| 65 | //==获取LODOP对象主过程,判断是否安装、需否升级:== | 73 | //==获取LODOP对象主过程,判断是否安装、需否升级:== |
| 66 | 74 | /** | |
| 75 | * @description: 获取LODOP对象主过程,判断是否安装、需否升级 | ||
| 76 | * @param {*} oOBJECT | ||
| 77 | * @param {*} oEMBED | ||
| 78 | * @author: renchao | ||
| 79 | */ | ||
| 67 | export function getLodop (oOBJECT, oEMBED) { | 80 | export function getLodop (oOBJECT, oEMBED) { |
| 68 | var strHtmInstall = "<br><font color='#FF00FF'>打印控件未安装!点击这里<a href='install_lodop32.zip' target='_self'>执行安装</a>,安装后请刷新页面或重新进入。</font>"; | 81 | var strHtmInstall = "<br><font color='#FF00FF'>打印控件未安装!点击这里<a href='install_lodop32.zip' target='_self'>执行安装</a>,安装后请刷新页面或重新进入。</font>"; |
| 69 | var strHtmUpdate = "<br><font color='#FF00FF'>打印控件需要升级!点击这里<a href='install_lodop32.zip' target='_self'>执行升级</a>,升级后请重新进入。</font>"; | 82 | var strHtmUpdate = "<br><font color='#FF00FF'>打印控件需要升级!点击这里<a href='install_lodop32.zip' target='_self'>执行升级</a>,升级后请重新进入。</font>"; |
| ... | @@ -95,7 +108,7 @@ export function getLodop (oOBJECT, oEMBED) { | ... | @@ -95,7 +108,7 @@ export function getLodop (oOBJECT, oEMBED) { |
| 95 | }).then(() => { | 108 | }).then(() => { |
| 96 | window.open('http://192.168.2.38:9000/bdcdj/20221212/b8702920-987d-4685-aff4-ade7a3a2b868/CLodop_Setup_for_Win32NT.zip') | 109 | window.open('http://192.168.2.38:9000/bdcdj/20221212/b8702920-987d-4685-aff4-ade7a3a2b868/CLodop_Setup_for_Win32NT.zip') |
| 97 | }).catch(() => { | 110 | }).catch(() => { |
| 98 | 111 | ||
| 99 | }); | 112 | }); |
| 100 | //document.body.innerHTML = strCLodopInstall_1 + (CLodopIsLocal ? strCLodopInstall_2 : "") + strCLodopInstall_3 + document.body.innerHTML; | 113 | //document.body.innerHTML = strCLodopInstall_1 + (CLodopIsLocal ? strCLodopInstall_2 : "") + strCLodopInstall_3 + document.body.innerHTML; |
| 101 | return; | 114 | return; |
| ... | @@ -108,7 +121,7 @@ export function getLodop (oOBJECT, oEMBED) { | ... | @@ -108,7 +121,7 @@ export function getLodop (oOBJECT, oEMBED) { |
| 108 | }).then(() => { | 121 | }).then(() => { |
| 109 | window.open('http://192.168.2.38:9000/bdcdj/20221212/cc00035b-4240-439a-b6a3-302cab44cb1e/install_lodop32.zip') | 122 | window.open('http://192.168.2.38:9000/bdcdj/20221212/cc00035b-4240-439a-b6a3-302cab44cb1e/install_lodop32.zip') |
| 110 | }).catch(() => { | 123 | }).catch(() => { |
| 111 | 124 | ||
| 112 | }); | 125 | }); |
| 113 | //document.body.innerHTML = strCLodopUpdate + document.body.innerHTML; | 126 | //document.body.innerHTML = strCLodopUpdate + document.body.innerHTML; |
| 114 | } | 127 | } |
| ... | @@ -147,7 +160,7 @@ export function getLodop (oOBJECT, oEMBED) { | ... | @@ -147,7 +160,7 @@ export function getLodop (oOBJECT, oEMBED) { |
| 147 | }).then(() => { | 160 | }).then(() => { |
| 148 | window.open('http://192.168.2.38:9000/bdcdj/20221212/b8702920-987d-4685-aff4-ade7a3a2b868/CLodop_Setup_for_Win32NT.zip') | 161 | window.open('http://192.168.2.38:9000/bdcdj/20221212/b8702920-987d-4685-aff4-ade7a3a2b868/CLodop_Setup_for_Win32NT.zip') |
| 149 | }).catch(() => { | 162 | }).catch(() => { |
| 150 | 163 | ||
| 151 | }); | 164 | }); |
| 152 | // if (ua.indexOf('Chrome') >= 0) | 165 | // if (ua.indexOf('Chrome') >= 0) |
| 153 | // document.body.innerHTML = strHtmChrome + document.body.innerHTML; | 166 | // document.body.innerHTML = strHtmChrome + document.body.innerHTML; |
| ... | @@ -166,7 +179,7 @@ export function getLodop (oOBJECT, oEMBED) { | ... | @@ -166,7 +179,7 @@ export function getLodop (oOBJECT, oEMBED) { |
| 166 | }).then(() => { | 179 | }).then(() => { |
| 167 | window.open('http://192.168.2.38:9000/bdcdj/20221212/cc00035b-4240-439a-b6a3-302cab44cb1e/install_lodop32.zip') | 180 | window.open('http://192.168.2.38:9000/bdcdj/20221212/cc00035b-4240-439a-b6a3-302cab44cb1e/install_lodop32.zip') |
| 168 | }).catch(() => { | 181 | }).catch(() => { |
| 169 | 182 | ||
| 170 | }); | 183 | }); |
| 171 | //document.body.innerHTML = (is64IE ? strHtm64_Update : strHtmUpdate) + document.body.innerHTML; | 184 | //document.body.innerHTML = (is64IE ? strHtm64_Update : strHtmUpdate) + document.body.innerHTML; |
| 172 | } | 185 | } | ... | ... |
| ... | @@ -6,7 +6,7 @@ | ... | @@ -6,7 +6,7 @@ |
| 6 | 6 | ||
| 7 | import Layout from '@/layout' | 7 | import Layout from '@/layout' |
| 8 | /** | 8 | /** |
| 9 | * @description: | 9 | * @description: |
| 10 | * @param {*} routers | 10 | * @param {*} routers |
| 11 | * @author: renchao | 11 | * @author: renchao |
| 12 | */ | 12 | */ |
| ... | @@ -30,6 +30,11 @@ export default function filterAsyncRouter (routers) { | ... | @@ -30,6 +30,11 @@ export default function filterAsyncRouter (routers) { |
| 30 | }) | 30 | }) |
| 31 | return routers | 31 | return routers |
| 32 | } | 32 | } |
| 33 | /** | ||
| 34 | * @description: loadView | ||
| 35 | * @param {*} view | ||
| 36 | * @author: renchao | ||
| 37 | */ | ||
| 33 | function loadView (view) { | 38 | function loadView (view) { |
| 34 | return r => require.ensure([], () => r(require(`@/views${view}.vue`))) | 39 | return r => require.ensure([], () => r(require(`@/views${view}.vue`))) |
| 35 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 40 | } | ... | ... |
| 1 | /* | 1 | /* |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-07-03 08:59:06 | 4 | * @LastEditTime: 2023-07-03 08:59:06 |
| 5 | */ | 5 | */ |
| 6 | import store from '@/store' | 6 | import store from '@/store' |
| 7 | |||
| 8 | /** | ||
| 9 | * @description: getSjlx | ||
| 10 | * @param {*} level | ||
| 11 | * @author: renchao | ||
| 12 | */ | ||
| 7 | export function getSjlx (level) { | 13 | export function getSjlx (level) { |
| 8 | const resultMap = { | 14 | const resultMap = { |
| 9 | 1: '系统数据', | 15 | 1: '系统数据', |
| ... | @@ -13,6 +19,12 @@ export function getSjlx (level) { | ... | @@ -13,6 +19,12 @@ export function getSjlx (level) { |
| 13 | return resultMap[level] || resultMap.default; | 19 | return resultMap[level] || resultMap.default; |
| 14 | } | 20 | } |
| 15 | 21 | ||
| 22 | /** | ||
| 23 | * @description: getDictLeabel | ||
| 24 | * @param {*} level | ||
| 25 | * @param {*} code | ||
| 26 | * @author: renchao | ||
| 27 | */ | ||
| 16 | export function getDictLeabel (level, code) { | 28 | export function getDictLeabel (level, code) { |
| 17 | const resultMap = store.getters.dictData[code] | 29 | const resultMap = store.getters.dictData[code] |
| 18 | const desiredObject = resultMap.find(obj => obj.dcode === level); | 30 | const desiredObject = resultMap.find(obj => obj.dcode === level); |
| ... | @@ -23,4 +35,4 @@ export function getDictLeabel (level, code) { | ... | @@ -23,4 +35,4 @@ export function getDictLeabel (level, code) { |
| 23 | } else { | 35 | } else { |
| 24 | return '' | 36 | return '' |
| 25 | } | 37 | } |
| 26 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 38 | } | ... | ... |
| 1 | /* | 1 | /* |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-07-17 13:31:39 | 4 | * @LastEditTime: 2023-07-17 13:31:39 |
| 5 | */ | 5 | */ |
| 6 | import store from '@/store' | 6 | import store from '@/store' |
| 7 | // table 内部过滤器 由于过滤器只能在模板中使用 所以 就有了 jsx内部方法过滤器 | 7 | // table 内部过滤器 由于过滤器只能在模板中使用 所以 就有了 jsx内部方法过滤器 |
| 8 | export default class filter { | 8 | export default class filter { |
| 9 | /** | ||
| 10 | * @description: selected | ||
| 11 | * @param {*} row | ||
| 12 | * @author: renchao | ||
| 13 | */ | ||
| 9 | selected (row) { | 14 | selected (row) { |
| 10 | // if (row.sfbl == 0) { // 正在办理不能申请 | 15 | // if (row.sfbl == 0) { // 正在办理不能申请 |
| 11 | // return false | 16 | // return false |
| 12 | // } else { | 17 | // } else { |
| 13 | // return true //可选择 | 18 | // return true //可选择 |
| 14 | // } | 19 | // } |
| 15 | return true | 20 | return true |
| 16 | } | 21 | } |
| 17 | // 业务来源 | 22 | // 业务来源 |
| 23 | /** | ||
| 24 | * @description: 业务来源 | ||
| 25 | * @param {*} val | ||
| 26 | * @author: renchao | ||
| 27 | */ | ||
| 18 | busSource (val) { | 28 | busSource (val) { |
| 19 | let status = { 1: '办事大厅', 2: '微信小程序' } | 29 | let status = { 1: '办事大厅', 2: '微信小程序' } |
| 20 | return status[val] | 30 | return status[val] |
| 21 | } | 31 | } |
| 22 | 32 | ||
| 23 | //申请分类(1:正常申请,2:一并申请,3:补录申请) | 33 | //申请分类(1:正常申请,2:一并申请,3:补录申请) |
| 34 | /** | ||
| 35 | * @description: 申请分类 | ||
| 36 | * @param {*} val | ||
| 37 | * @author: renchao | ||
| 38 | */ | ||
| 24 | sqfls (val) { | 39 | sqfls (val) { |
| 25 | let status = { 1: '正常申请', 2: '一并申请', 3: '补录申请' } | 40 | let status = { 1: '正常申请', 2: '一并申请', 3: '补录申请' } |
| 26 | return status[val] | 41 | return status[val] |
| 27 | } | 42 | } |
| 28 | // 字典 | 43 | // 字典 |
| 44 | /** | ||
| 45 | * @description: 字典 | ||
| 46 | * @param {*} val | ||
| 47 | * @param {*} code | ||
| 48 | * @author: renchao | ||
| 49 | */ | ||
| 29 | dicStatus (val, code) { | 50 | dicStatus (val, code) { |
| 30 | let data = store.getters.dictData[code], | 51 | let data = store.getters.dictData[code], |
| 31 | name = '暂无' | 52 | name = '暂无' |
| ... | @@ -38,12 +59,27 @@ export default class filter { | ... | @@ -38,12 +59,27 @@ export default class filter { |
| 38 | return name | 59 | return name |
| 39 | } | 60 | } |
| 40 | } | 61 | } |
| 62 | /** | ||
| 63 | * @description: filterHtml | ||
| 64 | * @param {*} content | ||
| 65 | * @author: renchao | ||
| 66 | */ | ||
| 41 | filterHtml (content) { | 67 | filterHtml (content) { |
| 42 | return content.replace(/<[^>]+>/g, ''); | 68 | return content.replace(/<[^>]+>/g, ''); |
| 43 | } | 69 | } |
| 70 | /** | ||
| 71 | * @description: getDictData | ||
| 72 | * @param {*} val | ||
| 73 | * @author: renchao | ||
| 74 | */ | ||
| 44 | getDictData (val) { | 75 | getDictData (val) { |
| 45 | return store.getters.dictData[val] | 76 | return store.getters.dictData[val] |
| 46 | } | 77 | } |
| 78 | /** | ||
| 79 | * @description: yWstatus | ||
| 80 | * @param {*} row | ||
| 81 | * @author: renchao | ||
| 82 | */ | ||
| 47 | yWstatus (row) { | 83 | yWstatus (row) { |
| 48 | let text = ""; | 84 | let text = ""; |
| 49 | let keys = 0; | 85 | let keys = 0; |
| ... | @@ -74,4 +110,4 @@ export default class filter { | ... | @@ -74,4 +110,4 @@ export default class filter { |
| 74 | 110 | ||
| 75 | return text; | 111 | return text; |
| 76 | } | 112 | } |
| 77 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 113 | } | ... | ... |
| ... | @@ -6,6 +6,11 @@ | ... | @@ -6,6 +6,11 @@ |
| 6 | import Vue from 'vue' | 6 | import Vue from 'vue' |
| 7 | const title = Vue.prototype.BASE_API.TITLE | 7 | const title = Vue.prototype.BASE_API.TITLE |
| 8 | 8 | ||
| 9 | /** | ||
| 10 | * @description: getPageTitle | ||
| 11 | * @param {*} pageTitle | ||
| 12 | * @author: renchao | ||
| 13 | */ | ||
| 9 | export default function getPageTitle (pageTitle) { | 14 | export default function getPageTitle (pageTitle) { |
| 10 | if (pageTitle) { | 15 | if (pageTitle) { |
| 11 | return `${pageTitle} - ${title}` | 16 | return `${pageTitle} - ${title}` | ... | ... |
| ... | @@ -2,7 +2,18 @@ import {loadModules} from 'esri-loader' | ... | @@ -2,7 +2,18 @@ import {loadModules} from 'esri-loader' |
| 2 | 2 | ||
| 3 | export default { | 3 | export default { |
| 4 | methods: { | 4 | methods: { |
| 5 | 5 | /** | |
| 6 | * @description: identify | ||
| 7 | * @param {*} url | ||
| 8 | * @param {*} layerIds | ||
| 9 | * @param {*} geometry | ||
| 10 | * @param {*} callBackFunction | ||
| 11 | * @param {*} returnGeometry | ||
| 12 | * @param {*} layerOption | ||
| 13 | * @param {*} tolerance | ||
| 14 | * @param {*} mapExtent | ||
| 15 | * @author: renchao | ||
| 16 | */ | ||
| 6 | identify(url,layerIds,geometry,callBackFunction,returnGeometry,layerOption,tolerance,mapExtent){ | 17 | identify(url,layerIds,geometry,callBackFunction,returnGeometry,layerOption,tolerance,mapExtent){ |
| 7 | var self = this; | 18 | var self = this; |
| 8 | loadModules([ | 19 | loadModules([ |
| ... | @@ -19,7 +30,7 @@ export default { | ... | @@ -19,7 +30,7 @@ export default { |
| 19 | identifyParameters.geometry = geometry; | 30 | identifyParameters.geometry = geometry; |
| 20 | if(layerIds){ | 31 | if(layerIds){ |
| 21 | identifyParameters.layerIds = layerIds; | 32 | identifyParameters.layerIds = layerIds; |
| 22 | } | 33 | } |
| 23 | identifyParameters.layerOption = layerOption ? layerOption : "all"; | 34 | identifyParameters.layerOption = layerOption ? layerOption : "all"; |
| 24 | identifyParameters.tolerance = tolerance ? tolerance : 3; | 35 | identifyParameters.tolerance = tolerance ? tolerance : 3; |
| 25 | identifyParameters.mapExtent = mapExtent ? mapExtent : geometry.extent; | 36 | identifyParameters.mapExtent = mapExtent ? mapExtent : geometry.extent; |
| ... | @@ -34,7 +45,7 @@ export default { | ... | @@ -34,7 +45,7 @@ export default { |
| 34 | }).catch(err => { | 45 | }).catch(err => { |
| 35 | throw(err); | 46 | throw(err); |
| 36 | }); | 47 | }); |
| 37 | 48 | ||
| 38 | } | 49 | } |
| 39 | } | 50 | } |
| 40 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 51 | } | ... | ... |
| 1 | import {maps} from '@/libs/map/mapUtils' | 1 | import {maps} from '@/libs/map/mapUtils' |
| 2 | import {loadModules} from 'esri-loader' | 2 | import {loadModules} from 'esri-loader' |
| 3 | 3 | ||
| 4 | export default { | 4 | export default { |
| ... | @@ -10,6 +10,14 @@ export default { | ... | @@ -10,6 +10,14 @@ export default { |
| 10 | } | 10 | } |
| 11 | }, | 11 | }, |
| 12 | methods: { | 12 | methods: { |
| 13 | /** | ||
| 14 | * @description: initDraw | ||
| 15 | * @param {*} type | ||
| 16 | * @param {*} viewId | ||
| 17 | * @param {*} creationMode | ||
| 18 | * @param {*} callBackFunction | ||
| 19 | * @author: renchao | ||
| 20 | */ | ||
| 13 | initDraw(type,viewId,creationMode,callBackFunction){ | 21 | initDraw(type,viewId,creationMode,callBackFunction){ |
| 14 | var self = this; | 22 | var self = this; |
| 15 | loadModules([ | 23 | loadModules([ |
| ... | @@ -46,17 +54,21 @@ export default { | ... | @@ -46,17 +54,21 @@ export default { |
| 46 | if(callBackFunction && typeof callBackFunction == 'function'){ | 54 | if(callBackFunction && typeof callBackFunction == 'function'){ |
| 47 | callBackFunction(event.graphic.geometry); | 55 | callBackFunction(event.graphic.geometry); |
| 48 | } | 56 | } |
| 49 | 57 | ||
| 50 | } | 58 | } |
| 51 | }) | 59 | }) |
| 52 | }).catch(err=>{ | 60 | }).catch(err=>{ |
| 53 | throw(err); | 61 | throw(err); |
| 54 | }); | 62 | }); |
| 55 | }, | 63 | }, |
| 64 | /** | ||
| 65 | * @description: destroyeDraw | ||
| 66 | * @author: renchao | ||
| 67 | */ | ||
| 56 | destroyeDraw() { | 68 | destroyeDraw() { |
| 57 | if(this.drawAction){ | 69 | if(this.drawAction){ |
| 58 | this.drawAction.cancel(); | 70 | this.drawAction.cancel(); |
| 59 | } | 71 | } |
| 60 | } | 72 | } |
| 61 | } | 73 | } |
| 62 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 74 | } | ... | ... |
| ... | @@ -5,6 +5,13 @@ import {loadModules} from "esri-loader" | ... | @@ -5,6 +5,13 @@ import {loadModules} from "esri-loader" |
| 5 | 5 | ||
| 6 | export default { | 6 | export default { |
| 7 | methods:{ | 7 | methods:{ |
| 8 | /** | ||
| 9 | * @description: addGraphic | ||
| 10 | * @param {*} url | ||
| 11 | * @param {*} graphic | ||
| 12 | * @param {*} callBackFunction | ||
| 13 | * @author: renchao | ||
| 14 | */ | ||
| 8 | addGraphic(url,graphic,callBackFunction){ | 15 | addGraphic(url,graphic,callBackFunction){ |
| 9 | loadModules([ | 16 | loadModules([ |
| 10 | "esri/layers/FeatureLayer", | 17 | "esri/layers/FeatureLayer", |
| ... | @@ -57,6 +64,13 @@ export default { | ... | @@ -57,6 +64,13 @@ export default { |
| 57 | throw (err); | 64 | throw (err); |
| 58 | }) | 65 | }) |
| 59 | }, | 66 | }, |
| 67 | /** | ||
| 68 | * @description: updateGraphic | ||
| 69 | * @param {*} url | ||
| 70 | * @param {*} graphic | ||
| 71 | * @param {*} callBackFunction | ||
| 72 | * @author: renchao | ||
| 73 | */ | ||
| 60 | updateGraphic(url,graphic,callBackFunction){ | 74 | updateGraphic(url,graphic,callBackFunction){ |
| 61 | loadModules([ | 75 | loadModules([ |
| 62 | "esri/layers/FeatureLayer", | 76 | "esri/layers/FeatureLayer", |
| ... | @@ -107,6 +121,13 @@ export default { | ... | @@ -107,6 +121,13 @@ export default { |
| 107 | throw (err); | 121 | throw (err); |
| 108 | }) | 122 | }) |
| 109 | }, | 123 | }, |
| 124 | /** | ||
| 125 | * @description: delGraphic | ||
| 126 | * @param {*} url | ||
| 127 | * @param {*} graphic | ||
| 128 | * @param {*} callBackFunction | ||
| 129 | * @author: renchao | ||
| 130 | */ | ||
| 110 | delGraphic(url,graphic,callBackFunction){ | 131 | delGraphic(url,graphic,callBackFunction){ |
| 111 | loadModules([ | 132 | loadModules([ |
| 112 | "esri/layers/FeatureLayer", | 133 | "esri/layers/FeatureLayer", |
| ... | @@ -160,4 +181,4 @@ export default { | ... | @@ -160,4 +181,4 @@ export default { |
| 160 | }) | 181 | }) |
| 161 | } | 182 | } |
| 162 | } | 183 | } |
| 163 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 184 | } | ... | ... |
| ... | @@ -3,6 +3,16 @@ import {loadModules} from 'esri-loader' | ... | @@ -3,6 +3,16 @@ import {loadModules} from 'esri-loader' |
| 3 | export default { | 3 | export default { |
| 4 | 4 | ||
| 5 | methods:{ | 5 | methods:{ |
| 6 | /** | ||
| 7 | * @description: findByPro | ||
| 8 | * @param {*} url | ||
| 9 | * @param {*} layerIds | ||
| 10 | * @param {*} searchFields | ||
| 11 | * @param {*} searchText | ||
| 12 | * @param {*} returnGeometry | ||
| 13 | * @param {*} callBackFunction | ||
| 14 | * @author: renchao | ||
| 15 | */ | ||
| 6 | findByPro(url,layerIds,searchFields,searchText,returnGeometry,callBackFunction){ | 16 | findByPro(url,layerIds,searchFields,searchText,returnGeometry,callBackFunction){ |
| 7 | loadModules([ | 17 | loadModules([ |
| 8 | "esri/tasks/FindTask", | 18 | "esri/tasks/FindTask", |
| ... | @@ -32,4 +42,4 @@ export default { | ... | @@ -32,4 +42,4 @@ export default { |
| 32 | } | 42 | } |
| 33 | 43 | ||
| 34 | } | 44 | } |
| 35 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 45 | } | ... | ... |
| ... | @@ -9,6 +9,12 @@ | ... | @@ -9,6 +9,12 @@ |
| 9 | } | 9 | } |
| 10 | }, | 10 | }, |
| 11 | methods: { | 11 | methods: { |
| 12 | /** | ||
| 13 | * @description: measure | ||
| 14 | * @param {*} viewId | ||
| 15 | * @param {*} type | ||
| 16 | * @author: renchao | ||
| 17 | */ | ||
| 12 | measure(viewId,type){ | 18 | measure(viewId,type){ |
| 13 | var view = maps[viewId]; | 19 | var view = maps[viewId]; |
| 14 | var self = this; | 20 | var self = this; |
| ... | @@ -35,8 +41,8 @@ | ... | @@ -35,8 +41,8 @@ |
| 35 | view: view | 41 | view: view |
| 36 | }); | 42 | }); |
| 37 | } | 43 | } |
| 38 | 44 | ||
| 39 | 45 | ||
| 40 | // skip the initial 'new measurement' button | 46 | // skip the initial 'new measurement' button |
| 41 | self.areaActive.viewModel.start(); | 47 | self.areaActive.viewModel.start(); |
| 42 | break; | 48 | break; |
| ... | @@ -59,4 +65,4 @@ | ... | @@ -59,4 +65,4 @@ |
| 59 | } | 65 | } |
| 60 | 66 | ||
| 61 | } | 67 | } |
| 62 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 68 | } | ... | ... |
| ... | @@ -4,6 +4,17 @@ import {loadModules} from 'esri-loader' | ... | @@ -4,6 +4,17 @@ import {loadModules} from 'esri-loader' |
| 4 | export default{ | 4 | export default{ |
| 5 | 5 | ||
| 6 | methods: { | 6 | methods: { |
| 7 | /** | ||
| 8 | * @description: queryByWhere | ||
| 9 | * @param {*} url | ||
| 10 | * @param {*} queryWhere | ||
| 11 | * @param {*} geometry | ||
| 12 | * @param {*} returnGeometry | ||
| 13 | * @param {*} outFields | ||
| 14 | * @param {*} outSpatialReference | ||
| 15 | * @param {*} callBackFunction | ||
| 16 | * @author: renchao | ||
| 17 | */ | ||
| 7 | queryByWhere(url,queryWhere,geometry,returnGeometry,outFields ,outSpatialReference ,callBackFunction){ | 18 | queryByWhere(url,queryWhere,geometry,returnGeometry,outFields ,outSpatialReference ,callBackFunction){ |
| 8 | var self = this; | 19 | var self = this; |
| 9 | loadModules([ | 20 | loadModules([ |
| ... | @@ -55,6 +66,11 @@ export default{ | ... | @@ -55,6 +66,11 @@ export default{ |
| 55 | throw(err); | 66 | throw(err); |
| 56 | }) | 67 | }) |
| 57 | }, | 68 | }, |
| 69 | /** | ||
| 70 | * @description: parseObj2Arr | ||
| 71 | * @param {*} object | ||
| 72 | * @author: renchao | ||
| 73 | */ | ||
| 58 | parseObj2Arr(object){ | 74 | parseObj2Arr(object){ |
| 59 | var arr = []; | 75 | var arr = []; |
| 60 | for(var key in object){ | 76 | for(var key in object){ |
| ... | @@ -64,6 +80,6 @@ export default{ | ... | @@ -64,6 +80,6 @@ export default{ |
| 64 | arr.push(obj); | 80 | arr.push(obj); |
| 65 | } | 81 | } |
| 66 | return arr; | 82 | return arr; |
| 67 | } | 83 | } |
| 68 | }, | 84 | }, |
| 69 | } | 85 | } | ... | ... |
| ... | @@ -4,8 +4,14 @@ export default{ | ... | @@ -4,8 +4,14 @@ export default{ |
| 4 | 4 | ||
| 5 | methods: { | 5 | methods: { |
| 6 | 6 | ||
| 7 | /** | ||
| 8 | * @description: readShpByFile | ||
| 9 | * @param {*} file | ||
| 10 | * @param {*} callBackFunction | ||
| 11 | * @author: renchao | ||
| 12 | */ | ||
| 7 | readShpByFile(file,callBackFunction){ | 13 | readShpByFile(file,callBackFunction){ |
| 8 | var reader = new FileReader(); | 14 | var reader = new FileReader(); |
| 9 | reader.readAsBinaryString(file); | 15 | reader.readAsBinaryString(file); |
| 10 | reader.οnlοad=function(){ | 16 | reader.οnlοad=function(){ |
| 11 | var fileData = this.result ; //fileData就是读取到的文件的二进制数据 | 17 | var fileData = this.result ; //fileData就是读取到的文件的二进制数据 |
| ... | @@ -20,6 +26,12 @@ export default{ | ... | @@ -20,6 +26,12 @@ export default{ |
| 20 | .catch(error => console.error(error.stack)); | 26 | .catch(error => console.error(error.stack)); |
| 21 | } | 27 | } |
| 22 | }, | 28 | }, |
| 29 | /** | ||
| 30 | * @description: readShpByFile | ||
| 31 | * @param {*} url | ||
| 32 | * @param {*} callBackFunction | ||
| 33 | * @author: renchao | ||
| 34 | */ | ||
| 23 | readShpByUrl(url,callBackFunction){ | 35 | readShpByUrl(url,callBackFunction){ |
| 24 | open(url).then(source => source.read() | 36 | open(url).then(source => source.read() |
| 25 | .then(function log(result) { | 37 | .then(function log(result) { |
| ... | @@ -32,8 +44,14 @@ export default{ | ... | @@ -32,8 +44,14 @@ export default{ |
| 32 | .catch(error => console.error(error.stack)); | 44 | .catch(error => console.error(error.stack)); |
| 33 | } | 45 | } |
| 34 | }, | 46 | }, |
| 47 | /** | ||
| 48 | * @description: readShpByZip | ||
| 49 | * @param {*} zipUrl | ||
| 50 | * @param {*} callBackFunction | ||
| 51 | * @author: renchao | ||
| 52 | */ | ||
| 35 | readShpByZip(zipUrl,callBackFunction){ | 53 | readShpByZip(zipUrl,callBackFunction){ |
| 36 | 54 | ||
| 37 | } | 55 | } |
| 38 | 56 | ||
| 39 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 57 | } | ... | ... |
| ... | @@ -21,12 +21,21 @@ export default { | ... | @@ -21,12 +21,21 @@ export default { |
| 21 | this.handleSearch() | 21 | this.handleSearch() |
| 22 | }, | 22 | }, |
| 23 | methods: { | 23 | methods: { |
| 24 | /** | ||
| 25 | * @description: handkeyCode | ||
| 26 | * @param {*} e | ||
| 27 | * @author: renchao | ||
| 28 | */ | ||
| 24 | handkeyCode(e) { | 29 | handkeyCode(e) { |
| 25 | if(e.keyCode === 13){ | 30 | if(e.keyCode === 13){ |
| 26 | console.log("安"); | 31 | console.log("安"); |
| 27 | this.handleSearch() | 32 | this.handleSearch() |
| 28 | } | 33 | } |
| 29 | }, | 34 | }, |
| 35 | /** | ||
| 36 | * @description: handleSearch | ||
| 37 | * @author: renchao | ||
| 38 | */ | ||
| 30 | handleSearch(){ | 39 | handleSearch(){ |
| 31 | this.pageData.currentPage = 1 | 40 | this.pageData.currentPage = 1 |
| 32 | if (this.fetchData) { | 41 | if (this.fetchData) { |
| ... | @@ -36,22 +45,41 @@ export default { | ... | @@ -36,22 +45,41 @@ export default { |
| 36 | this.queryClick() | 45 | this.queryClick() |
| 37 | } | 46 | } |
| 38 | }, | 47 | }, |
| 48 | /** | ||
| 49 | * @description: handleSizeChange | ||
| 50 | * @param {*} val | ||
| 51 | * @author: renchao | ||
| 52 | */ | ||
| 39 | handleSizeChange (val) { | 53 | handleSizeChange (val) { |
| 40 | this.pageData.currentPage = 1 | 54 | this.pageData.currentPage = 1 |
| 41 | this.pageData.pageSize = val | 55 | this.pageData.pageSize = val |
| 42 | this.queryClick() | 56 | this.queryClick() |
| 43 | }, | 57 | }, |
| 58 | /** | ||
| 59 | * @description: handleCurrentChange | ||
| 60 | * @param {*} val | ||
| 61 | * @author: renchao | ||
| 62 | */ | ||
| 44 | handleCurrentChange (val) { | 63 | handleCurrentChange (val) { |
| 45 | this.pageData.currentPage = val | 64 | this.pageData.currentPage = val |
| 46 | if (this.queryClick) { | 65 | if (this.queryClick) { |
| 47 | this.queryClick() | 66 | this.queryClick() |
| 48 | } | 67 | } |
| 49 | }, | 68 | }, |
| 69 | /** | ||
| 70 | * @description: handleDel | ||
| 71 | * @author: renchao | ||
| 72 | */ | ||
| 50 | handleDel () { | 73 | handleDel () { |
| 51 | let deleteAfterPage = Math.ceil((this.tableData.total - 1) / this.pageData.pageSize) | 74 | let deleteAfterPage = Math.ceil((this.tableData.total - 1) / this.pageData.pageSize) |
| 52 | let currentPage = this.pageData.currentPage > deleteAfterPage ? deleteAfterPage : this.pageData.currentPage | 75 | let currentPage = this.pageData.currentPage > deleteAfterPage ? deleteAfterPage : this.pageData.currentPage |
| 53 | this.pageData.currentPage = currentPage < 1 ? 1 : currentPage | 76 | this.pageData.currentPage = currentPage < 1 ? 1 : currentPage |
| 54 | }, | 77 | }, |
| 78 | /** | ||
| 79 | * @description: resetForm | ||
| 80 | * @param {*} isYwbl | ||
| 81 | * @author: renchao | ||
| 82 | */ | ||
| 55 | resetForm(isYwbl){ | 83 | resetForm(isYwbl){ |
| 56 | if (isYwbl) { | 84 | if (isYwbl) { |
| 57 | this.queryForm = defaultParameters.defaultParameters(); | 85 | this.queryForm = defaultParameters.defaultParameters(); | ... | ... |
| ... | @@ -2,6 +2,13 @@ import Vue from 'vue' | ... | @@ -2,6 +2,13 @@ import Vue from 'vue' |
| 2 | import axios from 'axios' | 2 | import axios from 'axios' |
| 3 | import request from '@/utils/request'; | 3 | import request from '@/utils/request'; |
| 4 | import { Message } from "element-ui"; | 4 | import { Message } from "element-ui"; |
| 5 | /** | ||
| 6 | * @description: removeTreeListItem | ||
| 7 | * @param {*} treeList | ||
| 8 | * @param {*} dictId | ||
| 9 | * @param {*} idName | ||
| 10 | * @author: renchao | ||
| 11 | */ | ||
| 5 | export function removeTreeListItem (treeList, dictId, idName = 'bsmDict') { | 12 | export function removeTreeListItem (treeList, dictId, idName = 'bsmDict') { |
| 6 | if (!treeList || !treeList.length) { | 13 | if (!treeList || !treeList.length) { |
| 7 | return | 14 | return |
| ... | @@ -15,6 +22,12 @@ export function removeTreeListItem (treeList, dictId, idName = 'bsmDict') { | ... | @@ -15,6 +22,12 @@ export function removeTreeListItem (treeList, dictId, idName = 'bsmDict') { |
| 15 | } | 22 | } |
| 16 | } | 23 | } |
| 17 | // 创造id | 24 | // 创造id |
| 25 | /** | ||
| 26 | * @description: 创造id | ||
| 27 | * @param {*} len | ||
| 28 | * @param {*} radix | ||
| 29 | * @author: renchao | ||
| 30 | */ | ||
| 18 | export function getUuid (len, radix) { | 31 | export function getUuid (len, radix) { |
| 19 | var chars = "0123456789abcdefghijklmnopqrstuvwxyz".split( | 32 | var chars = "0123456789abcdefghijklmnopqrstuvwxyz".split( |
| 20 | "" | 33 | "" |
| ... | @@ -37,6 +50,11 @@ export function getUuid (len, radix) { | ... | @@ -37,6 +50,11 @@ export function getUuid (len, radix) { |
| 37 | } | 50 | } |
| 38 | return uuid.join(""); | 51 | return uuid.join(""); |
| 39 | } | 52 | } |
| 53 | /** | ||
| 54 | * @description: judgeSort | ||
| 55 | * @param {*} arr | ||
| 56 | * @author: renchao | ||
| 57 | */ | ||
| 40 | export function judgeSort (arr) { | 58 | export function judgeSort (arr) { |
| 41 | if (arr.length) { | 59 | if (arr.length) { |
| 42 | for (let i in arr) { | 60 | for (let i in arr) { |
| ... | @@ -50,6 +68,13 @@ export function judgeSort (arr) { | ... | @@ -50,6 +68,13 @@ export function judgeSort (arr) { |
| 50 | return arr | 68 | return arr |
| 51 | } | 69 | } |
| 52 | // 上下移动 | 70 | // 上下移动 |
| 71 | /** | ||
| 72 | * @description: 上下移动 | ||
| 73 | * @param {*} bsmDict | ||
| 74 | * @param {*} operate | ||
| 75 | * @param {*} data | ||
| 76 | * @author: renchao | ||
| 77 | */ | ||
| 53 | export function realMove (bsmDict, operate, data) { | 78 | export function realMove (bsmDict, operate, data) { |
| 54 | function changeSort (arr, bsmDict) { | 79 | function changeSort (arr, bsmDict) { |
| 55 | if (arr.length) { | 80 | if (arr.length) { |
| ... | @@ -75,6 +100,12 @@ export function realMove (bsmDict, operate, data) { | ... | @@ -75,6 +100,12 @@ export function realMove (bsmDict, operate, data) { |
| 75 | data = judgeSort(changeSort(data, bsmDict)); | 100 | data = judgeSort(changeSort(data, bsmDict)); |
| 76 | } | 101 | } |
| 77 | // 获取所有父节点 | 102 | // 获取所有父节点 |
| 103 | /** | ||
| 104 | * @description: 获取所有父节点 | ||
| 105 | * @param {*} treeData | ||
| 106 | * @param {*} bsmDict | ||
| 107 | * @author: renchao | ||
| 108 | */ | ||
| 78 | export function findParents (treeData, bsmDict) { | 109 | export function findParents (treeData, bsmDict) { |
| 79 | if (treeData.length == 0) return | 110 | if (treeData.length == 0) return |
| 80 | for (let i = 0; i < treeData.length; i++) { | 111 | for (let i = 0; i < treeData.length; i++) { |
| ... | @@ -91,6 +122,12 @@ export function findParents (treeData, bsmDict) { | ... | @@ -91,6 +122,12 @@ export function findParents (treeData, bsmDict) { |
| 91 | } | 122 | } |
| 92 | } | 123 | } |
| 93 | // 上移下移 | 124 | // 上移下移 |
| 125 | /** | ||
| 126 | * @description: 上移下移 | ||
| 127 | * @param {*} index | ||
| 128 | * @param {*} data | ||
| 129 | * @author: renchao | ||
| 130 | */ | ||
| 94 | export function upward (index, data) { | 131 | export function upward (index, data) { |
| 95 | if (index > 0) { | 132 | if (index > 0) { |
| 96 | let upData = data[index - 1]; | 133 | let upData = data[index - 1]; |
| ... | @@ -102,6 +139,12 @@ export function upward (index, data) { | ... | @@ -102,6 +139,12 @@ export function upward (index, data) { |
| 102 | }); | 139 | }); |
| 103 | } | 140 | } |
| 104 | } | 141 | } |
| 142 | /** | ||
| 143 | * @description: down | ||
| 144 | * @param {*} index | ||
| 145 | * @param {*} data | ||
| 146 | * @author: renchao | ||
| 147 | */ | ||
| 105 | export function down (index, data) { | 148 | export function down (index, data) { |
| 106 | if ((index + 1) == data.length) { | 149 | if ((index + 1) == data.length) { |
| 107 | Message({ | 150 | Message({ |
| ... | @@ -139,4 +182,4 @@ export function getAltimeterInfo () { | ... | @@ -139,4 +182,4 @@ export function getAltimeterInfo () { |
| 139 | "quality": "3" | 182 | "quality": "3" |
| 140 | } | 183 | } |
| 141 | return axios.post("http://127.0.0.1:38088/video=grabimage", JSON.stringify(data)) | 184 | return axios.post("http://127.0.0.1:38088/video=grabimage", JSON.stringify(data)) |
| 142 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 185 | } | ... | ... |
| ... | @@ -5,6 +5,19 @@ | ... | @@ -5,6 +5,19 @@ |
| 5 | */ | 5 | */ |
| 6 | import ywPopup from '@/components/ywPopup/index' | 6 | import ywPopup from '@/components/ywPopup/index' |
| 7 | import Popup1 from '@/components/Popup1/index' | 7 | import Popup1 from '@/components/Popup1/index' |
| 8 | /** | ||
| 9 | * @description: popupDialog | ||
| 10 | * @param {*} title | ||
| 11 | * @param {*} url | ||
| 12 | * @param {*} params | ||
| 13 | * @param {*} width | ||
| 14 | * @param {*} isMain | ||
| 15 | * @param {*} height | ||
| 16 | * @param {*} btnShow | ||
| 17 | * @param {*} callback | ||
| 18 | * @param {*} cancel | ||
| 19 | * @author: renchao | ||
| 20 | */ | ||
| 8 | export function popupDialog (title, url, params, width = '75%', isMain, height, btnShow = false, callback, cancel) { | 21 | export function popupDialog (title, url, params, width = '75%', isMain, height, btnShow = false, callback, cancel) { |
| 9 | // Popup.install | 22 | // Popup.install |
| 10 | Popup1(title, url, { | 23 | Popup1(title, url, { |
| ... | @@ -23,6 +36,19 @@ export function popupDialog (title, url, params, width = '75%', isMain, height, | ... | @@ -23,6 +36,19 @@ export function popupDialog (title, url, params, width = '75%', isMain, height, |
| 23 | }) | 36 | }) |
| 24 | } | 37 | } |
| 25 | 38 | ||
| 39 | /** | ||
| 40 | * @description: ywPopupDialog | ||
| 41 | * @param {*} title | ||
| 42 | * @param {*} url | ||
| 43 | * @param {*} params | ||
| 44 | * @param {*} width | ||
| 45 | * @param {*} isMain | ||
| 46 | * @param {*} height | ||
| 47 | * @param {*} btnShow | ||
| 48 | * @param {*} callback | ||
| 49 | * @param {*} cancel | ||
| 50 | * @author: renchao | ||
| 51 | */ | ||
| 26 | export function ywPopupDialog (title, url, params, width = '75%', isMain, height, btnShow = true, callback, cancel) { | 52 | export function ywPopupDialog (title, url, params, width = '75%', isMain, height, btnShow = true, callback, cancel) { |
| 27 | // Popup.install | 53 | // Popup.install |
| 28 | ywPopup(title, url, { | 54 | ywPopup(title, url, { |
| ... | @@ -41,9 +67,18 @@ export function ywPopupDialog (title, url, params, width = '75%', isMain, height | ... | @@ -41,9 +67,18 @@ export function ywPopupDialog (title, url, params, width = '75%', isMain, height |
| 41 | }) | 67 | }) |
| 42 | } | 68 | } |
| 43 | 69 | ||
| 70 | /** | ||
| 71 | * @description: popupCacel | ||
| 72 | * @author: renchao | ||
| 73 | */ | ||
| 44 | export function popupCacel () { | 74 | export function popupCacel () { |
| 45 | Popup1().close() | 75 | Popup1().close() |
| 46 | } | 76 | } |
| 77 | |||
| 78 | /** | ||
| 79 | * @description: ywPopupCacel | ||
| 80 | * @author: renchao | ||
| 81 | */ | ||
| 47 | export function ywPopupCacel () { | 82 | export function ywPopupCacel () { |
| 48 | ywPopupDialog().close() | 83 | ywPopupDialog().close() |
| 49 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 84 | } | ... | ... |
| ... | @@ -5,10 +5,15 @@ | ... | @@ -5,10 +5,15 @@ |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | import Loading from '@/components/Loading/index.js'; | 7 | import Loading from '@/components/Loading/index.js'; |
| 8 | // 定义 loading | 8 | // 定义 loading |
| 9 | let loading | 9 | let loading |
| 10 | 10 | ||
| 11 | // loading开始 方法 | 11 | // loading开始 方法 |
| 12 | /** | ||
| 13 | * @description: loading开始 方法 | ||
| 14 | * @param {*} loadingText | ||
| 15 | * @author: renchao | ||
| 16 | */ | ||
| 12 | function startLoading (loadingText = '正在加载中...') { | 17 | function startLoading (loadingText = '正在加载中...') { |
| 13 | loading = Loading.service({ | 18 | loading = Loading.service({ |
| 14 | text: loadingText, | 19 | text: loadingText, |
| ... | @@ -18,6 +23,10 @@ function startLoading (loadingText = '正在加载中...') { | ... | @@ -18,6 +23,10 @@ function startLoading (loadingText = '正在加载中...') { |
| 18 | }) | 23 | }) |
| 19 | } | 24 | } |
| 20 | // loading结束 方法 | 25 | // loading结束 方法 |
| 26 | /** | ||
| 27 | * @description: loading结束 方法 | ||
| 28 | * @author: renchao | ||
| 29 | */ | ||
| 21 | function endLoading () { | 30 | function endLoading () { |
| 22 | loading.close() | 31 | loading.close() |
| 23 | } | 32 | } |
| ... | @@ -34,10 +43,13 @@ export function startLoadingAddCount (LoadingText, target) { | ... | @@ -34,10 +43,13 @@ export function startLoadingAddCount (LoadingText, target) { |
| 34 | } | 43 | } |
| 35 | loadingCount++ | 44 | loadingCount++ |
| 36 | } | 45 | } |
| 37 | 46 | /** | |
| 47 | * @description: endLoadingSubCount | ||
| 48 | * @author: renchao | ||
| 49 | */ | ||
| 38 | export function endLoadingSubCount () { | 50 | export function endLoadingSubCount () { |
| 39 | loadingCount-- | 51 | loadingCount-- |
| 40 | if (loadingCount === 0) { | 52 | if (loadingCount === 0) { |
| 41 | endLoading() | 53 | endLoading() |
| 42 | } | 54 | } |
| 43 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 55 | } | ... | ... |
| 1 | import cookies from './util.cookies' | 1 | import cookies from './util.cookies' |
| 2 | /** | ||
| 3 | * @description: getUrlParam | ||
| 4 | * @param {*} paraName | ||
| 5 | * @author: renchao | ||
| 6 | */ | ||
| 2 | export function getUrlParam (paraName) { | 7 | export function getUrlParam (paraName) { |
| 3 | let url = document.location.toString(); | 8 | let url = document.location.toString(); |
| 4 | let arrObj = url.split('?'); | 9 | let arrObj = url.split('?'); |
| ... | @@ -21,7 +26,11 @@ export function getUrlParam (paraName) { | ... | @@ -21,7 +26,11 @@ export function getUrlParam (paraName) { |
| 21 | return ''; | 26 | return ''; |
| 22 | } | 27 | } |
| 23 | } | 28 | } |
| 24 | 29 | /** | |
| 30 | * @description: setToken | ||
| 31 | * @param {*} token | ||
| 32 | * @author: renchao | ||
| 33 | */ | ||
| 25 | export function setToken (token) { | 34 | export function setToken (token) { |
| 26 | if (token === undefined) { | 35 | if (token === undefined) { |
| 27 | if (process.env.NODE_ENV === 'development') { | 36 | if (process.env.NODE_ENV === 'development') { |
| ... | @@ -37,7 +46,10 @@ export function setToken (token) { | ... | @@ -37,7 +46,10 @@ export function setToken (token) { |
| 37 | } | 46 | } |
| 38 | } | 47 | } |
| 39 | } | 48 | } |
| 40 | 49 | /** | |
| 50 | * @description: getToken | ||
| 51 | * @author: renchao | ||
| 52 | */ | ||
| 41 | export function getToken () { | 53 | export function getToken () { |
| 42 | if (process.env.NODE_ENV === 'development') { | 54 | if (process.env.NODE_ENV === 'development') { |
| 43 | return sessionStorage.getItem('token') | 55 | return sessionStorage.getItem('token') |
| ... | @@ -46,7 +58,11 @@ export function getToken () { | ... | @@ -46,7 +58,11 @@ export function getToken () { |
| 46 | } | 58 | } |
| 47 | 59 | ||
| 48 | // 获取当前时间 | 60 | // 获取当前时间 |
| 49 | 61 | /** | |
| 62 | * @description: 获取当前时间 | ||
| 63 | * @param {*} type | ||
| 64 | * @author: renchao | ||
| 65 | */ | ||
| 50 | export function getNewDate (type = 1) { | 66 | export function getNewDate (type = 1) { |
| 51 | const now = new Date(); | 67 | const now = new Date(); |
| 52 | const year = now.getFullYear(); | 68 | const year = now.getFullYear(); |
| ... | @@ -60,4 +76,4 @@ export function getNewDate (type = 1) { | ... | @@ -60,4 +76,4 @@ export function getNewDate (type = 1) { |
| 60 | } else { | 76 | } else { |
| 61 | return `${year}年${month}月${day}日 ${hours}时${minutes}分${seconds}秒` | 77 | return `${year}年${month}月${day}日 ${hours}时${minutes}分${seconds}秒` |
| 62 | } | 78 | } |
| 63 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 79 | } | ... | ... |
| 1 | <!-- | ||
| 2 | * @Description: | ||
| 3 | * @Autor: renchao | ||
| 4 | * @LastEditTime: 2023-07-20 13:40:32 | ||
| 5 | --> | ||
| 1 | <template> | 6 | <template> |
| 2 | <div class="model"> | 7 | <div class="model"> |
| 3 | <div class="mask">123</div> | 8 | <div class="mask">123</div> |
| ... | @@ -18,71 +23,71 @@ | ... | @@ -18,71 +23,71 @@ |
| 18 | 23 | ||
| 19 | 24 | ||
| 20 | <style scoped lang='scss'> | 25 | <style scoped lang='scss'> |
| 21 | //css部分 | 26 | //css部分 |
| 22 | .mask { | 27 | .mask { |
| 23 | position: fixed; //这里用固定定位,后面设置动画时才不受影响 | 28 | position: fixed; //这里用固定定位,后面设置动画时才不受影响 |
| 24 | top: 0; | 29 | top: 0; |
| 25 | height: 100%; | 30 | height: 100%; |
| 26 | width: 100%; | 31 | width: 100%; |
| 27 | background-color: rgba(167, 165, 165, 0.486); | 32 | background-color: rgba(167, 165, 165, 0.486); |
| 28 | opacity: 0.5; | 33 | opacity: 0.5; |
| 29 | z-index: 9; | 34 | z-index: 9; |
| 30 | } | 35 | } |
| 31 | .model-dialog { | 36 | .model-dialog { |
| 32 | position: absolute; | 37 | position: absolute; |
| 33 | //让弹框居中显示 | 38 | //让弹框居中显示 |
| 34 | top: 50%; | 39 | top: 50%; |
| 35 | left: 50%; | 40 | left: 50%; |
| 36 | transform: translate(-50%, -50%); | 41 | transform: translate(-50%, -50%); |
| 37 | background-color: #fff; | 42 | background-color: #fff; |
| 38 | border-radius: 12px; | 43 | border-radius: 12px; |
| 39 | width: 600px; | 44 | width: 600px; |
| 40 | height: 300px; | 45 | height: 300px; |
| 41 | border: 1px solid #f5f5f5; | 46 | border: 1px solid #f5f5f5; |
| 42 | overflow: hidden; | 47 | overflow: hidden; |
| 43 | z-index: 10; //这里注意层级要比mask大,覆盖它 | 48 | z-index: 10; //这里注意层级要比mask大,覆盖它 |
| 44 | } | 49 | } |
| 45 | .model-header { | 50 | .model-header { |
| 46 | position: relative; | 51 | position: relative; |
| 47 | height: 50px; | 52 | height: 50px; |
| 48 | padding-left: 10px; | 53 | padding-left: 10px; |
| 49 | padding-top: 10px; | 54 | padding-top: 10px; |
| 50 | font-size: 20px; | 55 | font-size: 20px; |
| 51 | line-height: 50px; | 56 | line-height: 50px; |
| 52 | background-color: #f5f5f5; | 57 | background-color: #f5f5f5; |
| 53 | border-bottom: 1px solid rgb(177, 176, 176); | 58 | border-bottom: 1px solid rgb(177, 176, 176); |
| 54 | } | 59 | } |
| 55 | .model-body { | 60 | .model-body { |
| 56 | height: 150px; | 61 | height: 150px; |
| 57 | line-height: 150px; | 62 | line-height: 150px; |
| 58 | font-size: 28px; | 63 | font-size: 28px; |
| 59 | text-align: center; | 64 | text-align: center; |
| 60 | background-color: #fff; | 65 | background-color: #fff; |
| 61 | } | 66 | } |
| 62 | .model-footer { | 67 | .model-footer { |
| 63 | background-color: #f5f5f5; | 68 | background-color: #f5f5f5; |
| 64 | height: 100px; | 69 | height: 100px; |
| 65 | text-align: center; | 70 | text-align: center; |
| 66 | line-height: 100px; | 71 | line-height: 100px; |
| 67 | } | 72 | } |
| 68 | .btn { | 73 | .btn { |
| 69 | width: 180px; | 74 | width: 180px; |
| 70 | height: 40px; | 75 | height: 40px; |
| 71 | border-radius: 8px; | 76 | border-radius: 8px; |
| 72 | background-color: rgb(180, 103, 103); | 77 | background-color: rgb(180, 103, 103); |
| 73 | color: #fff; | 78 | color: #fff; |
| 74 | font-size: 18px; | 79 | font-size: 18px; |
| 75 | border: none; | 80 | border: none; |
| 76 | } | 81 | } |
| 77 | .icon-close { | 82 | .icon-close { |
| 78 | position: absolute; //如果不加绝对布局,图表显示不出来 | 83 | position: absolute; //如果不加绝对布局,图表显示不出来 |
| 79 | background-color: pink; | 84 | background-color: pink; |
| 80 | right: 15px; | 85 | right: 15px; |
| 81 | top: 16px; | 86 | top: 16px; |
| 82 | width: 30px; | 87 | width: 30px; |
| 83 | height: 30px; | 88 | height: 30px; |
| 84 | z-index: 10; | 89 | z-index: 10; |
| 85 | //background: url("../assets/icon-close.png") no-repeat; | 90 | //background: url("../assets/icon-close.png") no-repeat; |
| 86 | background-size: contain; | 91 | background-size: contain; |
| 87 | } | 92 | } |
| 88 | </style> | 93 | </style> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -177,6 +177,10 @@ | ... | @@ -177,6 +177,10 @@ |
| 177 | }) | 177 | }) |
| 178 | }) | 178 | }) |
| 179 | }, | 179 | }, |
| 180 | /** | ||
| 181 | * @description: prev | ||
| 182 | * @author: renchao | ||
| 183 | */ | ||
| 180 | prev () { | 184 | prev () { |
| 181 | let len = this.previewImg.imgList.length | 185 | let len = this.previewImg.imgList.length |
| 182 | if (this.isFirst || len == 0) { | 186 | if (this.isFirst || len == 0) { |
| ... | @@ -185,6 +189,10 @@ | ... | @@ -185,6 +189,10 @@ |
| 185 | this.$parent.previewImg.index = (this.$parent.previewImg.index - 1 + len) % len | 189 | this.$parent.previewImg.index = (this.$parent.previewImg.index - 1 + len) % len |
| 186 | } | 190 | } |
| 187 | }, | 191 | }, |
| 192 | /** | ||
| 193 | * @description: next | ||
| 194 | * @author: renchao | ||
| 195 | */ | ||
| 188 | next () { | 196 | next () { |
| 189 | let len = this.previewImg.imgList.length | 197 | let len = this.previewImg.imgList.length |
| 190 | if (this.isLast || len == 0) { | 198 | if (this.isLast || len == 0) { |
| ... | @@ -193,16 +201,34 @@ | ... | @@ -193,16 +201,34 @@ |
| 193 | this.$parent.previewImg.index = (this.$parent.previewImg.index + 1) % len | 201 | this.$parent.previewImg.index = (this.$parent.previewImg.index + 1) % len |
| 194 | } | 202 | } |
| 195 | }, | 203 | }, |
| 204 | /** | ||
| 205 | * @description: showCurrent | ||
| 206 | * @param {*} index | ||
| 207 | * @author: renchao | ||
| 208 | */ | ||
| 196 | showCurrent (index) { | 209 | showCurrent (index) { |
| 197 | this.previewImg.index = index | 210 | this.previewImg.index = index |
| 198 | }, | 211 | }, |
| 212 | /** | ||
| 213 | * @description: closeViewer | ||
| 214 | * @author: renchao | ||
| 215 | */ | ||
| 199 | closeViewer () { | 216 | closeViewer () { |
| 200 | this.showViewer = false | 217 | this.showViewer = false |
| 201 | }, | 218 | }, |
| 219 | /** | ||
| 220 | * @description: clickImage | ||
| 221 | * @author: renchao | ||
| 222 | */ | ||
| 202 | clickImage () { | 223 | clickImage () { |
| 203 | this.showViewer = true | 224 | this.showViewer = true |
| 204 | }, | 225 | }, |
| 205 | // 上传 | 226 | // 上传 |
| 227 | /** | ||
| 228 | * @description: 上传 | ||
| 229 | * @param {*} file | ||
| 230 | * @author: renchao | ||
| 231 | */ | ||
| 206 | beforeUpload (file) { | 232 | beforeUpload (file) { |
| 207 | const isJPEG = file.type === 'image/jpeg' | 233 | const isJPEG = file.type === 'image/jpeg' |
| 208 | const isPNG = file.type === 'image/png' | 234 | const isPNG = file.type === 'image/png' |
| ... | @@ -220,6 +246,12 @@ | ... | @@ -220,6 +246,12 @@ |
| 220 | this.imgHidden = (isJPG || isJPEG || isPNG || isGIF) && isLt5M | 246 | this.imgHidden = (isJPG || isJPEG || isPNG || isGIF) && isLt5M |
| 221 | return this.imgHidden | 247 | return this.imgHidden |
| 222 | }, | 248 | }, |
| 249 | /** | ||
| 250 | * @description: handleChange | ||
| 251 | * @param {*} file | ||
| 252 | * @param {*} files | ||
| 253 | * @author: renchao | ||
| 254 | */ | ||
| 223 | async handleChange (file, files) { | 255 | async handleChange (file, files) { |
| 224 | // 清空 fileList 数组 | 256 | // 清空 fileList 数组 |
| 225 | let length = files.length; | 257 | let length = files.length; |
| ... | @@ -244,6 +276,10 @@ | ... | @@ -244,6 +276,10 @@ |
| 244 | }) | 276 | }) |
| 245 | }, 0) | 277 | }, 0) |
| 246 | }, | 278 | }, |
| 279 | /** | ||
| 280 | * @description: handleDelete | ||
| 281 | * @author: renchao | ||
| 282 | */ | ||
| 247 | handleDelete () { | 283 | handleDelete () { |
| 248 | let that = this | 284 | let that = this |
| 249 | this.$confirm('此操作将永久删除, 是否继续?', '提示', { | 285 | this.$confirm('此操作将永久删除, 是否继续?', '提示', { | ... | ... |
| ... | @@ -178,10 +178,18 @@ | ... | @@ -178,10 +178,18 @@ |
| 178 | } | 178 | } |
| 179 | }, | 179 | }, |
| 180 | methods: { | 180 | methods: { |
| 181 | /** | ||
| 182 | * @description: closeDialog | ||
| 183 | * @author: renchao | ||
| 184 | */ | ||
| 181 | closeDialog () { | 185 | closeDialog () { |
| 182 | this.$emit("input", false); | 186 | this.$emit("input", false); |
| 183 | this.$refs['ruleForm'].resetFields(); | 187 | this.$refs['ruleForm'].resetFields(); |
| 184 | }, | 188 | }, |
| 189 | /** | ||
| 190 | * @description: submitForm | ||
| 191 | * @author: renchao | ||
| 192 | */ | ||
| 185 | submitForm () { | 193 | submitForm () { |
| 186 | this.$emit("input", false); | 194 | this.$emit("input", false); |
| 187 | this.$emit("updateDetail", _.cloneDeep(this.ruleForm)); | 195 | this.$emit("updateDetail", _.cloneDeep(this.ruleForm)); | ... | ... |
| ... | @@ -53,6 +53,10 @@ | ... | @@ -53,6 +53,10 @@ |
| 53 | }, | 53 | }, |
| 54 | methods: { | 54 | methods: { |
| 55 | // 批量删除确定按钮 | 55 | // 批量删除确定按钮 |
| 56 | /** | ||
| 57 | * @description: 批量删除确定按钮 | ||
| 58 | * @author: renchao | ||
| 59 | */ | ||
| 56 | submitdelclick () { | 60 | submitdelclick () { |
| 57 | var formdata = new FormData(); | 61 | var formdata = new FormData(); |
| 58 | formdata.append("bsmSldyList", this.selectBdcdy); | 62 | formdata.append("bsmSldyList", this.selectBdcdy); |
| ... | @@ -68,6 +72,11 @@ | ... | @@ -68,6 +72,11 @@ |
| 68 | }) | 72 | }) |
| 69 | }, | 73 | }, |
| 70 | // 批量删除勾选事件 | 74 | // 批量删除勾选事件 |
| 75 | /** | ||
| 76 | * @description: 批量删除勾选事件 | ||
| 77 | * @param {*} e | ||
| 78 | * @author: renchao | ||
| 79 | */ | ||
| 71 | handleSelectionChange (e) { | 80 | handleSelectionChange (e) { |
| 72 | this.selectBdcdy = []; | 81 | this.selectBdcdy = []; |
| 73 | e.forEach((item, index) => { | 82 | e.forEach((item, index) => { | ... | ... |
| ... | @@ -274,10 +274,18 @@ export default { | ... | @@ -274,10 +274,18 @@ export default { |
| 274 | }, | 274 | }, |
| 275 | methods: { | 275 | methods: { |
| 276 | 276 | ||
| 277 | /** | ||
| 278 | * @description: closeDialog | ||
| 279 | * @author: renchao | ||
| 280 | */ | ||
| 277 | closeDialog() { | 281 | closeDialog() { |
| 278 | this.$emit("input", false); | 282 | this.$emit("input", false); |
| 279 | this.$refs["ruleForm"].resetFields(); | 283 | this.$refs["ruleForm"].resetFields(); |
| 280 | }, | 284 | }, |
| 285 | /** | ||
| 286 | * @description: submitForm | ||
| 287 | * @author: renchao | ||
| 288 | */ | ||
| 281 | submitForm() { | 289 | submitForm() { |
| 282 | this.$refs.ruleForm.validate((valid) => { | 290 | this.$refs.ruleForm.validate((valid) => { |
| 283 | if (valid) { | 291 | if (valid) { | ... | ... |
| ... | @@ -197,10 +197,18 @@ | ... | @@ -197,10 +197,18 @@ |
| 197 | }, | 197 | }, |
| 198 | }, | 198 | }, |
| 199 | methods: { | 199 | methods: { |
| 200 | /** | ||
| 201 | * @description: closeDialog | ||
| 202 | * @author: renchao | ||
| 203 | */ | ||
| 200 | closeDialog () { | 204 | closeDialog () { |
| 201 | this.$emit("input", false); | 205 | this.$emit("input", false); |
| 202 | this.$refs["ruleForm"].resetFields(); | 206 | this.$refs["ruleForm"].resetFields(); |
| 203 | }, | 207 | }, |
| 208 | /** | ||
| 209 | * @description: submitForm | ||
| 210 | * @author: renchao | ||
| 211 | */ | ||
| 204 | submitForm () { | 212 | submitForm () { |
| 205 | this.$refs.ruleForm.validate((valid) => { | 213 | this.$refs.ruleForm.validate((valid) => { |
| 206 | if (valid) { | 214 | if (valid) { | ... | ... |
| ... | @@ -152,6 +152,10 @@ | ... | @@ -152,6 +152,10 @@ |
| 152 | }, | 152 | }, |
| 153 | methods: { | 153 | methods: { |
| 154 | // 材料目录明细初始化 | 154 | // 材料目录明细初始化 |
| 155 | /** | ||
| 156 | * @description: 材料目录明细初始化 | ||
| 157 | * @author: renchao | ||
| 158 | */ | ||
| 155 | clmlInitList () { | 159 | clmlInitList () { |
| 156 | return new Promise(resolve => { | 160 | return new Promise(resolve => { |
| 157 | this.unitData = this.$parent.unitData; | 161 | this.unitData = this.$parent.unitData; |
| ... | @@ -173,6 +177,12 @@ | ... | @@ -173,6 +177,12 @@ |
| 173 | }) | 177 | }) |
| 174 | }, | 178 | }, |
| 175 | // 上移 | 179 | // 上移 |
| 180 | /** | ||
| 181 | * @description: 上移 | ||
| 182 | * @param {*} index | ||
| 183 | * @param {*} row | ||
| 184 | * @author: renchao | ||
| 185 | */ | ||
| 176 | moveUpward (index, row) { | 186 | moveUpward (index, row) { |
| 177 | let obj = { | 187 | let obj = { |
| 178 | xh: row.xh, | 188 | xh: row.xh, |
| ... | @@ -180,6 +190,11 @@ | ... | @@ -180,6 +190,11 @@ |
| 180 | moveDirection: "UP", | 190 | moveDirection: "UP", |
| 181 | }; | 191 | }; |
| 182 | // 接口待调 | 192 | // 接口待调 |
| 193 | /** | ||
| 194 | * @description: 接口待调 | ||
| 195 | * @param {*} obj | ||
| 196 | * @author: renchao | ||
| 197 | */ | ||
| 183 | moveClml(obj).then(async (res) => { | 198 | moveClml(obj).then(async (res) => { |
| 184 | if (res.code == 200) { | 199 | if (res.code == 200) { |
| 185 | let res = await this.clmlInitList() | 200 | let res = await this.clmlInitList() |
| ... | @@ -196,6 +211,12 @@ | ... | @@ -196,6 +211,12 @@ |
| 196 | }) | 211 | }) |
| 197 | }, | 212 | }, |
| 198 | // 下移 | 213 | // 下移 |
| 214 | /** | ||
| 215 | * @description: 下移 | ||
| 216 | * @param {*} index | ||
| 217 | * @param {*} row | ||
| 218 | * @author: renchao | ||
| 219 | */ | ||
| 199 | moveDown (index, row) { | 220 | moveDown (index, row) { |
| 200 | let obj = { | 221 | let obj = { |
| 201 | xh: row.xh, | 222 | xh: row.xh, |
| ... | @@ -203,6 +224,11 @@ | ... | @@ -203,6 +224,11 @@ |
| 203 | moveDirection: "DOWN", | 224 | moveDirection: "DOWN", |
| 204 | } | 225 | } |
| 205 | // 接口待调 | 226 | // 接口待调 |
| 227 | /** | ||
| 228 | * @description: 接口待调 | ||
| 229 | * @param {*} obj | ||
| 230 | * @author: renchao | ||
| 231 | */ | ||
| 206 | moveClml(obj).then(async (res) => { | 232 | moveClml(obj).then(async (res) => { |
| 207 | if (res.code == 200) { | 233 | if (res.code == 200) { |
| 208 | let res = await this.clmlInitList() | 234 | let res = await this.clmlInitList() |
| ... | @@ -218,6 +244,12 @@ | ... | @@ -218,6 +244,12 @@ |
| 218 | }) | 244 | }) |
| 219 | }, | 245 | }, |
| 220 | // 材料目录删除 | 246 | // 材料目录删除 |
| 247 | /** | ||
| 248 | * @description: 材料目录删除 | ||
| 249 | * @param {*} index | ||
| 250 | * @param {*} row | ||
| 251 | * @author: renchao | ||
| 252 | */ | ||
| 221 | handleDelete (index, row) { | 253 | handleDelete (index, row) { |
| 222 | let that = this | 254 | let that = this |
| 223 | this.$confirm('此操作将永久删除该 是否继续?', '提示', { | 255 | this.$confirm('此操作将永久删除该 是否继续?', '提示', { |
| ... | @@ -245,6 +277,12 @@ | ... | @@ -245,6 +277,12 @@ |
| 245 | }) | 277 | }) |
| 246 | }, | 278 | }, |
| 247 | // 字典 | 279 | // 字典 |
| 280 | /** | ||
| 281 | * @description: 字典 | ||
| 282 | * @param {*} val | ||
| 283 | * @param {*} code | ||
| 284 | * @author: renchao | ||
| 285 | */ | ||
| 248 | dicStatus (val, code) { | 286 | dicStatus (val, code) { |
| 249 | let data = store.getters.dictData[code], | 287 | let data = store.getters.dictData[code], |
| 250 | name = "暂无"; | 288 | name = "暂无"; | ... | ... |
| ... | @@ -67,6 +67,13 @@ export function loadTreeData(qlxxData) { | ... | @@ -67,6 +67,13 @@ export function loadTreeData(qlxxData) { |
| 67 | } | 67 | } |
| 68 | 68 | ||
| 69 | //获取权利类型、不动产单元类型对应的树形节点信息 | 69 | //获取权利类型、不动产单元类型对应的树形节点信息 |
| 70 | /** | ||
| 71 | * @description: 获取权利类型、不动产单元类型对应的树形节点信息 | ||
| 72 | * @param {*} qllx | ||
| 73 | * @param {*} qlxx | ||
| 74 | * @param {*} bdcdylx | ||
| 75 | * @author: renchao | ||
| 76 | */ | ||
| 70 | export function getNode(qllx, qlxx, bdcdylx) { | 77 | export function getNode(qllx, qlxx, bdcdylx) { |
| 71 | let node; | 78 | let node; |
| 72 | for (var i = 0; i < qlxxPage.length; i++) { | 79 | for (var i = 0; i < qlxxPage.length; i++) { | ... | ... |
| ... | @@ -112,6 +112,10 @@ | ... | @@ -112,6 +112,10 @@ |
| 112 | }, | 112 | }, |
| 113 | methods: { | 113 | methods: { |
| 114 | //读取申请单元信息 | 114 | //读取申请单元信息 |
| 115 | /** | ||
| 116 | * @description: 读取申请单元信息 | ||
| 117 | * @author: renchao | ||
| 118 | */ | ||
| 115 | loadBdcdylist () { | 119 | loadBdcdylist () { |
| 116 | var formdata = new FormData(); | 120 | var formdata = new FormData(); |
| 117 | if (this.bsmSlsq) { | 121 | if (this.bsmSlsq) { |
| ... | @@ -128,6 +132,11 @@ | ... | @@ -128,6 +132,11 @@ |
| 128 | 132 | ||
| 129 | }, | 133 | }, |
| 130 | // 获取右侧菜单 | 134 | // 获取右侧菜单 |
| 135 | /** | ||
| 136 | * @description: 获取右侧菜单 | ||
| 137 | * @param {*} row | ||
| 138 | * @author: renchao | ||
| 139 | */ | ||
| 131 | getleftMenubl (row) { | 140 | getleftMenubl (row) { |
| 132 | 141 | ||
| 133 | leftMenubl(this.bsmSlsq).then((res) => { | 142 | leftMenubl(this.bsmSlsq).then((res) => { |
| ... | @@ -152,20 +161,41 @@ | ... | @@ -152,20 +161,41 @@ |
| 152 | } | 161 | } |
| 153 | }); | 162 | }); |
| 154 | }, | 163 | }, |
| 164 | /** | ||
| 165 | * @description: handleNodeClick | ||
| 166 | * @param {*} data | ||
| 167 | * @param {*} node | ||
| 168 | * @param {*} elem | ||
| 169 | * @author: renchao | ||
| 170 | */ | ||
| 155 | handleNodeClick (data, node, elem) { | 171 | handleNodeClick (data, node, elem) { |
| 156 | this.$parent.loadComponent(this.currentSelectProps, data); | 172 | this.$parent.loadComponent(this.currentSelectProps, data); |
| 157 | this.$parent.tabset(); | 173 | this.$parent.tabset(); |
| 158 | }, | 174 | }, |
| 159 | //申请单元点击事件 | 175 | //申请单元点击事件 |
| 176 | /** | ||
| 177 | * @description: 申请单元点击事件 | ||
| 178 | * @param {*} index | ||
| 179 | * @author: renchao | ||
| 180 | */ | ||
| 160 | unitClick (index) { | 181 | unitClick (index) { |
| 161 | this.currentSelectProps = this.supplementarylist[index]; | 182 | this.currentSelectProps = this.supplementarylist[index]; |
| 162 | this.$emit("getCurrentSelectProps", this.currentSelectProps); | 183 | this.$emit("getCurrentSelectProps", this.currentSelectProps); |
| 163 | }, | 184 | }, |
| 164 | //登记簿点击事件 | 185 | //登记簿点击事件 |
| 186 | /** | ||
| 187 | * @description: 登记簿点击事件 | ||
| 188 | * @author: renchao | ||
| 189 | */ | ||
| 165 | djbClick () { | 190 | djbClick () { |
| 166 | this.loadBdcdylist(); | 191 | this.loadBdcdylist(); |
| 167 | }, | 192 | }, |
| 168 | // 删除补录记录 | 193 | // 删除补录记录 |
| 194 | /** | ||
| 195 | * @description: 删除补录记录 | ||
| 196 | * @param {*} row | ||
| 197 | * @author: renchao | ||
| 198 | */ | ||
| 169 | handleDel (row) { | 199 | handleDel (row) { |
| 170 | this.$confirm("此操作将永久删除该条补录记录, 是否继续?", "提示", { | 200 | this.$confirm("此操作将永久删除该条补录记录, 是否继续?", "提示", { |
| 171 | confirmButtonText: "确定", | 201 | confirmButtonText: "确定", |
| ... | @@ -195,6 +225,10 @@ | ... | @@ -195,6 +225,10 @@ |
| 195 | }); | 225 | }); |
| 196 | }, | 226 | }, |
| 197 | //补录信息点击事件默认展示第一条补录记录 | 227 | //补录信息点击事件默认展示第一条补录记录 |
| 228 | /** | ||
| 229 | * @description: 补录信息点击事件默认展示第一条补录记录 | ||
| 230 | * @author: renchao | ||
| 231 | */ | ||
| 198 | blxxClick () { | 232 | blxxClick () { |
| 199 | if (this.supplementarylist.length) { | 233 | if (this.supplementarylist.length) { |
| 200 | this.unitClick(0); | 234 | this.unitClick(0); | ... | ... |
| ... | @@ -217,6 +217,11 @@ export default { | ... | @@ -217,6 +217,11 @@ export default { |
| 217 | }, | 217 | }, |
| 218 | }, | 218 | }, |
| 219 | methods: { | 219 | methods: { |
| 220 | /** | ||
| 221 | * @handleupdateDetail: 删除 | ||
| 222 | * @param {*} value | ||
| 223 | * @author: renchao | ||
| 224 | */ | ||
| 220 | handleupdateDetail(value) { | 225 | handleupdateDetail(value) { |
| 221 | if (this.isaddupdate) { | 226 | if (this.isaddupdate) { |
| 222 | if (!_.isEqual(value, this.tableData)) { | 227 | if (!_.isEqual(value, this.tableData)) { |
| ... | @@ -232,6 +237,10 @@ export default { | ... | @@ -232,6 +237,10 @@ export default { |
| 232 | this.key++; | 237 | this.key++; |
| 233 | }, | 238 | }, |
| 234 | // 新增 | 239 | // 新增 |
| 240 | /** | ||
| 241 | * @description: 新增 | ||
| 242 | * @author: renchao | ||
| 243 | */ | ||
| 235 | addClick() { | 244 | addClick() { |
| 236 | if (this.gyfs == "0" && this.tableDataList.length > 0) { | 245 | if (this.gyfs == "0" && this.tableDataList.length > 0) { |
| 237 | this.$message.warning("当前共有方式为单独所有,无法添加多个权利人"); | 246 | this.$message.warning("当前共有方式为单独所有,无法添加多个权利人"); |
| ... | @@ -242,6 +251,12 @@ export default { | ... | @@ -242,6 +251,12 @@ export default { |
| 242 | }, | 251 | }, |
| 243 | 252 | ||
| 244 | // 删除 | 253 | // 删除 |
| 254 | /** | ||
| 255 | * @description: 删除 | ||
| 256 | * @param {*} index | ||
| 257 | * @param {*} row | ||
| 258 | * @author: renchao | ||
| 259 | */ | ||
| 245 | deleClick(index, row) { | 260 | deleClick(index, row) { |
| 246 | this.$confirm("确定要删除吗, 是否继续?", "提示", { | 261 | this.$confirm("确定要删除吗, 是否继续?", "提示", { |
| 247 | confirmButtonText: "确定", | 262 | confirmButtonText: "确定", |
| ... | @@ -255,19 +270,39 @@ export default { | ... | @@ -255,19 +270,39 @@ export default { |
| 255 | }, | 270 | }, |
| 256 | 271 | ||
| 257 | // 身份证读取 | 272 | // 身份证读取 |
| 273 | /** | ||
| 274 | * @description: 身份证读取 | ||
| 275 | * @author: renchao | ||
| 276 | */ | ||
| 258 | readClick() {}, | 277 | readClick() {}, |
| 259 | 278 | ||
| 260 | // 身份证读取按钮禁用 | 279 | // 身份证读取按钮禁用 |
| 280 | /** | ||
| 281 | * @description: 身份证读取按钮禁用 | ||
| 282 | * @author: renchao | ||
| 283 | */ | ||
| 261 | onreadClick() { | 284 | onreadClick() { |
| 262 | this.$message.error("此阶段不可编辑"); | 285 | this.$message.error("此阶段不可编辑"); |
| 263 | }, | 286 | }, |
| 264 | // 修改 | 287 | // 修改 |
| 288 | /** | ||
| 289 | * @description: 修改 | ||
| 290 | * @param {*} index | ||
| 291 | * @param {*} row | ||
| 292 | * @author: renchao | ||
| 293 | */ | ||
| 265 | editClick(index, row) { | 294 | editClick(index, row) { |
| 266 | this.dataIndex = index; | 295 | this.dataIndex = index; |
| 267 | this.dialog = true; | 296 | this.dialog = true; |
| 268 | this.details = row; | 297 | this.details = row; |
| 269 | this.isaddupdate = false; | 298 | this.isaddupdate = false; |
| 270 | }, | 299 | }, |
| 300 | /** | ||
| 301 | * @description: queryViewClick | ||
| 302 | * @param {*} index | ||
| 303 | * @param {*} row | ||
| 304 | * @author: renchao | ||
| 305 | */ | ||
| 271 | queryViewClick(index, row) { | 306 | queryViewClick(index, row) { |
| 272 | this.dialog = true; | 307 | this.dialog = true; |
| 273 | this.details = row; | 308 | this.details = row; | ... | ... |
| ... | @@ -68,6 +68,10 @@ | ... | @@ -68,6 +68,10 @@ |
| 68 | this.getBackNode(); | 68 | this.getBackNode(); |
| 69 | }, | 69 | }, |
| 70 | methods: { | 70 | methods: { |
| 71 | /** | ||
| 72 | * @description: onSubmit | ||
| 73 | * @author: renchao | ||
| 74 | */ | ||
| 71 | onSubmit () { | 75 | onSubmit () { |
| 72 | this.selectItem.outstepopinion = this.outstepopinion; | 76 | this.selectItem.outstepopinion = this.outstepopinion; |
| 73 | sendBackTask({ | 77 | sendBackTask({ |
| ... | @@ -87,11 +91,20 @@ | ... | @@ -87,11 +91,20 @@ |
| 87 | }, 1000); | 91 | }, 1000); |
| 88 | }); | 92 | }); |
| 89 | }, | 93 | }, |
| 94 | /** | ||
| 95 | * @description: changeSelectItem | ||
| 96 | * @param {*} item | ||
| 97 | * @author: renchao | ||
| 98 | */ | ||
| 90 | changeSelectItem (item) { | 99 | changeSelectItem (item) { |
| 91 | this.selectItem = item; | 100 | this.selectItem = item; |
| 92 | this.selectActivity = item.activityId; | 101 | this.selectActivity = item.activityId; |
| 93 | }, | 102 | }, |
| 94 | //获取可回退环节信息 | 103 | //获取可回退环节信息 |
| 104 | /** | ||
| 105 | * @description: 获取可回退环节信息 | ||
| 106 | * @author: renchao | ||
| 107 | */ | ||
| 95 | getBackNode () { | 108 | getBackNode () { |
| 96 | getTaskBackNode(this.formData).then((res) => { | 109 | getTaskBackNode(this.formData).then((res) => { |
| 97 | if (res.code == 200) { | 110 | if (res.code == 200) { |
| ... | @@ -104,6 +117,10 @@ | ... | @@ -104,6 +117,10 @@ |
| 104 | }); | 117 | }); |
| 105 | }, | 118 | }, |
| 106 | 119 | ||
| 120 | /** | ||
| 121 | * @description: cancelBack | ||
| 122 | * @author: renchao | ||
| 123 | */ | ||
| 107 | cancelBack () { | 124 | cancelBack () { |
| 108 | popupCacel(); | 125 | popupCacel(); |
| 109 | } | 126 | } | ... | ... |
| ... | @@ -217,6 +217,11 @@ export default { | ... | @@ -217,6 +217,11 @@ export default { |
| 217 | }, | 217 | }, |
| 218 | }, | 218 | }, |
| 219 | methods: { | 219 | methods: { |
| 220 | /** | ||
| 221 | * @description: handleupdateDetail | ||
| 222 | * @param {*} value | ||
| 223 | * @author: renchao | ||
| 224 | */ | ||
| 220 | handleupdateDetail(value) { | 225 | handleupdateDetail(value) { |
| 221 | if (this.isaddupdate) { | 226 | if (this.isaddupdate) { |
| 222 | if (!_.isEqual(value, this.tableData)) { | 227 | if (!_.isEqual(value, this.tableData)) { |
| ... | @@ -232,6 +237,10 @@ export default { | ... | @@ -232,6 +237,10 @@ export default { |
| 232 | this.key++; | 237 | this.key++; |
| 233 | }, | 238 | }, |
| 234 | // 新增 | 239 | // 新增 |
| 240 | /** | ||
| 241 | * @description: 新增 | ||
| 242 | * @author: renchao | ||
| 243 | */ | ||
| 235 | addClick() { | 244 | addClick() { |
| 236 | if (this.gyfs == "0" && this.tableDataList.length > 0) { | 245 | if (this.gyfs == "0" && this.tableDataList.length > 0) { |
| 237 | this.$message.warning("当前共有方式为单独所有,无法添加多个权利人"); | 246 | this.$message.warning("当前共有方式为单独所有,无法添加多个权利人"); |
| ... | @@ -242,6 +251,12 @@ export default { | ... | @@ -242,6 +251,12 @@ export default { |
| 242 | }, | 251 | }, |
| 243 | 252 | ||
| 244 | // 删除 | 253 | // 删除 |
| 254 | /** | ||
| 255 | * @description: 删除 | ||
| 256 | * @param {*} index | ||
| 257 | * @param {*} row | ||
| 258 | * @author: renchao | ||
| 259 | */ | ||
| 245 | deleClick(index, row) { | 260 | deleClick(index, row) { |
| 246 | this.$confirm("确定要删除吗, 是否继续?", "提示", { | 261 | this.$confirm("确定要删除吗, 是否继续?", "提示", { |
| 247 | confirmButtonText: "确定", | 262 | confirmButtonText: "确定", |
| ... | @@ -255,15 +270,31 @@ export default { | ... | @@ -255,15 +270,31 @@ export default { |
| 255 | }, | 270 | }, |
| 256 | 271 | ||
| 257 | // 身份证读取 | 272 | // 身份证读取 |
| 273 | /** | ||
| 274 | * @description: 身份证读取 | ||
| 275 | * @author: renchao | ||
| 276 | */ | ||
| 258 | readClick() {}, | 277 | readClick() {}, |
| 259 | 278 | ||
| 260 | // 修改 | 279 | // 修改 |
| 280 | /** | ||
| 281 | * @description: 修改 | ||
| 282 | * @param {*} index | ||
| 283 | * @param {*} row | ||
| 284 | * @author: renchao | ||
| 285 | */ | ||
| 261 | editClick(index, row) { | 286 | editClick(index, row) { |
| 262 | this.dataIndex = index; | 287 | this.dataIndex = index; |
| 263 | this.dialog = true; | 288 | this.dialog = true; |
| 264 | this.details = row; | 289 | this.details = row; |
| 265 | this.isaddupdate = false; | 290 | this.isaddupdate = false; |
| 266 | }, | 291 | }, |
| 292 | /** | ||
| 293 | * @description: queryViewClick | ||
| 294 | * @param {*} index | ||
| 295 | * @param {*} row | ||
| 296 | * @author: renchao | ||
| 297 | */ | ||
| 267 | queryViewClick(index, row) { | 298 | queryViewClick(index, row) { |
| 268 | this.dialog = true; | 299 | this.dialog = true; |
| 269 | this.details = row; | 300 | this.details = row; | ... | ... |
| ... | @@ -39,6 +39,10 @@ | ... | @@ -39,6 +39,10 @@ |
| 39 | } | 39 | } |
| 40 | }, | 40 | }, |
| 41 | methods: { | 41 | methods: { |
| 42 | /** | ||
| 43 | * @description: tablelistFn | ||
| 44 | * @author: renchao | ||
| 45 | */ | ||
| 42 | tablelistFn () { | 46 | tablelistFn () { |
| 43 | getNextLinkInfo(this.queryForm).then(res => { | 47 | getNextLinkInfo(this.queryForm).then(res => { |
| 44 | if (res.code === 200) { | 48 | if (res.code === 200) { |
| ... | @@ -49,6 +53,10 @@ | ... | @@ -49,6 +53,10 @@ |
| 49 | } | 53 | } |
| 50 | }) | 54 | }) |
| 51 | }, | 55 | }, |
| 56 | /** | ||
| 57 | * @description: submitForm | ||
| 58 | * @author: renchao | ||
| 59 | */ | ||
| 52 | submitForm () { | 60 | submitForm () { |
| 53 | completeTask(this.queryForm).then(res => { | 61 | completeTask(this.queryForm).then(res => { |
| 54 | if (res.code === 200) { | 62 | if (res.code === 200) { |
| ... | @@ -62,6 +70,10 @@ | ... | @@ -62,6 +70,10 @@ |
| 62 | } | 70 | } |
| 63 | }) | 71 | }) |
| 64 | }, | 72 | }, |
| 73 | /** | ||
| 74 | * @description: closeDialog | ||
| 75 | * @author: renchao | ||
| 76 | */ | ||
| 65 | closeDialog () { | 77 | closeDialog () { |
| 66 | this.$emit("input", false); | 78 | this.$emit("input", false); |
| 67 | }, | 79 | }, | ... | ... |
| ... | @@ -461,13 +461,28 @@ export default { | ... | @@ -461,13 +461,28 @@ export default { |
| 461 | this.ableOperation=this.$parent.ableOperation | 461 | this.ableOperation=this.$parent.ableOperation |
| 462 | }, | 462 | }, |
| 463 | methods: { | 463 | methods: { |
| 464 | /** | ||
| 465 | * @description: ztQlxxchange | ||
| 466 | * @param {*} val | ||
| 467 | * @author: renchao | ||
| 468 | */ | ||
| 464 | ztQlxxchange(val) { | 469 | ztQlxxchange(val) { |
| 465 | this.ruleForm.ztQlxx = val; | 470 | this.ruleForm.ztQlxx = val; |
| 466 | }, | 471 | }, |
| 472 | /** | ||
| 473 | * @description: ssQlxxchange | ||
| 474 | * @param {*} val | ||
| 475 | * @author: renchao | ||
| 476 | */ | ||
| 467 | ssQlxxchange(val) { | 477 | ssQlxxchange(val) { |
| 468 | this.ruleForm.ssQlxx = val; | 478 | this.ruleForm.ssQlxx = val; |
| 469 | this.ruleForm.qlxx.ssywh = val.ssywh; | 479 | this.ruleForm.qlxx.ssywh = val.ssywh; |
| 470 | }, | 480 | }, |
| 481 | /** | ||
| 482 | * @description: djlxchange | ||
| 483 | * @param {*} val | ||
| 484 | * @author: renchao | ||
| 485 | */ | ||
| 471 | djlxchange(val) { | 486 | djlxchange(val) { |
| 472 | if (val == null || val == 100) { | 487 | if (val == null || val == 100) { |
| 473 | this.ssqlxxshow = false; | 488 | this.ssqlxxshow = false; |
| ... | @@ -475,6 +490,10 @@ export default { | ... | @@ -475,6 +490,10 @@ export default { |
| 475 | this.ssqlxxshow = true; | 490 | this.ssqlxxshow = true; |
| 476 | } | 491 | } |
| 477 | }, | 492 | }, |
| 493 | /** | ||
| 494 | * @description: loadData | ||
| 495 | * @author: renchao | ||
| 496 | */ | ||
| 478 | loadData() { | 497 | loadData() { |
| 479 | this.$startLoading(); | 498 | this.$startLoading(); |
| 480 | this.propsParam.isEdit = this.$parent.isEdit; | 499 | this.propsParam.isEdit = this.$parent.isEdit; |
| ... | @@ -521,6 +540,10 @@ export default { | ... | @@ -521,6 +540,10 @@ export default { |
| 521 | // this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val)); | 540 | // this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val)); |
| 522 | // this.key++; | 541 | // this.key++; |
| 523 | // }, | 542 | // }, |
| 543 | /** | ||
| 544 | * @description: onSubmit | ||
| 545 | * @author: renchao | ||
| 546 | */ | ||
| 524 | onSubmit() { | 547 | onSubmit() { |
| 525 | this.$refs.ruleForm.validate((valid) => { | 548 | this.$refs.ruleForm.validate((valid) => { |
| 526 | console.log("valid", valid); | 549 | console.log("valid", valid); | ... | ... |
| ... | @@ -639,9 +639,19 @@ export default { | ... | @@ -639,9 +639,19 @@ export default { |
| 639 | this.ableOperation = this.$parent.ableOperation; | 639 | this.ableOperation = this.$parent.ableOperation; |
| 640 | }, | 640 | }, |
| 641 | methods: { | 641 | methods: { |
| 642 | /** | ||
| 643 | * @description: ztQlxxchange | ||
| 644 | * @param {*} val | ||
| 645 | * @author: renchao | ||
| 646 | */ | ||
| 642 | ztQlxxchange(val) { | 647 | ztQlxxchange(val) { |
| 643 | this.ruleForm.ztQlxx = val; | 648 | this.ruleForm.ztQlxx = val; |
| 644 | }, | 649 | }, |
| 650 | /** | ||
| 651 | * @description: ssQlxxchange | ||
| 652 | * @param {*} val | ||
| 653 | * @author: renchao | ||
| 654 | */ | ||
| 645 | ssQlxxchange(val) { | 655 | ssQlxxchange(val) { |
| 646 | this.ruleForm.ssQlxx = val; | 656 | this.ruleForm.ssQlxx = val; |
| 647 | this.ruleForm.qlxx.ssywh = val.ssywh; | 657 | this.ruleForm.qlxx.ssywh = val.ssywh; |
| ... | @@ -653,6 +663,10 @@ export default { | ... | @@ -653,6 +663,10 @@ export default { |
| 653 | this.ssqlxxshow = true; | 663 | this.ssqlxxshow = true; |
| 654 | } | 664 | } |
| 655 | }, | 665 | }, |
| 666 | /** | ||
| 667 | * @description: loadData | ||
| 668 | * @author: renchao | ||
| 669 | */ | ||
| 656 | loadData() { | 670 | loadData() { |
| 657 | this.$startLoading(); | 671 | this.$startLoading(); |
| 658 | this.propsParam.isEdit = this.$parent.isEdit; | 672 | this.propsParam.isEdit = this.$parent.isEdit; |
| ... | @@ -684,21 +698,40 @@ export default { | ... | @@ -684,21 +698,40 @@ export default { |
| 684 | }); | 698 | }); |
| 685 | }, | 699 | }, |
| 686 | // 更新土地用途信息 | 700 | // 更新土地用途信息 |
| 701 | /** | ||
| 702 | * @description: 更新土地用途信息 | ||
| 703 | * @param {*} val | ||
| 704 | * @author: renchao | ||
| 705 | */ | ||
| 687 | upDateTdytxxList(val) { | 706 | upDateTdytxxList(val) { |
| 688 | this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); | 707 | this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); |
| 689 | this.key++; | 708 | this.key++; |
| 690 | }, | 709 | }, |
| 691 | // 更新权利人信息 | 710 | // 更新权利人信息 |
| 711 | /** | ||
| 712 | * @description: 更新权利人信息 | ||
| 713 | * @param {*} val | ||
| 714 | * @author: renchao | ||
| 715 | */ | ||
| 692 | upDateQlrxxList(val) { | 716 | upDateQlrxxList(val) { |
| 693 | this.ruleForm.qlrData && (this.ruleForm.qlrData = _.cloneDeep(val)); | 717 | this.ruleForm.qlrData && (this.ruleForm.qlrData = _.cloneDeep(val)); |
| 694 | this.czrOptions = this.ruleForm.qlrData; | 718 | this.czrOptions = this.ruleForm.qlrData; |
| 695 | this.key++; | 719 | this.key++; |
| 696 | }, | 720 | }, |
| 697 | // 更新义务人信息 | 721 | // 更新义务人信息 |
| 722 | /** | ||
| 723 | * @description: 更新义务人信息 | ||
| 724 | * @param {*} val | ||
| 725 | * @author: renchao | ||
| 726 | */ | ||
| 698 | upDateYwrxxList(val) { | 727 | upDateYwrxxList(val) { |
| 699 | this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val)); | 728 | this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val)); |
| 700 | this.key++; | 729 | this.key++; |
| 701 | }, | 730 | }, |
| 731 | /** | ||
| 732 | * @description: onSubmit | ||
| 733 | * @author: renchao | ||
| 734 | */ | ||
| 702 | onSubmit() { | 735 | onSubmit() { |
| 703 | this.$refs.ruleForm.validate((valid) => { | 736 | this.$refs.ruleForm.validate((valid) => { |
| 704 | if (valid) { | 737 | if (valid) { | ... | ... |
| ... | @@ -398,10 +398,20 @@ export default { | ... | @@ -398,10 +398,20 @@ export default { |
| 398 | this.ableOperation=this.$parent.ableOperation | 398 | this.ableOperation=this.$parent.ableOperation |
| 399 | }, | 399 | }, |
| 400 | methods: { | 400 | methods: { |
| 401 | /** | ||
| 402 | * @description: ssQlxxchange | ||
| 403 | * @param {*} val | ||
| 404 | * @author: renchao | ||
| 405 | */ | ||
| 401 | ssQlxxchange(val) { | 406 | ssQlxxchange(val) { |
| 402 | this.ruleForm.ssQlxx = val; | 407 | this.ruleForm.ssQlxx = val; |
| 403 | this.ruleForm.qlxx.ssywh = val.ssywh; | 408 | this.ruleForm.qlxx.ssywh = val.ssywh; |
| 404 | }, | 409 | }, |
| 410 | /** | ||
| 411 | * @description: djlxchange | ||
| 412 | * @param {*} val | ||
| 413 | * @author: renchao | ||
| 414 | */ | ||
| 405 | djlxchange(val) { | 415 | djlxchange(val) { |
| 406 | console.log("val",val); | 416 | console.log("val",val); |
| 407 | if (val == null || val == 100) { | 417 | if (val == null || val == 100) { |
| ... | @@ -410,6 +420,10 @@ export default { | ... | @@ -410,6 +420,10 @@ export default { |
| 410 | this.ssqlxxshow = true; | 420 | this.ssqlxxshow = true; |
| 411 | } | 421 | } |
| 412 | }, | 422 | }, |
| 423 | /** | ||
| 424 | * @description: loadData | ||
| 425 | * @author: renchao | ||
| 426 | */ | ||
| 413 | loadData() { | 427 | loadData() { |
| 414 | this.$startLoading(); | 428 | this.$startLoading(); |
| 415 | this.propsParam.isEdit = this.$parent.isEdit; | 429 | this.propsParam.isEdit = this.$parent.isEdit; |
| ... | @@ -435,21 +449,40 @@ export default { | ... | @@ -435,21 +449,40 @@ export default { |
| 435 | }); | 449 | }); |
| 436 | }, | 450 | }, |
| 437 | // 更新土地用途信息 | 451 | // 更新土地用途信息 |
| 452 | /** | ||
| 453 | * @description: 更新土地用途信息 | ||
| 454 | * @param {*} val | ||
| 455 | * @author: renchao | ||
| 456 | */ | ||
| 438 | upDateTdytxxList(val) { | 457 | upDateTdytxxList(val) { |
| 439 | this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); | 458 | this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); |
| 440 | this.key++; | 459 | this.key++; |
| 441 | }, | 460 | }, |
| 442 | // 更新权利人信息 | 461 | // 更新权利人信息 |
| 462 | /** | ||
| 463 | * @description: 更新权利人信息 | ||
| 464 | * @param {*} val | ||
| 465 | * @author: renchao | ||
| 466 | */ | ||
| 443 | upDateQlrxxList(val) { | 467 | upDateQlrxxList(val) { |
| 444 | this.ruleForm.qlrData && (this.ruleForm.qlrData = _.cloneDeep(val)); | 468 | this.ruleForm.qlrData && (this.ruleForm.qlrData = _.cloneDeep(val)); |
| 445 | this.czrOptions = this.ruleForm.qlrData; | 469 | this.czrOptions = this.ruleForm.qlrData; |
| 446 | this.key++; | 470 | this.key++; |
| 447 | }, | 471 | }, |
| 448 | // 更新义务人信息 | 472 | // 更新义务人信息 |
| 473 | /** | ||
| 474 | * @description: 更新义务人信息 | ||
| 475 | * @param {*} val | ||
| 476 | * @author: renchao | ||
| 477 | */ | ||
| 449 | upDateYwrxxList(val) { | 478 | upDateYwrxxList(val) { |
| 450 | this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val)); | 479 | this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val)); |
| 451 | this.key++; | 480 | this.key++; |
| 452 | }, | 481 | }, |
| 482 | /** | ||
| 483 | * @description: onSubmit | ||
| 484 | * @author: renchao | ||
| 485 | */ | ||
| 453 | onSubmit() { | 486 | onSubmit() { |
| 454 | this.$refs.ruleForm.validate((valid) => { | 487 | this.$refs.ruleForm.validate((valid) => { |
| 455 | if (valid) { | 488 | if (valid) { | ... | ... |
| ... | @@ -458,10 +458,20 @@ | ... | @@ -458,10 +458,20 @@ |
| 458 | this.ableOperation = this.$parent.ableOperation; | 458 | this.ableOperation = this.$parent.ableOperation; |
| 459 | }, | 459 | }, |
| 460 | methods: { | 460 | methods: { |
| 461 | /** | ||
| 462 | * @description: ssQlxxchange | ||
| 463 | * @param {*} val | ||
| 464 | * @author: renchao | ||
| 465 | */ | ||
| 461 | ssQlxxchange (val) { | 466 | ssQlxxchange (val) { |
| 462 | this.ruleForm.ssQlxx = val; | 467 | this.ruleForm.ssQlxx = val; |
| 463 | this.ruleForm.qlxx.ssywh = val.ssywh; | 468 | this.ruleForm.qlxx.ssywh = val.ssywh; |
| 464 | }, | 469 | }, |
| 470 | /** | ||
| 471 | * @description: djlxchange | ||
| 472 | * @param {*} val | ||
| 473 | * @author: renchao | ||
| 474 | */ | ||
| 465 | djlxchange (val) { | 475 | djlxchange (val) { |
| 466 | console.log("val", val); | 476 | console.log("val", val); |
| 467 | if (val == null || val == 100) { | 477 | if (val == null || val == 100) { |
| ... | @@ -471,6 +481,10 @@ | ... | @@ -471,6 +481,10 @@ |
| 471 | } | 481 | } |
| 472 | }, | 482 | }, |
| 473 | 483 | ||
| 484 | /** | ||
| 485 | * @description: loadData | ||
| 486 | * @author: renchao | ||
| 487 | */ | ||
| 474 | loadData () { | 488 | loadData () { |
| 475 | this.$startLoading(); | 489 | this.$startLoading(); |
| 476 | this.propsParam.isEdit = this.$parent.isEdit; | 490 | this.propsParam.isEdit = this.$parent.isEdit; |
| ... | @@ -502,21 +516,40 @@ | ... | @@ -502,21 +516,40 @@ |
| 502 | }); | 516 | }); |
| 503 | }, | 517 | }, |
| 504 | // 更新土地用途信息 | 518 | // 更新土地用途信息 |
| 519 | /** | ||
| 520 | * @description: 更新土地用途信息 | ||
| 521 | * @param {*} val | ||
| 522 | * @author: renchao | ||
| 523 | */ | ||
| 505 | upDateTdytxxList (val) { | 524 | upDateTdytxxList (val) { |
| 506 | this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); | 525 | this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); |
| 507 | this.key++; | 526 | this.key++; |
| 508 | }, | 527 | }, |
| 509 | // 更新权利人信息 | 528 | // 更新权利人信息 |
| 529 | /** | ||
| 530 | * @description: 更新权利人信息 | ||
| 531 | * @param {*} val | ||
| 532 | * @author: renchao | ||
| 533 | */ | ||
| 510 | upDateQlrxxList (val) { | 534 | upDateQlrxxList (val) { |
| 511 | this.ruleForm.qlrData && (this.ruleForm.qlrData = _.cloneDeep(val)); | 535 | this.ruleForm.qlrData && (this.ruleForm.qlrData = _.cloneDeep(val)); |
| 512 | this.czrOptions = this.ruleForm.qlrData; | 536 | this.czrOptions = this.ruleForm.qlrData; |
| 513 | this.key++; | 537 | this.key++; |
| 514 | }, | 538 | }, |
| 515 | // 更新义务人信息 | 539 | // 更新义务人信息 |
| 540 | /** | ||
| 541 | * @description: 更新义务人信息 | ||
| 542 | * @param {*} val | ||
| 543 | * @author: renchao | ||
| 544 | */ | ||
| 516 | upDateYwrxxList (val) { | 545 | upDateYwrxxList (val) { |
| 517 | this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val)); | 546 | this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val)); |
| 518 | this.key++; | 547 | this.key++; |
| 519 | }, | 548 | }, |
| 549 | /** | ||
| 550 | * @description: onSubmit | ||
| 551 | * @author: renchao | ||
| 552 | */ | ||
| 520 | onSubmit () { | 553 | onSubmit () { |
| 521 | this.$refs.ruleForm.validate((valid) => { | 554 | this.$refs.ruleForm.validate((valid) => { |
| 522 | if (valid) { | 555 | if (valid) { | ... | ... |
| ... | @@ -360,10 +360,20 @@ export default { | ... | @@ -360,10 +360,20 @@ export default { |
| 360 | this.ableOperation=this.$parent.ableOperation | 360 | this.ableOperation=this.$parent.ableOperation |
| 361 | }, | 361 | }, |
| 362 | methods: { | 362 | methods: { |
| 363 | /** | ||
| 364 | * @description: ssQlxxchange | ||
| 365 | * @param {*} val | ||
| 366 | * @author: renchao | ||
| 367 | */ | ||
| 363 | ssQlxxchange(val) { | 368 | ssQlxxchange(val) { |
| 364 | this.ruleForm.ssQlxx = val; | 369 | this.ruleForm.ssQlxx = val; |
| 365 | this.ruleForm.qlxx.ssywh = val.ssywh; | 370 | this.ruleForm.qlxx.ssywh = val.ssywh; |
| 366 | }, | 371 | }, |
| 372 | /** | ||
| 373 | * @description: djlxchange | ||
| 374 | * @param {*} val | ||
| 375 | * @author: renchao | ||
| 376 | */ | ||
| 367 | djlxchange(val) { | 377 | djlxchange(val) { |
| 368 | console.log("val",val); | 378 | console.log("val",val); |
| 369 | if (val == null || val == 100) { | 379 | if (val == null || val == 100) { |
| ... | @@ -373,9 +383,18 @@ export default { | ... | @@ -373,9 +383,18 @@ export default { |
| 373 | } | 383 | } |
| 374 | }, | 384 | }, |
| 375 | // 字典 | 385 | // 字典 |
| 386 | /** | ||
| 387 | * @description: 字典 | ||
| 388 | * @param {*} val | ||
| 389 | * @author: renchao | ||
| 390 | */ | ||
| 376 | getDictData(val) { | 391 | getDictData(val) { |
| 377 | return store.getters.dictData[val]; | 392 | return store.getters.dictData[val]; |
| 378 | }, | 393 | }, |
| 394 | /** | ||
| 395 | * @description: loadData | ||
| 396 | * @author: renchao | ||
| 397 | */ | ||
| 379 | loadData() { | 398 | loadData() { |
| 380 | this.$startLoading(); | 399 | this.$startLoading(); |
| 381 | this.propsParam.isEdit = this.$parent.isEdit; | 400 | this.propsParam.isEdit = this.$parent.isEdit; |
| ... | @@ -402,21 +421,40 @@ export default { | ... | @@ -402,21 +421,40 @@ export default { |
| 402 | }); | 421 | }); |
| 403 | }, | 422 | }, |
| 404 | // 更新土地用途信息 | 423 | // 更新土地用途信息 |
| 424 | /** | ||
| 425 | * @description: 更新土地用途信息 | ||
| 426 | * @param {*} val | ||
| 427 | * @author: renchao | ||
| 428 | */ | ||
| 405 | upDateTdytxxList(val) { | 429 | upDateTdytxxList(val) { |
| 406 | this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); | 430 | this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); |
| 407 | this.key++; | 431 | this.key++; |
| 408 | }, | 432 | }, |
| 409 | // 更新权利人信息 | 433 | // 更新权利人信息 |
| 434 | /** | ||
| 435 | * @description: 更新权利人信息 | ||
| 436 | * @param {*} val | ||
| 437 | * @author: renchao | ||
| 438 | */ | ||
| 410 | upDateQlrxxList(val) { | 439 | upDateQlrxxList(val) { |
| 411 | this.ruleForm.qlrData && (this.ruleForm.qlrData = _.cloneDeep(val)); | 440 | this.ruleForm.qlrData && (this.ruleForm.qlrData = _.cloneDeep(val)); |
| 412 | this.czrOptions = this.ruleForm.qlrData; | 441 | this.czrOptions = this.ruleForm.qlrData; |
| 413 | this.key++; | 442 | this.key++; |
| 414 | }, | 443 | }, |
| 415 | // 更新义务人信息 | 444 | // 更新义务人信息 |
| 445 | /** | ||
| 446 | * @description: 更新义务人信息 | ||
| 447 | * @param {*} val | ||
| 448 | * @author: renchao | ||
| 449 | */ | ||
| 416 | upDateYwrxxList(val) { | 450 | upDateYwrxxList(val) { |
| 417 | this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val)); | 451 | this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val)); |
| 418 | this.key++; | 452 | this.key++; |
| 419 | }, | 453 | }, |
| 454 | /** | ||
| 455 | * @description: onSubmit | ||
| 456 | * @author: renchao | ||
| 457 | */ | ||
| 420 | onSubmit() { | 458 | onSubmit() { |
| 421 | this.$refs.ruleForm.validate((valid) => { | 459 | this.$refs.ruleForm.validate((valid) => { |
| 422 | if (valid) { | 460 | if (valid) { | ... | ... |
| ... | @@ -415,10 +415,20 @@ export default { | ... | @@ -415,10 +415,20 @@ export default { |
| 415 | this.ableOperation=this.$parent.ableOperation | 415 | this.ableOperation=this.$parent.ableOperation |
| 416 | }, | 416 | }, |
| 417 | methods: { | 417 | methods: { |
| 418 | /** | ||
| 419 | * @description: ssQlxxchange | ||
| 420 | * @param {*} val | ||
| 421 | * @author: renchao | ||
| 422 | */ | ||
| 418 | ssQlxxchange(val) { | 423 | ssQlxxchange(val) { |
| 419 | this.ruleForm.ssQlxx = val; | 424 | this.ruleForm.ssQlxx = val; |
| 420 | this.ruleForm.qlxx.ssywh = val.ssywh; | 425 | this.ruleForm.qlxx.ssywh = val.ssywh; |
| 421 | }, | 426 | }, |
| 427 | /** | ||
| 428 | * @description: djlxchange | ||
| 429 | * @param {*} val | ||
| 430 | * @author: renchao | ||
| 431 | */ | ||
| 422 | djlxchange(val) { | 432 | djlxchange(val) { |
| 423 | console.log("val",val); | 433 | console.log("val",val); |
| 424 | if (val == null || val == 100) { | 434 | if (val == null || val == 100) { |
| ... | @@ -429,9 +439,18 @@ export default { | ... | @@ -429,9 +439,18 @@ export default { |
| 429 | }, | 439 | }, |
| 430 | 440 | ||
| 431 | // 字典 | 441 | // 字典 |
| 442 | /** | ||
| 443 | * @description: 字典 | ||
| 444 | * @param {*} val | ||
| 445 | * @author: renchao | ||
| 446 | */ | ||
| 432 | getDictData(val) { | 447 | getDictData(val) { |
| 433 | return store.getters.dictData[val]; | 448 | return store.getters.dictData[val]; |
| 434 | }, | 449 | }, |
| 450 | /** | ||
| 451 | * @description: loadData | ||
| 452 | * @author: renchao | ||
| 453 | */ | ||
| 435 | loadData() { | 454 | loadData() { |
| 436 | this.$startLoading(); | 455 | this.$startLoading(); |
| 437 | this.propsParam.isEdit = this.$parent.isEdit; | 456 | this.propsParam.isEdit = this.$parent.isEdit; |
| ... | @@ -462,11 +481,21 @@ export default { | ... | @@ -462,11 +481,21 @@ export default { |
| 462 | }); | 481 | }); |
| 463 | }, | 482 | }, |
| 464 | // 更新土地用途信息 | 483 | // 更新土地用途信息 |
| 484 | /** | ||
| 485 | * @description: 更新土地用途信息 | ||
| 486 | * @param {*} val | ||
| 487 | * @author: renchao | ||
| 488 | */ | ||
| 465 | upDateTdytxxList(val) { | 489 | upDateTdytxxList(val) { |
| 466 | this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); | 490 | this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); |
| 467 | this.key++; | 491 | this.key++; |
| 468 | }, | 492 | }, |
| 469 | // 更新权利人信息 | 493 | // 更新权利人信息 |
| 494 | /** | ||
| 495 | * @description: 更新权利人信息 | ||
| 496 | * @param {*} val | ||
| 497 | * @author: renchao | ||
| 498 | */ | ||
| 470 | upDateQlrxxList(val) { | 499 | upDateQlrxxList(val) { |
| 471 | this.ruleForm.qlrData && (this.ruleForm.qlrData = _.cloneDeep(val)); | 500 | this.ruleForm.qlrData && (this.ruleForm.qlrData = _.cloneDeep(val)); |
| 472 | this.czrOptions = this.ruleForm.qlrData; | 501 | this.czrOptions = this.ruleForm.qlrData; |
| ... | @@ -477,6 +506,10 @@ export default { | ... | @@ -477,6 +506,10 @@ export default { |
| 477 | // this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val)); | 506 | // this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val)); |
| 478 | // this.key++; | 507 | // this.key++; |
| 479 | // }, | 508 | // }, |
| 509 | /** | ||
| 510 | * @description: onSubmit | ||
| 511 | * @author: renchao | ||
| 512 | */ | ||
| 480 | onSubmit() { | 513 | onSubmit() { |
| 481 | this.$refs.ruleForm.validate((valid) => { | 514 | this.$refs.ruleForm.validate((valid) => { |
| 482 | if (valid) { | 515 | if (valid) { | ... | ... |
| ... | @@ -438,10 +438,20 @@ export default { | ... | @@ -438,10 +438,20 @@ export default { |
| 438 | this.ableOperation=this.$parent.ableOperation | 438 | this.ableOperation=this.$parent.ableOperation |
| 439 | }, | 439 | }, |
| 440 | methods: { | 440 | methods: { |
| 441 | /** | ||
| 442 | * @description: ssQlxxchange | ||
| 443 | * @param {*} val | ||
| 444 | * @author: renchao | ||
| 445 | */ | ||
| 441 | ssQlxxchange(val) { | 446 | ssQlxxchange(val) { |
| 442 | this.ruleForm.ssQlxx = val; | 447 | this.ruleForm.ssQlxx = val; |
| 443 | this.ruleForm.qlxx.ssywh = val.ssywh; | 448 | this.ruleForm.qlxx.ssywh = val.ssywh; |
| 444 | }, | 449 | }, |
| 450 | /** | ||
| 451 | * @description: djlxchange | ||
| 452 | * @param {*} val | ||
| 453 | * @author: renchao | ||
| 454 | */ | ||
| 445 | djlxchange(val) { | 455 | djlxchange(val) { |
| 446 | console.log("val",val); | 456 | console.log("val",val); |
| 447 | if (val == null || val == 100) { | 457 | if (val == null || val == 100) { |
| ... | @@ -450,6 +460,10 @@ export default { | ... | @@ -450,6 +460,10 @@ export default { |
| 450 | this.ssqlxxshow = true; | 460 | this.ssqlxxshow = true; |
| 451 | } | 461 | } |
| 452 | }, | 462 | }, |
| 463 | /** | ||
| 464 | * @description: loadData | ||
| 465 | * @author: renchao | ||
| 466 | */ | ||
| 453 | loadData() { | 467 | loadData() { |
| 454 | this.$startLoading(); | 468 | this.$startLoading(); |
| 455 | this.propsParam.isEdit=this.$parent.isEdit | 469 | this.propsParam.isEdit=this.$parent.isEdit |
| ... | @@ -475,21 +489,40 @@ export default { | ... | @@ -475,21 +489,40 @@ export default { |
| 475 | }); | 489 | }); |
| 476 | }, | 490 | }, |
| 477 | // 更新土地用途信息 | 491 | // 更新土地用途信息 |
| 492 | /** | ||
| 493 | * @description: 更新土地用途信息 | ||
| 494 | * @param {*} val | ||
| 495 | * @author: renchao | ||
| 496 | */ | ||
| 478 | upDateTdytxxList(val) { | 497 | upDateTdytxxList(val) { |
| 479 | this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); | 498 | this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); |
| 480 | this.key++; | 499 | this.key++; |
| 481 | }, | 500 | }, |
| 482 | // 更新权利人信息 | 501 | // 更新权利人信息 |
| 502 | /** | ||
| 503 | * @description: 更新权利人信息 | ||
| 504 | * @param {*} val | ||
| 505 | * @author: renchao | ||
| 506 | */ | ||
| 483 | upDateQlrxxList(val) { | 507 | upDateQlrxxList(val) { |
| 484 | this.ruleForm.qlrData && (this.ruleForm.qlrData = _.cloneDeep(val)); | 508 | this.ruleForm.qlrData && (this.ruleForm.qlrData = _.cloneDeep(val)); |
| 485 | this.czrOptions = this.ruleForm.qlrData; | 509 | this.czrOptions = this.ruleForm.qlrData; |
| 486 | this.key++; | 510 | this.key++; |
| 487 | }, | 511 | }, |
| 488 | // 更新义务人信息 | 512 | // 更新义务人信息 |
| 513 | /** | ||
| 514 | * @description: 更新义务人信息 | ||
| 515 | * @param {*} val | ||
| 516 | * @author: renchao | ||
| 517 | */ | ||
| 489 | upDateYwrxxList(val) { | 518 | upDateYwrxxList(val) { |
| 490 | this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val)); | 519 | this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val)); |
| 491 | this.key++; | 520 | this.key++; |
| 492 | }, | 521 | }, |
| 522 | /** | ||
| 523 | * @description: onSubmit | ||
| 524 | * @author: renchao | ||
| 525 | */ | ||
| 493 | onSubmit() { | 526 | onSubmit() { |
| 494 | this.$refs.ruleForm.validate((valid) => { | 527 | this.$refs.ruleForm.validate((valid) => { |
| 495 | if (valid) { | 528 | if (valid) { | ... | ... |
| ... | @@ -319,6 +319,10 @@ export default { | ... | @@ -319,6 +319,10 @@ export default { |
| 319 | this.ableOperation =this.$parent.ableOperation | 319 | this.ableOperation =this.$parent.ableOperation |
| 320 | }, | 320 | }, |
| 321 | methods: { | 321 | methods: { |
| 322 | /** | ||
| 323 | * @description: loadData | ||
| 324 | * @author: renchao | ||
| 325 | */ | ||
| 322 | loadData() { | 326 | loadData() { |
| 323 | this.$startLoading(); | 327 | this.$startLoading(); |
| 324 | this.propsParam.isEdit=this.$parent.isEdit | 328 | this.propsParam.isEdit=this.$parent.isEdit |
| ... | @@ -331,21 +335,40 @@ export default { | ... | @@ -331,21 +335,40 @@ export default { |
| 331 | }); | 335 | }); |
| 332 | }, | 336 | }, |
| 333 | // 更新土地用途信息 | 337 | // 更新土地用途信息 |
| 338 | /** | ||
| 339 | * @description: 更新土地用途信息 | ||
| 340 | * @param {*} val | ||
| 341 | * @author: renchao | ||
| 342 | */ | ||
| 334 | upDateTdytxxList(val) { | 343 | upDateTdytxxList(val) { |
| 335 | this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); | 344 | this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); |
| 336 | this.key++; | 345 | this.key++; |
| 337 | }, | 346 | }, |
| 338 | // 更新权利人信息 | 347 | // 更新权利人信息 |
| 348 | /** | ||
| 349 | * @description: 更新权利人信息 | ||
| 350 | * @param {*} val | ||
| 351 | * @author: renchao | ||
| 352 | */ | ||
| 339 | upDateQlrxxList(val) { | 353 | upDateQlrxxList(val) { |
| 340 | this.ruleForm.qlrData && (this.ruleForm.qlrData = _.cloneDeep(val)); | 354 | this.ruleForm.qlrData && (this.ruleForm.qlrData = _.cloneDeep(val)); |
| 341 | this.czrOptions = this.ruleForm.qlrData; | 355 | this.czrOptions = this.ruleForm.qlrData; |
| 342 | this.key++; | 356 | this.key++; |
| 343 | }, | 357 | }, |
| 344 | // 更新义务人信息 | 358 | // 更新义务人信息 |
| 359 | /** | ||
| 360 | * @description: 更新义务人信息 | ||
| 361 | * @param {*} val | ||
| 362 | * @author: renchao | ||
| 363 | */ | ||
| 345 | upDateYwrxxList(val) { | 364 | upDateYwrxxList(val) { |
| 346 | this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val)); | 365 | this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val)); |
| 347 | this.key++; | 366 | this.key++; |
| 348 | }, | 367 | }, |
| 368 | /** | ||
| 369 | * @description: onSubmit | ||
| 370 | * @author: renchao | ||
| 371 | */ | ||
| 349 | onSubmit() { | 372 | onSubmit() { |
| 350 | this.$refs.ruleForm.validate((valid) => { | 373 | this.$refs.ruleForm.validate((valid) => { |
| 351 | if (valid) { | 374 | if (valid) { | ... | ... |
| ... | @@ -109,6 +109,9 @@ export default { | ... | @@ -109,6 +109,9 @@ export default { |
| 109 | this.getShList(); | 109 | this.getShList(); |
| 110 | }, | 110 | }, |
| 111 | methods: { | 111 | methods: { |
| 112 | /** | ||
| 113 | * @description: getShList | ||
| 114 | * @a | ||
| 112 | getShList() { | 115 | getShList() { |
| 113 | this.$startLoading(); | 116 | this.$startLoading(); |
| 114 | var formdata = { | 117 | var formdata = { |
| ... | @@ -125,7 +128,16 @@ export default { | ... | @@ -125,7 +128,16 @@ export default { |
| 125 | } | 128 | } |
| 126 | }); | 129 | }); |
| 127 | }, | 130 | }, |
| 131 | /** | ||
| 132 | * @description: judgment | ||
| 133 | * @param {*} obj | ||
| 134 | * @author: renchao | ||
| 135 | */ | ||
| 128 | judgment(obj) {}, | 136 | judgment(obj) {}, |
| 137 | /** | ||
| 138 | * @description: onSubmit | ||
| 139 | * @author: renchao | ||
| 140 | */ | ||
| 129 | onSubmit() { | 141 | onSubmit() { |
| 130 | if ( | 142 | if ( |
| 131 | this.tableData[2].shyj == null || | 143 | this.tableData[2].shyj == null || |
| ... | @@ -188,6 +200,11 @@ export default { | ... | @@ -188,6 +200,11 @@ export default { |
| 188 | } | 200 | } |
| 189 | }, | 201 | }, |
| 190 | //打开常用意见列表弹窗 | 202 | //打开常用意见列表弹窗 |
| 203 | /** | ||
| 204 | * @description: 打开常用意见列表弹窗 | ||
| 205 | * @param {*} index | ||
| 206 | * @author: renchao | ||
| 207 | */ | ||
| 191 | commonOpinion(index) { | 208 | commonOpinion(index) { |
| 192 | this.currentindex = index; | 209 | this.currentindex = index; |
| 193 | this.$popupDialog( | 210 | this.$popupDialog( |
| ... | @@ -198,6 +215,11 @@ export default { | ... | @@ -198,6 +215,11 @@ export default { |
| 198 | true | 215 | true |
| 199 | ); | 216 | ); |
| 200 | }, | 217 | }, |
| 218 | /** | ||
| 219 | * @description: add | ||
| 220 | * @param {*} val | ||
| 221 | * @author: renchao | ||
| 222 | */ | ||
| 201 | add(val) { | 223 | add(val) { |
| 202 | if (val != "") { | 224 | if (val != "") { |
| 203 | this.$set(this.tableData[this.currentindex], "shyj", val); | 225 | this.$set(this.tableData[this.currentindex], "shyj", val); | ... | ... |
| ... | @@ -43,6 +43,10 @@ export default { | ... | @@ -43,6 +43,10 @@ export default { |
| 43 | }, | 43 | }, |
| 44 | methods: { | 44 | methods: { |
| 45 | //加载流程初始参数 | 45 | //加载流程初始参数 |
| 46 | /** | ||
| 47 | * @description: 加载流程初始参数 | ||
| 48 | * @author: renchao | ||
| 49 | */ | ||
| 46 | flowInitParam () { | 50 | flowInitParam () { |
| 47 | var formdata = new FormData(); | 51 | var formdata = new FormData(); |
| 48 | 52 | ||
| ... | @@ -70,6 +74,11 @@ export default { | ... | @@ -70,6 +74,11 @@ export default { |
| 70 | 74 | ||
| 71 | }, | 75 | }, |
| 72 | //流程环节操作按钮 | 76 | //流程环节操作按钮 |
| 77 | /** | ||
| 78 | * @description: 流程环节操作按钮 | ||
| 79 | * @param {*} item | ||
| 80 | * @author: renchao | ||
| 81 | */ | ||
| 73 | operation (item) { | 82 | operation (item) { |
| 74 | //按钮 B0:选择不动产单元 B1:流程图 B2:材料分屏 B3:材料导入 B4:登记簿 B5:证书预览 B6:打印申请书 B7:证书领取 B8:楼盘表 B9:登簿 | 83 | //按钮 B0:选择不动产单元 B1:流程图 B2:材料分屏 B3:材料导入 B4:登记簿 B5:证书预览 B6:打印申请书 B7:证书领取 B8:楼盘表 B9:登簿 |
| 75 | //操作按钮 登簿:record 转件:transfer 退回:back 退出:signout | 84 | //操作按钮 登簿:record 转件:transfer 退回:back 退出:signout |
| ... | @@ -276,6 +285,10 @@ export default { | ... | @@ -276,6 +285,10 @@ export default { |
| 276 | break; | 285 | break; |
| 277 | } | 286 | } |
| 278 | }, | 287 | }, |
| 288 | /** | ||
| 289 | * @description: del | ||
| 290 | * @author: renchao | ||
| 291 | */ | ||
| 279 | del () { | 292 | del () { |
| 280 | let formdata = new FormData(); | 293 | let formdata = new FormData(); |
| 281 | formdata.append("bsmSlsq", this.bsmSlsq); | 294 | formdata.append("bsmSlsq", this.bsmSlsq); |
| ... | @@ -306,6 +319,11 @@ export default { | ... | @@ -306,6 +319,11 @@ export default { |
| 306 | }); | 319 | }); |
| 307 | }, | 320 | }, |
| 308 | //发送下一个环节 | 321 | //发送下一个环节 |
| 322 | /** | ||
| 323 | * @description: 发送下一个环节 | ||
| 324 | * @param {*} obj | ||
| 325 | * @author: renchao | ||
| 326 | */ | ||
| 309 | sendToNext (obj) { | 327 | sendToNext (obj) { |
| 310 | const h = this.$createElement; | 328 | const h = this.$createElement; |
| 311 | this.$msgbox({ | 329 | this.$msgbox({ |
| ... | @@ -355,6 +373,10 @@ export default { | ... | @@ -355,6 +373,10 @@ export default { |
| 355 | }); | 373 | }); |
| 356 | }); | 374 | }); |
| 357 | }, | 375 | }, |
| 376 | /** | ||
| 377 | * @description: sendToEnd | ||
| 378 | * @author: renchao | ||
| 379 | */ | ||
| 358 | sendToEnd () { | 380 | sendToEnd () { |
| 359 | let that = this | 381 | let that = this |
| 360 | const h = this.$createElement; | 382 | const h = this.$createElement; |
| ... | @@ -401,6 +423,10 @@ export default { | ... | @@ -401,6 +423,10 @@ export default { |
| 401 | }) | 423 | }) |
| 402 | }, | 424 | }, |
| 403 | //批量操作 | 425 | //批量操作 |
| 426 | /** | ||
| 427 | * @description: 批量操作 | ||
| 428 | * @author: renchao | ||
| 429 | */ | ||
| 404 | handleBatchDel () { | 430 | handleBatchDel () { |
| 405 | this.$popupDialog("批量删除", "workflow/components/batchDel", { | 431 | this.$popupDialog("批量删除", "workflow/components/batchDel", { |
| 406 | width: "50%", | 432 | width: "50%", |
| ... | @@ -410,6 +436,11 @@ export default { | ... | @@ -410,6 +436,11 @@ export default { |
| 410 | 436 | ||
| 411 | }) | 437 | }) |
| 412 | }, | 438 | }, |
| 439 | /** | ||
| 440 | * @description: handleChange | ||
| 441 | * @param {*} file | ||
| 442 | * @author: renchao | ||
| 443 | */ | ||
| 413 | handleChange (file) { | 444 | handleChange (file) { |
| 414 | var formdata = new FormData(); | 445 | var formdata = new FormData(); |
| 415 | formdata.append("file", file.raw); | 446 | formdata.append("file", file.raw); |
| ... | @@ -424,6 +455,11 @@ export default { | ... | @@ -424,6 +455,11 @@ export default { |
| 424 | }) | 455 | }) |
| 425 | }, | 456 | }, |
| 426 | // 上传 | 457 | // 上传 |
| 458 | /** | ||
| 459 | * @description: 上传 | ||
| 460 | * @param {*} file | ||
| 461 | * @author: renchao | ||
| 462 | */ | ||
| 427 | beforeUpload (file) { | 463 | beforeUpload (file) { |
| 428 | return true; | 464 | return true; |
| 429 | } | 465 | } | ... | ... |
| ... | @@ -129,6 +129,11 @@ | ... | @@ -129,6 +129,11 @@ |
| 129 | }, | 129 | }, |
| 130 | 130 | ||
| 131 | methods: { | 131 | methods: { |
| 132 | /** | ||
| 133 | * @description: stepForm | ||
| 134 | * @param {*} qllx | ||
| 135 | * @author: renchao | ||
| 136 | */ | ||
| 132 | stepForm (qllx) { | 137 | stepForm (qllx) { |
| 133 | this.oneSelectProps.qllx = qllx; | 138 | this.oneSelectProps.qllx = qllx; |
| 134 | if (this.$refs.Menu.supplementarylist.length) { | 139 | if (this.$refs.Menu.supplementarylist.length) { |
| ... | @@ -162,6 +167,11 @@ | ... | @@ -162,6 +167,11 @@ |
| 162 | }, | 167 | }, |
| 163 | 168 | ||
| 164 | // 获取右侧选项卡 | 169 | // 获取右侧选项卡 |
| 170 | /** | ||
| 171 | * @description: 获取右侧选项卡 | ||
| 172 | * @param {*} val | ||
| 173 | * @author: renchao | ||
| 174 | */ | ||
| 165 | getCurrentSelectProps (val) { | 175 | getCurrentSelectProps (val) { |
| 166 | this.bsmRepair= val.bsmRepair | 176 | this.bsmRepair= val.bsmRepair |
| 167 | if (val.bdcdyid) { | 177 | if (val.bdcdyid) { |
| ... | @@ -179,6 +189,10 @@ | ... | @@ -179,6 +189,10 @@ |
| 179 | } | 189 | } |
| 180 | }, | 190 | }, |
| 181 | // 获取渲染登记簿列表 | 191 | // 获取渲染登记簿列表 |
| 192 | /** | ||
| 193 | * @description: 获取渲染登记簿列表 | ||
| 194 | * @author: renchao | ||
| 195 | */ | ||
| 182 | getdjblist () { | 196 | getdjblist () { |
| 183 | getBdcqljqtsx({ | 197 | getBdcqljqtsx({ |
| 184 | bdcdyid: this.currentSelectProps.bdcdyid, | 198 | bdcdyid: this.currentSelectProps.bdcdyid, |
| ... | @@ -208,10 +222,20 @@ | ... | @@ -208,10 +222,20 @@ |
| 208 | }); | 222 | }); |
| 209 | }, | 223 | }, |
| 210 | //右侧表单选项卡事件 | 224 | //右侧表单选项卡事件 |
| 225 | /** | ||
| 226 | * @description: 右侧表单选项卡事件 | ||
| 227 | * @param {*} activeName | ||
| 228 | * @author: renchao | ||
| 229 | */ | ||
| 211 | beforeLeave (activeName) { | 230 | beforeLeave (activeName) { |
| 212 | if (activeName && activeName != 0) this.getFromRouter(activeName); | 231 | if (activeName && activeName != 0) this.getFromRouter(activeName); |
| 213 | }, | 232 | }, |
| 214 | //切换选项卡内容组件 | 233 | //切换选项卡内容组件 |
| 234 | /** | ||
| 235 | * @description: 切换选项卡内容组件 | ||
| 236 | * @param {*} tabname | ||
| 237 | * @author: renchao | ||
| 238 | */ | ||
| 215 | getFromRouter (tabname) { | 239 | getFromRouter (tabname) { |
| 216 | this.componentTag = getForm(tabname); | 240 | this.componentTag = getForm(tabname); |
| 217 | }, | 241 | }, |
| ... | @@ -223,6 +247,12 @@ | ... | @@ -223,6 +247,12 @@ |
| 223 | // this.tabName = this.tabList[0].value | 247 | // this.tabName = this.tabList[0].value |
| 224 | // }, | 248 | // }, |
| 225 | // 增加补录记录 | 249 | // 增加补录记录 |
| 250 | /** | ||
| 251 | * @description: 增加补录记录 | ||
| 252 | * @param {*} row | ||
| 253 | * @param {*} del | ||
| 254 | * @author: renchao | ||
| 255 | */ | ||
| 226 | addRepairRecord (row, del) { | 256 | addRepairRecord (row, del) { |
| 227 | let from = { | 257 | let from = { |
| 228 | bsmQlxx: "", | 258 | bsmQlxx: "", | ... | ... |
| ... | @@ -125,6 +125,11 @@ | ... | @@ -125,6 +125,11 @@ |
| 125 | }, | 125 | }, |
| 126 | 126 | ||
| 127 | methods: { | 127 | methods: { |
| 128 | /** | ||
| 129 | * @description: stepForm | ||
| 130 | * @param {*} qllx | ||
| 131 | * @author: renchao | ||
| 132 | */ | ||
| 128 | stepForm (qllx) { | 133 | stepForm (qllx) { |
| 129 | this.oneSelectProps.qllx = qllx; | 134 | this.oneSelectProps.qllx = qllx; |
| 130 | if (this.$refs.Menu.supplementarylist.length) { | 135 | if (this.$refs.Menu.supplementarylist.length) { |
| ... | @@ -141,6 +146,11 @@ | ... | @@ -141,6 +146,11 @@ |
| 141 | } | 146 | } |
| 142 | }, | 147 | }, |
| 143 | // 获取右侧选项卡 | 148 | // 获取右侧选项卡 |
| 149 | /** | ||
| 150 | * @description: 获取右侧选项卡 | ||
| 151 | * @param {*} val | ||
| 152 | * @author: renchao | ||
| 153 | */ | ||
| 144 | getCurrentSelectProps (val) { | 154 | getCurrentSelectProps (val) { |
| 145 | this.bsmRepair = val.bsmRepair | 155 | this.bsmRepair = val.bsmRepair |
| 146 | if (val.bdcdyid) { | 156 | if (val.bdcdyid) { |
| ... | @@ -158,6 +168,10 @@ | ... | @@ -158,6 +168,10 @@ |
| 158 | } | 168 | } |
| 159 | }, | 169 | }, |
| 160 | // 获取渲染登记簿列表 | 170 | // 获取渲染登记簿列表 |
| 171 | /** | ||
| 172 | * @description: 获取渲染登记簿列表 | ||
| 173 | * @author: renchao | ||
| 174 | */ | ||
| 161 | getdjblist () { | 175 | getdjblist () { |
| 162 | getBdcqljqtsx({ | 176 | getBdcqljqtsx({ |
| 163 | bdcdyid: this.currentSelectProps.bdcdyid, | 177 | bdcdyid: this.currentSelectProps.bdcdyid, |
| ... | @@ -187,13 +201,27 @@ | ... | @@ -187,13 +201,27 @@ |
| 187 | }); | 201 | }); |
| 188 | }, | 202 | }, |
| 189 | //右侧表单选项卡事件 | 203 | //右侧表单选项卡事件 |
| 204 | /** | ||
| 205 | * @description: 右侧表单选项卡事件 | ||
| 206 | * @param {*} activeName | ||
| 207 | * @author: renchao | ||
| 208 | */ | ||
| 190 | beforeLeave (activeName) { | 209 | beforeLeave (activeName) { |
| 191 | if (activeName && activeName != 0) this.getFromRouter(activeName); | 210 | if (activeName && activeName != 0) this.getFromRouter(activeName); |
| 192 | }, | 211 | }, |
| 193 | //切换选项卡内容组件 | 212 | //切换选项卡内容组件 |
| 213 | /** | ||
| 214 | * @description: 切换选项卡内容组件 | ||
| 215 | * @param {*} tabname | ||
| 216 | * @author: renchao | ||
| 217 | */ | ||
| 194 | getFromRouter (tabname) { | 218 | getFromRouter (tabname) { |
| 195 | this.componentTag = getForm(tabname); | 219 | this.componentTag = getForm(tabname); |
| 196 | }, | 220 | }, |
| 221 | /** | ||
| 222 | * @description: closefp | ||
| 223 | * @author: renchao | ||
| 224 | */ | ||
| 197 | closefp () { | 225 | closefp () { |
| 198 | this.splitScreen = this.splitScreen ? false : true; | 226 | this.splitScreen = this.splitScreen ? false : true; |
| 199 | this.$store.dispatch("app/set1tScreen", this.splitScreen); | 227 | this.$store.dispatch("app/set1tScreen", this.splitScreen); |
| ... | @@ -201,6 +229,12 @@ | ... | @@ -201,6 +229,12 @@ |
| 201 | this.clxxForm = getForm(this.tabList[1].value); | 229 | this.clxxForm = getForm(this.tabList[1].value); |
| 202 | }, | 230 | }, |
| 203 | // 增加补录记录 | 231 | // 增加补录记录 |
| 232 | /** | ||
| 233 | * @description: 增加补录记录 | ||
| 234 | * @param {*} row | ||
| 235 | * @param {*} del | ||
| 236 | * @author: renchao | ||
| 237 | */ | ||
| 204 | addRepairRecord (row, del) { | 238 | addRepairRecord (row, del) { |
| 205 | let from = { | 239 | let from = { |
| 206 | bsmQlxx: "", | 240 | bsmQlxx: "", | ... | ... |
| ... | @@ -14,6 +14,10 @@ export default { | ... | @@ -14,6 +14,10 @@ export default { |
| 14 | } | 14 | } |
| 15 | }, | 15 | }, |
| 16 | methods: { | 16 | methods: { |
| 17 | /** | ||
| 18 | * @description: nextTo | ||
| 19 | * @author: renchao | ||
| 20 | */ | ||
| 17 | nextTo () { | 21 | nextTo () { |
| 18 | this.$router.push({ | 22 | this.$router.push({ |
| 19 | path: this.redirect || '/', | 23 | path: this.redirect || '/', | ... | ... |
| ... | @@ -49,6 +49,10 @@ export default { | ... | @@ -49,6 +49,10 @@ export default { |
| 49 | this.dealCheckedItem(); | 49 | this.dealCheckedItem(); |
| 50 | }, | 50 | }, |
| 51 | methods: { | 51 | methods: { |
| 52 | /** | ||
| 53 | * @description: submitForm | ||
| 54 | * @author: renchao | ||
| 55 | */ | ||
| 52 | submitForm () { | 56 | submitForm () { |
| 53 | var checkedNodes = this.$refs.tree.getCheckedNodes(); | 57 | var checkedNodes = this.$refs.tree.getCheckedNodes(); |
| 54 | if (checkedNodes.length > 6) { | 58 | if (checkedNodes.length > 6) { |
| ... | @@ -65,6 +69,10 @@ export default { | ... | @@ -65,6 +69,10 @@ export default { |
| 65 | } | 69 | } |
| 66 | }) | 70 | }) |
| 67 | }, | 71 | }, |
| 72 | /** | ||
| 73 | * @description: queryClick | ||
| 74 | * @author: renchao | ||
| 75 | */ | ||
| 68 | queryClick () { | 76 | queryClick () { |
| 69 | let that = this | 77 | let that = this |
| 70 | getMenuInfo().then(res => { | 78 | getMenuInfo().then(res => { |
| ... | @@ -79,13 +87,28 @@ export default { | ... | @@ -79,13 +87,28 @@ export default { |
| 79 | } | 87 | } |
| 80 | this.defaultCheckeds = lookForAllId() | 88 | this.defaultCheckeds = lookForAllId() |
| 81 | }, | 89 | }, |
| 90 | /** | ||
| 91 | * @description: dealCheckedItem | ||
| 92 | * @author: renchao | ||
| 93 | */ | ||
| 82 | dealCheckedItem () { | 94 | dealCheckedItem () { |
| 83 | }, | 95 | }, |
| 84 | //关闭窗口 | 96 | //关闭窗口 |
| 97 | /** | ||
| 98 | * @description: 关闭窗口 | ||
| 99 | * @author: renchao | ||
| 100 | */ | ||
| 85 | closeDialog () { | 101 | closeDialog () { |
| 86 | this.$emit("input", false); | 102 | this.$emit("input", false); |
| 87 | }, | 103 | }, |
| 88 | //节点选择状态发生改变时 | 104 | //节点选择状态发生改变时 |
| 105 | /** | ||
| 106 | * @description: 节点选择状态发生改变时 | ||
| 107 | * @param {*} data | ||
| 108 | * @param {*} checked | ||
| 109 | * @param {*} node | ||
| 110 | * @author: renchao | ||
| 111 | */ | ||
| 89 | handleClick (data, checked, node) { | 112 | handleClick (data, checked, node) { |
| 90 | var checkedNodes = this.$refs.tree.getCheckedNodes(); | 113 | var checkedNodes = this.$refs.tree.getCheckedNodes(); |
| 91 | if (checkedNodes.length > 6) { | 114 | if (checkedNodes.length > 6) { |
| ... | @@ -105,4 +128,4 @@ export default { | ... | @@ -105,4 +128,4 @@ export default { |
| 105 | display: flex; | 128 | display: flex; |
| 106 | flex-wrap: wrap; | 129 | flex-wrap: wrap; |
| 107 | } | 130 | } |
| 108 | </style> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 131 | </style> | ... | ... |
| ... | @@ -193,15 +193,29 @@ | ... | @@ -193,15 +193,29 @@ |
| 193 | this.queryProjectList();//获取常办项目列表 | 193 | this.queryProjectList();//获取常办项目列表 |
| 194 | }, | 194 | }, |
| 195 | methods: { | 195 | methods: { |
| 196 | /** | ||
| 197 | * @description: handleProject | ||
| 198 | * @param {*} item | ||
| 199 | * @author: renchao | ||
| 200 | */ | ||
| 196 | handleProject (item) { | 201 | handleProject (item) { |
| 197 | let url = item.uri.split('/').slice(0, 3).join('/') | 202 | let url = item.uri.split('/').slice(0, 3).join('/') |
| 198 | this.$router.push(url) | 203 | this.$router.push(url) |
| 199 | }, | 204 | }, |
| 205 | /** | ||
| 206 | * @description: handleView | ||
| 207 | * @param {*} pdfUrl | ||
| 208 | * @author: renchao | ||
| 209 | */ | ||
| 200 | handleView (pdfUrl) { | 210 | handleView (pdfUrl) { |
| 201 | const href = pdfUrl | 211 | const href = pdfUrl |
| 202 | window.open(href, '_blank'); | 212 | window.open(href, '_blank'); |
| 203 | }, | 213 | }, |
| 204 | //获取待办事项列表 | 214 | //获取待办事项列表 |
| 215 | /** | ||
| 216 | * @description: 获取待办事项列表 | ||
| 217 | * @author: renchao | ||
| 218 | */ | ||
| 205 | queryTodoList () { | 219 | queryTodoList () { |
| 206 | getHomeTodoList().then(res => { | 220 | getHomeTodoList().then(res => { |
| 207 | if (res.result) { | 221 | if (res.result) { |
| ... | @@ -210,6 +224,10 @@ | ... | @@ -210,6 +224,10 @@ |
| 210 | }) | 224 | }) |
| 211 | }, | 225 | }, |
| 212 | //获取已办事项列表 | 226 | //获取已办事项列表 |
| 227 | /** | ||
| 228 | * @description: 获取已办事项列表 | ||
| 229 | * @author: renchao | ||
| 230 | */ | ||
| 213 | queryDoneList () { | 231 | queryDoneList () { |
| 214 | getHomeDoneList().then(res => { | 232 | getHomeDoneList().then(res => { |
| 215 | if (res.result) { | 233 | if (res.result) { |
| ... | @@ -218,6 +236,10 @@ | ... | @@ -218,6 +236,10 @@ |
| 218 | }) | 236 | }) |
| 219 | }, | 237 | }, |
| 220 | //获取通知列表 | 238 | //获取通知列表 |
| 239 | /** | ||
| 240 | * @description: 获取通知列表 | ||
| 241 | * @author: renchao | ||
| 242 | */ | ||
| 221 | queryNoticeList () { | 243 | queryNoticeList () { |
| 222 | getHomeNoticeList().then(res => { | 244 | getHomeNoticeList().then(res => { |
| 223 | if (res.result) { | 245 | if (res.result) { |
| ... | @@ -230,6 +252,10 @@ | ... | @@ -230,6 +252,10 @@ |
| 230 | }) | 252 | }) |
| 231 | }, | 253 | }, |
| 232 | //获取常办项目列表 | 254 | //获取常办项目列表 |
| 255 | /** | ||
| 256 | * @description: 获取常办项目列表 | ||
| 257 | * @author: renchao | ||
| 258 | */ | ||
| 233 | queryProjectList () { | 259 | queryProjectList () { |
| 234 | getHomeFrequentProjects().then(res => { | 260 | getHomeFrequentProjects().then(res => { |
| 235 | if (res.result && res.result.length > 0) { | 261 | if (res.result && res.result.length > 0) { |
| ... | @@ -239,6 +265,10 @@ | ... | @@ -239,6 +265,10 @@ |
| 239 | } | 265 | } |
| 240 | }) | 266 | }) |
| 241 | }, | 267 | }, |
| 268 | /** | ||
| 269 | * @description: _timedate | ||
| 270 | * @author: renchao | ||
| 271 | */ | ||
| 242 | _timedate (d) { | 272 | _timedate (d) { |
| 243 | var td = new Date(); | 273 | var td = new Date(); |
| 244 | td = new Date(td.getFullYear(), td.getMonth(), td.getDate()); | 274 | td = new Date(td.getFullYear(), td.getMonth(), td.getDate()); |
| ... | @@ -253,6 +283,10 @@ | ... | @@ -253,6 +283,10 @@ |
| 253 | return d | 283 | return d |
| 254 | } | 284 | } |
| 255 | }, | 285 | }, |
| 286 | /** | ||
| 287 | * @description: buildChart | ||
| 288 | * @author: renchao | ||
| 289 | */ | ||
| 256 | buildChart () { | 290 | buildChart () { |
| 257 | let height = document.getElementById("mountNodeCon").offsetHeight - 20 | 291 | let height = document.getElementById("mountNodeCon").offsetHeight - 20 |
| 258 | var chart = new G2.Chart({ | 292 | var chart = new G2.Chart({ |
| ... | @@ -283,6 +317,10 @@ | ... | @@ -283,6 +317,10 @@ |
| 283 | chart.line().position('year*value').size(2).shape('smooth'); | 317 | chart.line().position('year*value').size(2).shape('smooth'); |
| 284 | chart.render(); | 318 | chart.render(); |
| 285 | }, | 319 | }, |
| 320 | /** | ||
| 321 | * @description: loginTimeChart | ||
| 322 | * @author: renchao | ||
| 323 | */ | ||
| 286 | loginTimeChart () { | 324 | loginTimeChart () { |
| 287 | var data = [{ | 325 | var data = [{ |
| 288 | item: '用户1', | 326 | item: '用户1', |
| ... | @@ -334,13 +372,25 @@ | ... | @@ -334,13 +372,25 @@ |
| 334 | chart.render(); | 372 | chart.render(); |
| 335 | }, | 373 | }, |
| 336 | //跳转到更多通知列表页面 | 374 | //跳转到更多通知列表页面 |
| 375 | /** | ||
| 376 | * @description: 跳转到更多通知列表页面 | ||
| 377 | * @author: renchao | ||
| 378 | */ | ||
| 337 | jumpToMoreNotice () { | 379 | jumpToMoreNotice () { |
| 338 | console.log(this.$route); | 380 | console.log(this.$route); |
| 339 | }, | 381 | }, |
| 340 | //配置常办项目 | 382 | //配置常办项目 |
| 383 | /** | ||
| 384 | * @description: 配置常办项目 | ||
| 385 | * @author: renchao | ||
| 386 | */ | ||
| 341 | setFrequencyProject () { | 387 | setFrequencyProject () { |
| 342 | this.projectDialog = true; | 388 | this.projectDialog = true; |
| 343 | }, | 389 | }, |
| 390 | /** | ||
| 391 | * @description: handleNotice | ||
| 392 | * @author: renchao | ||
| 393 | */ | ||
| 344 | handleNotice (item) { | 394 | handleNotice (item) { |
| 345 | setReadStatus({ bsmNotice: item.bsmNotice }).then(res => { | 395 | setReadStatus({ bsmNotice: item.bsmNotice }).then(res => { |
| 346 | if (res.code == 200) { | 396 | if (res.code == 200) { | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-07-19 09:50:23 | 4 | * @LastEditTime: 2023-07-19 09:50:23 |
| 5 | --> | 5 | --> |
| ... | @@ -113,6 +113,10 @@ | ... | @@ -113,6 +113,10 @@ |
| 113 | }, | 113 | }, |
| 114 | methods: { | 114 | methods: { |
| 115 | //表单提交 | 115 | //表单提交 |
| 116 | /** | ||
| 117 | * @description: 表单提交 | ||
| 118 | * @author: renchao | ||
| 119 | */ | ||
| 116 | submitForm () { | 120 | submitForm () { |
| 117 | let that = this; | 121 | let that = this; |
| 118 | that.$refs.ruleForm.validate(valid => { | 122 | that.$refs.ruleForm.validate(valid => { |
| ... | @@ -129,6 +133,10 @@ | ... | @@ -129,6 +133,10 @@ |
| 129 | }); | 133 | }); |
| 130 | }, | 134 | }, |
| 131 | //新增接口 | 135 | //新增接口 |
| 136 | /** | ||
| 137 | * @description: 新增接口 | ||
| 138 | * @author: renchao | ||
| 139 | */ | ||
| 132 | addInterface () { | 140 | addInterface () { |
| 133 | addSysInterface(this.ruleForm).then(res => { | 141 | addSysInterface(this.ruleForm).then(res => { |
| 134 | if (res.code == 200) { | 142 | if (res.code == 200) { |
| ... | @@ -141,6 +149,10 @@ | ... | @@ -141,6 +149,10 @@ |
| 141 | }) | 149 | }) |
| 142 | }, | 150 | }, |
| 143 | //编辑接口 | 151 | //编辑接口 |
| 152 | /** | ||
| 153 | * @description: 编辑接口 | ||
| 154 | * @author: renchao | ||
| 155 | */ | ||
| 144 | editInterface () { | 156 | editInterface () { |
| 145 | editSysInterface(this.ruleForm).then(res => { | 157 | editSysInterface(this.ruleForm).then(res => { |
| 146 | if (res.code == 200) { | 158 | if (res.code == 200) { |
| ... | @@ -153,10 +165,19 @@ | ... | @@ -153,10 +165,19 @@ |
| 153 | }) | 165 | }) |
| 154 | }, | 166 | }, |
| 155 | //获取详情 | 167 | //获取详情 |
| 168 | /** | ||
| 169 | * @description: 获取详情 | ||
| 170 | * @param {*} item | ||
| 171 | * @author: renchao | ||
| 172 | */ | ||
| 156 | getDetailInfo (item) { | 173 | getDetailInfo (item) { |
| 157 | this.ruleForm = item | 174 | this.ruleForm = item |
| 158 | }, | 175 | }, |
| 159 | //关闭弹窗 | 176 | //关闭弹窗 |
| 177 | /** | ||
| 178 | * @description: 关闭弹窗 | ||
| 179 | * @author: renchao | ||
| 180 | */ | ||
| 160 | closeDialog () { | 181 | closeDialog () { |
| 161 | this.$emit("input", false); | 182 | this.$emit("input", false); |
| 162 | this.ruleForm = { | 183 | this.ruleForm = { | ... | ... |
| ... | @@ -72,6 +72,10 @@ export default { | ... | @@ -72,6 +72,10 @@ export default { |
| 72 | }, | 72 | }, |
| 73 | methods: { | 73 | methods: { |
| 74 | //表单提交 | 74 | //表单提交 |
| 75 | /** | ||
| 76 | * @description: 表单提交 | ||
| 77 | * @author: renchao | ||
| 78 | */ | ||
| 75 | submitForm () { | 79 | submitForm () { |
| 76 | console.log(this.interfaceParams); | 80 | console.log(this.interfaceParams); |
| 77 | console.log(this.hasJsonFlag); | 81 | console.log(this.hasJsonFlag); |
| ... | @@ -89,10 +93,19 @@ export default { | ... | @@ -89,10 +93,19 @@ export default { |
| 89 | }) | 93 | }) |
| 90 | }, | 94 | }, |
| 91 | //获取详情 | 95 | //获取详情 |
| 96 | /** | ||
| 97 | * @description: 获取详情 | ||
| 98 | * @param {*} item | ||
| 99 | * @author: renchao | ||
| 100 | */ | ||
| 92 | getDetailInfo(item){ | 101 | getDetailInfo(item){ |
| 93 | this.ruleForm = item | 102 | this.ruleForm = item |
| 94 | }, | 103 | }, |
| 95 | //关闭弹窗 | 104 | //关闭弹窗 |
| 105 | /** | ||
| 106 | * @description: 关闭弹窗 | ||
| 107 | * @author: renchao | ||
| 108 | */ | ||
| 96 | closeDialog () { | 109 | closeDialog () { |
| 97 | this.$emit("input", false); | 110 | this.$emit("input", false); |
| 98 | this.interfaceParams = {} | 111 | this.interfaceParams = {} |
| ... | @@ -100,6 +113,11 @@ export default { | ... | @@ -100,6 +113,11 @@ export default { |
| 100 | this.hasJsonFlag = true | 113 | this.hasJsonFlag = true |
| 101 | }, | 114 | }, |
| 102 | //获取接口类型 | 115 | //获取接口类型 |
| 116 | /** | ||
| 117 | * @description: 获取接口类型 | ||
| 118 | * @param {*} code | ||
| 119 | * @author: renchao | ||
| 120 | */ | ||
| 103 | getInterfaceType(code){ | 121 | getInterfaceType(code){ |
| 104 | let name = '' | 122 | let name = '' |
| 105 | for (let item of this.interfaceTypes) { | 123 | for (let item of this.interfaceTypes) { |
| ... | @@ -110,13 +128,28 @@ export default { | ... | @@ -110,13 +128,28 @@ export default { |
| 110 | } | 128 | } |
| 111 | return name; | 129 | return name; |
| 112 | }, | 130 | }, |
| 131 | /** | ||
| 132 | * @description: onJsonChange | ||
| 133 | * @param {*} value | ||
| 134 | * @author: renchao | ||
| 135 | */ | ||
| 113 | onJsonChange(value){ | 136 | onJsonChange(value){ |
| 114 | this.onJsonSave(); | 137 | this.onJsonSave(); |
| 115 | }, | 138 | }, |
| 139 | /** | ||
| 140 | * @description: onJsonSave | ||
| 141 | * @param {*} value | ||
| 142 | * @author: renchao | ||
| 143 | */ | ||
| 116 | onJsonSave (value) { | 144 | onJsonSave (value) { |
| 117 | this.interfaceParams = value | 145 | this.interfaceParams = value |
| 118 | this.hasJsonFlag = true | 146 | this.hasJsonFlag = true |
| 119 | }, | 147 | }, |
| 148 | /** | ||
| 149 | * @description: onError | ||
| 150 | * @param {*} value | ||
| 151 | * @author: renchao | ||
| 152 | */ | ||
| 120 | onError(value) { | 153 | onError(value) { |
| 121 | this.hasJsonFlag = false | 154 | this.hasJsonFlag = false |
| 122 | }, | 155 | }, | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-07-19 09:50:36 | 4 | * @LastEditTime: 2023-07-19 09:50:36 |
| 5 | --> | 5 | --> |
| ... | @@ -78,6 +78,10 @@ | ... | @@ -78,6 +78,10 @@ |
| 78 | }; | 78 | }; |
| 79 | }, | 79 | }, |
| 80 | methods: { | 80 | methods: { |
| 81 | /** | ||
| 82 | * @description: queryClick | ||
| 83 | * @author: renchao | ||
| 84 | */ | ||
| 81 | queryClick () { | 85 | queryClick () { |
| 82 | this.$startLoading() | 86 | this.$startLoading() |
| 83 | getSysInterfaceList({ ...this.ruleForm, ...this.pageData }, { 'target': '#ptjkLoading' }).then(res => { | 87 | getSysInterfaceList({ ...this.ruleForm, ...this.pageData }, { 'target': '#ptjkLoading' }).then(res => { |
| ... | @@ -90,17 +94,31 @@ | ... | @@ -90,17 +94,31 @@ |
| 90 | }) | 94 | }) |
| 91 | }, | 95 | }, |
| 92 | //打开新增 | 96 | //打开新增 |
| 97 | /** | ||
| 98 | * @description: 打开新增 | ||
| 99 | * @author: renchao | ||
| 100 | */ | ||
| 93 | openDialog () { | 101 | openDialog () { |
| 94 | this.editFlag = false; | 102 | this.editFlag = false; |
| 95 | this.addDialog = true; | 103 | this.addDialog = true; |
| 96 | }, | 104 | }, |
| 97 | //打开编辑 | 105 | //打开编辑 |
| 106 | /** | ||
| 107 | * @description: 打开编辑 | ||
| 108 | * @param {*} item | ||
| 109 | * @author: renchao | ||
| 110 | */ | ||
| 98 | editInterface (item) { | 111 | editInterface (item) { |
| 99 | this.editFlag = true; | 112 | this.editFlag = true; |
| 100 | this.addDialog = true; | 113 | this.addDialog = true; |
| 101 | this.$refs.addDialog.getDetailInfo(item); | 114 | this.$refs.addDialog.getDetailInfo(item); |
| 102 | }, | 115 | }, |
| 103 | //打开调试窗口 | 116 | //打开调试窗口 |
| 117 | /** | ||
| 118 | * @description: 打开调试窗口 | ||
| 119 | * @param {*} item | ||
| 120 | * @author: renchao | ||
| 121 | */ | ||
| 104 | tuneInterface (item) { | 122 | tuneInterface (item) { |
| 105 | this.retrieveDialog = true; | 123 | this.retrieveDialog = true; |
| 106 | this.$refs.retrieveDialog.getDetailInfo(item); | 124 | this.$refs.retrieveDialog.getDetailInfo(item); | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-07-19 09:50:45 | 4 | * @LastEditTime: 2023-07-19 09:50:45 |
| 5 | --> | 5 | --> |
| ... | @@ -133,6 +133,10 @@ | ... | @@ -133,6 +133,10 @@ |
| 133 | }, | 133 | }, |
| 134 | methods: { | 134 | methods: { |
| 135 | // 更新验证码 | 135 | // 更新验证码 |
| 136 | /** | ||
| 137 | * @description: 更新验证码 | ||
| 138 | * @author: renchao | ||
| 139 | */ | ||
| 136 | reloadCaptcha () { | 140 | reloadCaptcha () { |
| 137 | axios.get(window._config.services.management + "/management/captcha?format=json").then(res => { | 141 | axios.get(window._config.services.management + "/management/captcha?format=json").then(res => { |
| 138 | if (res.data.status === 1) { | 142 | if (res.data.status === 1) { |
| ... | @@ -142,6 +146,10 @@ | ... | @@ -142,6 +146,10 @@ |
| 142 | }) | 146 | }) |
| 143 | }, | 147 | }, |
| 144 | // 初始化 | 148 | // 初始化 |
| 149 | /** | ||
| 150 | * @description: 初始化 | ||
| 151 | * @author: renchao | ||
| 152 | */ | ||
| 145 | initPage () { | 153 | initPage () { |
| 146 | let userInfo = | 154 | let userInfo = |
| 147 | localStorage.getItem("userInfo") && | 155 | localStorage.getItem("userInfo") && |
| ... | @@ -151,6 +159,10 @@ | ... | @@ -151,6 +159,10 @@ |
| 151 | this.userInfo.password = userInfo.password; | 159 | this.userInfo.password = userInfo.password; |
| 152 | } | 160 | } |
| 153 | }, | 161 | }, |
| 162 | /** | ||
| 163 | * @description: goHome | ||
| 164 | * @author: renchao | ||
| 165 | */ | ||
| 154 | goHome () { | 166 | goHome () { |
| 155 | if (this.userInfo.username && this.userInfo.password) { | 167 | if (this.userInfo.username && this.userInfo.password) { |
| 156 | axios | 168 | axios |
| ... | @@ -175,14 +187,28 @@ | ... | @@ -175,14 +187,28 @@ |
| 175 | return | 187 | return |
| 176 | } | 188 | } |
| 177 | }, | 189 | }, |
| 190 | /** | ||
| 191 | * @description: selectEyes | ||
| 192 | * @author: renchao | ||
| 193 | */ | ||
| 178 | selectEyes () { | 194 | selectEyes () { |
| 179 | this.selectEye = !this.selectEye; | 195 | this.selectEye = !this.selectEye; |
| 180 | }, | 196 | }, |
| 181 | 197 | ||
| 182 | //获取焦点 | 198 | //获取焦点 |
| 199 | /** | ||
| 200 | * @description: 获取焦点 | ||
| 201 | * @param {*} type | ||
| 202 | * @author: renchao | ||
| 203 | */ | ||
| 183 | reduceBorder (type) { | 204 | reduceBorder (type) { |
| 184 | this.change[type] = true | 205 | this.change[type] = true |
| 185 | }, | 206 | }, |
| 207 | /** | ||
| 208 | * @description: addBorder | ||
| 209 | * @param {*} type | ||
| 210 | * @author: renchao | ||
| 211 | */ | ||
| 186 | addBorder (type) { | 212 | addBorder (type) { |
| 187 | //失去焦点 | 213 | //失去焦点 |
| 188 | switch (type) { | 214 | switch (type) { | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-07-19 09:50:51 | 4 | * @LastEditTime: 2023-07-19 09:50:51 |
| 5 | --> | 5 | --> |
| ... | @@ -297,18 +297,36 @@ | ... | @@ -297,18 +297,36 @@ |
| 297 | } | 297 | } |
| 298 | },*/ | 298 | },*/ |
| 299 | //获取高度计算lpb内容区高度 | 299 | //获取高度计算lpb内容区高度 |
| 300 | /** | ||
| 301 | * @description: 获取高度计算lpb内容区高度 | ||
| 302 | * @author: renchao | ||
| 303 | */ | ||
| 300 | getHeight () { | 304 | getHeight () { |
| 301 | this.lpbContentHight = window.innerHeight - 190; | 305 | this.lpbContentHight = window.innerHeight - 190; |
| 302 | }, | 306 | }, |
| 303 | //图例的展开收起 | 307 | //图例的展开收起 |
| 308 | /** | ||
| 309 | * @description: 图例的展开收起 | ||
| 310 | * @author: renchao | ||
| 311 | */ | ||
| 304 | legendToggle () { | 312 | legendToggle () { |
| 305 | this.legendToggleFlag = !this.legendToggleFlag; | 313 | this.legendToggleFlag = !this.legendToggleFlag; |
| 306 | }, | 314 | }, |
| 307 | //切换房屋状态 | 315 | //切换房屋状态 |
| 316 | /** | ||
| 317 | * @description: 切换房屋状态 | ||
| 318 | * @param {*} bsms | ||
| 319 | * @param {*} color | ||
| 320 | * @author: renchao | ||
| 321 | */ | ||
| 308 | handleChoosedH (bsms, color) { | 322 | handleChoosedH (bsms, color) { |
| 309 | this.$refs.lpbContent.changeChoosed(bsms, color); | 323 | this.$refs.lpbContent.changeChoosed(bsms, color); |
| 310 | }, | 324 | }, |
| 311 | //获取各项单元状态统计数据 | 325 | //获取各项单元状态统计数据 |
| 326 | /** | ||
| 327 | * @description: 获取各项单元状态统计数据 | ||
| 328 | * @author: renchao | ||
| 329 | */ | ||
| 312 | getDyztBsmList () { | 330 | getDyztBsmList () { |
| 313 | getLpbTj(this.formData.bsm).then((res) => { | 331 | getLpbTj(this.formData.bsm).then((res) => { |
| 314 | if (res.code === 200) { | 332 | if (res.code === 200) { |
| ... | @@ -362,6 +380,10 @@ | ... | @@ -362,6 +380,10 @@ |
| 362 | }); | 380 | }); |
| 363 | }, | 381 | }, |
| 364 | // 获取房屋用途和房屋性质及缺失项统计数据 | 382 | // 获取房屋用途和房屋性质及缺失项统计数据 |
| 383 | /** | ||
| 384 | * @description: 获取房屋用途和房屋性质及缺失项统计数据 | ||
| 385 | * @author: renchao | ||
| 386 | */ | ||
| 365 | getLpbFwytAndQlxz () { | 387 | getLpbFwytAndQlxz () { |
| 366 | getLpbFwytAndQlxz(this.formData.bsm).then((res) => { | 388 | getLpbFwytAndQlxz(this.formData.bsm).then((res) => { |
| 367 | if (res.code === 200) { | 389 | if (res.code === 200) { | ... | ... |
| ... | @@ -4,9 +4,9 @@ | ... | @@ -4,9 +4,9 @@ |
| 4 | * @LastEditors: yangwei | 4 | * @LastEditors: yangwei |
| 5 | * @LastEditTime: 2023-06-16 16:14:51 | 5 | * @LastEditTime: 2023-06-16 16:14:51 |
| 6 | * @FilePath: \bdcdj-web\src\views\lpb\lpbContent\ch.vue | 6 | * @FilePath: \bdcdj-web\src\views\lpb\lpbContent\ch.vue |
| 7 | * @Description: | 7 | * @Description: |
| 8 | * | 8 | * |
| 9 | * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. | 9 | * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. |
| 10 | --> | 10 | --> |
| 11 | <template> | 11 | <template> |
| 12 | <div class="ch-wrap"> | 12 | <div class="ch-wrap"> |
| ... | @@ -113,6 +113,12 @@ export default { | ... | @@ -113,6 +113,12 @@ export default { |
| 113 | mounted() {}, | 113 | mounted() {}, |
| 114 | methods: { | 114 | methods: { |
| 115 | // 层选中事件 | 115 | // 层选中事件 |
| 116 | /** | ||
| 117 | * @description: 层选中事件 | ||
| 118 | * @param {*} e | ||
| 119 | * @param {*} item | ||
| 120 | * @author: renchao | ||
| 121 | */ | ||
| 116 | handleClickC(e, item) { | 122 | handleClickC(e, item) { |
| 117 | //判断点击的层是否选中 | 123 | //判断点击的层是否选中 |
| 118 | // if (e.target.className.indexOf("tdSelect") == -1) { | 124 | // if (e.target.className.indexOf("tdSelect") == -1) { |
| ... | @@ -127,17 +133,42 @@ export default { | ... | @@ -127,17 +133,42 @@ export default { |
| 127 | // this.$parent.getCbsm(this.cbsmList); | 133 | // this.$parent.getCbsm(this.cbsmList); |
| 128 | }, | 134 | }, |
| 129 | //户单击事件 | 135 | //户单击事件 |
| 136 | /** | ||
| 137 | * @description: 户单击事件 | ||
| 138 | * @param {*} e | ||
| 139 | * @param {*} bsm | ||
| 140 | * @param {*} hs | ||
| 141 | * @author: renchao | ||
| 142 | */ | ||
| 130 | handleClickH(e, bsm, hs) { | 143 | handleClickH(e, bsm, hs) { |
| 131 | }, | 144 | }, |
| 132 | // 户单元状态点击事件 | 145 | // 户单元状态点击事件 |
| 146 | /** | ||
| 147 | * @description: 户单元状态点击事件 | ||
| 148 | * @param {*} e | ||
| 149 | * @param {*} bsm | ||
| 150 | * @param {*} hs | ||
| 151 | * @author: renchao | ||
| 152 | */ | ||
| 133 | hDyztClick(e, bsm, hs) { | 153 | hDyztClick(e, bsm, hs) { |
| 134 | // this.handleClickH(e.target.parentNode, bsm, hs); | 154 | // this.handleClickH(e.target.parentNode, bsm, hs); |
| 135 | }, | 155 | }, |
| 136 | //户双击事件 | 156 | //户双击事件 |
| 157 | /** | ||
| 158 | * @description: 户双击事件 | ||
| 159 | * @param {*} bsm | ||
| 160 | * @author: renchao | ||
| 161 | */ | ||
| 137 | dbclick(bsm) { | 162 | dbclick(bsm) { |
| 138 | // clearTimeout(this.time); | 163 | // clearTimeout(this.time); |
| 139 | }, | 164 | }, |
| 140 | //幢单元全选/反选 | 165 | //幢单元全选/反选 |
| 166 | /** | ||
| 167 | * @description: 幢单元全选/反选 | ||
| 168 | * @param {*} val | ||
| 169 | * @param {*} flag | ||
| 170 | * @author: renchao | ||
| 171 | */ | ||
| 141 | zdySelectAll(val,flag) { | 172 | zdySelectAll(val,flag) { |
| 142 | // 手动点击全部取消选中 | 173 | // 手动点击全部取消选中 |
| 143 | !flag && this.clearChangeChoosedObj() | 174 | !flag && this.clearChangeChoosedObj() | ... | ... |
| ... | @@ -88,18 +88,40 @@ export default { | ... | @@ -88,18 +88,40 @@ export default { |
| 88 | }, | 88 | }, |
| 89 | methods: { | 89 | methods: { |
| 90 | // 改变户选中状态 | 90 | // 改变户选中状态 |
| 91 | /** | ||
| 92 | * @description: 改变户选中状态 | ||
| 93 | * @param {*} bsms | ||
| 94 | * @param {*} color | ||
| 95 | * @author: renchao | ||
| 96 | */ | ||
| 91 | changeChoosed(bsms, color){ | 97 | changeChoosed(bsms, color){ |
| 92 | this.changeChoosedObj.bsms = bsms; | 98 | this.changeChoosedObj.bsms = bsms; |
| 93 | this.changeChoosedObj.color = color; | 99 | this.changeChoosedObj.color = color; |
| 94 | }, | 100 | }, |
| 101 | /** | ||
| 102 | * @description: clearChangeChoosedObj | ||
| 103 | * @author: renchao | ||
| 104 | */ | ||
| 95 | clearChangeChoosedObj(){ | 105 | clearChangeChoosedObj(){ |
| 96 | this.changeChoosedObj.bsms = []; | 106 | this.changeChoosedObj.bsms = []; |
| 97 | }, | 107 | }, |
| 98 | //全选户 | 108 | //全选户 |
| 109 | /** | ||
| 110 | * @description: 全选户 | ||
| 111 | * @param {*} val | ||
| 112 | * @author: renchao | ||
| 113 | */ | ||
| 99 | zdySelectAll(val) { | 114 | zdySelectAll(val) { |
| 100 | this.selectAllObj.selectAll = val; | 115 | this.selectAllObj.selectAll = val; |
| 101 | }, | 116 | }, |
| 102 | //获取楼盘表数据 | 117 | //获取楼盘表数据 |
| 118 | /** | ||
| 119 | * @description: 获取楼盘表数据 | ||
| 120 | * @param {*} zrzbsm | ||
| 121 | * @param {*} scyclx | ||
| 122 | * @param {*} actual | ||
| 123 | * @author: renchao | ||
| 124 | */ | ||
| 103 | getLpb(zrzbsm, scyclx, actual) { | 125 | getLpb(zrzbsm, scyclx, actual) { |
| 104 | getLpb(zrzbsm, scyclx).then((res) => { | 126 | getLpb(zrzbsm, scyclx).then((res) => { |
| 105 | if (res.code == 200) { | 127 | if (res.code == 200) { |
| ... | @@ -119,19 +141,39 @@ export default { | ... | @@ -119,19 +141,39 @@ export default { |
| 119 | }); | 141 | }); |
| 120 | }, | 142 | }, |
| 121 | //户右键点击事件 | 143 | //户右键点击事件 |
| 144 | /** | ||
| 145 | * @description: 户右键点击事件 | ||
| 146 | * @param {*} e | ||
| 147 | * @param {*} item | ||
| 148 | * @param {*} type | ||
| 149 | * @author: renchao | ||
| 150 | */ | ||
| 122 | openMenu(e, item, type) { | 151 | openMenu(e, item, type) { |
| 123 | this.lpbChLeft = e.pageX - 96; | 152 | this.lpbChLeft = e.pageX - 96; |
| 124 | this.lpbChTop = e.pageY - 23; | 153 | this.lpbChTop = e.pageY - 23; |
| 125 | // this.lpbChVisible = true; | 154 | // this.lpbChVisible = true; |
| 126 | }, | 155 | }, |
| 127 | //关闭户右键菜单 | 156 | //关闭户右键菜单 |
| 157 | /** | ||
| 158 | * @description: 关闭户右键菜单 | ||
| 159 | * @author: renchao | ||
| 160 | */ | ||
| 128 | closeMenu() { | 161 | closeMenu() { |
| 129 | this.lpbChVisible = false; | 162 | this.lpbChVisible = false; |
| 130 | }, | 163 | }, |
| 131 | //右键菜单点击 | 164 | //右键菜单点击 |
| 165 | /** | ||
| 166 | * @description: 右键菜单点击 | ||
| 167 | * @author: renchao | ||
| 168 | */ | ||
| 132 | menuClick() { | 169 | menuClick() { |
| 133 | this.closeMenu(); | 170 | this.closeMenu(); |
| 134 | }, | 171 | }, |
| 172 | /** | ||
| 173 | * @description: compare | ||
| 174 | * @param {*} property | ||
| 175 | * @author: renchao | ||
| 176 | */ | ||
| 135 | compare(property) { | 177 | compare(property) { |
| 136 | return function (a, b) { | 178 | return function (a, b) { |
| 137 | var value1 = a[property]; | 179 | var value1 = a[property]; | ... | ... |
| ... | @@ -4,9 +4,9 @@ | ... | @@ -4,9 +4,9 @@ |
| 4 | * @LastEditors: yangwei | 4 | * @LastEditors: yangwei |
| 5 | * @LastEditTime: 2023-06-08 13:58:58 | 5 | * @LastEditTime: 2023-06-08 13:58:58 |
| 6 | * @FilePath: \bdcdj-web\src\views\lpb\lpbContent\zdys.vue | 6 | * @FilePath: \bdcdj-web\src\views\lpb\lpbContent\zdys.vue |
| 7 | * @Description: | 7 | * @Description: |
| 8 | * | 8 | * |
| 9 | * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. | 9 | * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. |
| 10 | --> | 10 | --> |
| 11 | <template> | 11 | <template> |
| 12 | <div class="zdys-wrap"> | 12 | <div class="zdys-wrap"> |
| ... | @@ -45,6 +45,12 @@ export default { | ... | @@ -45,6 +45,12 @@ export default { |
| 45 | 45 | ||
| 46 | methods: { | 46 | methods: { |
| 47 | //幢单元全选 | 47 | //幢单元全选 |
| 48 | /** | ||
| 49 | * @description: 幢单元全选 | ||
| 50 | * @param {*} val | ||
| 51 | * @param {*} r | ||
| 52 | * @author: renchao | ||
| 53 | */ | ||
| 48 | zdySelectAll(val,r) { | 54 | zdySelectAll(val,r) { |
| 49 | this.$refs[r][0].zdySelectAll(val) | 55 | this.$refs[r][0].zdySelectAll(val) |
| 50 | }, | 56 | }, | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-07-19 09:52:13 | 4 | * @LastEditTime: 2023-07-19 09:52:13 |
| 5 | --> | 5 | --> |
| ... | @@ -86,6 +86,10 @@ | ... | @@ -86,6 +86,10 @@ |
| 86 | this.loadData(); | 86 | this.loadData(); |
| 87 | }, | 87 | }, |
| 88 | methods: { | 88 | methods: { |
| 89 | /** | ||
| 90 | * @description: loadData | ||
| 91 | * @author: renchao | ||
| 92 | */ | ||
| 89 | loadData () { | 93 | loadData () { |
| 90 | if (this.$parent.addRepairRecord) { | 94 | if (this.$parent.addRepairRecord) { |
| 91 | this.columns.unshift({ prop: "cz", label: "操作" }); | 95 | this.columns.unshift({ prop: "cz", label: "操作" }); |
| ... | @@ -116,6 +120,10 @@ | ... | @@ -116,6 +120,10 @@ |
| 116 | } | 120 | } |
| 117 | }); | 121 | }); |
| 118 | }, | 122 | }, |
| 123 | /** | ||
| 124 | * @description: checkChange | ||
| 125 | * @author: renchao | ||
| 126 | */ | ||
| 119 | checkChange () { | 127 | checkChange () { |
| 120 | if (this.checkList.length === 0) { | 128 | if (this.checkList.length === 0) { |
| 121 | this.tableData = []; | 129 | this.tableData = []; |
| ... | @@ -124,6 +132,10 @@ | ... | @@ -124,6 +132,10 @@ |
| 124 | this.loadData(); | 132 | this.loadData(); |
| 125 | } | 133 | } |
| 126 | }, | 134 | }, |
| 135 | /** | ||
| 136 | * @description: getQsztName | ||
| 137 | * @author: renchao | ||
| 138 | */ | ||
| 127 | getQsztName (code) { | 139 | getQsztName (code) { |
| 128 | let name = ""; | 140 | let name = ""; |
| 129 | for (let item of this.qsztList) { | 141 | for (let item of this.qsztList) { |
| ... | @@ -135,6 +147,12 @@ | ... | @@ -135,6 +147,12 @@ |
| 135 | return name; | 147 | return name; |
| 136 | }, | 148 | }, |
| 137 | // 新增一条补录信息 | 149 | // 新增一条补录信息 |
| 150 | /** | ||
| 151 | * @description: 新增一条补录信息 | ||
| 152 | * @param {*} row | ||
| 153 | * @param {*} del | ||
| 154 | * @author: renchao | ||
| 155 | */ | ||
| 138 | editDialog (row, del) { | 156 | editDialog (row, del) { |
| 139 | this.$confirm("此操作将新增一条补录信息, 是否继续?", "提示", { | 157 | this.$confirm("此操作将新增一条补录信息, 是否继续?", "提示", { |
| 140 | confirmButtonText: "确定", | 158 | confirmButtonText: "确定", | ... | ... |
-
Please register or sign in to post a comment