Compare commits
1 Commits
feat/updat
...
master
| Author | SHA1 | Date |
|---|---|---|
|
|
c8082ddab0 | 2 years ago |
@ -1,34 +1,5 @@
|
|||||||
# kdiff3 ignore
|
**/target/
|
||||||
*.orig
|
**/.idea/
|
||||||
|
|
||||||
# maven ignore
|
|
||||||
target/
|
|
||||||
|
|
||||||
# eclipse ignore
|
|
||||||
.settings/
|
|
||||||
.project
|
|
||||||
.classpath
|
|
||||||
|
|
||||||
# idea ignore
|
|
||||||
.idea/
|
|
||||||
*.ipr
|
|
||||||
*.iml
|
*.iml
|
||||||
*.iws
|
|
||||||
|
|
||||||
# temp ignore
|
|
||||||
*.log
|
|
||||||
*.cache
|
|
||||||
*.diff
|
|
||||||
*.patch
|
|
||||||
*.tmp
|
|
||||||
tmp/
|
|
||||||
|
|
||||||
# system ignore
|
|
||||||
.DS_Store
|
|
||||||
Thumbs.db
|
|
||||||
|
|
||||||
# package ignore (optional)
|
|
||||||
# *.jar
|
|
||||||
|
|
||||||
#rebel
|
|
||||||
rebel.xml
|
rebel.xml
|
||||||
|
*.log
|
||||||
@ -0,0 +1,8 @@
|
|||||||
|
# Default ignored files
|
||||||
|
/shelf/
|
||||||
|
/workspace.xml
|
||||||
|
# Editor-based HTTP Client requests
|
||||||
|
/httpRequests/
|
||||||
|
# Datasource local storage ignored files
|
||||||
|
/dataSources/
|
||||||
|
/dataSources.local.xml
|
||||||
@ -0,0 +1,55 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="CompilerConfiguration">
|
||||||
|
<annotationProcessing>
|
||||||
|
<profile default="true" name="Default" enabled="true" />
|
||||||
|
<profile name="Maven default annotation processors profile" enabled="true">
|
||||||
|
<sourceOutputDir name="target/generated-sources/annotations" />
|
||||||
|
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
|
||||||
|
<outputRelativeToContentRoot value="true" />
|
||||||
|
<module name="jyjz-system-authority" />
|
||||||
|
<module name="jyjz-system-oa" />
|
||||||
|
<module name="jyjz-framework-security" />
|
||||||
|
<module name="jyjz-system-abase" />
|
||||||
|
<module name="runtest" />
|
||||||
|
<module name="jyjz-common-mybatisplus" />
|
||||||
|
<module name="jyjz-common-upload" />
|
||||||
|
<module name="jyjz-system-admin" />
|
||||||
|
<module name="jyjz-framework-securityweb" />
|
||||||
|
<module name="jyjz-common-web" />
|
||||||
|
<module name="jyjz-system-cms" />
|
||||||
|
<module name="jyjz-common-redis" />
|
||||||
|
<module name="jyjz-common-task" />
|
||||||
|
<module name="jyjz-common-base" />
|
||||||
|
</profile>
|
||||||
|
</annotationProcessing>
|
||||||
|
<bytecodeTargetLevel>
|
||||||
|
<module name="jyjz-start" target="1.8" />
|
||||||
|
<module name="ocrproject" target="1.8" />
|
||||||
|
<module name="runstart" target="1.8" />
|
||||||
|
</bytecodeTargetLevel>
|
||||||
|
</component>
|
||||||
|
<component name="JavacSettings">
|
||||||
|
<option name="ADDITIONAL_OPTIONS_OVERRIDE">
|
||||||
|
<module name="jyjz-common" options="" />
|
||||||
|
<module name="jyjz-common-base" options="-parameters" />
|
||||||
|
<module name="jyjz-common-mybatisplus" options="-parameters" />
|
||||||
|
<module name="jyjz-common-redis" options="-parameters" />
|
||||||
|
<module name="jyjz-common-task" options="-parameters" />
|
||||||
|
<module name="jyjz-common-upload" options="-parameters" />
|
||||||
|
<module name="jyjz-common-web" options="-parameters" />
|
||||||
|
<module name="jyjz-framework" options="" />
|
||||||
|
<module name="jyjz-framework-security" options="-parameters" />
|
||||||
|
<module name="jyjz-framework-securityweb" options="-parameters" />
|
||||||
|
<module name="jyjz-parent" options="" />
|
||||||
|
<module name="jyjz-system" options="" />
|
||||||
|
<module name="jyjz-system-abase" options="-parameters" />
|
||||||
|
<module name="jyjz-system-admin" options="-parameters" />
|
||||||
|
<module name="jyjz-system-authority" options="-parameters" />
|
||||||
|
<module name="jyjz-system-cms" options="-parameters" />
|
||||||
|
<module name="jyjz-system-oa" options="-parameters" />
|
||||||
|
<module name="runstart" options="-parameters" />
|
||||||
|
<module name="runtest" options="-parameters" />
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="Encoding">
|
||||||
|
<file url="file://$PROJECT_DIR$/jyjz-common/jyjz-common-base/src/main/java" charset="UTF-8" />
|
||||||
|
<file url="file://$PROJECT_DIR$/jyjz-common/jyjz-common-mybatisplus/src/main/java" charset="UTF-8" />
|
||||||
|
<file url="file://$PROJECT_DIR$/jyjz-common/jyjz-common-redis/src/main/java" charset="UTF-8" />
|
||||||
|
<file url="file://$PROJECT_DIR$/jyjz-common/jyjz-common-task/src/main/java" charset="UTF-8" />
|
||||||
|
<file url="file://$PROJECT_DIR$/jyjz-common/jyjz-common-upload/src/main/java" charset="UTF-8" />
|
||||||
|
<file url="file://$PROJECT_DIR$/jyjz-common/jyjz-common-web/src/main/java" charset="UTF-8" />
|
||||||
|
<file url="file://$PROJECT_DIR$/jyjz-framework/jyjz-framework-security/src/main/java" charset="UTF-8" />
|
||||||
|
<file url="file://$PROJECT_DIR$/jyjz-framework/jyjz-framework-securityweb/src/main/java" charset="UTF-8" />
|
||||||
|
<file url="file://$PROJECT_DIR$/jyjz-system/jyjz-system-abase/src/main/java" charset="UTF-8" />
|
||||||
|
<file url="file://$PROJECT_DIR$/jyjz-system/jyjz-system-admin/src/main/java" charset="UTF-8" />
|
||||||
|
<file url="file://$PROJECT_DIR$/jyjz-system/jyjz-system-cms/src/main/java" charset="UTF-8" />
|
||||||
|
<file url="file://$PROJECT_DIR$/jyjz-system/jyjz-system-oa/src/main/java" charset="UTF-8" />
|
||||||
|
<file url="file://$PROJECT_DIR$/runstart/src/main/java" charset="UTF-8" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
@ -0,0 +1,50 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="RemoteRepositoriesConfiguration">
|
||||||
|
<remote-repository>
|
||||||
|
<option name="id" value="central" />
|
||||||
|
<option name="name" value="central" />
|
||||||
|
<option name="url" value="https://maven.aliyun.com/nexus/content/groups/public" />
|
||||||
|
</remote-repository>
|
||||||
|
<remote-repository>
|
||||||
|
<option name="id" value="central" />
|
||||||
|
<option name="name" value="Central Repository" />
|
||||||
|
<option name="url" value="https://repo.maven.apache.org/maven2" />
|
||||||
|
</remote-repository>
|
||||||
|
<remote-repository>
|
||||||
|
<option name="id" value="central" />
|
||||||
|
<option name="name" value="Central Repository" />
|
||||||
|
<option name="url" value="http://maven.aliyun.com/nexus/content/groups/public/" />
|
||||||
|
</remote-repository>
|
||||||
|
<remote-repository>
|
||||||
|
<option name="id" value="rdc-releases" />
|
||||||
|
<option name="name" value="rdc-releases" />
|
||||||
|
<option name="url" value="https://packages.aliyun.com/maven/repository/2179753-release-2RMtZe/" />
|
||||||
|
</remote-repository>
|
||||||
|
<remote-repository>
|
||||||
|
<option name="id" value="central" />
|
||||||
|
<option name="name" value="Maven Central repository" />
|
||||||
|
<option name="url" value="https://repo1.maven.org/maven2" />
|
||||||
|
</remote-repository>
|
||||||
|
<remote-repository>
|
||||||
|
<option name="id" value="alimaven" />
|
||||||
|
<option name="name" value="alimaven" />
|
||||||
|
<option name="url" value="https://maven.aliyun.com/repository/public" />
|
||||||
|
</remote-repository>
|
||||||
|
<remote-repository>
|
||||||
|
<option name="id" value="jboss.community" />
|
||||||
|
<option name="name" value="JBoss Community repository" />
|
||||||
|
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
|
||||||
|
</remote-repository>
|
||||||
|
<remote-repository>
|
||||||
|
<option name="id" value="rdc-snapshots" />
|
||||||
|
<option name="name" value="rdc-snapshots" />
|
||||||
|
<option name="url" value="https://packages.aliyun.com/maven/repository/2179753-snapshot-eDoLiX/" />
|
||||||
|
</remote-repository>
|
||||||
|
<remote-repository>
|
||||||
|
<option name="id" value="snapshots" />
|
||||||
|
<option name="name" value="snapshots" />
|
||||||
|
<option name="url" value="https://maven.aliyun.com/nexus/content/groups/public" />
|
||||||
|
</remote-repository>
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||||
|
<component name="MavenProjectsManager">
|
||||||
|
<option name="originalFiles">
|
||||||
|
<list>
|
||||||
|
<option value="$PROJECT_DIR$/pom.xml" />
|
||||||
|
</list>
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||||
|
<output url="file://$PROJECT_DIR$/out" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/jyjz-parent.iml" filepath="$PROJECT_DIR$/jyjz-parent.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
@ -0,0 +1,124 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="Palette2">
|
||||||
|
<group name="Swing">
|
||||||
|
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.svg" removable="false" auto-create-binding="false" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
|
||||||
|
<initial-values>
|
||||||
|
<property name="text" value="Button" />
|
||||||
|
</initial-values>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||||
|
<initial-values>
|
||||||
|
<property name="text" value="RadioButton" />
|
||||||
|
</initial-values>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||||
|
<initial-values>
|
||||||
|
<property name="text" value="CheckBox" />
|
||||||
|
</initial-values>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
|
||||||
|
<initial-values>
|
||||||
|
<property name="text" value="Label" />
|
||||||
|
</initial-values>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||||
|
<preferred-size width="150" height="-1" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||||
|
<preferred-size width="150" height="-1" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||||
|
<preferred-size width="150" height="-1" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||||
|
<preferred-size width="200" height="200" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||||
|
<preferred-size width="200" height="200" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
|
||||||
|
<preferred-size width="-1" height="20" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
|
||||||
|
</item>
|
||||||
|
</group>
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
File diff suppressed because it is too large
Load Diff
@ -1,237 +0,0 @@
|
|||||||
<#include "/common/taglibs.html" />
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>前端配置管理</title>
|
|
||||||
|
|
||||||
<#include "/head/headaddedit.html" />
|
|
||||||
<link href="${ctx}/static/css/plugins/switchery/switchery.css" rel="stylesheet">
|
|
||||||
</head>
|
|
||||||
<body class="gray-bg">
|
|
||||||
<div class="wrapper wrapper-content animated fadeInRight">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-12">
|
|
||||||
<div class="ibox float-e-margins">
|
|
||||||
<div class="ibox-title">
|
|
||||||
<h5>基本信息</h5>
|
|
||||||
</div>
|
|
||||||
<div class="ibox-content">
|
|
||||||
<div class="main-content">
|
|
||||||
<form name="OcrConfigurationform" method="post" id="OcrConfigurationform" class="form-horizontal" action="${ctx}/ocr/ocrFrontConf/save">
|
|
||||||
<input type="hidden" id="id" name="id">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required"> 当前环境:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<input name="env" id="env" class="form-control" disabled placeholder="当前环境" class="form-control" type="text" value="" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required"> 无量云域名:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<input name="wlyInterfaceDomain" id="wlyInterfaceDomain" class="form-control" placeholder="无量云域名" class="form-control" type="text" value="" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required"> 无量云AccessKey:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<input name="wlyAccessKey" id="wlyAccessKey" class="form-control" placeholder="无量云AccessKey" class="form-control" type="text" value="" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required"> 无量云AccessCode:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<input name="wlyAccessCode" id="wlyAccessCode" class="form-control" placeholder="无量云AccessCode" class="form-control" type="text" value="" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required"> 无量云连接超时时间:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<input name="wlyConnectTimeout" id="wlyConnectTimeout" class="form-control" placeholder="无量云连接超时时间" class="form-control" type="text" number="true" value="0" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required"> 无量云读取超时时间:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<input name="wlyReadTimeout" id="wlyReadTimeout" class="form-control" placeholder="无量云读取超时时间" class="form-control" type="text" number="true" value="100" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required"> 无量云本地图片路径:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<input name="wlyLocalImagePath" id="wlyLocalImagePath" class="form-control" placeholder="无量云本地图片路径" class="form-control" type="text" value="" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required"> 无量云数据url:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<input name="wlyDataUrl" id="wlyDataUrl" class="form-control" placeholder="无量云数据url" class="form-control" type="text" value="" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required"> 图片信息url:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<input name="pictureSourceUrl" id="pictureSourceUrl" class="form-control" placeholder="图片信息url" class="form-control" type="text" value="" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required"> 发送图片结果url:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<input name="sendResultUrl" id="sendResultUrl" class="form-control" placeholder="发送图片结果url" class="form-control" type="text" value="" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required"> 项目信息url:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<input name="projectSourceUrl" id="projectSourceUrl" class="form-control" placeholder="项目信息url" class="form-control" type="text" value="" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required"> 租户信息url:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<input name="tenantSourceUrl" id="tenantSourceUrl" class="form-control" placeholder="租户信息url" class="form-control" type="text" value="" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="form-group">
|
|
||||||
<div class="col-sm-offset-5">
|
|
||||||
<button type="submit" class="btn btn-w-m btn-primary">保存</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<#include "/head/footadd.html" />
|
|
||||||
<script src="${ctx}/static/js/plugins/switchery/switchery.js"></script>
|
|
||||||
<script type="text/javascript">
|
|
||||||
$(document).ready(function () {
|
|
||||||
var elem = document.querySelector('.js-switch');
|
|
||||||
var switchery = new Switchery(elem, {
|
|
||||||
color: '#1AB394'
|
|
||||||
});
|
|
||||||
parent.axgetXiaoyao('${ctx}/ocr/ocrFrontConf/get',null,false , function(data){
|
|
||||||
if(data.code == "OK"){
|
|
||||||
$("#id").val(data.data.id);
|
|
||||||
$("#env").val(data.data.env);
|
|
||||||
$("#wlyInterfaceDomain").val(data.data.wlyInterfaceDomain);
|
|
||||||
$("#wlyAccessKey").val(data.data.wlyAccessKey);
|
|
||||||
$("#wlyAccessCode").val(data.data.wlyAccessCode);
|
|
||||||
$("#wlyConnectTimeout").val(data.data.wlyConnectTimeout);
|
|
||||||
$("#wlyReadTimeout").val(data.data.wlyReadTimeout);
|
|
||||||
$("#wlyLocalImagePath").val(data.data.wlyLocalImagePath);
|
|
||||||
$("#wlyDataUrl").val(data.data.wlyDataUrl);
|
|
||||||
$("#pictureSourceUrl").val(data.data.pictureSourceUrl);
|
|
||||||
$("#sendResultUrl").val(data.data.sendResultUrl);
|
|
||||||
$("#projectSourceUrl").val(data.data.projectSourceUrl);
|
|
||||||
$("#tenantSourceUrl").val(data.data.tenantSourceUrl);
|
|
||||||
}else{
|
|
||||||
parent.toastr.error("非法请求。");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
$('.i-checks').iCheck({
|
|
||||||
checkboxClass: 'icheckbox_square-green',
|
|
||||||
radioClass: 'iradio_square-green',
|
|
||||||
});
|
|
||||||
$("#OcrConfigurationform").attr("action","${ctx}/ocr/ocrFrontConf/save");
|
|
||||||
var form1 = $('#OcrConfigurationform');
|
|
||||||
var error1 = $('.alert-danger', form1);
|
|
||||||
form1.validate({
|
|
||||||
debug: true,
|
|
||||||
errorElement: 'span',
|
|
||||||
errorClass: 'help-block help-block-error',
|
|
||||||
focusInvalid: false,
|
|
||||||
ignore: ":hidden",
|
|
||||||
errorPlacement: function (error, element) {
|
|
||||||
if (element.parent(".input-group").size() > 0) {
|
|
||||||
error.insertAfter(element.parent(".input-group"));
|
|
||||||
} else if (element.attr("data-error-container")) {
|
|
||||||
error.appendTo(element.attr("data-error-container"));
|
|
||||||
} else if (element.parents('.radio-list').size() > 0) {
|
|
||||||
error.appendTo(element.parents('.radio-list').attr("data-error-container"));
|
|
||||||
} else if (element.parents('.radio-inline').size() > 0) {
|
|
||||||
error.appendTo(element.parents('.radio-inline').attr("data-error-container"));
|
|
||||||
} else if (element.parents('.checkbox-list').size() > 0) {
|
|
||||||
error.appendTo(element.parents('.checkbox-list').attr("data-error-container"));
|
|
||||||
} else if (element.parents('.checkbox-inline').size() > 0) {
|
|
||||||
error.appendTo(element.parents('.checkbox-inline').attr("data-error-container"));
|
|
||||||
} else {
|
|
||||||
error.insertAfter(element);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
highlight: function (element) {
|
|
||||||
$(element).closest('.form-group').addClass('has-error');
|
|
||||||
},
|
|
||||||
unhighlight: function (element) {
|
|
||||||
$(element).closest('.form-group').removeClass('has-error');
|
|
||||||
},
|
|
||||||
success: function (label) {
|
|
||||||
label.closest('.form-group').removeClass('has-error');
|
|
||||||
},
|
|
||||||
submitHandler: function (){
|
|
||||||
parent.layer.load();
|
|
||||||
$("#OcrConfigurationform").ajaxSubmit({
|
|
||||||
headers:{"logintoken": parent.getLoginToken()},
|
|
||||||
success:function(data){
|
|
||||||
parent.layer.closeAll('loading');
|
|
||||||
if(data.code == "OK"){
|
|
||||||
parent.toastr.success(data.message);
|
|
||||||
}else if(data.code == "ERRORM"){
|
|
||||||
$.each(data.message,function(name,anArray) {
|
|
||||||
$.each(anArray,function(n,value){
|
|
||||||
$("#" + n).closest('.form-group').addClass('has-error');
|
|
||||||
$("<span>").attr( "id", n + "-error" ).addClass("help-block help-block-error").html(value).insertAfter($("#" + n));
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}else{
|
|
||||||
parent.toastr.error(data.message);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
||||||
@ -1,277 +0,0 @@
|
|||||||
<#include "/common/taglibs.html" />
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>信息字段管理添加</title>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<#include "/head/headaddedit.html" />
|
|
||||||
<link href="${ctx}/static/js/plugins/jqueryzTree/css/metroStyle/metroStyle.css" rel="stylesheet">
|
|
||||||
</head>
|
|
||||||
<body class="gray-bg">
|
|
||||||
<div class="wrapper wrapper-content animated fadeInRight">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-12">
|
|
||||||
<div class="ibox float-e-margins">
|
|
||||||
<div class="ibox-title">
|
|
||||||
<h5>信息字段新增</h5>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="ibox-content">
|
|
||||||
<div class="main-content">
|
|
||||||
<form name="Postform" method="post" id="Postform" class="form-horizontal" action="${ctx}/backstage/post/save">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required">* 字段名称:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<input name="name" id="name" class="form-control" placeholder="字段名称" class="form-control" type="text" maxlength='100' required>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required">* 页面类型:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<select class="form-control" name='reviewType' id='reviewType'>
|
|
||||||
<option value="0">终审</option>
|
|
||||||
<option value="1">工单</option>
|
|
||||||
<option value="2">一审二审</option>
|
|
||||||
<option value="3">审核填报</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required">* 字段描述:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<input name="fieldDesc" id="fieldDesc" class="form-control" placeholder="字段描述" class="form-control" type="text" maxlength='100' required>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required">是否必选:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<div class="radio i-checks">
|
|
||||||
<label>
|
|
||||||
<input type="radio" checked="" value="1" name="isrequired"> <i></i>启用
|
|
||||||
</label>
|
|
||||||
<label>
|
|
||||||
<input type="radio" value="0" name="isrequired"> <i></i>停用
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required">* 排序字段:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<input name="sort" id="sort" class="form-control" placeholder="排序字段" class="form-control" type="text" maxlength='20' required>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-6" >
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required">是否高亮:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<div class="radio i-checks">
|
|
||||||
<label>
|
|
||||||
<input type="radio" checked="" value="1" name="isHighlight"> <i></i>否
|
|
||||||
</label>
|
|
||||||
<label>
|
|
||||||
<input type="radio" value="0" name="isHighlight"> <i></i>是
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-6" >
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required">是否可点击:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<div class="radio i-checks">
|
|
||||||
<label>
|
|
||||||
<input type="radio" checked="" value="1" name="isTap"> <i></i>否
|
|
||||||
</label>
|
|
||||||
<label>
|
|
||||||
<input type="radio" value="0" name="isTap"> <i></i>是
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-6" >
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required">是否隐藏:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<div class="radio i-checks">
|
|
||||||
<label>
|
|
||||||
<input type="radio" checked="" value="1" name="isHide"> <i></i>否
|
|
||||||
</label>
|
|
||||||
<label>
|
|
||||||
<input type="radio" value="0" name="isHide"> <i></i>是
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="form-group">
|
|
||||||
<div class="col-sm-offset-5">
|
|
||||||
<button id="savebutton" type="submit" class="btn btn-w-m btn-primary">保存</button>
|
|
||||||
<button type="button" onclick="rolesback()" class="btn btn-w-m btn-success">取消</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div id="ajaxDeptTreemodal" class="modal fade" tabindex="-1" data-backdrop="static" data-keyboard="false">
|
|
||||||
<div class="modal-dialog">
|
|
||||||
<div class="modal-content">
|
|
||||||
<div class="modal-header">
|
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
|
|
||||||
<h4 class="modal-title">选择机构</h4>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="modal-body" style=" padding: 15px 50px; ">
|
|
||||||
<ul id="departZtreeUl" class="ztree"></ul>
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button type="button" data-dismiss="modal" class="btn btn-white">取消</button>
|
|
||||||
<button type="button" onclick="closedept()" class="btn btn-primary">确认</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<#include "/head/footadd.html" />
|
|
||||||
<script src="${ctx}/static/js/plugins/layer/layer.min.js"></script>
|
|
||||||
<script src="${ctx}/static/js/plugins/jqueryzTree/js/jquery.ztree.all.min.js"></script>
|
|
||||||
<script type="text/javascript">
|
|
||||||
var $ajaxDeptTreemodal = $('#ajaxDeptTreemodal');
|
|
||||||
|
|
||||||
function selectDeptTree(){
|
|
||||||
$ajaxDeptTreemodal.modal();
|
|
||||||
$ajaxDeptTreemodal.css("z-index",(parent.getMaxZIndex() + 1));
|
|
||||||
}
|
|
||||||
function closedept(){
|
|
||||||
$ajaxDeptTreemodal.modal('hide');
|
|
||||||
}
|
|
||||||
var _deptTree;
|
|
||||||
var setting = {
|
|
||||||
data: {
|
|
||||||
simpleData: {
|
|
||||||
enable: true
|
|
||||||
}
|
|
||||||
}, callback: {onClick: zTreeOnClick }
|
|
||||||
};
|
|
||||||
function zTreeOnClick(event, treeId, treeNode) {
|
|
||||||
|
|
||||||
$("#reviewType").val(treeNode.name);
|
|
||||||
$("#deptid").val(treeNode.id);
|
|
||||||
closedept();
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
$(document).ready(function () {
|
|
||||||
|
|
||||||
if(parent.$("#index_user_issys").val() == 0){
|
|
||||||
$("#systemAdminUse").hide();
|
|
||||||
}
|
|
||||||
parent.axgetXiaoyao("${ctx}/backstage/admin/department/showDeptJsTree",null,false,function (data) {
|
|
||||||
_deptTree = $.fn.zTree.init($("#departZtreeUl"),setting, data);
|
|
||||||
|
|
||||||
_deptTree.expandAll(true);
|
|
||||||
});
|
|
||||||
|
|
||||||
$('.i-checks').iCheck({
|
|
||||||
checkboxClass: 'icheckbox_square-green',
|
|
||||||
radioClass: 'iradio_square-green',
|
|
||||||
});
|
|
||||||
$("#Postform").attr("action","${ctx}/ocr/field/saveOrUpdate");
|
|
||||||
var form1 = $('#Postform');
|
|
||||||
var error1 = $('.alert-danger', form1);
|
|
||||||
form1.validate({
|
|
||||||
debug: true,
|
|
||||||
errorElement: 'span',
|
|
||||||
errorClass: 'help-block help-block-error',
|
|
||||||
focusInvalid: false,
|
|
||||||
ignore: "",
|
|
||||||
errorPlacement: function (error, element) {
|
|
||||||
if (element.parent(".input-group").size() > 0) {
|
|
||||||
error.insertAfter(element.parent(".input-group"));
|
|
||||||
} else if (element.attr("data-error-container")) {
|
|
||||||
error.appendTo(element.attr("data-error-container"));
|
|
||||||
} else if (element.parents('.radio-list').size() > 0) {
|
|
||||||
error.appendTo(element.parents('.radio-list').attr("data-error-container"));
|
|
||||||
} else if (element.parents('.radio-inline').size() > 0) {
|
|
||||||
error.appendTo(element.parents('.radio-inline').attr("data-error-container"));
|
|
||||||
} else if (element.parents('.checkbox-list').size() > 0) {
|
|
||||||
error.appendTo(element.parents('.checkbox-list').attr("data-error-container"));
|
|
||||||
} else if (element.parents('.checkbox-inline').size() > 0) {
|
|
||||||
error.appendTo(element.parents('.checkbox-inline').attr("data-error-container"));
|
|
||||||
} else {
|
|
||||||
error.insertAfter(element);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
highlight: function (element) {
|
|
||||||
$(element).closest('.form-group').addClass('has-error');
|
|
||||||
},
|
|
||||||
unhighlight: function (element) {
|
|
||||||
$(element).closest('.form-group').removeClass('has-error');
|
|
||||||
},
|
|
||||||
success: function (label) {
|
|
||||||
label.closest('.form-group').removeClass('has-error');
|
|
||||||
},
|
|
||||||
submitHandler: function (){
|
|
||||||
parent.layer.load();
|
|
||||||
$("#savebutton").addClass('disabled');
|
|
||||||
$("#Postform").ajaxSubmit({
|
|
||||||
headers:{"logintoken": parent.getLoginToken()},
|
|
||||||
success:function(data) {
|
|
||||||
parent.layer.closeAll('loading');
|
|
||||||
if (data.code == "OK") {
|
|
||||||
parent.toastr.success(data.message);
|
|
||||||
rolesback();
|
|
||||||
} else if (data.code == "ERRORM") {
|
|
||||||
$.each(data.message, function (name, anArray) {
|
|
||||||
$.each(anArray, function (n, value) {
|
|
||||||
$("#" + n).closest('.form-group').addClass('has-error');
|
|
||||||
$("<span>").attr("id", n + "-error").addClass(
|
|
||||||
"help-block help-block-error").html(value).insertAfter($("#" + n));
|
|
||||||
});
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
$("#savebutton").addClass('removeClass');
|
|
||||||
parent.toastr.error(data.message);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
function rolesback() {
|
|
||||||
parent.closeItem(window.frameElement.name);
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
||||||
@ -1,331 +0,0 @@
|
|||||||
<#include "/common/taglibs.html" />
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>岗位信息</title>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<#include "/head/headaddedit.html" />
|
|
||||||
<link href="${ctx}/static/js/plugins/jqueryzTree/css/metroStyle/metroStyle.css" rel="stylesheet">
|
|
||||||
</head>
|
|
||||||
<body class="gray-bg">
|
|
||||||
<div class="wrapper wrapper-content animated fadeInRight">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-12">
|
|
||||||
<div class="ibox float-e-margins">
|
|
||||||
<div class="ibox-title">
|
|
||||||
<h5>信息字段编辑</h5>
|
|
||||||
</div>
|
|
||||||
<div class="ibox-content">
|
|
||||||
<div class="main-content">
|
|
||||||
<form name="Postform" method="post" id="Postform" class="form-horizontal" action="${ctx}/backstage/post/edit">
|
|
||||||
|
|
||||||
<input type="hidden" id="id" name="id" value="${id}">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required">* 字段名称:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<input name="name" id="name" class="form-control" placeholder="字段名称" class="form-control" type="text" maxlength='100' required>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required">* 页面类型:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<select class="form-control" name='reviewType' id='reviewType'>
|
|
||||||
<option value="0">终审</option>
|
|
||||||
<option value="1">工单</option>
|
|
||||||
<option value="2">一审二审</option>
|
|
||||||
<option value="3">审核填报</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required">* 字段描述:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<input name="fieldDesc" id="fieldDesc" class="form-control" placeholder="字段描述" class="form-control" type="text" maxlength='100' required>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required">是否必选:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<div class="radio i-checks">
|
|
||||||
<label>
|
|
||||||
<input type="radio" checked="" value="1" name="isrequired"> <i></i>启用
|
|
||||||
</label>
|
|
||||||
<label>
|
|
||||||
<input type="radio" value="0" name="isrequired"> <i></i>停用
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required">* 排序字段:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<input name="sort" id="sort" class="form-control" placeholder="排序字段" class="form-control" type="text" maxlength='20' required>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-6" >
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required">是否高亮:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<div class="radio i-checks">
|
|
||||||
<label>
|
|
||||||
<input type="radio" checked="" value="1" name="isHighlight" > <i></i>否
|
|
||||||
</label>
|
|
||||||
<label>
|
|
||||||
<input type="radio" value="0" name="isHighlight" > <i></i>是
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-6" >
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required">是否可点击:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<div class="radio i-checks">
|
|
||||||
<label>
|
|
||||||
<input type="radio" checked="" value="1" name="isTap"> <i></i>否
|
|
||||||
</label>
|
|
||||||
<label>
|
|
||||||
<input type="radio" value="0" name="isTap"> <i></i>是
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-6" >
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required">是否隐藏:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<div class="radio i-checks">
|
|
||||||
<label>
|
|
||||||
<input type="radio" checked="" value="1" name="isHide"> <i></i>否
|
|
||||||
</label>
|
|
||||||
<label>
|
|
||||||
<input type="radio" value="0" name="isHide"> <i></i>是
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="form-group">
|
|
||||||
<div class="col-sm-offset-5">
|
|
||||||
<button type="submit" class="btn btn-w-m btn-primary">保存</button>
|
|
||||||
<button type="button" onclick="rolesback()" class="btn btn-w-m btn-success">取消</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div id="ajaxDeptTreemodal" class="modal fade" tabindex="-1" data-backdrop="static" data-keyboard="false">
|
|
||||||
<div class="modal-dialog">
|
|
||||||
<div class="modal-content">
|
|
||||||
<div class="modal-header">
|
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
|
|
||||||
<h4 class="modal-title">选择机构</h4>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="modal-body" style=" padding: 15px 50px; ">
|
|
||||||
<ul id="departZtreeUl" class="ztree"></ul>
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button type="button" data-dismiss="modal" class="btn btn-white">取消</button>
|
|
||||||
<button type="button" onclick="closedept()" class="btn btn-primary">确认</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<#include "/head/footadd.html" />
|
|
||||||
<script src="${ctx}/static/js/plugins/layer/layer.min.js"></script>
|
|
||||||
<script src="${ctx}/static/js/plugins/jqueryzTree/js/jquery.ztree.all.min.js"></script>
|
|
||||||
<script type="text/javascript">
|
|
||||||
var $ajaxDeptTreemodal = $('#ajaxDeptTreemodal');
|
|
||||||
|
|
||||||
function selectDeptTree(){
|
|
||||||
$ajaxDeptTreemodal.modal();
|
|
||||||
$ajaxDeptTreemodal.css("z-index",(parent.getMaxZIndex() + 1));
|
|
||||||
}
|
|
||||||
function closedept(){
|
|
||||||
$ajaxDeptTreemodal.modal('hide');
|
|
||||||
}
|
|
||||||
var _deptTree;
|
|
||||||
var setting = {
|
|
||||||
data: {
|
|
||||||
simpleData: {
|
|
||||||
enable: true
|
|
||||||
}
|
|
||||||
}, callback: {onClick: zTreeOnClick }
|
|
||||||
};
|
|
||||||
function zTreeOnClick(event, treeId, treeNode) {
|
|
||||||
|
|
||||||
$("#parentname").val(treeNode.name);
|
|
||||||
$("#deptid").val(treeNode.id);
|
|
||||||
closedept();
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
$(document).ready(function () {
|
|
||||||
|
|
||||||
|
|
||||||
if(parent.$("#index_user_issys").val() == 0){
|
|
||||||
$("#systemAdminUse").hide();
|
|
||||||
}
|
|
||||||
$.ajaxSettings.async = false;
|
|
||||||
parent.axgetXiaoyao("${ctx}/backstage/admin/department/showDeptJsTree",null,false,function (data) {
|
|
||||||
_deptTree = $.fn.zTree.init($("#departZtreeUl"),setting, data);
|
|
||||||
|
|
||||||
_deptTree.expandAll(true);
|
|
||||||
});
|
|
||||||
$.ajaxSettings.async = true;
|
|
||||||
|
|
||||||
|
|
||||||
parent.axgetXiaoyao('${ctx}/ocr/field/getData/' + $("#id").val(),null,false , function(data){
|
|
||||||
if(data.code == "OK"){
|
|
||||||
$("#id").val(data.data.id);
|
|
||||||
|
|
||||||
$("#name").val(data.data.name);
|
|
||||||
|
|
||||||
$("#reviewType").val(data.data.reviewType)
|
|
||||||
// if(data.data.reviewType == '0') {
|
|
||||||
// $("#reviewType").val('终审');
|
|
||||||
// }
|
|
||||||
// else if(data.data.reviewType == '1'){
|
|
||||||
// $("#reviewType").val('工单');
|
|
||||||
// }
|
|
||||||
// else if(data.data.reviewType == '2'){
|
|
||||||
// $("#reviewType").val('一审二审');
|
|
||||||
// }
|
|
||||||
// else if(data.data.reviewType == '3'){
|
|
||||||
// $("#reviewType").val('审核填报');
|
|
||||||
// }
|
|
||||||
|
|
||||||
$("#fieldDesc").val(data.data.fieldDesc);
|
|
||||||
$("#sort").val(data.data.sort);
|
|
||||||
if (data.data.isTap == 1) {
|
|
||||||
$("input:radio[name='isTap']").eq(0).attr('checked', true);
|
|
||||||
} else if (data.data.isTap == 0) {
|
|
||||||
$("input:radio[name='isTap']").eq(1).attr('checked', true);
|
|
||||||
}
|
|
||||||
if (data.data.isHide == 1) {
|
|
||||||
$("input:radio[name='isHide']").eq(0).attr('checked', true);
|
|
||||||
} else if (data.data.isHide == 0) {
|
|
||||||
$("input:radio[name='isHide']").eq(1).attr('checked', true);
|
|
||||||
}
|
|
||||||
if (data.data.isHighlight == 1) {
|
|
||||||
$("input:radio[name='isHighlight']").eq(0).attr('checked', true);
|
|
||||||
} else if (data.data.isHighlight == 0) {
|
|
||||||
$("input:radio[name='isHighlight']").eq(1).attr('checked', true);
|
|
||||||
}
|
|
||||||
if (data.data.isrequired == 1) {
|
|
||||||
$("input:radio[name='isrequired']").eq(0).attr('checked', true);
|
|
||||||
} else if (data.data.isrequired == 0) {
|
|
||||||
$("input:radio[name='isrequired']").eq(1).attr('checked', true);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}else{
|
|
||||||
parent.toastr.error("非法请求。");
|
|
||||||
}
|
|
||||||
|
|
||||||
$('.i-checks').iCheck({
|
|
||||||
checkboxClass: 'icheckbox_square-green',
|
|
||||||
radioClass: 'iradio_square-green',
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
$("#Postform").attr("action","${ctx}/ocr/field/saveOrUpdate");
|
|
||||||
var form1 = $('#Postform');
|
|
||||||
var error1 = $('.alert-danger', form1);
|
|
||||||
form1.validate({
|
|
||||||
debug: true,
|
|
||||||
errorElement: 'span',
|
|
||||||
errorClass: 'help-block help-block-error',
|
|
||||||
focusInvalid: false,
|
|
||||||
ignore: ":hidden",
|
|
||||||
errorPlacement: function (error, element) {
|
|
||||||
if (element.parent(".input-group").size() > 0) {
|
|
||||||
error.insertAfter(element.parent(".input-group"));
|
|
||||||
} else if (element.attr("data-error-container")) {
|
|
||||||
error.appendTo(element.attr("data-error-container"));
|
|
||||||
} else if (element.parents('.radio-list').size() > 0) {
|
|
||||||
error.appendTo(element.parents('.radio-list').attr("data-error-container"));
|
|
||||||
} else if (element.parents('.radio-inline').size() > 0) {
|
|
||||||
error.appendTo(element.parents('.radio-inline').attr("data-error-container"));
|
|
||||||
} else if (element.parents('.checkbox-list').size() > 0) {
|
|
||||||
error.appendTo(element.parents('.checkbox-list').attr("data-error-container"));
|
|
||||||
} else if (element.parents('.checkbox-inline').size() > 0) {
|
|
||||||
error.appendTo(element.parents('.checkbox-inline').attr("data-error-container"));
|
|
||||||
} else {
|
|
||||||
error.insertAfter(element);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
highlight: function (element) {
|
|
||||||
$(element).closest('.form-group').addClass('has-error');
|
|
||||||
},
|
|
||||||
unhighlight: function (element) {
|
|
||||||
$(element).closest('.form-group').removeClass('has-error');
|
|
||||||
},
|
|
||||||
success: function (label) {
|
|
||||||
label.closest('.form-group').removeClass('has-error');
|
|
||||||
},
|
|
||||||
submitHandler: function (){
|
|
||||||
parent.layer.load();
|
|
||||||
$("#Postform").ajaxSubmit({
|
|
||||||
headers: {"logintoken": parent.getLoginToken()},
|
|
||||||
success: function (data) {
|
|
||||||
parent.layer.closeAll('loading');
|
|
||||||
if (data.code == "OK") {
|
|
||||||
parent.toastr.success(data.message);
|
|
||||||
rolesback();
|
|
||||||
} else if (data.code == "ERRORM") {
|
|
||||||
$.each(data.message, function (name, anArray) {
|
|
||||||
$.each(anArray, function (n, value) {
|
|
||||||
$("#" + n).closest('.form-group').addClass('has-error');
|
|
||||||
$("<span>").attr("id", n + "-error").addClass(
|
|
||||||
"help-block help-block-error").html(value).insertAfter($("#" + n));
|
|
||||||
});
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
parent.toastr.error(data.message);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
function rolesback() {
|
|
||||||
parent.closeItem(window.frameElement.name);
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
||||||
@ -1,277 +0,0 @@
|
|||||||
<#include "/common/taglibs.html" />
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>信息字段管理添加</title>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<#include "/head/headaddedit.html" />
|
|
||||||
<link href="${ctx}/static/js/plugins/jqueryzTree/css/metroStyle/metroStyle.css" rel="stylesheet">
|
|
||||||
</head>
|
|
||||||
<body class="gray-bg">
|
|
||||||
<div class="wrapper wrapper-content animated fadeInRight">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-12">
|
|
||||||
<div class="ibox float-e-margins">
|
|
||||||
<div class="ibox-title">
|
|
||||||
<h5>信息字段新增</h5>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="ibox-content">
|
|
||||||
<div class="main-content">
|
|
||||||
<form name="Postform" method="post" id="Postform" class="form-horizontal" action="${ctx}/backstage/post/save">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required">* 字段名称:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<input name="name" id="name" class="form-control" placeholder="字段名称" class="form-control" type="text" maxlength='100' required>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required">* 页面类型:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<select class="form-control" name='reviewType' id='reviewType'>
|
|
||||||
<option value="0">终审</option>
|
|
||||||
<option value="1">工单</option>
|
|
||||||
<option value="2">一审二审</option>
|
|
||||||
<option value="3">审核填报</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required">* 字段描述:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<input name="fieldDesc" id="fieldDesc" class="form-control" placeholder="字段描述" class="form-control" type="text" maxlength='100' required>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required">是否必选:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<div class="radio i-checks">
|
|
||||||
<label>
|
|
||||||
<input type="radio" checked="" value="1" name="isrequired"> <i></i>启用
|
|
||||||
</label>
|
|
||||||
<label>
|
|
||||||
<input type="radio" value="0" name="isrequired"> <i></i>停用
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required">* 排序字段:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<input name="sort" id="sort" class="form-control" placeholder="排序字段" class="form-control" type="text" maxlength='20' required>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-6" >
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required">是否高亮:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<div class="radio i-checks">
|
|
||||||
<label>
|
|
||||||
<input type="radio" checked="" value="1" name="isHighlight"> <i></i>否
|
|
||||||
</label>
|
|
||||||
<label>
|
|
||||||
<input type="radio" value="0" name="isHighlight"> <i></i>是
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-6" >
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required">是否可点击:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<div class="radio i-checks">
|
|
||||||
<label>
|
|
||||||
<input type="radio" checked="" value="1" name="isTap"> <i></i>否
|
|
||||||
</label>
|
|
||||||
<label>
|
|
||||||
<input type="radio" value="0" name="isTap"> <i></i>是
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-6" >
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required">是否隐藏:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<div class="radio i-checks">
|
|
||||||
<label>
|
|
||||||
<input type="radio" checked="" value="1" name="isHide"> <i></i>否
|
|
||||||
</label>
|
|
||||||
<label>
|
|
||||||
<input type="radio" value="0" name="isHide"> <i></i>是
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="form-group">
|
|
||||||
<div class="col-sm-offset-5">
|
|
||||||
<button id="savebutton" type="submit" class="btn btn-w-m btn-primary">保存</button>
|
|
||||||
<button type="button" onclick="rolesback()" class="btn btn-w-m btn-success">取消</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div id="ajaxDeptTreemodal" class="modal fade" tabindex="-1" data-backdrop="static" data-keyboard="false">
|
|
||||||
<div class="modal-dialog">
|
|
||||||
<div class="modal-content">
|
|
||||||
<div class="modal-header">
|
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
|
|
||||||
<h4 class="modal-title">选择机构</h4>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="modal-body" style=" padding: 15px 50px; ">
|
|
||||||
<ul id="departZtreeUl" class="ztree"></ul>
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button type="button" data-dismiss="modal" class="btn btn-white">取消</button>
|
|
||||||
<button type="button" onclick="closedept()" class="btn btn-primary">确认</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<#include "/head/footadd.html" />
|
|
||||||
<script src="${ctx}/static/js/plugins/layer/layer.min.js"></script>
|
|
||||||
<script src="${ctx}/static/js/plugins/jqueryzTree/js/jquery.ztree.all.min.js"></script>
|
|
||||||
<script type="text/javascript">
|
|
||||||
var $ajaxDeptTreemodal = $('#ajaxDeptTreemodal');
|
|
||||||
|
|
||||||
function selectDeptTree(){
|
|
||||||
$ajaxDeptTreemodal.modal();
|
|
||||||
$ajaxDeptTreemodal.css("z-index",(parent.getMaxZIndex() + 1));
|
|
||||||
}
|
|
||||||
function closedept(){
|
|
||||||
$ajaxDeptTreemodal.modal('hide');
|
|
||||||
}
|
|
||||||
var _deptTree;
|
|
||||||
var setting = {
|
|
||||||
data: {
|
|
||||||
simpleData: {
|
|
||||||
enable: true
|
|
||||||
}
|
|
||||||
}, callback: {onClick: zTreeOnClick }
|
|
||||||
};
|
|
||||||
function zTreeOnClick(event, treeId, treeNode) {
|
|
||||||
|
|
||||||
$("#reviewType").val(treeNode.name);
|
|
||||||
$("#deptid").val(treeNode.id);
|
|
||||||
closedept();
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
$(document).ready(function () {
|
|
||||||
|
|
||||||
if(parent.$("#index_user_issys").val() == 0){
|
|
||||||
$("#systemAdminUse").hide();
|
|
||||||
}
|
|
||||||
parent.axgetXiaoyao("${ctx}/backstage/admin/department/showDeptJsTree",null,false,function (data) {
|
|
||||||
_deptTree = $.fn.zTree.init($("#departZtreeUl"),setting, data);
|
|
||||||
|
|
||||||
_deptTree.expandAll(true);
|
|
||||||
});
|
|
||||||
|
|
||||||
$('.i-checks').iCheck({
|
|
||||||
checkboxClass: 'icheckbox_square-green',
|
|
||||||
radioClass: 'iradio_square-green',
|
|
||||||
});
|
|
||||||
$("#Postform").attr("action","${ctx}/backstage/ocr/field/add");
|
|
||||||
var form1 = $('#Postform');
|
|
||||||
var error1 = $('.alert-danger', form1);
|
|
||||||
form1.validate({
|
|
||||||
debug: true,
|
|
||||||
errorElement: 'span',
|
|
||||||
errorClass: 'help-block help-block-error',
|
|
||||||
focusInvalid: false,
|
|
||||||
ignore: "",
|
|
||||||
errorPlacement: function (error, element) {
|
|
||||||
if (element.parent(".input-group").size() > 0) {
|
|
||||||
error.insertAfter(element.parent(".input-group"));
|
|
||||||
} else if (element.attr("data-error-container")) {
|
|
||||||
error.appendTo(element.attr("data-error-container"));
|
|
||||||
} else if (element.parents('.radio-list').size() > 0) {
|
|
||||||
error.appendTo(element.parents('.radio-list').attr("data-error-container"));
|
|
||||||
} else if (element.parents('.radio-inline').size() > 0) {
|
|
||||||
error.appendTo(element.parents('.radio-inline').attr("data-error-container"));
|
|
||||||
} else if (element.parents('.checkbox-list').size() > 0) {
|
|
||||||
error.appendTo(element.parents('.checkbox-list').attr("data-error-container"));
|
|
||||||
} else if (element.parents('.checkbox-inline').size() > 0) {
|
|
||||||
error.appendTo(element.parents('.checkbox-inline').attr("data-error-container"));
|
|
||||||
} else {
|
|
||||||
error.insertAfter(element);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
highlight: function (element) {
|
|
||||||
$(element).closest('.form-group').addClass('has-error');
|
|
||||||
},
|
|
||||||
unhighlight: function (element) {
|
|
||||||
$(element).closest('.form-group').removeClass('has-error');
|
|
||||||
},
|
|
||||||
success: function (label) {
|
|
||||||
label.closest('.form-group').removeClass('has-error');
|
|
||||||
},
|
|
||||||
submitHandler: function (){
|
|
||||||
parent.layer.load();
|
|
||||||
$("#savebutton").addClass('disabled');
|
|
||||||
$("#Postform").ajaxSubmit({
|
|
||||||
headers:{"logintoken": parent.getLoginToken()},
|
|
||||||
success:function(data) {
|
|
||||||
parent.layer.closeAll('loading');
|
|
||||||
if (data.code == "OK") {
|
|
||||||
parent.toastr.success(data.message);
|
|
||||||
rolesback();
|
|
||||||
} else if (data.code == "ERRORM") {
|
|
||||||
$.each(data.message, function (name, anArray) {
|
|
||||||
$.each(anArray, function (n, value) {
|
|
||||||
$("#" + n).closest('.form-group').addClass('has-error');
|
|
||||||
$("<span>").attr("id", n + "-error").addClass(
|
|
||||||
"help-block help-block-error").html(value).insertAfter($("#" + n));
|
|
||||||
});
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
$("#savebutton").addClass('removeClass');
|
|
||||||
parent.toastr.error(data.message);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
function rolesback() {
|
|
||||||
parent.closeItem(window.frameElement.name);
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
||||||
@ -1,317 +0,0 @@
|
|||||||
<#include "/common/taglibs.html" />
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>岗位信息</title>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<#include "/head/headaddedit.html" />
|
|
||||||
<link href="${ctx}/static/js/plugins/jqueryzTree/css/metroStyle/metroStyle.css" rel="stylesheet">
|
|
||||||
</head>
|
|
||||||
<body class="gray-bg">
|
|
||||||
<div class="wrapper wrapper-content animated fadeInRight">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-12">
|
|
||||||
<div class="ibox float-e-margins">
|
|
||||||
<div class="ibox-title">
|
|
||||||
<h5>信息字段编辑</h5>
|
|
||||||
</div>
|
|
||||||
<div class="ibox-content">
|
|
||||||
<div class="main-content">
|
|
||||||
<form name="Postform" method="post" id="Postform" class="form-horizontal" action="${ctx}/backstage/post/edit">
|
|
||||||
|
|
||||||
<input type="hidden" id="id" name="id" value="${id}">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required">* 字段名称:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<input name="name" id="name" class="form-control" placeholder="字段名称" class="form-control" type="text" maxlength='100' required>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required">* 页面类型:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<select class="form-control" name='reviewType' id='reviewType'>
|
|
||||||
<option value="0">终审</option>
|
|
||||||
<option value="1">工单</option>
|
|
||||||
<option value="2">一审二审</option>
|
|
||||||
<option value="3">审核填报</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required">* 字段描述:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<input name="fieldDesc" id="fieldDesc" class="form-control" placeholder="字段描述" class="form-control" type="text" maxlength='100' required>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required">是否必选:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<div class="radio i-checks">
|
|
||||||
<label>
|
|
||||||
<input type="radio" checked="" value="1" name="isrequired"> <i></i>启用
|
|
||||||
</label>
|
|
||||||
<label>
|
|
||||||
<input type="radio" value="0" name="isrequired"> <i></i>停用
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required">* 排序字段:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<input name="sort" id="sort" class="form-control" placeholder="字段描述" class="form-control" type="text" maxlength='20' required>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-6" >
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required">是否高亮:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<div class="radio i-checks">
|
|
||||||
<label>
|
|
||||||
<input type="radio" checked="" value="1" name="isHighlight"> <i></i>否
|
|
||||||
</label>
|
|
||||||
<label>
|
|
||||||
<input type="radio" value="0" name="isHighlight"> <i></i>是
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-6" >
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required">是否可点击:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<div class="radio i-checks">
|
|
||||||
<label>
|
|
||||||
<input type="radio" checked="" value="1" name="isTap"> <i></i>否
|
|
||||||
</label>
|
|
||||||
<label>
|
|
||||||
<input type="radio" value="0" name="isTap"> <i></i>是
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-6" >
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label is-required">是否隐藏:</label>
|
|
||||||
<div class="col-sm-9">
|
|
||||||
<div class="radio i-checks">
|
|
||||||
<label>
|
|
||||||
<input type="radio" checked="" value="1" name="isHide"> <i></i>否
|
|
||||||
</label>
|
|
||||||
<label>
|
|
||||||
<input type="radio" value="0" name="isHide"> <i></i>是
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="form-group">
|
|
||||||
<div class="col-sm-offset-5">
|
|
||||||
<button type="submit" class="btn btn-w-m btn-primary">保存</button>
|
|
||||||
<button type="button" onclick="rolesback()" class="btn btn-w-m btn-success">取消</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div id="ajaxDeptTreemodal" class="modal fade" tabindex="-1" data-backdrop="static" data-keyboard="false">
|
|
||||||
<div class="modal-dialog">
|
|
||||||
<div class="modal-content">
|
|
||||||
<div class="modal-header">
|
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
|
|
||||||
<h4 class="modal-title">选择机构</h4>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="modal-body" style=" padding: 15px 50px; ">
|
|
||||||
<ul id="departZtreeUl" class="ztree"></ul>
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button type="button" data-dismiss="modal" class="btn btn-white">取消</button>
|
|
||||||
<button type="button" onclick="closedept()" class="btn btn-primary">确认</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<#include "/head/footadd.html" />
|
|
||||||
<script src="${ctx}/static/js/plugins/layer/layer.min.js"></script>
|
|
||||||
<script src="${ctx}/static/js/plugins/jqueryzTree/js/jquery.ztree.all.min.js"></script>
|
|
||||||
<script type="text/javascript">
|
|
||||||
var $ajaxDeptTreemodal = $('#ajaxDeptTreemodal');
|
|
||||||
|
|
||||||
function selectDeptTree(){
|
|
||||||
$ajaxDeptTreemodal.modal();
|
|
||||||
$ajaxDeptTreemodal.css("z-index",(parent.getMaxZIndex() + 1));
|
|
||||||
}
|
|
||||||
function closedept(){
|
|
||||||
$ajaxDeptTreemodal.modal('hide');
|
|
||||||
}
|
|
||||||
var _deptTree;
|
|
||||||
var setting = {
|
|
||||||
data: {
|
|
||||||
simpleData: {
|
|
||||||
enable: true
|
|
||||||
}
|
|
||||||
}, callback: {onClick: zTreeOnClick }
|
|
||||||
};
|
|
||||||
function zTreeOnClick(event, treeId, treeNode) {
|
|
||||||
|
|
||||||
$("#parentname").val(treeNode.name);
|
|
||||||
$("#deptid").val(treeNode.id);
|
|
||||||
closedept();
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
$(document).ready(function () {
|
|
||||||
|
|
||||||
|
|
||||||
if(parent.$("#index_user_issys").val() == 0){
|
|
||||||
$("#systemAdminUse").hide();
|
|
||||||
}
|
|
||||||
$.ajaxSettings.async = false;
|
|
||||||
parent.axgetXiaoyao("${ctx}/backstage/admin/department/showDeptJsTree",null,false,function (data) {
|
|
||||||
_deptTree = $.fn.zTree.init($("#departZtreeUl"),setting, data);
|
|
||||||
|
|
||||||
_deptTree.expandAll(true);
|
|
||||||
});
|
|
||||||
$.ajaxSettings.async = true;
|
|
||||||
|
|
||||||
|
|
||||||
parent.axgetXiaoyao('${ctx}/backstage/admin/post/getdata/' + $("#id").val(),null,false , function(data){
|
|
||||||
if(data.code == "OK"){
|
|
||||||
$("#id").val(data.data.id);
|
|
||||||
|
|
||||||
$("#postname").val(data.data.postname);
|
|
||||||
$("#postdesc").val(data.data.postdesc);
|
|
||||||
|
|
||||||
var node = _deptTree.getNodesByParam("id",String(data.data.deptid));
|
|
||||||
console.log("--node--------------" + data.data.deptid)
|
|
||||||
console.log(node)
|
|
||||||
|
|
||||||
if(undefined != node && node.length > 0){
|
|
||||||
_deptTree.selectNode(node[0]);
|
|
||||||
$("#parentname").val(node[0].name);
|
|
||||||
}
|
|
||||||
$("#sorting").val(data.data.sorting);
|
|
||||||
if(data.data.enabled == 1){
|
|
||||||
$("input:radio[name='enabled']").eq(0).attr('checked',true);
|
|
||||||
}else if(data.data.enabled == 0){
|
|
||||||
$("input:radio[name='enabled']").eq(1).attr('checked',true);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(data.data.issys == 1){
|
|
||||||
$("input:radio[name='issys']").eq(0).attr('checked',true);
|
|
||||||
}else if(data.data.issys == 0){
|
|
||||||
$("input:radio[name='issys']").eq(1).attr('checked',true);
|
|
||||||
}
|
|
||||||
|
|
||||||
$("#postcode").val(data.data.postcode);
|
|
||||||
|
|
||||||
}else{
|
|
||||||
parent.toastr.error("非法请求。");
|
|
||||||
}
|
|
||||||
|
|
||||||
$('.i-checks').iCheck({
|
|
||||||
checkboxClass: 'icheckbox_square-green',
|
|
||||||
radioClass: 'iradio_square-green',
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
$("#Postform").attr("action","${ctx}/backstage/ocr/field/edit");
|
|
||||||
var form1 = $('#Postform');
|
|
||||||
var error1 = $('.alert-danger', form1);
|
|
||||||
form1.validate({
|
|
||||||
debug: true,
|
|
||||||
errorElement: 'span',
|
|
||||||
errorClass: 'help-block help-block-error',
|
|
||||||
focusInvalid: false,
|
|
||||||
ignore: ":hidden",
|
|
||||||
errorPlacement: function (error, element) {
|
|
||||||
if (element.parent(".input-group").size() > 0) {
|
|
||||||
error.insertAfter(element.parent(".input-group"));
|
|
||||||
} else if (element.attr("data-error-container")) {
|
|
||||||
error.appendTo(element.attr("data-error-container"));
|
|
||||||
} else if (element.parents('.radio-list').size() > 0) {
|
|
||||||
error.appendTo(element.parents('.radio-list').attr("data-error-container"));
|
|
||||||
} else if (element.parents('.radio-inline').size() > 0) {
|
|
||||||
error.appendTo(element.parents('.radio-inline').attr("data-error-container"));
|
|
||||||
} else if (element.parents('.checkbox-list').size() > 0) {
|
|
||||||
error.appendTo(element.parents('.checkbox-list').attr("data-error-container"));
|
|
||||||
} else if (element.parents('.checkbox-inline').size() > 0) {
|
|
||||||
error.appendTo(element.parents('.checkbox-inline').attr("data-error-container"));
|
|
||||||
} else {
|
|
||||||
error.insertAfter(element);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
highlight: function (element) {
|
|
||||||
$(element).closest('.form-group').addClass('has-error');
|
|
||||||
},
|
|
||||||
unhighlight: function (element) {
|
|
||||||
$(element).closest('.form-group').removeClass('has-error');
|
|
||||||
},
|
|
||||||
success: function (label) {
|
|
||||||
label.closest('.form-group').removeClass('has-error');
|
|
||||||
},
|
|
||||||
submitHandler: function (){
|
|
||||||
parent.layer.load();
|
|
||||||
$("#Postform").ajaxSubmit({
|
|
||||||
headers: {"logintoken": parent.getLoginToken()},
|
|
||||||
success: function (data) {
|
|
||||||
parent.layer.closeAll('loading');
|
|
||||||
if (data.code == "OK") {
|
|
||||||
parent.toastr.success(data.message);
|
|
||||||
rolesback();
|
|
||||||
} else if (data.code == "ERRORM") {
|
|
||||||
$.each(data.message, function (name, anArray) {
|
|
||||||
$.each(anArray, function (n, value) {
|
|
||||||
$("#" + n).closest('.form-group').addClass('has-error');
|
|
||||||
$("<span>").attr("id", n + "-error").addClass(
|
|
||||||
"help-block help-block-error").html(value).insertAfter($("#" + n));
|
|
||||||
});
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
parent.toastr.error(data.message);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
function rolesback() {
|
|
||||||
parent.closeItem(window.frameElement.name);
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
||||||
@ -1,55 +0,0 @@
|
|||||||
package cn.jyjz.xiaoyao.ocr.controller;
|
|
||||||
|
|
||||||
import cn.jyjz.xiaoyao.common.base.vo.ResultVo;
|
|
||||||
import cn.jyjz.xiaoyao.common.base.vo.ResultVoUtil;
|
|
||||||
import cn.jyjz.xiaoyao.ocr.api.utils.ApiConfig;
|
|
||||||
import cn.jyjz.xiaoyao.ocr.dataobject.OcrFrontConf;
|
|
||||||
import cn.jyjz.xiaoyao.ocr.service.OcrFrontConfService;
|
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
||||||
import io.swagger.annotations.Api;
|
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
|
||||||
|
|
||||||
@Api(tags = "ocr-前端配置管理")
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("/ocr/ocrFrontConf")
|
|
||||||
public class OcrFrontConfController {
|
|
||||||
|
|
||||||
@Resource
|
|
||||||
private OcrFrontConfService service;
|
|
||||||
|
|
||||||
@Value("${spring.profiles.active}")
|
|
||||||
private String env;
|
|
||||||
|
|
||||||
@Resource
|
|
||||||
private ApiConfig config;
|
|
||||||
|
|
||||||
@PostMapping("/save")
|
|
||||||
public ResultVo editOcrConfiguration(OcrFrontConf conf) {
|
|
||||||
conf.setEnv(env);
|
|
||||||
QueryWrapper<OcrFrontConf> wrapper = new QueryWrapper<>();
|
|
||||||
wrapper.eq("env", env);
|
|
||||||
OcrFrontConf ocrFrontConf = this.service.getOne(wrapper);
|
|
||||||
if (ocrFrontConf != null) {
|
|
||||||
conf.setId(ocrFrontConf.getId());
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
this.service.saveOrUpdate(conf);
|
|
||||||
this.service.updateConfig();
|
|
||||||
return ResultVoUtil.success();
|
|
||||||
}
|
|
||||||
|
|
||||||
@GetMapping("/get")
|
|
||||||
public ResultVo<OcrFrontConf> get() {
|
|
||||||
QueryWrapper<OcrFrontConf> wrapper = new QueryWrapper<>();
|
|
||||||
wrapper.eq("env", env);
|
|
||||||
|
|
||||||
return ResultVoUtil.success(this.service.getOne(wrapper));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,21 +0,0 @@
|
|||||||
package cn.jyjz.xiaoyao.ocr.controller;
|
|
||||||
|
|
||||||
import cn.jyjz.xiaoyao.common.base.controller.BaseController;
|
|
||||||
import org.springframework.stereotype.Controller;
|
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
|
||||||
import javax.servlet.http.HttpServletResponse;
|
|
||||||
|
|
||||||
@Controller
|
|
||||||
@RequestMapping("/backstage/oa/frontconf")
|
|
||||||
public class OcrFrontConfHtmlController extends BaseController {
|
|
||||||
|
|
||||||
@GetMapping("/toList")
|
|
||||||
public String toListOcrConfiguration(HttpServletResponse response, HttpServletRequest request) {
|
|
||||||
String resourceid = request.getParameter("resourceid");
|
|
||||||
request.setAttribute("resourceid", resourceid);
|
|
||||||
return "/backstage/oa/ocr/frontconf/list";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
package cn.jyjz.xiaoyao.ocr.dataDao;
|
|
||||||
|
|
||||||
import cn.jyjz.xiaoyao.ocr.dataobject.OcrFrontConf;
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
|
|
||||||
public interface OcrFrontConfMapper extends BaseMapper<OcrFrontConf> {
|
|
||||||
}
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
package cn.jyjz.xiaoyao.ocr.dataDao;
|
|
||||||
|
|
||||||
import cn.jyjz.xiaoyao.ocr.dataobject.OcrPictureclass;
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
/**
|
|
||||||
* 数据持久化
|
|
||||||
*/
|
|
||||||
@Mapper
|
|
||||||
public interface OcrPictureclassMybatisDao extends BaseMapper<OcrPictureclass> {
|
|
||||||
}
|
|
||||||
@ -1,61 +0,0 @@
|
|||||||
package cn.jyjz.xiaoyao.ocr.dataobject;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import lombok.AllArgsConstructor;
|
|
||||||
import lombok.Builder;
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.NoArgsConstructor;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
@Builder
|
|
||||||
@NoArgsConstructor
|
|
||||||
@AllArgsConstructor
|
|
||||||
@Schema(name = "配置管理", title = "配置管理")
|
|
||||||
@TableName(value = "ocr_front_conf")
|
|
||||||
public class OcrFrontConf implements java.io.Serializable {
|
|
||||||
|
|
||||||
@Schema(description = "主键")
|
|
||||||
@TableId(value = "id",type = IdType.AUTO)
|
|
||||||
@TableField(value="id")
|
|
||||||
private Long id;
|
|
||||||
|
|
||||||
private String env;
|
|
||||||
|
|
||||||
private String wlyInterfaceDomain;
|
|
||||||
|
|
||||||
private String wlyAccessKey;
|
|
||||||
|
|
||||||
private String wlyAccessCode;
|
|
||||||
|
|
||||||
private Integer wlyConnectTimeout;
|
|
||||||
|
|
||||||
private Integer wlyReadTimeout;
|
|
||||||
|
|
||||||
private String wlyLocalImagePath;
|
|
||||||
|
|
||||||
private String wlyDataUrl;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 拉取图片信息
|
|
||||||
*/
|
|
||||||
private String pictureSourceUrl;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 拉取图片信息
|
|
||||||
*/
|
|
||||||
private String sendResultUrl;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 拉取项目信息
|
|
||||||
*/
|
|
||||||
private String projectSourceUrl;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 拉取租户信息
|
|
||||||
*/
|
|
||||||
private String tenantSourceUrl;
|
|
||||||
}
|
|
||||||
@ -1,9 +0,0 @@
|
|||||||
package cn.jyjz.xiaoyao.ocr.service;
|
|
||||||
|
|
||||||
import cn.jyjz.xiaoyao.common.mybatisplus.base.BaseService;
|
|
||||||
import cn.jyjz.xiaoyao.ocr.dataobject.OcrFrontConf;
|
|
||||||
|
|
||||||
public interface OcrFrontConfService extends BaseService<OcrFrontConf> {
|
|
||||||
|
|
||||||
void updateConfig();
|
|
||||||
}
|
|
||||||
@ -1,37 +0,0 @@
|
|||||||
package cn.jyjz.xiaoyao.ocr.service.impl;
|
|
||||||
|
|
||||||
import cn.jyjz.xiaoyao.common.mybatisplus.base.BaseServiceImpl;
|
|
||||||
import cn.jyjz.xiaoyao.ocr.api.utils.ApiConfig;
|
|
||||||
import cn.jyjz.xiaoyao.ocr.dataDao.OcrFrontConfMapper;
|
|
||||||
import cn.jyjz.xiaoyao.ocr.dataobject.OcrFrontConf;
|
|
||||||
import cn.jyjz.xiaoyao.ocr.service.OcrFrontConfService;
|
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
|
||||||
|
|
||||||
@Service
|
|
||||||
public class OcrFrontConfServiceImpl extends BaseServiceImpl<OcrFrontConfMapper, OcrFrontConf> implements OcrFrontConfService {
|
|
||||||
|
|
||||||
@Resource
|
|
||||||
private ApiConfig apiConfig;
|
|
||||||
|
|
||||||
@Value("${spring.profiles.active}")
|
|
||||||
private String env;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void updateConfig() {
|
|
||||||
QueryWrapper<OcrFrontConf> wrapper = new QueryWrapper<>();
|
|
||||||
wrapper.eq("env", env);
|
|
||||||
|
|
||||||
OcrFrontConf frontConf = this.getOne(wrapper);
|
|
||||||
if (frontConf != null){
|
|
||||||
apiConfig.setInterfaceDomain(frontConf.getWlyInterfaceDomain());
|
|
||||||
apiConfig.setAccessKey(frontConf.getWlyAccessKey());
|
|
||||||
apiConfig.setAccessCode(frontConf.getWlyAccessCode());
|
|
||||||
apiConfig.setConnectTimeout(frontConf.getWlyConnectTimeout());
|
|
||||||
apiConfig.setReadTimeout(frontConf.getWlyReadTimeout());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,43 +0,0 @@
|
|||||||
package cn.jyjz.xiaoyao.ocr.service.impl;
|
|
||||||
|
|
||||||
import cn.jyjz.xiaoyao.ocr.dataDao.OcrPictureclassMybatisDao;
|
|
||||||
import cn.jyjz.xiaoyao.ocr.dataobject.OcrPicture;
|
|
||||||
import cn.jyjz.xiaoyao.ocr.dataobject.OcrPictureclass;
|
|
||||||
import cn.jyjz.xiaoyao.ocr.dataobject.OcrUsersearch;
|
|
||||||
import cn.jyjz.xiaoyao.ocr.service.OcrPictureclassService;
|
|
||||||
import cn.jyjz.xiaoyao.ocr.service.OcrUsersearchService;
|
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
||||||
import org.apache.commons.lang3.StringUtils;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
import cn.jyjz.xiaoyao.common.mybatisplus.base.BaseServiceImpl;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
/**
|
|
||||||
* 业务层实现
|
|
||||||
*/
|
|
||||||
@Service
|
|
||||||
@Slf4j
|
|
||||||
public class OcrPictureclassServiceImpl extends BaseServiceImpl<OcrPictureclassMybatisDao, OcrPictureclass> implements OcrPictureclassService {
|
|
||||||
@Autowired
|
|
||||||
private OcrPictureclassMybatisDao ocrpictureclassmybatisdao;
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public List<OcrPictureclass> queryListNoPage(QueryWrapper<OcrPictureclass> queryWrapper) {
|
|
||||||
|
|
||||||
Long count = ocrpictureclassmybatisdao.selectCount(queryWrapper);
|
|
||||||
|
|
||||||
Page<OcrPictureclass> page = new Page(1,count);
|
|
||||||
page.setMaxLimit(count);
|
|
||||||
|
|
||||||
IPage<OcrPictureclass> iPage = this.page(page,queryWrapper);
|
|
||||||
return iPage.getRecords();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,79 +0,0 @@
|
|||||||
package cn.jyjz.xiaoyao.ocr.thread;
|
|
||||||
|
|
||||||
import cn.jyjz.xiaoyao.common.base.util.SpringUtils;
|
|
||||||
import cn.jyjz.xiaoyao.ocr.dataobject.OcrPicture;
|
|
||||||
import cn.jyjz.xiaoyao.ocr.service.OcrPictureService;
|
|
||||||
import cn.jyjz.xiaoyao.ocr.thread.entity.PictureImgToLocalEntity;
|
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
||||||
import lombok.SneakyThrows;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.concurrent.*;
|
|
||||||
@Slf4j
|
|
||||||
public class ImageDownloadMonitoring {
|
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private OcrPictureService ocrPictureService;
|
|
||||||
|
|
||||||
private static Logger logger = LoggerFactory.getLogger(TaskQueue.class);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 启动任务 图片下载监测
|
|
||||||
*
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
public boolean startImageDownloadMonitoring(String localImagePath) {
|
|
||||||
Runnable runnable = new Runnable() {
|
|
||||||
@SneakyThrows
|
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
OcrPictureService ocrPictureService = SpringUtils.getBean("ocrPictureService");
|
|
||||||
// while (true) {
|
|
||||||
logger.debug("图片下载监测中...");
|
|
||||||
// try {
|
|
||||||
// 查询数据库中local_picture_url字段为null的图片数据
|
|
||||||
LambdaQueryWrapper<OcrPicture> ocrPictureLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
||||||
ocrPictureLambdaQueryWrapper.isNull(OcrPicture::getLocalpictrueurl);
|
|
||||||
List<OcrPicture> ocrPictureList = new ArrayList<>();
|
|
||||||
ocrPictureList = ocrPictureService.list(ocrPictureLambdaQueryWrapper);
|
|
||||||
logger.debug("待执行下载图片数量:{}",ocrPictureList.size());
|
|
||||||
for (OcrPicture pictureOne : ocrPictureList) {
|
|
||||||
// 创建 PictureImgToLocalEntity 对象并赋值
|
|
||||||
PictureImgToLocalEntity entity = new PictureImgToLocalEntity();
|
|
||||||
entity.setPictureId(pictureOne.getId());
|
|
||||||
entity.setImgUrl(pictureOne.getImgurl());
|
|
||||||
String imgurl = pictureOne.getImgurl();
|
|
||||||
entity.setLocalPath(localImagePath + imgurl.substring(imgurl.lastIndexOf("/")));
|
|
||||||
//本地调试下载地址
|
|
||||||
// entity.setLocalPath("D:\\server\\data\\images" + imgurl.substring(imgurl.lastIndexOf("/")));
|
|
||||||
// 将对象添加到下载图片队列中
|
|
||||||
boolean isAddedToQueue = false;
|
|
||||||
while (!isAddedToQueue) {
|
|
||||||
isAddedToQueue =TaskQueue.pictureImgToLocalPushData(entity);
|
|
||||||
if (!isAddedToQueue) {
|
|
||||||
logger.info("图片下载监测-添加队列失败,等待五秒后继续进行添加,图片id:{}",entity.getPictureId());
|
|
||||||
Thread.sleep(5000);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// // 等待一段时间再继续检查
|
|
||||||
// Thread.sleep(60000);
|
|
||||||
// } catch (Exception e) {
|
|
||||||
// logger.error("图片下载监测出错{}", e.getMessage());
|
|
||||||
// Thread.sleep(5000);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
};
|
|
||||||
Thread thread = new Thread(runnable);
|
|
||||||
thread.start();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue