超管后台优化

This commit is contained in:
meimei
2025-05-08 10:47:04 +08:00
parent f0bd04e5d9
commit cd2ed33305
33 changed files with 184 additions and 139 deletions

View File

@@ -72,6 +72,15 @@ class Firm extends Backend
$this->model->validateFailException()->validate($validate);
}
$result = $this->model->allowField(true)->insertGetId($params);
if (!$result){
$this->error(__('No rows were inserted'));
Db::rollback();
}
$firmstoreResult = Db::table('fa_firmstore')->insert(['firm_id'=>$result,'name'=>$params['full_name'].'门店']);
if (!$firmstoreResult){
$this->error(__('No rows were inserted firmstore'));
Db::rollback();
}
$addaicustomerswrvicelistResult = $this->addaicustomerswrvicelist($params,$result);
if (!$addaicustomerswrvicelistResult['res']){
$this->error($addaicustomerswrvicelistResult['text']);

View File

@@ -53,6 +53,7 @@ class Firmbigcategory extends Backend
$list = $this->model
->with(['firm'])
->where($where)
->where('firm_id',1)
// ->order($sort, $order)
->order('firm_id asc,id desc')
->paginate($limit);

View File

@@ -53,6 +53,7 @@ class Firmcustomerorigin extends Backend
$list = $this->model
->with(['firm'])
->where($where)
->where('firm_id',1)
// ->order($sort, $order)
->order('firm_id asc,id desc')
->paginate($limit);

View File

@@ -53,6 +53,7 @@ class Firmduty extends Backend
$list = $this->model
->with(['firm','firmstore'])
->where($where)
->where('firmduty.firm_id',1)
// ->order($sort, $order)
->order('firm_id asc,id desc')
->paginate($limit);

View File

@@ -53,6 +53,7 @@ class Firmstoreprojectsone extends Backend
$list = $this->model
->with(['firm'])
->where($where)
->where('firm_id',1)
// ->order($sort, $order)
->order('firm_id asc,id desc')
->paginate($limit);

View File

@@ -57,6 +57,7 @@ class Firmtags extends Backend
$list = $this->model
->with(['firm'])
->where($where)
->where('firm_id',1)
// ->order($sort, $order)
->order('firm_id asc,id desc')
->paginate($limit);

View File

@@ -39,12 +39,26 @@ class Index extends Backend
config('fastadmin.' . $key, $cookieValue);
}
}
$userRule = ["*","general","category","addon","auth","general/config","general/attachment","general/profile","auth/admin","auth/adminlog","auth/group","auth/rule",
"dashboard/index","dashboard/add","dashboard/del","dashboard/edit","dashboard/multi","general/config/index","general/config/add","general/config/edit","general/config/del","general/config/multi",
"general/attachment/index","general/attachment/select","general/attachment/add","general/attachment/edit","general/attachment/del","general/attachment/multi",
"general/profile/index","general/profile/update","general/profile/add","general/profile/edit","general/profile/del","general/profile/multi",
"category/index","category/add","category/edit","category/del","category/multi","auth/admin/index","auth/admin/add","auth/admin/edit","auth/admin/del",
"auth/adminlog/index","auth/adminlog/detail","auth/adminlog/del","auth/group/index","auth/group/add","auth/group/edit","auth/group/del","auth/rule/index",
"auth/rule/add","auth/rule/edit","auth/rule/del","addon/index","addon/add","addon/edit","addon/del","addon/downloaded","addon/state","addon/config",
"addon/refresh","addon/multi","user","user/user","user/user/index","user/user/edit","user/user/add","user/user/del","user/user/multi",
"user/group","user/group/add","user/group/edit","user/group/index","user/group/del","user/group/multi","user/rule","user/rule/index","user/rule/del","user/rule/add","user/rule/edit","user/rule/multi",
"command","command/index","command/add","command/detail","command/command","command/execute","command/del","command/multi","firm","firm/index","firm/add","firm/edit","firm/del","firm/multi",
"firmbigcategory","firmbigcategory/index","firmbigcategory/add","firmbigcategory/edit","firmbigcategory/del","firmbigcategory/multi","kefuguanli",
"firm","firm/index","firm/add","firm/edit","firm/del","firm/multi","aicustomerservice","aicustomerservice/index","aicustomerservice/add","aicustomerservice/edit","aicustomerservice/del","aicustomerservice/multi",
"mattertemplate","mattertemplate/index","mattertemplate/add","mattertemplate/edit","mattertemplate/del","mattertemplate/multi","jichuguanli","firmcustomerorigin","firmcustomerorigin/index","firmduty","firmduty/index",
"firmstoreprojectsone","firmstoreprojectsone/index","firmtags","firmtags/index","aicustomerservicefirmstorelist","aicustomerservicefirmstorelist/index","mattertemplatecategorization","mattertemplatecategorization/index"];
//左侧菜单
list($menulist, $navlist, $fixedmenu, $referermenu) = $this->auth->getSidebar([
'dashboard' => 'hot',
'addon' => ['new', 'red', 'badge'],
'auth/rule' => __('Menu'),
], $this->view->site['fixedpage']);
], $this->view->site['fixedpage'],$userRule);
$action = $this->request->request('action');
if ($this->request->isPost()) {
if ($action == 'refreshmenu') {

View File

@@ -54,6 +54,7 @@ class Mattertemplatecategorization extends Backend
$list = $this->model
->with(['mattertemplate','firmstoreprojectsone','firmstoreprojectstwo','firm'])
->where($where)
->where('mattertemplatecategorization.firm_id',1)
// ->order($sort, $order)
->order('firm_id asc,id desc')
->paginate($limit);

View File

@@ -430,7 +430,7 @@ class Auth extends \fast\Auth
* @param string $fixedPage 默认页
* @return array
*/
public function getSidebar($params = [], $fixedPage = 'dashboard')
public function getSidebar($params = [], $fixedPage = 'dashboard',$userRule=[])
{
// 边栏开始
Hook::listen("admin_sidebar_begin", $params);
@@ -457,7 +457,11 @@ class Auth extends \fast\Auth
}
// 读取管理员当前拥有的权限节点
if (empty($userRule)){
$userRule = $this->getRuleList();
}
// dump($userRule);die();
// dump(implode('","',$userRule));die();
$selected = $referer = [];
$refererUrl = Session::get('referer');
// 必须将结果集转换为数组

View File

@@ -6,13 +6,14 @@
<input id="c-name" class="form-control" name="row[name]" type="text" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Firm_id')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-firm_id" min="0" data-rule="required" data-source="firm/index" class="form-control selectpage" name="row[firm_id]" type="text" value="1">
</div>
<span style="color: red">不选择为基础模版</span>
</div>
<input type="hidden" id="c-firm_id" name="row[firm_id]" value="1">
<!-- <div class="form-group">-->
<!-- <label class="control-label col-xs-12 col-sm-2">{:__('Firm_id')}:</label>-->
<!-- <div class="col-xs-12 col-sm-8">-->
<!-- <input id="c-firm_id" min="0" data-rule="required" data-source="firm/index" class="form-control selectpage" name="row[firm_id]" type="text" value="1">-->
<!-- </div>-->
<!-- <span style="color: red">不选择为基础模版</span>-->
<!-- </div>-->
<div class="form-group layer-footer">
<label class="control-label col-xs-12 col-sm-2"></label>
<div class="col-xs-12 col-sm-8">

View File

@@ -6,13 +6,13 @@
<input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Firm_id')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-firm_id" min="0" data-rule="required" data-source="firm/index" class="form-control selectpage" name="row[firm_id]" type="text" value="{$row.firm_id|htmlentities}">
</div>
<span style="color: red">不选择为基础模版</span>
</div>
<!-- <div class="form-group">-->
<!-- <label class="control-label col-xs-12 col-sm-2">{:__('Firm_id')}:</label>-->
<!-- <div class="col-xs-12 col-sm-8">-->
<!-- <input id="c-firm_id" min="0" data-rule="required" data-source="firm/index" class="form-control selectpage" name="row[firm_id]" type="text" value="{$row.firm_id|htmlentities}">-->
<!-- </div>-->
<!-- <span style="color: red">不选择为基础模版</span>-->
<!-- </div>-->
<div class="form-group layer-footer">
<label class="control-label col-xs-12 col-sm-2"></label>
<div class="col-xs-12 col-sm-8">

View File

@@ -59,7 +59,7 @@
<div class="col-xs-12 col-sm-8">
<input id="c-firmtags_ids" data-rule="required"
data-source="firmtags/index" data-multiple="true"
class="form-control selectpage" name="row[firmtags_ids]" type="text" value="">
class="form-control selectpage" name="row[firmtags_ids]" type="text" value="" data-max-select-limit="8">
</div>
<!-- <div class="col-xs-12 col-sm-2">-->
<!-- <input-->

View File

@@ -47,7 +47,7 @@
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Firmtags_ids')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-firmtags_ids" data-rule="required" data-source="firmtags/index" data-multiple="true" class="form-control selectpage" name="row[firmtags_ids]" type="text" value="{$row.firmtags_ids|htmlentities}">
<input id="c-firmtags_ids" data-rule="required" data-source="firmtags/index" data-multiple="true" class="form-control selectpage" name="row[firmtags_ids]" type="text" value="{$row.firmtags_ids|htmlentities}" data-max-select-limit="8">
</div>
</div>
<div class="form-group">

View File

@@ -52,7 +52,7 @@
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Firmnotespoints_id')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-firmnotespoints_id" min="0" data-rule="required" data-value="row[firmnotespoints_id]" class="form-control selectpage" name="row[firmnotespoints_id]" type="text" value="">
<input id="c-firmnotespoints_id" min="0" data-value="row[firmnotespoints_id]" class="form-control selectpage" name="row[firmnotespoints_id]" type="text" value="">
</div>
</div>
<div id="firmnotespoints_template" class="form-group">
@@ -88,7 +88,7 @@
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('回访事项ID')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-visit_id" min="0" data-rule="required" data-value="row[firmnotespoints_id]" class="form-control selectpage" name="row[firmnotespoints_id]" type="text" value="">
<input id="c-visit_id" min="0" data-value="row[firmnotespoints_id]" class="form-control selectpage" name="row[firmnotespoints_id]" type="text" value="">
</div>
</div>
<div id="visit_template" class="form-group">

View File

@@ -6,13 +6,14 @@
<input id="c-name" class="form-control" name="row[name]" type="text" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Firm_id')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-firm_id" min="0" data-rule="required" data-source="firm/index" class="form-control selectpage" name="row[firm_id]" type="text" value="1">
</div>
<span style="color: red">不选择为基础模版</span>
</div>
<input type="hidden" id="c-firm_id" name="row[firm_id]" value="1">
<!-- <div class="form-group">-->
<!-- <label class="control-label col-xs-12 col-sm-2">{:__('Firm_id')}:</label>-->
<!-- <div class="col-xs-12 col-sm-8">-->
<!-- <input id="c-firm_id" min="0" data-rule="required" data-source="firm/index" class="form-control selectpage" name="row[firm_id]" type="text" value="1">-->
<!-- </div>-->
<!-- <span style="color: red">不选择为基础模版</span>-->
<!-- </div>-->
<div class="form-group layer-footer">
<label class="control-label col-xs-12 col-sm-2"></label>
<div class="col-xs-12 col-sm-8">

View File

@@ -6,13 +6,13 @@
<input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Firm_id')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-firm_id" min="0" data-rule="required" data-source="firm/index" class="form-control selectpage" name="row[firm_id]" type="text" value="{$row.firm_id|htmlentities}">
</div>
<span style="color: red">不选择为基础模版</span>
</div>
<!-- <div class="form-group">-->
<!-- <label class="control-label col-xs-12 col-sm-2">{:__('Firm_id')}:</label>-->
<!-- <div class="col-xs-12 col-sm-8">-->
<!-- <input id="c-firm_id" min="0" data-rule="required" data-source="firm/index" class="form-control selectpage" name="row[firm_id]" type="text" value="{$row.firm_id|htmlentities}">-->
<!-- </div>-->
<!-- <span style="color: red">不选择为基础模版</span>-->
<!-- </div>-->
<div class="form-group layer-footer">
<label class="control-label col-xs-12 col-sm-2"></label>
<div class="col-xs-12 col-sm-8">

View File

@@ -6,20 +6,22 @@
<input id="c-name" class="form-control" name="row[name]" type="text" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Firm_id')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-firm_id" min="0" data-rule="required" data-source="firm/index" class="form-control selectpage" name="row[firm_id]" type="text" value="1">
</div>
<span style="color: red">不选择为基础模版</span>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Firmstore_id')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-firmstore_id" min="0" data-rule="required" data-source="firmstore/index" class="form-control selectpage" name="row[firmstore_id]" type="text" value="1">
</div>
<span style="color: red">不选择为基础模版</span>
</div>
<input type="hidden" id="c-firm_id" name="row[firm_id]" value="1">
<!-- <div class="form-group">-->
<!-- <label class="control-label col-xs-12 col-sm-2">{:__('Firm_id')}:</label>-->
<!-- <div class="col-xs-12 col-sm-8">-->
<!-- <input id="c-firm_id" min="0" data-rule="required" data-source="firm/index" class="form-control selectpage" name="row[firm_id]" type="text" value="1">-->
<!-- </div>-->
<!-- <span style="color: red">不选择为基础模版</span>-->
<!-- </div>-->
<input type="hidden" id="c-firmstore_id" name="row[firmstore_id]" value="1">
<!-- <div class="form-group">-->
<!-- <label class="control-label col-xs-12 col-sm-2">{:__('Firmstore_id')}:</label>-->
<!-- <div class="col-xs-12 col-sm-8">-->
<!-- <input id="c-firmstore_id" min="0" data-rule="required" data-source="firmstore/index" class="form-control selectpage" name="row[firmstore_id]" type="text" value="1">-->
<!-- </div>-->
<!-- <span style="color: red">不选择为基础模版</span>-->
<!-- </div>-->
<div class="form-group layer-footer">
<label class="control-label col-xs-12 col-sm-2"></label>
<div class="col-xs-12 col-sm-8">

View File

@@ -6,20 +6,20 @@
<input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Firm_id')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-firm_id" min="0" data-rule="required" data-source="firm/index" class="form-control selectpage" name="row[firm_id]" type="text" value="{$row.firm_id|htmlentities}">
</div>
<span style="color: red">不选择为基础模版</span>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Firmstore_id')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-firmstore_id" min="0" data-rule="required" data-source="firmstore/index" class="form-control selectpage" name="row[firmstore_id]" type="text" value="{$row.firmstore_id|htmlentities}">
</div>
<span style="color: red">不选择为基础模版</span>
</div>
<!-- <div class="form-group">-->
<!-- <label class="control-label col-xs-12 col-sm-2">{:__('Firm_id')}:</label>-->
<!-- <div class="col-xs-12 col-sm-8">-->
<!-- <input id="c-firm_id" min="0" data-rule="required" data-source="firm/index" class="form-control selectpage" name="row[firm_id]" type="text" value="{$row.firm_id|htmlentities}">-->
<!-- </div>-->
<!-- <span style="color: red">不选择为基础模版</span>-->
<!-- </div>-->
<!-- <div class="form-group">-->
<!-- <label class="control-label col-xs-12 col-sm-2">{:__('Firmstore_id')}:</label>-->
<!-- <div class="col-xs-12 col-sm-8">-->
<!-- <input id="c-firmstore_id" min="0" data-rule="required" data-source="firmstore/index" class="form-control selectpage" name="row[firmstore_id]" type="text" value="{$row.firmstore_id|htmlentities}">-->
<!-- </div>-->
<!-- <span style="color: red">不选择为基础模版</span>-->
<!-- </div>-->
<div class="form-group layer-footer">
<label class="control-label col-xs-12 col-sm-2"></label>
<div class="col-xs-12 col-sm-8">

View File

@@ -6,24 +6,26 @@
<input id="c-name" class="form-control" name="row[name]" type="text" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Firmstore_id')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-firmstore_id" min="0" data-rule="required"
data-source="firmstore/index" class="form-control selectpage"
name="row[firmstore_id]" type="text" value="1">
</div>
<span style="color: red">不选择为基础模版</span>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Firm_id')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-firm_id" min="0" data-rule="required"
data-source="firm/index" class="form-control selectpage"
name="row[firm_id]" type="text" value="1">
</div>
<span style="color: red">不选择为基础模版</span>
</div>
<input type="hidden" id="c-firmstore_id" name="row[firmstore_id]" value="1">
<!-- <div class="form-group">-->
<!-- <label class="control-label col-xs-12 col-sm-2">{:__('Firmstore_id')}:</label>-->
<!-- <div class="col-xs-12 col-sm-8">-->
<!-- <input id="c-firmstore_id" min="0" data-rule="required"-->
<!-- data-source="firmstore/index" class="form-control selectpage"-->
<!-- name="row[firmstore_id]" type="text" value="1">-->
<!-- </div>-->
<!-- <span style="color: red">不选择为基础模版</span>-->
<!-- </div>-->
<input type="hidden" id="c-firm_id" name="row[firm_id]" value="1">
<!-- <div class="form-group">-->
<!-- <label class="control-label col-xs-12 col-sm-2">{:__('Firm_id')}:</label>-->
<!-- <div class="col-xs-12 col-sm-8">-->
<!-- <input id="c-firm_id" min="0" data-rule="required"-->
<!-- data-source="firm/index" class="form-control selectpage"-->
<!-- name="row[firm_id]" type="text" value="1">-->
<!-- </div>-->
<!-- <span style="color: red">不选择为基础模版</span>-->
<!-- </div>-->
<div class="form-group layer-footer">
<label class="control-label col-xs-12 col-sm-2"></label>
<div class="col-xs-12 col-sm-8">

View File

@@ -6,23 +6,25 @@
<input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Firmstore_id')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-firmstore_id" min="0"
disabled
data-rule="required" data-source="firmstore/index" class="form-control selectpage" name="row[firmstore_id]" type="text" value="{$row.firmstore_id|htmlentities}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Firm_id')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-firm_id" min="0" data-rule="required"
disabled
data-source="firm/index" class="form-control selectpage"
name="row[firm_id]" type="text" value="{$row.firm_id|htmlentities}">
</div>
</div>
<input type="hidden" id="c-firmstore_id" name="row[firmstore_id]" value="1">
<!-- <div class="form-group">-->
<!-- <label class="control-label col-xs-12 col-sm-2">{:__('Firmstore_id')}:</label>-->
<!-- <div class="col-xs-12 col-sm-8">-->
<!-- <input id="c-firmstore_id" min="0"-->
<!-- disabled-->
<!-- data-rule="required" data-source="firmstore/index" class="form-control selectpage" name="row[firmstore_id]" type="text" value="{$row.firmstore_id|htmlentities}">-->
<!-- </div>-->
<!-- </div>-->
<input type="hidden" id="c-firm_id" name="row[firm_id]" value="1">
<!-- <div class="form-group">-->
<!-- <label class="control-label col-xs-12 col-sm-2">{:__('Firm_id')}:</label>-->
<!-- <div class="col-xs-12 col-sm-8">-->
<!-- <input id="c-firm_id" min="0" data-rule="required"-->
<!-- disabled-->
<!-- data-source="firm/index" class="form-control selectpage"-->
<!-- name="row[firm_id]" type="text" value="{$row.firm_id|htmlentities}">-->
<!-- </div>-->
<!-- </div>-->
<div class="form-group layer-footer">
<label class="control-label col-xs-12 col-sm-2"></label>
<div class="col-xs-12 col-sm-8">

View File

@@ -9,7 +9,7 @@
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Firmstoreprojectsone_id')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-firmstoreprojectsone_id" min="0" data-rule="required" data-source="firmstoreprojectsone/index" class="form-control selectpage" name="row[firmstoreprojectsone_id]" type="text" value="{$oneData.id|htmlentities}">
<input id="c-firmstoreprojectsone_id" disabled min="0" data-rule="required" data-source="firmstoreprojectsone/index" class="form-control selectpage" name="row[firmstoreprojectsone_id]" type="text" value="{$oneData.id|htmlentities}">
</div>
</div>
<div class="form-group">

View File

@@ -9,7 +9,7 @@
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Firmstoreprojectsone_id')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-firmstoreprojectsone_id" min="0" data-rule="required" data-source="firmstoreprojectsone/index" class="form-control selectpage" name="row[firmstoreprojectsone_id]" type="text" value="{$row.firmstoreprojectsone_id|htmlentities}">
<input id="c-firmstoreprojectsone_id" disabled min="0" data-rule="required" data-source="firmstoreprojectsone/index" class="form-control selectpage" name="row[firmstoreprojectsone_id]" type="text" value="{$row.firmstoreprojectsone_id|htmlentities}">
</div>
</div>
<div class="form-group">

View File

@@ -6,15 +6,16 @@
<input id="c-name" class="form-control" name="row[name]" type="text" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Firm_id')}:</label>
<div class="col-xs-12 col-sm-8" readonly>
<input id="c-firm_id" min="0" data-rule="required" data-source="firm/index"
class="form-control selectpage"
name="row[firm_id]" type="text" value="1">
</div>
<span style="color: red">不选择为基础模版</span>
</div>
<input type="hidden" id="c-firm_id" name="row[firm_id]" value="1">
<!-- <div class="form-group">-->
<!-- <label class="control-label col-xs-12 col-sm-2">{:__('Firm_id')}:</label>-->
<!-- <div class="col-xs-12 col-sm-8" readonly>-->
<!-- <input id="c-firm_id" min="0" data-rule="required" data-source="firm/index"-->
<!-- class="form-control selectpage"-->
<!-- name="row[firm_id]" type="text" value="1">-->
<!-- </div>-->
<!-- <span style="color: red">不选择为基础模版</span>-->
<!-- </div>-->
<div class="form-group layer-footer">
<label class="control-label col-xs-12 col-sm-2"></label>
<div class="col-xs-12 col-sm-8">

View File

@@ -6,15 +6,16 @@
<input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Firm_id')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-firm_id" min="0" data-rule="required"
disabled
data-source="firm/index" class="form-control selectpage" name="row[firm_id]" type="text" value="{$row.firm_id|htmlentities}">
</div>
<span style="color: red">不选择为基础模版</span>
</div>
<input type="hidden" id="c-firm_id" name="row[firm_id]" value="1">
<!-- <div class="form-group">-->
<!-- <label class="control-label col-xs-12 col-sm-2">{:__('Firm_id')}:</label>-->
<!-- <div class="col-xs-12 col-sm-8">-->
<!-- <input id="c-firm_id" min="0" data-rule="required"-->
<!-- disabled-->
<!-- data-source="firm/index" class="form-control selectpage" name="row[firm_id]" type="text" value="{$row.firm_id|htmlentities}">-->
<!-- </div>-->
<!-- <span style="color: red">不选择为基础模版</span>-->
<!-- </div>-->
<div class="form-group layer-footer">
<label class="control-label col-xs-12 col-sm-2"></label>
<div class="col-xs-12 col-sm-8">

View File

@@ -12,13 +12,14 @@
<input id="c-name" class="form-control" name="row[name]" type="text">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">企业:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-firm_id" data-source="firm/index" class="form-control selectpage" name="row[firm_id]" type="text" value="1">
</div>
<span style="color: red">不选择为基础模版</span>
</div>
<input type="hidden" id="c-firm_id" name="row[firm_id]" value="1">
<!-- <div class="form-group">-->
<!-- <label class="control-label col-xs-12 col-sm-2">企业:</label>-->
<!-- <div class="col-xs-12 col-sm-8">-->
<!-- <input id="c-firm_id" data-source="firm/index" class="form-control selectpage" name="row[firm_id]" type="text" value="1">-->
<!-- </div>-->
<!-- <span style="color: red">不选择为基础模版</span>-->
<!-- </div>-->
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Firmstoreprojectsone_id')}:</label>
<div class="col-xs-12 col-sm-8">

View File

@@ -12,12 +12,13 @@
<input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">企业:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-firm_id" data-source="firm/index" class="form-control selectpage" name="row[firm_id]" type="text" value="{$row.firm_id|htmlentities}">
</div>
</div>
<input type="hidden" id="c-firm_id" name="row[firm_id]" value="1">
<!-- <div class="form-group">-->
<!-- <label class="control-label col-xs-12 col-sm-2">企业:</label>-->
<!-- <div class="col-xs-12 col-sm-8">-->
<!-- <input id="c-firm_id" data-source="firm/index" class="form-control selectpage" name="row[firm_id]" type="text" value="{$row.firm_id|htmlentities}">-->
<!-- </div>-->
<!-- </div>-->
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Firmstoreprojectsone_id')}:</label>
<div class="col-xs-12 col-sm-8">

View File

@@ -28,7 +28,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
{field: 'id', title: __('Id')},
{field: 'name', title: __('Name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
// {field: 'firm_id', title: __('Firm_id')},
{field: 'firm.name', title: __('Firm.name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
// {field: 'firm.name', title: __('Firm.name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
]
]

View File

@@ -27,7 +27,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
{checkbox: true},
{field: 'id', title: __('Id')},
{field: 'name', title: __('Name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
{field: 'firm.name', title: __('Firm.name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
// {field: 'firm.name', title: __('Firm.name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
]
]

View File

@@ -27,8 +27,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
{checkbox: true},
{field: 'id', title: __('Id')},
{field: 'name', title: __('Name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
{field: 'firm.name', title: __('Firm.name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
{field: 'firmstore.name', title: __('Firmstore.name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
// {field: 'firm.name', title: __('Firm.name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
// {field: 'firmstore.name', title: __('Firmstore.name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
]
]

View File

@@ -27,7 +27,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
{checkbox: true},
{field: 'id', title: __('Id')},
{field: 'name', title: __('Name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
{field: 'firm.full_name', title: '企业名称', operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
// {field: 'firm.full_name', title: '企业名称', operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate,

View File

@@ -28,7 +28,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
{field: 'id', title: __('Id')},
{field: 'name', title: __('Name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
{field: 'firmstoreprojectsone.name', title: __('Firmstoreprojectsone.name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
{field: 'firm.full_name', title: '企业名称', operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
// {field: 'firm.full_name', title: '企业名称', operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
]
]

View File

@@ -27,7 +27,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
{checkbox: true},
{field: 'id', title: __('Id')},
{field: 'name', title: __('Name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
{field: 'firm.full_name', title: '企业名称', operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
// {field: 'firm.full_name', title: '企业名称', operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
]
]

View File

@@ -28,7 +28,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
{field: 'id', title: __('Id')},
{field: 'name', title: __('Name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
{field: 'mattertemplate.name', title: __('Mattertemplate.name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
{field: 'firm.full_name', title: '企业名称', operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
// {field: 'firm.full_name', title: '企业名称', operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
{field: 'firmstoreprojectsone.name', title: __('Firmstoreprojectsone.name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
{field: 'firmstoreprojectstwo.name', title: __('Firmstoreprojectstwo.name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
{field: 'create_time', title: __('Create_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false},