Commit bc8f9154 by 汪伟伟

任务包

parent c32ddb4c
......@@ -7,12 +7,20 @@ APP_URL=https://data-collect.raisound.com
LOG_LEVEL=debug
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=data-collect
DB_USERNAME=root
DB_HOST=192.168.2.88
DB_DATABASE=data-collect
DB_PORT=3306
DB_PASSWORD=123456
DB_HOST=172.16.5.27
DB_DATABASE=datacollect
DB_PORT=36007
DB_PASSWORD=Huisheng@12345
BROADCAST_DRIVER=log
CACHE_DRIVER=file
FILESYSTEM_DRIVER=local
......
......@@ -100,6 +100,8 @@ class AlreadyDoneTaskController extends AdminController
$grid->filter(function (Grid\Filter $filter) {
// $filter->equal('id');
$filter->like('task.name', '指标名称');
$filter->like('task.year','时间');
$filter->like('task.city_id','地区');
});
......
......@@ -81,7 +81,8 @@ class NoDoneTaskController extends AdminController
$grid->filter(function (Grid\Filter $filter) {
// $filter->equal('id');
$filter->like('task.name', '指标名称');
$filter->like('task.year','时间');
$filter->like('task.city_id','地区');
});
......@@ -148,10 +149,12 @@ class NoDoneTaskController extends AdminController
TasksCollect::query()->where('receive_id', $id)->update(['is_find' => 0, 'remark' => $remark]);
$receive->save();
TasksApprove::query()->updateOrCreate([//审核表里新增一条记录
'tas_id' => $receive->tas_id,
'task_id' => $receive->task_id,
'user_id' => $receive->user_id,
'receive_id' => $receive->id,
], [
'tas_id' => $receive->tas_id,
'task_id' => $receive->task_id,
'user_id' => $receive->user_id,
'receive_id' => $receive->id,
......@@ -162,7 +165,6 @@ class NoDoneTaskController extends AdminController
->where('id', '!=', $id)
->where('user_id', (Admin::user())->id)
->where('status', 0)
->orderBy('created_at')
->first();
if ($no) {
$url = '/noDone/' . $no->id . '/edit';
......@@ -255,10 +257,12 @@ class NoDoneTaskController extends AdminController
\App\Models\TasksReceive::query()->where('id', $this->id)->update(['status' => 1, 'time' => date('Y-m-d H:i:s')]);//状态更新成已完成
TasksCollect::query()->where('receive_id', $this->id)->update(['is_find' => 1]);//可以找到
TasksApprove::query()->updateOrCreate([//审核表里新增一条记录
'tas_id' => $this->tas_id,
'task_id' => $this->task_id,
'user_id' => $this->user_id,
'receive_id' => $this->id,
], [
'tas_id' => $this->tas_id,
'task_id' => $this->task_id,
'user_id' => $this->user_id,
'receive_id' => $this->id,
......@@ -268,7 +272,6 @@ class NoDoneTaskController extends AdminController
->where('id', '!=', $this->id)
->where('user_id', (Admin::user())->id)
->where('status', 0)
->orderBy('created_at', 'desc')
->first();
if ($no) {
$url = '/noDone/' . $no->id . '/edit';
......
......@@ -3,6 +3,7 @@
namespace App\Admin\Controllers;
use App\Admin\Extensions\Tools\BatchReceiveAction;
use App\Admin\Extensions\Tools\ListAction;
use App\Admin\Extensions\Tools\ReceiveAction;
use App\Admin\Repositories\Task;
use App\Admin\Services\CityAreaService;
......@@ -45,7 +46,7 @@ class TaskController extends AdminController
$grid->addTableClass(['table-text-center']);//设置表格文字居中
// $grid->title('dasd');
$grid->model()->whereNotIn('id', $exists)->orderBy('created_at','desc');
$grid->model()->whereNotIn('id', $exists)->orderBy('created_at', 'desc');
// dd(Admin::user()->is_admin);
// dd(trans('admin.view'));//查看
......@@ -57,9 +58,7 @@ class TaskController extends AdminController
// $grid->column('id')->sortable();
$grid->column('name');
$grid->column('level');
$grid->column('city_id')->display(function ($v) {
return CityAreaService::getAreaName($v);
});
$grid->column('city_id');
$grid->column('year');
$grid->column('refer')->display(function ($val) {
if (filter_var($val, FILTER_VALIDATE_URL) !== false) {//是链接
......@@ -76,6 +75,8 @@ class TaskController extends AdminController
$grid->filter(function (Grid\Filter $filter) {
// $filter->equal('id');
$filter->like('name');
$filter->like('year');
$filter->like('city_id');
});
......@@ -208,6 +209,14 @@ class TaskController extends AdminController
// $show->field('status');
// $show->field('created_at');
// $show->field('updated_at');
if (\request()->input('type')) {
$show->disableDeleteButton()->disableListButton()->disableEditButton();
$show->tools(function (Show\Tools $tools) {
$tools->append(new ListAction());
});
}
});
}
......@@ -217,12 +226,12 @@ class TaskController extends AdminController
// $provinceId = $request->get('q');
$data = json_decode(file_get_contents(base_path('app/china_all_area.json')), true);
$city = [];
$already = \App\Models\Task::query()->orderBy('created_at','desc')->pluck('city_id')->toArray();
$already = \App\Models\Task::query()->orderBy('created_at', 'desc')->pluck('city_id')->toArray();
$already = array_unique($already);
foreach ($data['100000'] as $key => $value) {
if (isset($data[$key])) {
foreach ($data[$key] as $k => $val) {
if (!in_array($k,$already)){
if (!in_array($k, $already)) {
$city[] = [
'id' => $k,
'text' => $val
......@@ -233,48 +242,60 @@ class TaskController extends AdminController
}
}
$left = [];
foreach ($already as $a){
$left[]=[
'id'=>$a,
'text'=>CityAreaService::getAreaName($a)
foreach ($already as $a) {
$left[] = [
'id' => $a,
'text' => CityAreaService::getAreaName($a)
];
}
// dd($left,array_merge($left,$city));
return array_merge($left,$city);
return array_merge($left, $city);
}
public function edit($id, Content $content)
{
// dd($id,\request()->input('type',0));
return $content
->translation($this->translation())
->title($this->title())
->description($this->description()['edit'] ?? trans('admin.edit'))
->body($this->form(\request()->input('type', 0))->edit($id));
}
/**
* Make a form builder.
*
* @return Form
*/
protected function form()
protected function form($type = 0)
{
// $data = json_decode(file_get_contents(base_path('app/china_all_area.json')), true);
// $arr = $data['100000'];
return Form::make(new Task(), function (Form $form) {
return Form::make(new Task(), function (Form $form) use ($type) {
$form->display('id');
$form->text('name')->required();
$form->select('level')->options([1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5])->required();
// $form->select('province_id', '省')->options($arr)->loads('city_id', '/getCity');
$form->multipleSelect('city_id', '选择地区')->options('/getCity')->required()->saving(function ($v) {
return $v[0];
});
// $form->multipleSelect('city_id', '选择地区')->options('/getCity')->required()->saving(function ($v) {
// return $v[0];
// });
// $form->distpicker([
// 'province_id' => '省',
// 'city_id' => '市',
// ], '选择地区')->required();
$form->multipleSelect('year', '选择时间')->options(function () {
$year = (int)date('Y');
for ($i = $year; $i > 1900; $i--) {
$years[$i] = $i;
}
return $years;
})->value(2024)->required();
// $form->multipleSelect('year', '选择时间')->options(function () {
// $year = (int)date('Y');
// for ($i = $year; $i > 1900; $i--) {
// $years[$i] = $i;
// }
// return $years;
// })->value(2024)->required();
$form->text('city_id', '选择地区')->required();
$form->text('year', '选择时间')->required();
$form->decimal('price', '单价');
$form->text('refer', '参考信源')->required();
$form->editor('guide', '收集指南')->options(['pasteImage' => false])->required();
......@@ -284,6 +305,12 @@ class TaskController extends AdminController
// $form->display('created_at');
// $form->display('updated_at');
if ($type == 1) {
$form->disableListButton()->disableDeleteButton()->disableViewButton();
$form->tools(function (Form\Tools $tools) {
$tools->append(new ListAction());
});
}
// // 在表单提交前调用
$form->submitted(function (Form $form) {
......@@ -314,14 +341,14 @@ class TaskController extends AdminController
// dump($form->year);
//
// });
//保存后回调
// $form->saved(function (Form $form,$id) {
//
// $form->images = 12;
// dd($id,$form->guide);
//
// });
$form->saved(function (Form $form) {
return $form->response()->redirect('tas');
});
});
}
......@@ -404,7 +431,7 @@ class TaskController extends AdminController
foreach ($idArr as $idv) {
if (TasksReceive::query()->where('task_id', $idv)->exists()) {
$task = \App\Models\Task::query()->find($idv);
return $this->form()->response()->error('已经有用户领取了任务,不允许删除,任务名称:' . $task->name . ' ' . CityAreaService::getAreaName($task->city_id) . ' ' . $task->year);
return $this->form()->response()->error('已经有用户领取了任务,不允许删除,任务名称:' . $task->name . ' ' . $task->city_id . ' ' . $task->year);
}
}
......
......@@ -51,18 +51,21 @@ class BatchReceiveAction extends BatchAction
if (!$exists && $task->num > 0) {
$receive = TasksReceive::query()->create([
'tas_id' => $task->tas_id,
'task_id' => $id,
'user_id' => $user->id,
'area' => CityAreaService::getAreaName($task->city_id),
'area' => $task->city_id,
]);
$task->num -= 1;
$task->save();
TasksCollect::query()->updateOrCreate([//默认新增一条收集数据的记录
'tas_id' => $task->tas_id,
'task_id' => $id,
'user_id' => $user->id,
'receive_id' => $receive->id,
], [
'tas_id' => $task->tas_id,
'task_id' => $id,
'user_id' => $user->id,
'receive_id' => $receive->id,
......
<?php
namespace App\Admin\Extensions\Tools;
use Dcat\Admin\Actions\Response;
use Dcat\Admin\Show\AbstractTool;
use Dcat\Admin\Traits\HasPermissions;
use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Http\Request;
class ListAction extends AbstractTool
{
/**
* 按钮标题
*
* @return string
*/
protected $title = '
<i class="feather icon-list"></i>列表
';
// /**
// * 处理请求,如果不需要接口处理,请直接删除这个方法
// *
// * @param Request $request
// *
// * @return Response
// */
// public function handle(Request $request)
// {
// // 获取主键
// $key = $this->getKey();
//
// return $this->response()
// ->success('Processed successfully.')
// ->redirect('/');
// }
/**
* 如果只是a标签跳转,则在这里返回跳转链接即可
*
* @return string|void
*/
protected function href()
{
// 获取主键
// $key = $this->getKey();
// 获取当前页其他字段
// $username = $this->parent->model()->username;
return admin_url('tas');
}
// 如果你想自定义动作按钮的HTML,可以重写此方法
public function html()
{
return parent::html();
}
// /**
// * 确认弹窗信息,如不需要可以删除此方法
// *
// * @return string|array|void
// */
// public function confirm()
// {
// // return ['Confirm?', 'contents'];
// }
// /**
// * 权限判断,如不需要可以删除此方法
// *
// * @param Model|Authenticatable|HasPermissions|null $user
// *
// * @return bool
// */
// protected function authorize($user): bool
// {
// return true;
// }
// /**
// * 返回请求接口的参数,如不需要可以删除此方法
// *
// * @return array
// */
// protected function parameters()
// {
// return [];
// }
}
......@@ -64,6 +64,7 @@ class ReceiveAction extends RowAction
if (!$exists && $task->num > 0) {
$receive = TasksReceive::query()->create([
'tas_id' => $task->tas_id,
'task_id' => $id,
'user_id' => $user->id,
'area' => CityAreaService::getAreaName($task->city_id),
......@@ -72,10 +73,12 @@ class ReceiveAction extends RowAction
$task->save();
TasksCollect::query()->updateOrCreate([//默认新增一条收集数据的记录
'tas_id' => $task->tas_id,
'task_id' => $id,
'user_id' => $user->id,
'receive_id' => $receive->id,
], [
'tas_id' => $task->tas_id,
'task_id' => $id,
'user_id' => $user->id,
'receive_id' => $receive->id,
......
<?php
namespace App\Admin\Repositories;
use App\Models\Tas as Model;
use Dcat\Admin\Repositories\EloquentRepository;
class Tas extends EloquentRepository
{
/**
* Model.
*
* @var string
*/
protected $eloquentClass = Model::class;
}
......@@ -24,7 +24,10 @@ use Dcat\Admin\Show\Field;
Field::extend('unserialize', \App\Admin\Extensions\UnSerialize::class);
\Dcat\Admin\Grid::resolving(function (\Dcat\Admin\Grid $grid) {
$grid->tableCollapse(false);
$grid->withBorder();
// $grid->tableCollapse(false);
$grid->addTableClass(['table-text-center']);//设置表格文字居中
});
......@@ -13,6 +13,11 @@ Route::group([
], function (Router $router) {
$router->get('/dashboard', 'HomeController@index');
$router->resource('tas', 'TasController');
$router->resource('tasks', 'TaskController');
$router->get('receive', 'TaskController@receiveIndex');
......
......@@ -60,41 +60,41 @@ class Handler extends ExceptionHandler
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\JsonResponse|\Illuminate\Http\Response|\Symfony\Component\HttpFoundation\Response
*/
public function render($request, Throwable $e)
{
$data = function () use ($request, $e) {
try {
$routes = Route::getRoutes();
$routes->match($request);//校验当前路由是否存在
//捕获表单验证异常,改成统一的返回样式
if ($e instanceof UnauthorizedHttpException) {
return ['code' => 400401, 'message' => $e->getMessage(), 'data' => null];
}
// if ($e instanceof AuthenticationException) {
// return ['errCode' => 400401, 'errMsg' => $e->getMessage(), 'data' => null];
// public function render($request, Throwable $e)
// {
// $data = function () use ($request, $e) {
// try {
// $routes = Route::getRoutes();
// $routes->match($request);//校验当前路由是否存在
// //捕获表单验证异常,改成统一的返回样式
// if ($e instanceof UnauthorizedHttpException) {
// return ['code' => 400401, 'message' => $e->getMessage(), 'data' => null];
// }
//// if ($e instanceof AuthenticationException) {
//// return ['errCode' => 400401, 'errMsg' => $e->getMessage(), 'data' => null];
//// }
// if ($e instanceof ValidationException) {
// $errors = $this->getErrors($e->errors());
// return ['code' => 422, 'message' => $errors, 'data' => null];
// }
// return [
// 'code' => ($e->getCode() != 0) ? $e->getCode() : 400001,
//// 'errMsg' => '文件【' . $e->getFile() . '】的第' . $e->getLine() . '行出现异常,大致是:【' . ($e->getMessage() ?? "error!") . '】',
// 'message' => $e->getMessage(),
// 'data' => null,
// ];
// } catch (NotFoundHttpException $ex) {
// return ['code' => 404, 'message' => '请求地址不存在...', 'data' => null];
// } catch (\Exception $excep) {
// return [
// 'code' => ($excep->getCode() != 0) ? $excep->getCode() : 400002,
// 'message' => $excep->getMessage() ?? "error!",
// 'data' => null,
// ];
// }
// };
// return response()->json($data());//返回json对象用这个方法
//
// }
if ($e instanceof ValidationException) {
$errors = $this->getErrors($e->errors());
return ['code' => 422, 'message' => $errors, 'data' => null];
}
return [
'code' => ($e->getCode() != 0) ? $e->getCode() : 400001,
// 'errMsg' => '文件【' . $e->getFile() . '】的第' . $e->getLine() . '行出现异常,大致是:【' . ($e->getMessage() ?? "error!") . '】',
'message' => $e->getMessage(),
'data' => null,
];
} catch (NotFoundHttpException $ex) {
return ['code' => 404, 'message' => '请求地址不存在...', 'data' => null];
} catch (\Exception $excep) {
return [
'code' => ($excep->getCode() != 0) ? $excep->getCode() : 400002,
'message' => $excep->getMessage() ?? "error!",
'data' => null,
];
}
};
return response()->json($data());//返回json对象用这个方法
}
}
<?php
namespace App\Models;
use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\Notifiable;
class Tas extends Model
{
use HasDateTimeFormatter, HasFactory, Notifiable;
protected $table = 'tas';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
'level',
'city_id',
'province_id',
'year',
'refer',
'guide',
'price',
'status',
'num',
'images',
'created_at',
'updated_at',
];
/**
* The attributes that should be cast to native types.
*
* @var array
*/
protected $casts = [];
// public function getYearAttribute($value)
// {
// return explode(',', $value);
// }
// public function setYearAttribute($value)
// {
// $this->attributes['year'] = implode(',', $value);
// }
// public function setCityIdAttribute($value)
// {
// $this->attributes['cityId'] = implode(',', $value);
// }
public function tasks()
{
return $this->hasMany(Task::class);
}
}
......@@ -23,6 +23,7 @@ class Task extends Model
* @var array
*/
protected $fillable = [
'tas_id',
'name',
'level',
'city_id',
......@@ -52,10 +53,10 @@ class Task extends Model
// return explode(',', $value);
// }
public function setYearAttribute($value)
{
$this->attributes['year'] = implode(',', $value);
}
// public function setYearAttribute($value)
// {
// $this->attributes['year'] = implode(',', $value);
// }
// public function setCityIdAttribute($value)
// {
......
......@@ -25,6 +25,7 @@ class TasksApprove extends Model
*/
protected $fillable = [
'id',
'tas_id',
'task_id',
'user_id',
'receive_id',
......
......@@ -18,6 +18,7 @@ class TasksCollect extends Model
* @var array
*/
protected $fillable = [
'tas_id',
'task_id',
'user_id',
'receive_id',
......
......@@ -26,6 +26,7 @@ class TasksReceive extends Model
* @var array
*/
protected $fillable = [
'tas_id',
'task_id',
'user_id',
'order_id',
......
......@@ -25,7 +25,7 @@ class CreateAdminTables extends Migration
{
Schema::create($this->config('database.users_table'), function (Blueprint $table) {
$table->bigIncrements('id');
$table->tinyInteger('is_admin')->default(0)->comment('是否是超级管理员');
$table->tinyInteger('is_admin')->default(0)->comment('是否是管理员');
$table->string('username', 120)->unique();
$table->string('password', 80);
$table->string('name');
......
......@@ -15,6 +15,7 @@ class CreateTasksTable extends Migration
{
Schema::create('tasks', function (Blueprint $table) {
$table->bigIncrements('id');
$table->bigInteger('tas_id');
$table->string('name')->default('')->comment('指标名称');
$table->integer('level')->default('1')->comment('难度等级');
$table->string('city_id')->default('')->comment('市');
......
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTasTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('tas', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('name')->default('')->comment('指标名称');
$table->integer('level')->default('1')->comment('难度等级');
$table->string('city_id')->default('')->comment('市');
$table->string('province_id')->default('')->comment('省');
$table->string('year')->default('')->comment('年份');
$table->string('refer')->nullable()->comment('参考信源');
$table->longText('guide')->nullable()->comment('收集指南');
$table->decimal('price')->default('0.00')->comment('单价');
$table->tinyInteger('status')->default('0')->comment('任务状态');
$table->unsignedInteger('num')->default('2')->comment('可以被领取次数');
$table->longText('images')->nullable()->comment('图片地址url 多个逗号隔开');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('tas');
}
}
......@@ -12,7 +12,6 @@ namespace Dcat\Admin {
/**
* @property Grid\Column|Collection city_id
* @property Grid\Column|Collection guide
* @property Grid\Column|Collection created_at
* @property Grid\Column|Collection detail
* @property Grid\Column|Collection id
......@@ -47,6 +46,8 @@ namespace Dcat\Admin {
* @property Grid\Column|Collection uuid
* @property Grid\Column|Collection email
* @property Grid\Column|Collection token
* @property Grid\Column|Collection guide
* @property Grid\Column|Collection images
* @property Grid\Column|Collection level
* @property Grid\Column|Collection num
* @property Grid\Column|Collection price
......@@ -57,6 +58,7 @@ namespace Dcat\Admin {
* @property Grid\Column|Collection msg
* @property Grid\Column|Collection receive_id
* @property Grid\Column|Collection task_id
* @property Grid\Column|Collection time
* @property Grid\Column|Collection is_find
* @property Grid\Column|Collection net_img
* @property Grid\Column|Collection reality_refer
......@@ -64,15 +66,11 @@ namespace Dcat\Admin {
* @property Grid\Column|Collection remark
* @property Grid\Column|Collection amount
* @property Grid\Column|Collection pay_img
* @property Grid\Column|Collection time
* @property Grid\Column|Collection pay_confirm
* @property Grid\Column|Collection user_confirm
* @property Grid\Column|Collection area
* @property Grid\Column|Collection order_id
* @property Grid\Column|Collection email_verified_at
*
* @method Grid\Column|Collection city_id(string $label = null)
* @method Grid\Column|Collection guide(string $label = null)
* @method Grid\Column|Collection created_at(string $label = null)
* @method Grid\Column|Collection detail(string $label = null)
* @method Grid\Column|Collection id(string $label = null)
......@@ -107,6 +105,8 @@ namespace Dcat\Admin {
* @method Grid\Column|Collection uuid(string $label = null)
* @method Grid\Column|Collection email(string $label = null)
* @method Grid\Column|Collection token(string $label = null)
* @method Grid\Column|Collection guide(string $label = null)
* @method Grid\Column|Collection images(string $label = null)
* @method Grid\Column|Collection level(string $label = null)
* @method Grid\Column|Collection num(string $label = null)
* @method Grid\Column|Collection price(string $label = null)
......@@ -117,6 +117,7 @@ namespace Dcat\Admin {
* @method Grid\Column|Collection msg(string $label = null)
* @method Grid\Column|Collection receive_id(string $label = null)
* @method Grid\Column|Collection task_id(string $label = null)
* @method Grid\Column|Collection time(string $label = null)
* @method Grid\Column|Collection is_find(string $label = null)
* @method Grid\Column|Collection net_img(string $label = null)
* @method Grid\Column|Collection reality_refer(string $label = null)
......@@ -124,9 +125,6 @@ namespace Dcat\Admin {
* @method Grid\Column|Collection remark(string $label = null)
* @method Grid\Column|Collection amount(string $label = null)
* @method Grid\Column|Collection pay_img(string $label = null)
* @method Grid\Column|Collection time(string $label = null)
* @method Grid\Column|Collection pay_confirm(string $label = null)
* @method Grid\Column|Collection user_confirm(string $label = null)
* @method Grid\Column|Collection area(string $label = null)
* @method Grid\Column|Collection order_id(string $label = null)
* @method Grid\Column|Collection email_verified_at(string $label = null)
......@@ -137,7 +135,6 @@ namespace Dcat\Admin {
/**
* @property Show\Field|Collection city_id
* @property Show\Field|Collection guide
* @property Show\Field|Collection created_at
* @property Show\Field|Collection detail
* @property Show\Field|Collection id
......@@ -172,6 +169,8 @@ namespace Dcat\Admin {
* @property Show\Field|Collection uuid
* @property Show\Field|Collection email
* @property Show\Field|Collection token
* @property Show\Field|Collection guide
* @property Show\Field|Collection images
* @property Show\Field|Collection level
* @property Show\Field|Collection num
* @property Show\Field|Collection price
......@@ -182,6 +181,7 @@ namespace Dcat\Admin {
* @property Show\Field|Collection msg
* @property Show\Field|Collection receive_id
* @property Show\Field|Collection task_id
* @property Show\Field|Collection time
* @property Show\Field|Collection is_find
* @property Show\Field|Collection net_img
* @property Show\Field|Collection reality_refer
......@@ -189,15 +189,11 @@ namespace Dcat\Admin {
* @property Show\Field|Collection remark
* @property Show\Field|Collection amount
* @property Show\Field|Collection pay_img
* @property Show\Field|Collection time
* @property Show\Field|Collection pay_confirm
* @property Show\Field|Collection user_confirm
* @property Show\Field|Collection area
* @property Show\Field|Collection order_id
* @property Show\Field|Collection email_verified_at
*
* @method Show\Field|Collection city_id(string $label = null)
* @method Show\Field|Collection guide(string $label = null)
* @method Show\Field|Collection created_at(string $label = null)
* @method Show\Field|Collection detail(string $label = null)
* @method Show\Field|Collection id(string $label = null)
......@@ -232,6 +228,8 @@ namespace Dcat\Admin {
* @method Show\Field|Collection uuid(string $label = null)
* @method Show\Field|Collection email(string $label = null)
* @method Show\Field|Collection token(string $label = null)
* @method Show\Field|Collection guide(string $label = null)
* @method Show\Field|Collection images(string $label = null)
* @method Show\Field|Collection level(string $label = null)
* @method Show\Field|Collection num(string $label = null)
* @method Show\Field|Collection price(string $label = null)
......@@ -242,6 +240,7 @@ namespace Dcat\Admin {
* @method Show\Field|Collection msg(string $label = null)
* @method Show\Field|Collection receive_id(string $label = null)
* @method Show\Field|Collection task_id(string $label = null)
* @method Show\Field|Collection time(string $label = null)
* @method Show\Field|Collection is_find(string $label = null)
* @method Show\Field|Collection net_img(string $label = null)
* @method Show\Field|Collection reality_refer(string $label = null)
......@@ -249,9 +248,6 @@ namespace Dcat\Admin {
* @method Show\Field|Collection remark(string $label = null)
* @method Show\Field|Collection amount(string $label = null)
* @method Show\Field|Collection pay_img(string $label = null)
* @method Show\Field|Collection time(string $label = null)
* @method Show\Field|Collection pay_confirm(string $label = null)
* @method Show\Field|Collection user_confirm(string $label = null)
* @method Show\Field|Collection area(string $label = null)
* @method Show\Field|Collection order_id(string $label = null)
* @method Show\Field|Collection email_verified_at(string $label = null)
......
......@@ -674,7 +674,7 @@
/**
* 设置 Editor.md 的整体主题,主要是工具栏
* MsgSetting Editor.md theme
* Setting Editor.md theme
*
* @returns {editormd} 返回editormd的实例对象
*/
......@@ -693,7 +693,7 @@
/**
* 设置 CodeMirror(编辑区)的主题
* MsgSetting CodeMirror (Editor area) theme
* Setting CodeMirror (Editor area) theme
*
* @returns {editormd} 返回editormd的实例对象
*/
......@@ -727,7 +727,7 @@
/**
* 设置 Editor.md 的主题
* MsgSetting Editor.md theme
* Setting Editor.md theme
*
* @returns {editormd} 返回editormd的实例对象
*/
......
......@@ -604,7 +604,7 @@
/**
* 设置 Editor.md 的整体主题,主要是工具栏
* MsgSetting Editor.md theme
* Setting Editor.md theme
*
* @returns {editormd} 返回editormd的实例对象
*/
......@@ -623,7 +623,7 @@
/**
* 设置 CodeMirror(编辑区)的主题
* MsgSetting CodeMirror (Editor area) theme
* Setting CodeMirror (Editor area) theme
*
* @returns {editormd} 返回editormd的实例对象
*/
......@@ -657,7 +657,7 @@
/**
* 设置 Editor.md 的主题
* MsgSetting Editor.md theme
* Setting Editor.md theme
*
* @returns {editormd} 返回editormd的实例对象
*/
......
......@@ -592,7 +592,7 @@
/**
* 设置 Editor.md 的整体主题,主要是工具栏
* MsgSetting Editor.md theme
* Setting Editor.md theme
*
* @returns {editormd} 返回editormd的实例对象
*/
......@@ -611,7 +611,7 @@
/**
* 设置 CodeMirror(编辑区)的主题
* MsgSetting CodeMirror (Editor area) theme
* Setting CodeMirror (Editor area) theme
*
* @returns {editormd} 返回editormd的实例对象
*/
......@@ -645,7 +645,7 @@
/**
* 设置 Editor.md 的主题
* MsgSetting Editor.md theme
* Setting Editor.md theme
*
* @returns {editormd} 返回editormd的实例对象
*/
......
......@@ -46,7 +46,7 @@ return [
'online' => 'Online',
'login' => 'Login',
'logout' => 'Logout',
'setting' => 'MsgSetting',
'setting' => 'Setting',
'name' => 'Name',
'username' => 'Username',
'user' => 'User',
......
<?php
return [
'labels' => [
'Tas' => 'Tas',
'tas' => 'Tas',
],
'fields' => [
'name' => '指标名称',
'level' => '难度等级',
'city_id' => '市',
'province_id' => '省',
'year' => '年份',
'refer' => '参考信源',
'guide' => '收集指南',
'price' => '单价',
'status' => '任务状态',
'num' => '可以被领取次数',
'images' => '图片地址url 多个逗号隔开',
],
'options' => [
],
];
<div class="box-footer">
<div class="col-md-2 d-md-block" style="display: none"></div>
<div class="col-md-8">
<div class="btn-group pull-right">
<button class="btn btn-primary submit">
<i class="feather icon-save"></i>
提 交</button>
</div>
{{-- <div class="pull-right d-md-flex" style="margin:10px 15px 0 0;display: none"><div class="d-flex flex-wrap">--}}
{{-- <div class="vs-checkbox-con vs-checkbox-primary" style="margin-right: 16px">--}}
{{-- <input value="1" name="after-save" circle="1" type="checkbox" class=" Dcat_Admin_Widgets_Checkbox">--}}
{{-- <span class="vs-checkbox vs-checkbox-">--}}
{{-- <span class="vs-checkbox--check">--}}
{{-- <i class="vs-icon feather icon-check"></i>--}}
{{-- </span>--}}
{{-- </span>--}}
{{-- <span><span class="text-80 text-bold">继续编辑</span></span>--}}
{{-- </div>--}}
{{-- <div class="vs-checkbox-con vs-checkbox-primary" style="margin-right: 16px">--}}
{{-- <input value="3" name="after-save" circle="1" type="checkbox" class=" Dcat_Admin_Widgets_Checkbox">--}}
{{-- <span class="vs-checkbox vs-checkbox-">--}}
{{-- <span class="vs-checkbox--check">--}}
{{-- <i class="vs-icon feather icon-check"></i>--}}
{{-- </span>--}}
{{-- </span>--}}
{{-- <span><span class="text-80 text-bold">查看</span></span>--}}
{{-- </div>--}}
{{-- </div></div>--}}
<div class="btn-group pull-left">
<button type="reset" class="btn btn-white"><i class="feather icon-rotate-ccw"></i> 重置</button>
</div>
</div>
</div>
<script>
function jump(id){
remark = document.getElementById('remark-zbd').value
// console.log(remark)
if (remark == ''){
Dcat.error('备注信息不能为空')
}else {
window.location.href = '/notFind/'+id+'?remark='+remark
}
}
</script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment