更新原理图符号部分的页面编辑功能

This commit is contained in:
panx
2024-09-01 11:10:22 +08:00
parent fb34c7ae08
commit d3d429e964
8 changed files with 383 additions and 2 deletions

View File

@@ -0,0 +1,36 @@
<?php
declare (strict_types = 1);
namespace app\admin\controller;
use app\AdminController;
use Webman\Http\Request;
use app\common\model\PdmSymbol as PdmSymbolModel;
/**
* pdm_symbol
* 原理符号
* <!---->
* Class PdmSymbol
* @package app\admin\controller
*/
class PdmSymbol extends AdminController
{
/**
* PdmSymbol模型对象
* @var \app\common\model\PdmSymbol
*/
public function __construct()
{
parent::__construct();
$this->model = new PdmSymbolModel;
}
/**
* 默认生成的方法为index/add/edit/del/status 五个方法
* 当创建CURD的时候DIY的函数体和模板为空请自行编写代码
*/
}

View File

@@ -1,3 +1,7 @@
templet:function(d) {
return d.{field}.replace(',',' ');
if(d.{field} ==''||d.{field} ==null ||d.{field} == undefined){
return '';
}else{
return d.{field}.replace(',',' ');
}
}