|
...
|
...
|
@@ -194,19 +194,15 @@ class ExtensionModuleController extends BaseController |
|
|
|
}else{
|
|
|
|
if($this->user['project_id'] == 2205 && $this->param['module_id'] == 1){
|
|
|
|
if($v['field_id'] == 12 && (!empty($v['value']) && !empty($info['value']))){//下拉框数据
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($v, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
$filedModel = new ExtensionModuleField();
|
|
|
|
$fileInfo = $filedModel->read(['id'=>12]);//获取当前下拉框的数据
|
|
|
|
$statusData = json_decode($fileInfo['data'],true);
|
|
|
|
$status_data = [];
|
|
|
|
$number = 1;
|
|
|
|
foreach ($statusData as $v){
|
|
|
|
$status_data[$v] = $number;
|
|
|
|
foreach ($statusData as $value){
|
|
|
|
$status_data[$value] = $number;
|
|
|
|
$number++;
|
|
|
|
}
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($status_data, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($info['value'], true) . PHP_EOL, FILE_APPEND);
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($v['value'], true) . PHP_EOL, FILE_APPEND);
|
|
|
|
if($status_data[$info['value']] > $status_data[$v['value']]){
|
|
|
|
$this->fail('流程控制只能往下选择');
|
|
|
|
}
|
...
|
...
|
|