dcat-distpicker icon indicating copy to clipboard operation
dcat-distpicker copied to clipboard

1.7.8 import 失败。。

Open CNshwfz01a opened this issue 4 years ago • 1 comments

9{OA_(ZK8PUZHZT_JDTW0ET 如图 dcat 1.7.8

CNshwfz01a avatar Jan 07 '21 05:01 CNshwfz01a

i use dcat-admin v 2.2.2-beta

  1. download from https://github.com/super-eggs/dcat-distpicker/archive/refs/heads/master.zip
  2. upload to extension list ( admin/auth/extensions )
  3. upgrade to version 2.1.1 and enable it
  4. may be you need to create table "china_area", with structure as this "CREATE TABLE china_area ( id INT NOT NULL AUTO_INCREMENT, parent_id INT NOT NULL DEFAULT '0', code VARCHAR(10) NOT NULL, name VARCHAR(191) NOT NULL, sulg VARCHAR(255) NULL DEFAULT NULL COMMENT 'Url 简称', level TINYINT UNSIGNED NOT NULL DEFAULT '0' COMMENT '层级', parent_code CHAR(6) NOT NULL DEFAULT '0' COMMENT '父级 code', PRIMARY KEY (id), UNIQUE INDEX china_area_code_unique (code) ) COLLATE='utf8_general_ci' ENGINE=InnoDB AUTO_INCREMENT=3741 ;"
  5. use it on controller, : use SuperEggs\DcatDistpicker\DcatDistpickerHelper;
  6. on form function : $form->distpicker(['province_id', 'city_id', 'district_id']);

iqbal-it avatar Sep 05 '22 12:09 iqbal-it