优化代码

This commit is contained in:
cloud 2025-01-16 00:19:42 +08:00
parent 109b250086
commit 4d4d6f75af
1 changed files with 0 additions and 26 deletions

View File

@ -7,8 +7,6 @@ trait tfield
//广告位统计 //广告位统计
protected function tf_elevator($sign = true) protected function tf_elevator($sign = true)
{ {
global $_M, $_YW;
return [ return [
'e_enable' => '状态', 'e_enable' => '状态',
'e_number' => '广告位编号', 'e_number' => '广告位编号',
@ -24,8 +22,6 @@ trait tfield
//场所统计 //场所统计
protected function tf_village($sign = true) protected function tf_village($sign = true)
{ {
global $_M, $_YW;
return [ return [
'v_name' => '场所名称', 'v_name' => '场所名称',
'v_type' => '场所分类', 'v_type' => '场所分类',
@ -48,7 +44,6 @@ trait tfield
//广告合同关联表 //广告合同关联表
protected function tf_schedule($sign = '') protected function tf_schedule($sign = '')
{ {
global $_M, $_YW;
//Table //Table
$array = [ $array = [
'e_enable' => '状态', 'e_enable' => '状态',
@ -109,8 +104,6 @@ trait tfield
//合同 //合同
protected function tf_contract($sign = true) protected function tf_contract($sign = true)
{ {
global $_M, $_YW;
return [ return [
'h_number' => '合同编号', 'h_number' => '合同编号',
'h_medium' => '投放媒介', 'h_medium' => '投放媒介',
@ -133,8 +126,6 @@ trait tfield
//企业资料 //企业资料
protected function tf_customer($sign = true) protected function tf_customer($sign = true)
{ {
global $_M, $_YW;
return [ return [
'c_allname' => '公司名称', 'c_allname' => '公司名称',
'c_name' => '公司简称', 'c_name' => '公司简称',
@ -150,8 +141,6 @@ trait tfield
//企业联系人 //企业联系人
protected function tf_workers($sign = true) protected function tf_workers($sign = true)
{ {
global $_M, $_YW;
return [ return [
// 'w_cid' => '隶属公司', // 'w_cid' => '隶属公司',
'w_jid' => '职务id', 'w_jid' => '职务id',
@ -166,8 +155,6 @@ trait tfield
//参数 //参数
protected function tf_para($sign = true) protected function tf_para($sign = true)
{ {
global $_M, $_YW;
return [ return [
'p_type' => '参数分类', 'p_type' => '参数分类',
'p_value' => '参数值', 'p_value' => '参数值',
@ -181,8 +168,6 @@ trait tfield
// 投放页面选择广告位 // 投放页面选择广告位
protected function tf_launch($sign = true) protected function tf_launch($sign = true)
{ {
global $_M, $_YW;
return [ return [
'l_title' => '名称', 'l_title' => '名称',
'l_hnumber' => '合同编号', 'l_hnumber' => '合同编号',
@ -201,8 +186,6 @@ trait tfield
// 投放页面选择广告位 // 投放页面选择广告位
protected function tf_applan($sign = true) protected function tf_applan($sign = true)
{ {
global $_M, $_YW;
return [ return [
'e_enable' => '状态', 'e_enable' => '状态',
'e_number' => '广告位编号', 'e_number' => '广告位编号',
@ -224,8 +207,6 @@ trait tfield
//广告位查询统计 //广告位查询统计
protected function tf_elevators($sign = true) protected function tf_elevators($sign = true)
{ {
global $_M, $_YW;
return [ return [
'e_enable' => '状态', 'e_enable' => '状态',
'e_number' => '广告位编号', 'e_number' => '广告位编号',
@ -250,7 +231,6 @@ trait tfield
//广告位查询统计 //广告位查询统计
protected function tf_villages($sign = true) protected function tf_villages($sign = true)
{ {
global $_M, $_YW;
$array = [ $array = [
'v_name' => '场所名称', 'v_name' => '场所名称',
'v_type' => '场所分类', 'v_type' => '场所分类',
@ -285,8 +265,6 @@ trait tfield
//广告位查询统计 //广告位查询统计
protected function tf_noticeday($sign = true) protected function tf_noticeday($sign = true)
{ {
global $_M, $_YW;
return [ return [
'h_number' => '合同编号', 'h_number' => '合同编号',
'h_signtime' => '签订日期', 'h_signtime' => '签订日期',
@ -304,8 +282,6 @@ trait tfield
//前台巡查页面 //前台巡查页面
protected function tf_patrol($sign = true) protected function tf_patrol($sign = true)
{ {
global $_M, $_YW;
return [ return [
'e_number' => '编号', 'e_number' => '编号',
'e_address' => '地址', //虚拟字段 'e_address' => '地址', //虚拟字段
@ -318,8 +294,6 @@ trait tfield
//巡查列表 //巡查列表
protected function tf_keylist($sign = true) protected function tf_keylist($sign = true)
{ {
global $_M, $_YW;
return [ return [
// 'k_passkey' => '密钥密码', // 'k_passkey' => '密钥密码',
'k_basekey' => '密文密码', 'k_basekey' => '密文密码',