address-client 4.0.16 → 4.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gradle/8.5/checksums/checksums.lock +0 -0
- package/.gradle/8.5/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/.gradle/8.5/dependencies-accessors/gc.properties +0 -0
- package/.gradle/8.5/executionHistory/executionHistory.bin +0 -0
- package/.gradle/8.5/executionHistory/executionHistory.lock +0 -0
- package/.gradle/8.5/fileChanges/last-build.bin +0 -0
- package/.gradle/8.5/fileHashes/fileHashes.bin +0 -0
- package/.gradle/8.5/fileHashes/fileHashes.lock +0 -0
- package/.gradle/8.5/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/file-system.probe +0 -0
- package/.gradle/vcs-1/gc.properties +0 -0
- package/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/gradle/wrapper/gradle-wrapper.properties +7 -0
- package/gradlew +249 -0
- package/gradlew.bat +92 -0
- package/package.json +1 -1
- package/src/filiale/meihekou/AreaList.vue +8 -3
- package/src/filiale/tongchuan/AddressList.vue +56 -3
- package/src/filiale/tongchuan/AreaList.vue +66 -5
- package/src/filiale/tongchuan/StreetList.vue +66 -4
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
package/gradlew
ADDED
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
|
|
3
|
+
#
|
|
4
|
+
# Copyright © 2015-2021 the original authors.
|
|
5
|
+
#
|
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
# you may not use this file except in compliance with the License.
|
|
8
|
+
# You may obtain a copy of the License at
|
|
9
|
+
#
|
|
10
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
#
|
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
# See the License for the specific language governing permissions and
|
|
16
|
+
# limitations under the License.
|
|
17
|
+
#
|
|
18
|
+
|
|
19
|
+
##############################################################################
|
|
20
|
+
#
|
|
21
|
+
# Gradle start up script for POSIX generated by Gradle.
|
|
22
|
+
#
|
|
23
|
+
# Important for running:
|
|
24
|
+
#
|
|
25
|
+
# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
|
|
26
|
+
# noncompliant, but you have some other compliant shell such as ksh or
|
|
27
|
+
# bash, then to run this script, type that shell name before the whole
|
|
28
|
+
# command line, like:
|
|
29
|
+
#
|
|
30
|
+
# ksh Gradle
|
|
31
|
+
#
|
|
32
|
+
# Busybox and similar reduced shells will NOT work, because this script
|
|
33
|
+
# requires all of these POSIX shell features:
|
|
34
|
+
# * functions;
|
|
35
|
+
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
|
|
36
|
+
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
|
|
37
|
+
# * compound commands having a testable exit status, especially «case»;
|
|
38
|
+
# * various built-in commands including «command», «set», and «ulimit».
|
|
39
|
+
#
|
|
40
|
+
# Important for patching:
|
|
41
|
+
#
|
|
42
|
+
# (2) This script targets any POSIX shell, so it avoids extensions provided
|
|
43
|
+
# by Bash, Ksh, etc; in particular arrays are avoided.
|
|
44
|
+
#
|
|
45
|
+
# The "traditional" practice of packing multiple parameters into a
|
|
46
|
+
# space-separated string is a well documented source of bugs and security
|
|
47
|
+
# problems, so this is (mostly) avoided, by progressively accumulating
|
|
48
|
+
# options in "$@", and eventually passing that to Java.
|
|
49
|
+
#
|
|
50
|
+
# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
|
|
51
|
+
# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
|
|
52
|
+
# see the in-line comments for details.
|
|
53
|
+
#
|
|
54
|
+
# There are tweaks for specific operating systems such as AIX, CygWin,
|
|
55
|
+
# Darwin, MinGW, and NonStop.
|
|
56
|
+
#
|
|
57
|
+
# (3) This script is generated from the Groovy template
|
|
58
|
+
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
|
59
|
+
# within the Gradle project.
|
|
60
|
+
#
|
|
61
|
+
# You can find Gradle at https://github.com/gradle/gradle/.
|
|
62
|
+
#
|
|
63
|
+
##############################################################################
|
|
64
|
+
|
|
65
|
+
# Attempt to set APP_HOME
|
|
66
|
+
|
|
67
|
+
# Resolve links: $0 may be a link
|
|
68
|
+
app_path=$0
|
|
69
|
+
|
|
70
|
+
# Need this for daisy-chained symlinks.
|
|
71
|
+
while
|
|
72
|
+
APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
|
|
73
|
+
[ -h "$app_path" ]
|
|
74
|
+
do
|
|
75
|
+
ls=$( ls -ld "$app_path" )
|
|
76
|
+
link=${ls#*' -> '}
|
|
77
|
+
case $link in #(
|
|
78
|
+
/*) app_path=$link ;; #(
|
|
79
|
+
*) app_path=$APP_HOME$link ;;
|
|
80
|
+
esac
|
|
81
|
+
done
|
|
82
|
+
|
|
83
|
+
# This is normally unused
|
|
84
|
+
# shellcheck disable=SC2034
|
|
85
|
+
APP_BASE_NAME=${0##*/}
|
|
86
|
+
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
|
87
|
+
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
|
|
88
|
+
|
|
89
|
+
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
|
90
|
+
MAX_FD=maximum
|
|
91
|
+
|
|
92
|
+
warn () {
|
|
93
|
+
echo "$*"
|
|
94
|
+
} >&2
|
|
95
|
+
|
|
96
|
+
die () {
|
|
97
|
+
echo
|
|
98
|
+
echo "$*"
|
|
99
|
+
echo
|
|
100
|
+
exit 1
|
|
101
|
+
} >&2
|
|
102
|
+
|
|
103
|
+
# OS specific support (must be 'true' or 'false').
|
|
104
|
+
cygwin=false
|
|
105
|
+
msys=false
|
|
106
|
+
darwin=false
|
|
107
|
+
nonstop=false
|
|
108
|
+
case "$( uname )" in #(
|
|
109
|
+
CYGWIN* ) cygwin=true ;; #(
|
|
110
|
+
Darwin* ) darwin=true ;; #(
|
|
111
|
+
MSYS* | MINGW* ) msys=true ;; #(
|
|
112
|
+
NONSTOP* ) nonstop=true ;;
|
|
113
|
+
esac
|
|
114
|
+
|
|
115
|
+
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
# Determine the Java command to use to start the JVM.
|
|
119
|
+
if [ -n "$JAVA_HOME" ] ; then
|
|
120
|
+
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
|
121
|
+
# IBM's JDK on AIX uses strange locations for the executables
|
|
122
|
+
JAVACMD=$JAVA_HOME/jre/sh/java
|
|
123
|
+
else
|
|
124
|
+
JAVACMD=$JAVA_HOME/bin/java
|
|
125
|
+
fi
|
|
126
|
+
if [ ! -x "$JAVACMD" ] ; then
|
|
127
|
+
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
|
128
|
+
|
|
129
|
+
Please set the JAVA_HOME variable in your environment to match the
|
|
130
|
+
location of your Java installation."
|
|
131
|
+
fi
|
|
132
|
+
else
|
|
133
|
+
JAVACMD=java
|
|
134
|
+
if ! command -v java >/dev/null 2>&1
|
|
135
|
+
then
|
|
136
|
+
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
|
137
|
+
|
|
138
|
+
Please set the JAVA_HOME variable in your environment to match the
|
|
139
|
+
location of your Java installation."
|
|
140
|
+
fi
|
|
141
|
+
fi
|
|
142
|
+
|
|
143
|
+
# Increase the maximum file descriptors if we can.
|
|
144
|
+
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
|
|
145
|
+
case $MAX_FD in #(
|
|
146
|
+
max*)
|
|
147
|
+
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
|
|
148
|
+
# shellcheck disable=SC2039,SC3045
|
|
149
|
+
MAX_FD=$( ulimit -H -n ) ||
|
|
150
|
+
warn "Could not query maximum file descriptor limit"
|
|
151
|
+
esac
|
|
152
|
+
case $MAX_FD in #(
|
|
153
|
+
'' | soft) :;; #(
|
|
154
|
+
*)
|
|
155
|
+
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
|
|
156
|
+
# shellcheck disable=SC2039,SC3045
|
|
157
|
+
ulimit -n "$MAX_FD" ||
|
|
158
|
+
warn "Could not set maximum file descriptor limit to $MAX_FD"
|
|
159
|
+
esac
|
|
160
|
+
fi
|
|
161
|
+
|
|
162
|
+
# Collect all arguments for the java command, stacking in reverse order:
|
|
163
|
+
# * args from the command line
|
|
164
|
+
# * the main class name
|
|
165
|
+
# * -classpath
|
|
166
|
+
# * -D...appname settings
|
|
167
|
+
# * --module-path (only if needed)
|
|
168
|
+
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
|
|
169
|
+
|
|
170
|
+
# For Cygwin or MSYS, switch paths to Windows format before running java
|
|
171
|
+
if "$cygwin" || "$msys" ; then
|
|
172
|
+
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
|
|
173
|
+
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
|
|
174
|
+
|
|
175
|
+
JAVACMD=$( cygpath --unix "$JAVACMD" )
|
|
176
|
+
|
|
177
|
+
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
|
178
|
+
for arg do
|
|
179
|
+
if
|
|
180
|
+
case $arg in #(
|
|
181
|
+
-*) false ;; # don't mess with options #(
|
|
182
|
+
/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
|
|
183
|
+
[ -e "$t" ] ;; #(
|
|
184
|
+
*) false ;;
|
|
185
|
+
esac
|
|
186
|
+
then
|
|
187
|
+
arg=$( cygpath --path --ignore --mixed "$arg" )
|
|
188
|
+
fi
|
|
189
|
+
# Roll the args list around exactly as many times as the number of
|
|
190
|
+
# args, so each arg winds up back in the position where it started, but
|
|
191
|
+
# possibly modified.
|
|
192
|
+
#
|
|
193
|
+
# NB: a `for` loop captures its iteration list before it begins, so
|
|
194
|
+
# changing the positional parameters here affects neither the number of
|
|
195
|
+
# iterations, nor the values presented in `arg`.
|
|
196
|
+
shift # remove old arg
|
|
197
|
+
set -- "$@" "$arg" # push replacement arg
|
|
198
|
+
done
|
|
199
|
+
fi
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
|
203
|
+
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
|
204
|
+
|
|
205
|
+
# Collect all arguments for the java command:
|
|
206
|
+
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
|
|
207
|
+
# and any embedded shellness will be escaped.
|
|
208
|
+
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
|
|
209
|
+
# treated as '${Hostname}' itself on the command line.
|
|
210
|
+
|
|
211
|
+
set -- \
|
|
212
|
+
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
|
213
|
+
-classpath "$CLASSPATH" \
|
|
214
|
+
org.gradle.wrapper.GradleWrapperMain \
|
|
215
|
+
"$@"
|
|
216
|
+
|
|
217
|
+
# Stop when "xargs" is not available.
|
|
218
|
+
if ! command -v xargs >/dev/null 2>&1
|
|
219
|
+
then
|
|
220
|
+
die "xargs is not available"
|
|
221
|
+
fi
|
|
222
|
+
|
|
223
|
+
# Use "xargs" to parse quoted args.
|
|
224
|
+
#
|
|
225
|
+
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
|
|
226
|
+
#
|
|
227
|
+
# In Bash we could simply go:
|
|
228
|
+
#
|
|
229
|
+
# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
|
|
230
|
+
# set -- "${ARGS[@]}" "$@"
|
|
231
|
+
#
|
|
232
|
+
# but POSIX shell has neither arrays nor command substitution, so instead we
|
|
233
|
+
# post-process each arg (as a line of input to sed) to backslash-escape any
|
|
234
|
+
# character that might be a shell metacharacter, then use eval to reverse
|
|
235
|
+
# that process (while maintaining the separation between arguments), and wrap
|
|
236
|
+
# the whole thing up as a single "set" statement.
|
|
237
|
+
#
|
|
238
|
+
# This will of course break if any of these variables contains a newline or
|
|
239
|
+
# an unmatched quote.
|
|
240
|
+
#
|
|
241
|
+
|
|
242
|
+
eval "set -- $(
|
|
243
|
+
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
|
|
244
|
+
xargs -n1 |
|
|
245
|
+
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
|
|
246
|
+
tr '\n' ' '
|
|
247
|
+
)" '"$@"'
|
|
248
|
+
|
|
249
|
+
exec "$JAVACMD" "$@"
|
package/gradlew.bat
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
@rem
|
|
2
|
+
@rem Copyright 2015 the original author or authors.
|
|
3
|
+
@rem
|
|
4
|
+
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
@rem you may not use this file except in compliance with the License.
|
|
6
|
+
@rem You may obtain a copy of the License at
|
|
7
|
+
@rem
|
|
8
|
+
@rem https://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
@rem
|
|
10
|
+
@rem Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
@rem See the License for the specific language governing permissions and
|
|
14
|
+
@rem limitations under the License.
|
|
15
|
+
@rem
|
|
16
|
+
|
|
17
|
+
@if "%DEBUG%"=="" @echo off
|
|
18
|
+
@rem ##########################################################################
|
|
19
|
+
@rem
|
|
20
|
+
@rem Gradle startup script for Windows
|
|
21
|
+
@rem
|
|
22
|
+
@rem ##########################################################################
|
|
23
|
+
|
|
24
|
+
@rem Set local scope for the variables with windows NT shell
|
|
25
|
+
if "%OS%"=="Windows_NT" setlocal
|
|
26
|
+
|
|
27
|
+
set DIRNAME=%~dp0
|
|
28
|
+
if "%DIRNAME%"=="" set DIRNAME=.
|
|
29
|
+
@rem This is normally unused
|
|
30
|
+
set APP_BASE_NAME=%~n0
|
|
31
|
+
set APP_HOME=%DIRNAME%
|
|
32
|
+
|
|
33
|
+
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
|
34
|
+
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
|
35
|
+
|
|
36
|
+
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
|
37
|
+
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
|
|
38
|
+
|
|
39
|
+
@rem Find java.exe
|
|
40
|
+
if defined JAVA_HOME goto findJavaFromJavaHome
|
|
41
|
+
|
|
42
|
+
set JAVA_EXE=java.exe
|
|
43
|
+
%JAVA_EXE% -version >NUL 2>&1
|
|
44
|
+
if %ERRORLEVEL% equ 0 goto execute
|
|
45
|
+
|
|
46
|
+
echo.
|
|
47
|
+
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
|
48
|
+
echo.
|
|
49
|
+
echo Please set the JAVA_HOME variable in your environment to match the
|
|
50
|
+
echo location of your Java installation.
|
|
51
|
+
|
|
52
|
+
goto fail
|
|
53
|
+
|
|
54
|
+
:findJavaFromJavaHome
|
|
55
|
+
set JAVA_HOME=%JAVA_HOME:"=%
|
|
56
|
+
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
|
57
|
+
|
|
58
|
+
if exist "%JAVA_EXE%" goto execute
|
|
59
|
+
|
|
60
|
+
echo.
|
|
61
|
+
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
|
62
|
+
echo.
|
|
63
|
+
echo Please set the JAVA_HOME variable in your environment to match the
|
|
64
|
+
echo location of your Java installation.
|
|
65
|
+
|
|
66
|
+
goto fail
|
|
67
|
+
|
|
68
|
+
:execute
|
|
69
|
+
@rem Setup the command line
|
|
70
|
+
|
|
71
|
+
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
@rem Execute Gradle
|
|
75
|
+
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
|
|
76
|
+
|
|
77
|
+
:end
|
|
78
|
+
@rem End local scope for the variables with windows NT shell
|
|
79
|
+
if %ERRORLEVEL% equ 0 goto mainEnd
|
|
80
|
+
|
|
81
|
+
:fail
|
|
82
|
+
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
|
83
|
+
rem the _cmd.exe /c_ return code!
|
|
84
|
+
set EXIT_CODE=%ERRORLEVEL%
|
|
85
|
+
if %EXIT_CODE% equ 0 set EXIT_CODE=1
|
|
86
|
+
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
|
|
87
|
+
exit /b %EXIT_CODE%
|
|
88
|
+
|
|
89
|
+
:mainEnd
|
|
90
|
+
if "%OS%"=="Windows_NT" endlocal
|
|
91
|
+
|
|
92
|
+
:omega
|
package/package.json
CHANGED
|
@@ -328,9 +328,14 @@ export default {
|
|
|
328
328
|
this.$refs.paged.$refs.grid.selectInit()
|
|
329
329
|
this.$refs.paged.$refs.cri.search()
|
|
330
330
|
this.showUpdate = false
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
331
|
+
this.areamodel={
|
|
332
|
+
slice_area:null,
|
|
333
|
+
f_slice_area_id: '',
|
|
334
|
+
f_slice_area:'',
|
|
335
|
+
f_pcd_id: '',
|
|
336
|
+
f_pcd:''
|
|
337
|
+
}
|
|
338
|
+
})
|
|
334
339
|
},
|
|
335
340
|
async delete(row){
|
|
336
341
|
if(row.id >= 0){
|
|
@@ -107,9 +107,14 @@
|
|
|
107
107
|
</div>
|
|
108
108
|
<div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.showrightchange">
|
|
109
109
|
<label class="font_normal_body">街  道</label>
|
|
110
|
-
<
|
|
111
|
-
|
|
112
|
-
|
|
110
|
+
<v-select
|
|
111
|
+
:value.sync="$parent.$parent.selectedStreets"
|
|
112
|
+
multiple
|
|
113
|
+
:options="$parent.$parent.streetslist"
|
|
114
|
+
placeholder="请选择"
|
|
115
|
+
close-on-select
|
|
116
|
+
search="true">
|
|
117
|
+
</v-select>
|
|
113
118
|
</div>
|
|
114
119
|
<div :class="$parent.$parent.style" >
|
|
115
120
|
<label class="font_normal_body">地址状态</label>
|
|
@@ -246,6 +251,9 @@
|
|
|
246
251
|
// 公司下拉
|
|
247
252
|
curorgid: [this.$login.f.orgid],
|
|
248
253
|
f_orgid: '',
|
|
254
|
+
// 街道下拉
|
|
255
|
+
streetslist: [],
|
|
256
|
+
selectedStreets: [],
|
|
249
257
|
getstate:[{label:'全部',value:''},{label:'有效',value:" = '有效' or a.f_state is null"},{label:'作废',value:" = '作废'"}],
|
|
250
258
|
//文件上传弹框
|
|
251
259
|
showFile: false,
|
|
@@ -264,6 +272,10 @@
|
|
|
264
272
|
},
|
|
265
273
|
ready(){
|
|
266
274
|
readyGen(this)
|
|
275
|
+
// 初始化组织并加载街道
|
|
276
|
+
this.f_orgid = this.$login.convertToIn(this.curorgid)
|
|
277
|
+
this.f_filialeids = this.curorgid[0]
|
|
278
|
+
this.initstreets(` f_filialeid in ${this.f_orgid} `)
|
|
267
279
|
this.search()
|
|
268
280
|
},
|
|
269
281
|
methods: {
|
|
@@ -328,21 +340,62 @@
|
|
|
328
340
|
search () {
|
|
329
341
|
this.$refs.paged.$refs.cri.search()
|
|
330
342
|
},
|
|
343
|
+
// 初始化街道下拉
|
|
344
|
+
async initstreets (condition) {
|
|
345
|
+
try {
|
|
346
|
+
this.streetslist = []
|
|
347
|
+
const req = await this.$resetpost('rs/sql/address_singleTableOrderBy', {
|
|
348
|
+
data: {
|
|
349
|
+
items: '*',
|
|
350
|
+
tablename: 't_street',
|
|
351
|
+
orderitem: 'id',
|
|
352
|
+
condition
|
|
353
|
+
}
|
|
354
|
+
}, { resolveMsg: null, rejectMsg: '获取街道失败!' })
|
|
355
|
+
if (req && req.data) {
|
|
356
|
+
const seen = new Set()
|
|
357
|
+
this.streetslist = req.data.reduce((acc, row) => {
|
|
358
|
+
const key = row.f_street
|
|
359
|
+
if (key && !seen.has(key)) {
|
|
360
|
+
seen.add(key)
|
|
361
|
+
acc.push({
|
|
362
|
+
label: row.f_street,
|
|
363
|
+
value: row.f_street
|
|
364
|
+
})
|
|
365
|
+
}
|
|
366
|
+
return acc
|
|
367
|
+
}, [])
|
|
368
|
+
}
|
|
369
|
+
} catch (e) {
|
|
370
|
+
// ignore errors
|
|
371
|
+
}
|
|
372
|
+
},
|
|
331
373
|
selfSearch (args) {
|
|
332
374
|
if (!this.f_orgid) {
|
|
333
375
|
this.getorg([this.$login.f.orgid])
|
|
334
376
|
}
|
|
335
377
|
args.condition = `${args.condition} and a.f_filialeid = '${this.f_filialeids}'`
|
|
378
|
+
if (Array.isArray(this.selectedStreets) && this.selectedStreets.length > 0) {
|
|
379
|
+
const streetConds = this.selectedStreets
|
|
380
|
+
.filter(s => !!s)
|
|
381
|
+
.map(s => `a.f_street = '${s.replace(/'/g, "''")}'`)
|
|
382
|
+
.join(' or ')
|
|
383
|
+
if (streetConds) {
|
|
384
|
+
args.condition = `${args.condition} and (${streetConds})`
|
|
385
|
+
}
|
|
386
|
+
}
|
|
336
387
|
this.model.search(args.condition, args.model)
|
|
337
388
|
},
|
|
338
389
|
|
|
339
390
|
//清空
|
|
340
391
|
clear(){
|
|
341
392
|
this.$refs.paged.$refs.cri.model = {}
|
|
393
|
+
this.selectedStreets = []
|
|
342
394
|
},
|
|
343
395
|
getorg (val) {
|
|
344
396
|
this.f_orgid = this.$login.convertToIn(val)
|
|
345
397
|
this.f_filialeids = val[0]
|
|
398
|
+
this.initstreets(` f_filialeid in ${this.f_orgid} `)
|
|
346
399
|
}
|
|
347
400
|
},
|
|
348
401
|
events: {
|
|
@@ -35,8 +35,14 @@
|
|
|
35
35
|
</div>
|
|
36
36
|
<div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.areaShow">
|
|
37
37
|
<label class="font_normal_body">街道乡镇</label>
|
|
38
|
-
<
|
|
39
|
-
|
|
38
|
+
<v-select
|
|
39
|
+
:value.sync="$parent.$parent.selectedStreets"
|
|
40
|
+
multiple
|
|
41
|
+
:options="$parent.$parent.streetslist"
|
|
42
|
+
placeholder="请选择"
|
|
43
|
+
close-on-select
|
|
44
|
+
search="true">
|
|
45
|
+
</v-select>
|
|
40
46
|
</div>
|
|
41
47
|
<div class="col-sm-4 form-group button-range">
|
|
42
48
|
<button class="button_search button_spacing" @click="search()" >查询</button>
|
|
@@ -67,9 +73,14 @@
|
|
|
67
73
|
</div>
|
|
68
74
|
<div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.areaShow">
|
|
69
75
|
<label class="font_normal_body">街道乡镇</label>
|
|
70
|
-
<
|
|
71
|
-
|
|
72
|
-
|
|
76
|
+
<v-select
|
|
77
|
+
:value.sync="$parent.$parent.selectedStreets"
|
|
78
|
+
multiple
|
|
79
|
+
:options="$parent.$parent.streetslist"
|
|
80
|
+
placeholder="请选择"
|
|
81
|
+
close-on-select
|
|
82
|
+
search="true">
|
|
83
|
+
</v-select>
|
|
73
84
|
</div>
|
|
74
85
|
<div :class="$parent.$parent.style">
|
|
75
86
|
<label class="font_normal_body">小区名称</label>
|
|
@@ -179,6 +190,10 @@
|
|
|
179
190
|
addflag: false,
|
|
180
191
|
addtitle:'',
|
|
181
192
|
getfield: {},
|
|
193
|
+
// 下拉:街道选项
|
|
194
|
+
streetslist: [],
|
|
195
|
+
// 已选街道(多选)
|
|
196
|
+
selectedStreets: [],
|
|
182
197
|
// 公司下拉
|
|
183
198
|
curorgid: [this.$login.f.orgid],
|
|
184
199
|
f_orgid: '',
|
|
@@ -218,6 +233,9 @@
|
|
|
218
233
|
},
|
|
219
234
|
ready(){
|
|
220
235
|
readyGen(this)
|
|
236
|
+
// 初始化组织 IN 条件,并加载默认街道
|
|
237
|
+
this.f_orgid = this.$login.convertToIn([this.$login.f.orgid])
|
|
238
|
+
this.initstreets(` f_orgid in ${this.f_orgid} `)
|
|
221
239
|
|
|
222
240
|
},
|
|
223
241
|
methods: {
|
|
@@ -227,6 +245,36 @@
|
|
|
227
245
|
search() {
|
|
228
246
|
this.$refs.paged.$refs.cri.search()
|
|
229
247
|
},
|
|
248
|
+
// 初始化街道下拉数据
|
|
249
|
+
async initstreets (pconditon) {
|
|
250
|
+
try {
|
|
251
|
+
this.streetslist = []
|
|
252
|
+
const req = await this.$resetpost('rs/sql/address_singleTableOrderBy', {
|
|
253
|
+
data: {
|
|
254
|
+
items: '*',
|
|
255
|
+
tablename: 't_street',
|
|
256
|
+
orderitem: 'id',
|
|
257
|
+
condition: pconditon
|
|
258
|
+
}
|
|
259
|
+
}, { resolveMsg: null, rejectMsg: '获取街道失败!' })
|
|
260
|
+
if (req && req.data) {
|
|
261
|
+
const seen = new Set()
|
|
262
|
+
this.streetslist = req.data.reduce((acc, row) => {
|
|
263
|
+
const key = row.f_street
|
|
264
|
+
if (key && !seen.has(key)) {
|
|
265
|
+
seen.add(key)
|
|
266
|
+
acc.push({
|
|
267
|
+
label: row.f_street,
|
|
268
|
+
value: row.f_street
|
|
269
|
+
})
|
|
270
|
+
}
|
|
271
|
+
return acc
|
|
272
|
+
}, [])
|
|
273
|
+
}
|
|
274
|
+
} catch (e) {
|
|
275
|
+
// 忽略异常,保持为空列表
|
|
276
|
+
}
|
|
277
|
+
},
|
|
230
278
|
|
|
231
279
|
async delete(row){
|
|
232
280
|
if(row.id >= 0){
|
|
@@ -269,15 +317,28 @@
|
|
|
269
317
|
}else{
|
|
270
318
|
args.condition = `${args.condition} and s.f_filialeid = ${this.f_orgid}`
|
|
271
319
|
}
|
|
320
|
+
// 街道多选条件
|
|
321
|
+
if (Array.isArray(this.selectedStreets) && this.selectedStreets.length > 0) {
|
|
322
|
+
const streetConds = this.selectedStreets
|
|
323
|
+
.filter(s => !!s)
|
|
324
|
+
.map(s => `s.f_street = '${s.replace(/'/g, "''")}'`)
|
|
325
|
+
.join(' or ')
|
|
326
|
+
if (streetConds) {
|
|
327
|
+
args.condition = `${args.condition} and (${streetConds})`
|
|
328
|
+
}
|
|
329
|
+
}
|
|
272
330
|
this.model.search(args.condition, args.model)
|
|
273
331
|
},
|
|
274
332
|
//清空
|
|
275
333
|
clear(){
|
|
276
334
|
this.$refs.paged.$refs.cri.model = {}
|
|
335
|
+
this.selectedStreets = []
|
|
277
336
|
},
|
|
278
337
|
getorg (val) {
|
|
279
338
|
this.f_orgid = this.$login.convertToIn(val)
|
|
280
339
|
this.f_filialeids = val[0]
|
|
340
|
+
// 根据分公司刷新街道下拉
|
|
341
|
+
this.initstreets(` f_orgid in ${this.f_orgid} `)
|
|
281
342
|
}
|
|
282
343
|
},
|
|
283
344
|
watch:{
|
|
@@ -13,8 +13,15 @@
|
|
|
13
13
|
</div>
|
|
14
14
|
<div class="form-group" :class="{'col-sm-3':$parent.$parent.$parent.areaShow,'col-sm-2':!$parent.$parent.$parent.areaShow}">
|
|
15
15
|
<label class="font_normal_body">街道名称</label>
|
|
16
|
-
<input
|
|
17
|
-
|
|
16
|
+
<input type="text" v-show="false" v-model="model.f_street" condition="f_street like '%{}%'" />
|
|
17
|
+
<v-select
|
|
18
|
+
:value.sync="$parent.$parent.selectedStreets"
|
|
19
|
+
multiple
|
|
20
|
+
:options="$parent.$parent.streetslist"
|
|
21
|
+
placeholder="请选择"
|
|
22
|
+
close-on-select
|
|
23
|
+
search="true">
|
|
24
|
+
</v-select>
|
|
18
25
|
</div>
|
|
19
26
|
<div class="col-sm-4 form-group button-range">
|
|
20
27
|
<button class="button_search button_spacing" @click="search()" >查询</button>
|
|
@@ -119,6 +126,10 @@
|
|
|
119
126
|
model: new PagedList('api/af-revenue/sql/address_getstreetlist',20,{orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_city,f_district,f_iscity,f_street desc'`}),
|
|
120
127
|
addflag: false,
|
|
121
128
|
getfield: {},
|
|
129
|
+
// 下拉:街道选项
|
|
130
|
+
streetslist: [],
|
|
131
|
+
// 已选街道(多选)
|
|
132
|
+
selectedStreets: [],
|
|
122
133
|
addtitle:'',
|
|
123
134
|
// 公司下拉
|
|
124
135
|
curorgid: [this.$login.f.orgid],
|
|
@@ -147,6 +158,9 @@
|
|
|
147
158
|
},
|
|
148
159
|
ready(){
|
|
149
160
|
readyGen(this)
|
|
161
|
+
// 初始化组织 IN 条件,并加载默认街道
|
|
162
|
+
this.f_orgid = this.$login.convertToIn([this.$login.f.orgid])
|
|
163
|
+
this.initstreets(` f_orgid in ${this.f_orgid} `)
|
|
150
164
|
this.search()
|
|
151
165
|
},
|
|
152
166
|
methods: {
|
|
@@ -156,6 +170,40 @@
|
|
|
156
170
|
search () {
|
|
157
171
|
this.$refs.paged.$refs.cri.search()
|
|
158
172
|
},
|
|
173
|
+
// 初始化街道下拉数据
|
|
174
|
+
async initstreets (pconditon) {
|
|
175
|
+
try {
|
|
176
|
+
this.streetslist = []
|
|
177
|
+
const req = await this.$resetpost('rs/sql/address_singleTableOrderBy', {
|
|
178
|
+
data: {
|
|
179
|
+
items: '*',
|
|
180
|
+
tablename: 't_street',
|
|
181
|
+
orderitem: 'id',
|
|
182
|
+
condition: pconditon
|
|
183
|
+
}
|
|
184
|
+
}, { resolveMsg: null, rejectMsg: '获取街道失败!' })
|
|
185
|
+
if (req && req.data) {
|
|
186
|
+
const seen = new Set()
|
|
187
|
+
this.streetslist = req.data.reduce((acc, row) => {
|
|
188
|
+
const key = row.f_street
|
|
189
|
+
if (key && !seen.has(key)) {
|
|
190
|
+
seen.add(key)
|
|
191
|
+
acc.push({
|
|
192
|
+
label: row.f_street,
|
|
193
|
+
value: row.f_street
|
|
194
|
+
})
|
|
195
|
+
}
|
|
196
|
+
return acc
|
|
197
|
+
}, [])
|
|
198
|
+
// 若父容器使用其 streetslist,则同步去重后的结果
|
|
199
|
+
if (this.$parent && this.$parent.$parent && Array.isArray(this.$parent.$parent.streetslist)) {
|
|
200
|
+
this.$parent.$parent.streetslist = this.streetslist
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
} catch (e) {
|
|
204
|
+
// 忽略异常,保持为空列表
|
|
205
|
+
}
|
|
206
|
+
},
|
|
159
207
|
async delete(row){
|
|
160
208
|
if(row.id >= 0 ){
|
|
161
209
|
var id = row.id
|
|
@@ -191,22 +239,36 @@
|
|
|
191
239
|
if (!this.f_orgid) {
|
|
192
240
|
this.getorg([this.$login.f.orgid])
|
|
193
241
|
}
|
|
242
|
+
// 分公司多选条件
|
|
194
243
|
args.condition = `${args.condition} and s.f_filialeid in ${this.f_orgid}`
|
|
244
|
+
// 街道多选条件
|
|
245
|
+
if (Array.isArray(this.selectedStreets) && this.selectedStreets.length > 0) {
|
|
246
|
+
const streetConds = this.selectedStreets
|
|
247
|
+
.filter(s => !!s)
|
|
248
|
+
.map(s => `s.f_street = '${s.replace(/'/g, "''")}'`)
|
|
249
|
+
.join(' or ')
|
|
250
|
+
if (streetConds) {
|
|
251
|
+
args.condition = `${args.condition} and (${streetConds})`
|
|
252
|
+
}
|
|
253
|
+
}
|
|
195
254
|
this.model.search(args.condition, args.model)
|
|
196
255
|
},
|
|
197
256
|
//清空
|
|
198
257
|
clear(){
|
|
199
258
|
this.$refs.paged.$refs.cri.model = {}
|
|
259
|
+
this.selectedStreets = []
|
|
200
260
|
},
|
|
201
261
|
getorg (val) {
|
|
202
262
|
this.f_orgid = this.$login.convertToIn(val)
|
|
203
|
-
this.f_filialeids = val[0]
|
|
263
|
+
this.f_filialeids = Array.isArray(val) && val.length ? val[0] : ''
|
|
264
|
+
// 根据分公司(多选)刷新街道下拉
|
|
265
|
+
this.initstreets(` f_orgid in ${this.f_orgid} `)
|
|
204
266
|
}
|
|
205
267
|
},
|
|
206
268
|
computed: {
|
|
207
269
|
getCondition() {
|
|
208
270
|
return {
|
|
209
|
-
condition: `${this.$refs.paged.$refs.cri.condition}` + `and s.f_filialeid
|
|
271
|
+
condition: `${this.$refs.paged.$refs.cri.condition}` + ` and s.f_filialeid in ${this.f_orgid}`,
|
|
210
272
|
orderitem: this.orderitem ? `${this.orderitem}` : " id desc"
|
|
211
273
|
}
|
|
212
274
|
}
|