Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
0f85f81a
Commit
0f85f81a
authored
Jul 09, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增编辑客方
parent
c7147a2f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
7 deletions
+24
-7
add_notice_view.html
application/index/view/notice/add_notice_view.html
+1
-1
index.html
application/index/view/notice/index.html
+2
-0
user.js
public/resource/js/user.js
+19
-4
notice_template_tpl.html
public/resource/template/notice_template_tpl.html
+2
-2
No files found.
application/index/view/notice/add_notice_view.html
View file @
0f85f81a
...
...
@@ -271,7 +271,7 @@
<option
value=
"1"
>
人事公告
</option>
<option
value=
"2"
>
行政公告
</option>
<option
value=
"3"
>
财务公告
</option>
<option
value=
"4"
>
业务部公告
</option>
</select>
</div>
</div>
...
...
application/index/view/notice/index.html
View file @
0f85f81a
...
...
@@ -175,6 +175,8 @@
<option
value=
"1"
>
人事
</option>
<option
value=
"2"
>
行政公告
</option>
<option
value=
"3"
>
财务公告
</option>
<option
value=
"4"
>
业务部公告
</option>
</select>
<input
class=
"form-control btn2 margin-top-ld"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"release_title"
placeholder=
"发布标题"
type=
"text"
value=
""
>
...
...
public/resource/js/user.js
View file @
0f85f81a
...
...
@@ -38,7 +38,8 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
user_phone
:
''
,
urls
:
''
,
agent_id_two
:
''
,
agent_id2
:
0
,
agent_id2
:
''
,
agent_id2_info
:
''
,
agent_id_infor
:
0
,
isAjaxSaving
:
false
,
baohu
:
''
,
...
...
@@ -1391,7 +1392,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
async
:
true
,
data
:
{
"phone"
:
$
(
"#set_father_id3"
).
val
(),
"site_id"
:
user_info_obj
.
site_id
//
"site_id":user_info_obj.site_id
},
dataType
:
'json'
,
...
...
@@ -1752,6 +1753,21 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
}
else
{
$
(
".isShowYetaiEdit"
).
show
();
};
//编辑需要的参数(客方编辑)
var
arr_list
=
data
.
data
.
customer_relegation_list
;
if
(
arr_list
.
length
){
for
(
var
i
=
0
;
i
<
arr_list
.
length
;
i
++
){
if
(
arr_list
[
i
].
site_id
==
user_info_obj
.
site_id
){
user
.
agent_id2
=
arr_list
[
i
].
agent_id
;
user
.
agent_id2_info
=
arr_list
[
i
].
agent_name
+
"-"
+
arr_list
[
i
].
agent_phone
;
}
}
}
else
{
user
.
agent_id2
=
''
;
user
.
agent_id2_info
=
''
;
}
$
(
'#find-shop-typeEdit'
).
val
(
data
.
data
.
user_info
.
entrust_type
);
//客户类型 商铺 办公楼
$
(
"#weixin_nickEdit"
).
val
(
data
.
data
.
user_info
.
weixin_nick
);
//微信号
$
(
"#edit-user-staus"
).
val
(
data
.
data
.
user_info
.
user_status
);
//客户状态
...
...
@@ -1769,7 +1785,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
$
(
".cus_date"
).
html
(
data
.
data
.
user_info
.
create_time
);
//创建时间
$
(
".referrer_user"
).
html
(
data
.
data
.
user_info
.
referrer_user
);
//上传时间
$
(
".cus_fang_edit"
).
val
(
data
.
data
.
user_info
.
agent_info
);
//客方详情
$
(
".cus_fang"
).
val
(
data
.
data
.
user_info
.
agent_info
);
//客方编辑
$
(
".cus_fang"
).
val
(
user
.
agent_id2_info
);
//客方编辑(客方)
$
(
"select[name=industry_type_two]"
).
val
(
data
.
data
.
user_info
.
industry_type
);
$
(
"input[name=price_demand]"
).
val
(
data
.
data
.
user_info
.
price_demand
*
1
);
$
(
"input[name=area_demand]"
).
val
(
data
.
data
.
user_info
.
area_demand
*
1
);
...
...
@@ -1813,7 +1829,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
$
(
"#user_source_edit"
).
val
(
data
.
data
.
user_info
.
source_intro
);
$
(
".user-source-details"
).
html
(
sw
(
data
.
data
.
user_info
.
source_intro
));
user
.
agent_id2
=
data
.
data
.
user_info
.
agent_id
;
user
.
user_id_edit_introduce
=
data
.
data
.
user_info
.
referrer_id
;
user
.
referrer_source
=
data
.
data
.
user_info
.
referrer_source
;
user
.
agent_id_two
=
data
.
data
.
user_info
.
agent_id
;
...
...
public/resource/template/notice_template_tpl.html
View file @
0f85f81a
...
...
@@ -14,8 +14,8 @@
行政
[
%
}
else
if
(
it
[
item
][
"from_type"
]
==
3
)
{
%
]
财务
[
%
}
else
{
%
]
其他
[
%
}
else
if
(
it
[
item
][
"from_type"
]
==
4
)
{
%
]
业务部
[
%
}
%
]
<
/td
>
...
...
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