生(shēng)成關聯信息結構(TABLE)

## 接口名稱 生(shēng)成關聯信息數(shù)據結構(TABLE) ## 接口描述 生(shēng)成TABLE數(shù)據類型的關聯信息,返回關聯信息的的JSON數(shù)據。 ## 接口地址 https://idr.gdsinsing.com/handle/tools/create-data-table ## 調用方式 |方法|數(shù)據類型| |-|-| |[ ] GET|[ ] form-data| |[X] POST|[X] x-www-form-urlencoded| |[ ] PUT|[ ] raw| |[ ] DELETE|| ## 參數(shù)說明(míng) |參數(shù)名|數(shù)據類型|說明(míng)| |-|-|-| |label|String|标簽(可(kě)選)| |heads|Array|表頭(數(shù)組,必填)| |rows|Array|表格行(xíng)內(nèi)容(數(shù)組,必填)| |index|String|标識索引号(可(kě)選)| |pindex|String|父标識索引号(可(kě)選)| |index|String|标識索引号(可(kě)選)| ## 返回結果 #### 成功返回 ```JavaScript { "success": true, "data": { "index": 0, "type": "TABLE", "data": { "format": "string", "value": "{\"pindex\":0,\"key\":\"\",\"cipher\":0,\"label\":\"test-lable\",\"value\":[[\"屬性01\",\"屬性02\",\"屬性03\"],[\"行(xíng)1-01\",\"行(xíng)1-02\",\"行(xíng)1-03\"],[\"行(xíng)2-01\",\"行(xíng)2-02\",\"行(xíng)2-03\"]]}" } }, "msg": "", "ex": null } ``` #### 失敗返回 ```JavaScript { "success": false, "data": null, "msg": "value不能為(wèi)空(kōng)", "ex": { "code": "00300000", "reason": "value不能為(wèi)空(kōng)", "resolve": "請(qǐng)與系統管理(lǐ)員聯系。" } } ``` ## 調用例子 ``` JavaScript var settings = { "url": "https://idr.gdsinsing.com/handle/tools/create-data-table", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/x-www-form-urlencoded" }, "data": { "label": "test-lable", "heads": "[\"屬性01\",\"屬性02\",\"屬性03\"]", "rows": "[[\"行(xíng)1-01\",\"行(xíng)1-02\",\"行(xíng)1-03\"],[\"行(xíng)2-01\",\"行(xíng)2-02\",\"行(xíng)2-03\"]]", "index": "", "pindex": "", "key": "" } }; $.ajax(settings).done(function (response) { console.log(response); }); ```