Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
forbes_crm
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
crm
forbes_crm
Commits
152467d5
Commit
152467d5
authored
Jun 04, 2021
by
谭文静
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改报产品管理页面
parent
b8cd9f92
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
10 deletions
+55
-10
jeethink/jeethink-admin/src/main/resources/templates/crm/product/add.html
...k-admin/src/main/resources/templates/crm/product/add.html
+51
-5
jeethink/jeethink-admin/src/main/resources/templates/crm/product/edit.html
...-admin/src/main/resources/templates/crm/product/edit.html
+4
-5
No files found.
jeethink/jeethink-admin/src/main/resources/templates/crm/product/add.html
View file @
152467d5
...
...
@@ -82,12 +82,58 @@
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-xs-3 control-label"
>
备注:
</label>
<div
class=
"col-xs-8"
>
<textarea
name=
"remark"
maxlength=
"500"
class=
"form-control"
rows=
"3"
></textarea>
</div>
<label
class=
"col-xs-3 control-label"
>
备注:
</label>
<div
class=
"col-xs-8"
>
<textarea
name=
"remark"
maxlength=
"500"
class=
"form-control"
rows=
"3"
></textarea>
</div>
</div>
<div>
<p
onclick=
"tableChange()"
><a
href=
"javascript:;"
>
添加
</a></p>
<table
class=
"table table-bordered"
id=
"tables"
>
<thead>
<tr>
<th>
名称
</th>
<th>
值
</th>
<th>
操作
</th>
</tr>
</thead>
<tbody
id=
"tbody"
>
<tr>
<td
align=
"center"
>
<input
type=
"text"
name=
"NO[]"
style=
"line-height: 24px;border-radius: 4px;border:none;border:1px solid #e5e6e7"
/>
</td>
<td
align=
"center"
>
<input
type=
"text"
name=
"serial_number[]"
style=
"line-height: 24px;border-radius: 4px;border:none;border:1px solid #e5e6e7"
/>
</td>
<td>
<input
type=
"button"
id=
"Button2"
onClick=
"deltr(this)"
value=
"删行"
>
</td>
</tr>
</tbody>
</table>
<script
type=
"text/javascript"
>
//添加表格
function
tableChange
()
{
var
tableHtml
=
""
;
tableHtml
+=
'
<tr>
'
+
'
<td align="center"><input type="text" name="NO[]" style="line-height: 24px;border:none;border-radius: 4px;border:1px solid #e5e6e7"/> </td>
'
+
'
<td align="center"><input type="text" name="serial_number[]" style="line-height: 24px;border-radius: 4px;border:none;border:1px solid #e5e6e7"/></td>
'
+
'
<td><input type="button" onClick="deltr(this)" value="删行"></td>
'
+
'
</tr>
'
;
$
(
"
#tbody
"
).
append
(
tableHtml
)
;
//在表格后面添加一行
}
function
deltr
(
opp
)
{
var
length
=
$
(
"
#tbody tr
"
).
length
;
if
(
length
<=
1
)
{
alert
(
"
至少保留一行
"
);
}
else
{
$
(
opp
).
parent
().
parent
().
remove
();
//移除当前行
}
}
</script>
</div>
</form>
</div>
<th:block
th:include=
"include :: footer"
/>
...
...
jeethink/jeethink-admin/src/main/resources/templates/crm/product/edit.html
View file @
152467d5
...
...
@@ -100,7 +100,6 @@
</div>
<div>
<p
onclick=
"tableChange()"
><a
href=
"javascript:;"
>
添加
</a></p>
<!-- <button onclick="tableChange()">Copy Text</button>-->
<table
class=
"table table-bordered"
id=
"tables"
>
<thead>
<tr>
...
...
@@ -112,10 +111,10 @@
<tbody
id=
"tbody"
>
<tr>
<td
align=
"center"
>
<input
type=
"text"
name=
"NO[]"
s
ize=
"2
"
/>
<input
type=
"text"
name=
"NO[]"
s
tyle=
"line-height: 24px;border-radius: 4px;border:none;border:1px solid #e5e6e7
"
/>
</td>
<td
align=
"center"
>
<input
type=
"text"
name=
"serial_number[]"
/>
<input
type=
"text"
name=
"serial_number[]"
style=
"line-height: 24px;border-radius: 4px;border:none;border:1px solid #e5e6e7"
/>
</td>
<td>
<input
type=
"button"
id=
"Button2"
onClick=
"deltr(this)"
value=
"删行"
>
...
...
@@ -128,8 +127,8 @@
function
tableChange
()
{
var
tableHtml
=
""
;
tableHtml
+=
'
<tr>
'
+
'
<td align="center"><input type="text" name="NO[]" s
ize="2"
/> </td>
'
+
'
<td align="center"><input type="text" name="serial_number[]"/></td>
'
+
'
<td align="center"><input type="text" name="NO[]" s
tyle="line-height: 24px;border-radius: 4px;border:none;border:1px solid #e5e6e7"
/> </td>
'
+
'
<td align="center"><input type="text" name="serial_number[]"
style="line-height: 24px;border-radius: 4px;border:none;border:1px solid #e5e6e7"
/></td>
'
+
'
<td><input type="button" onClick="deltr(this)" value="删行"></td>
'
+
'
</tr>
'
;
$
(
"
#tbody
"
).
append
(
tableHtml
)
;
//在表格后面添加一行
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment