Commit e98e2873 by 高源

采集表界面搭建完善

parent afb96735
......@@ -847,7 +847,7 @@ export default {
.toolkitcontain th,
.toolkitcontain td,
.toolkitcontain tr {
border: 1px solid rgb(78, 78, 78) !important;
/* border: 1px solid rgb(78, 78, 78) !important; */
height: 25px !important;
width: 100px !important;
text-align: center !important;
......@@ -905,11 +905,11 @@ export default {
z-index: 99999 !important;
}
.vxe-table--render-default .vxe-body--column:not(.col--ellipsis),
/* .vxe-table--render-default .vxe-body--column:not(.col--ellipsis),
.vxe-table--render-default .vxe-footer--column:not(.col--ellipsis),
.vxe-table--render-default .vxe-header--column:not(.col--ellipsis) {
padding: 2px 0 !important;
}
} */
.item {
padding: 6px;
......
......@@ -14,9 +14,9 @@ function table () {
* 新生成一个单元格
* @param {any} xpath
*/
this.newCell = function (xpath,name) {
this.newCell = function (xpath,name,type,title) {
_isVerified = false;//加入了
let newCell = new cell(xpath,name);
let newCell = new cell(xpath,name,type,title);
this.cells.push(newCell);
}
/**
......@@ -102,7 +102,7 @@ function table () {
* @param {string} type 元素取值类型,文本,链接,元素路径(点击动作用)
* @param {string} title 标题信息
*/
function cell (xpath, name , type = "", title = "") {
function cell (xpath, name , type , title ) {
/**当前单元格的绝对路径,存入Action时有用 */
this.xpath = xpath;
/**当前单元格存储数据时的属性名 */
......@@ -167,7 +167,7 @@ function cell (xpath, name , type = "", title = "") {
let cellXpath = this.tableXpath + "[" + index + "]" + '/' + this.relativeXpath;
let results = document.evaluate(cellXpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null);
if (!!results.singleNodeValue) {
result[this.name] = results.singleNodeValue.innerText;
result[this.name] = results.singleNodeValue[this.type];
}
};
return this;//返回当前对象
......
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