forked from xxhjsb/hbt-prevention-ui
feat:样式修改link
parent
895595179f
commit
27f301b8ed
|
@ -755,7 +755,7 @@ export default class HiddenDangerManagerComponent extends BaseRecordComponent<an
|
||||||
this.tableColumn.push({
|
this.tableColumn.push({
|
||||||
name: '隐患标题', width: "150", render: (data) => {
|
name: '隐患标题', width: "150", render: (data) => {
|
||||||
if (this.params.type == 1) {
|
if (this.params.type == 1) {
|
||||||
return `<span class="link">${data.title || '未命名'}</span>`
|
return `<span class="text_link">${data.title || '未命名'}</span>`
|
||||||
} else {
|
} else {
|
||||||
return data.title
|
return data.title
|
||||||
}
|
}
|
||||||
|
@ -773,7 +773,7 @@ export default class HiddenDangerManagerComponent extends BaseRecordComponent<an
|
||||||
}
|
}
|
||||||
|
|
||||||
public rowCallback(el, data) {
|
public rowCallback(el, data) {
|
||||||
const isTarget = el.target.classList.contains("link");
|
const isTarget = el.target.classList.contains("text_link");
|
||||||
if (isTarget) {
|
if (isTarget) {
|
||||||
if (data.status === 2) {
|
if (data.status === 2) {
|
||||||
const dateJudge = moment().format("YYYY-MM-DD HH:mm") > data.reformDeadline ? true : false;
|
const dateJudge = moment().format("YYYY-MM-DD HH:mm") > data.reformDeadline ? true : false;
|
||||||
|
|
|
@ -857,7 +857,7 @@ export default class RulesManagerComponent extends BaseRecordComponent<any> {
|
||||||
}
|
}
|
||||||
|
|
||||||
public rowCallback(el, data) {
|
public rowCallback(el, data) {
|
||||||
const isTarget = el.target.classList.contains("link");
|
const isTarget = el.target.classList.contains("text_link");
|
||||||
if (isTarget) {
|
if (isTarget) {
|
||||||
this.hideActions = true;
|
this.hideActions = true;
|
||||||
this.openRecordModel(data, true)
|
this.openRecordModel(data, true)
|
||||||
|
|
|
@ -270,7 +270,7 @@ export default class IntegralExchangeRecord extends BaseRecordComponent<any> {
|
||||||
this.tableColumn.push({ name: '审批时间', key: "approvalTime", });
|
this.tableColumn.push({ name: '审批时间', key: "approvalTime", });
|
||||||
this.tableColumn.push({
|
this.tableColumn.push({
|
||||||
name: '兑换清单', key: "goodsNumber", render: (data) => {
|
name: '兑换清单', key: "goodsNumber", render: (data) => {
|
||||||
return `<span class="link">${data.goodsNumber}</span>`
|
return `<span class="text_link">${data.goodsNumber}</span>`
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.tableColumn.push({ name: '消耗积分', key: "consumePoints", });
|
this.tableColumn.push({ name: '消耗积分', key: "consumePoints", });
|
||||||
|
@ -385,7 +385,7 @@ export default class IntegralExchangeRecord extends BaseRecordComponent<any> {
|
||||||
}
|
}
|
||||||
|
|
||||||
public rowCallback(el, data) {
|
public rowCallback(el, data) {
|
||||||
const isTarget = el.target.classList.contains("link");
|
const isTarget = el.target.classList.contains("text_link");
|
||||||
if (isTarget) {
|
if (isTarget) {
|
||||||
this.exchangeService.getListDetail({ id: data.id }).then((res: any) => {
|
this.exchangeService.getListDetail({ id: data.id }).then((res: any) => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
|
|
|
@ -221,7 +221,7 @@ export default class SelfAssessment extends BaseRecordComponent<any> {
|
||||||
this.tableColumn.push({
|
this.tableColumn.push({
|
||||||
name: '线下评审记录', key: "resourceName", showTip: true, render: (data) => {
|
name: '线下评审记录', key: "resourceName", showTip: true, render: (data) => {
|
||||||
if (data.resourceName) {
|
if (data.resourceName) {
|
||||||
return `<span class="link">${data.resourceName}</span>`
|
return `<span class="text_link">${data.resourceName}</span>`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -321,7 +321,7 @@ export default class SelfAssessment extends BaseRecordComponent<any> {
|
||||||
}
|
}
|
||||||
|
|
||||||
public showDetails(el, row) {
|
public showDetails(el, row) {
|
||||||
const isTarget = el.target.classList.contains("link");
|
const isTarget = el.target.classList.contains("text_link");
|
||||||
if (isTarget) {
|
if (isTarget) {
|
||||||
if (row.resourceId) {
|
if (row.resourceId) {
|
||||||
this.tableService.getFileUrls({ ids: row.resourceId.split(",") }).then((files: any) => {
|
this.tableService.getFileUrls({ ids: row.resourceId.split(",") }).then((files: any) => {
|
||||||
|
|
|
@ -351,7 +351,7 @@ export default class DeviceManagerComponent extends BaseRecordComponent<any> {
|
||||||
}
|
}
|
||||||
|
|
||||||
public showPros(el, data) {
|
public showPros(el, data) {
|
||||||
const isTarget = el.target.classList.contains("link");
|
const isTarget = el.target.classList.contains("text_link");
|
||||||
if (isTarget) {
|
if (isTarget) {
|
||||||
this.currentId = data.id;
|
this.currentId = data.id;
|
||||||
this.tableService.selectProjectByPage({ deviceInventoryId: this.currentId }).then((res: any) => {
|
this.tableService.selectProjectByPage({ deviceInventoryId: this.currentId }).then((res: any) => {
|
||||||
|
|
|
@ -763,7 +763,7 @@ export default class DeviceAnalManagerComponent extends BaseRecordComponent<any>
|
||||||
}
|
}
|
||||||
//检查项目
|
//检查项目
|
||||||
public showPros(el, data) {
|
public showPros(el, data) {
|
||||||
const isTarget = el.target.classList.contains("link");
|
const isTarget = el.target.classList.contains("text_link");
|
||||||
if (isTarget) {
|
if (isTarget) {
|
||||||
this.showProtable = true;
|
this.showProtable = true;
|
||||||
this.tableService.selectProjectById({ deviceAnalId: data.id }).then((res: any) => {
|
this.tableService.selectProjectById({ deviceAnalId: data.id }).then((res: any) => {
|
||||||
|
|
|
@ -388,7 +388,7 @@ export default class WorkManagerComponent extends BaseRecordComponent<any> {
|
||||||
|
|
||||||
//作业步骤
|
//作业步骤
|
||||||
public showSteps(el, data) {
|
public showSteps(el, data) {
|
||||||
const isTarget = el.target.classList.contains("link");
|
const isTarget = el.target.classList.contains("text_link");
|
||||||
if (isTarget) {
|
if (isTarget) {
|
||||||
this.showSteptable = true;
|
this.showSteptable = true;
|
||||||
this.tableService.getListDetail({ id: data.id }).then((res: any) => {
|
this.tableService.getListDetail({ id: data.id }).then((res: any) => {
|
||||||
|
|
|
@ -767,7 +767,7 @@ export default class WorkAnalManagerComponent extends BaseRecordComponent<any> {
|
||||||
}
|
}
|
||||||
//作业步骤
|
//作业步骤
|
||||||
public showPros(el, data) {
|
public showPros(el, data) {
|
||||||
const isTarget = el.target.classList.contains("link");
|
const isTarget = el.target.classList.contains("text_link");
|
||||||
if (isTarget) {
|
if (isTarget) {
|
||||||
this.seriousResultMap = this.$store.getters.prevention_serious_result_map;
|
this.seriousResultMap = this.$store.getters.prevention_serious_result_map;
|
||||||
this.riskLevelMap = this.$store.getters.prevention_risk_level_map;
|
this.riskLevelMap = this.$store.getters.prevention_risk_level_map;
|
||||||
|
|
|
@ -226,7 +226,7 @@ export default class MeasuresManagerComponent extends BaseRecordComponent<any> {
|
||||||
|
|
||||||
//管控措施
|
//管控措施
|
||||||
public showPros(el, data) {
|
public showPros(el, data) {
|
||||||
const isTarget = el.target.classList.contains("link");
|
const isTarget = el.target.classList.contains("text_link");
|
||||||
if (isTarget) {
|
if (isTarget) {
|
||||||
this.tableService.selectDetailById({ measureInventoryId: data.id }).then((res: any) => {
|
this.tableService.selectDetailById({ measureInventoryId: data.id }).then((res: any) => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
|
|
|
@ -271,7 +271,7 @@ export default class SafeCard extends BaseRecordComponent<any> {
|
||||||
this.tableColumn.push({
|
this.tableColumn.push({
|
||||||
name: '附件', key: "resourceName", showTip: true, width: "300px", render: (data) => {
|
name: '附件', key: "resourceName", showTip: true, width: "300px", render: (data) => {
|
||||||
if (data.resourceName) {
|
if (data.resourceName) {
|
||||||
return `<span class="link">${data.resourceName}</span>`
|
return `<span class="text_link">${data.resourceName}</span>`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -494,7 +494,7 @@ export default class SafeCard extends BaseRecordComponent<any> {
|
||||||
|
|
||||||
//处理任务
|
//处理任务
|
||||||
public rowCallback(el, data) {
|
public rowCallback(el, data) {
|
||||||
const isTarget = el.target.classList.contains("link");
|
const isTarget = el.target.classList.contains("text_link");
|
||||||
if (isTarget) {
|
if (isTarget) {
|
||||||
if (data.resourceId) {
|
if (data.resourceId) {
|
||||||
this.tableService.getFileUrls({ ids: data.resourceId.split(",") }).then((files: any) => {
|
this.tableService.getFileUrls({ ids: data.resourceId.split(",") }).then((files: any) => {
|
||||||
|
|
|
@ -279,7 +279,7 @@ export default class ManagementSystem extends BaseRecordComponent<any> {
|
||||||
this.tableColumn.push({
|
this.tableColumn.push({
|
||||||
name: '附件', width: "300px", key: "resourceName", showTip: true, render: (data) => {
|
name: '附件', width: "300px", key: "resourceName", showTip: true, render: (data) => {
|
||||||
if (data.resourceName) {
|
if (data.resourceName) {
|
||||||
return `<span class="link">${data.resourceName}</span>`
|
return `<span class="text_link">${data.resourceName}</span>`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -513,7 +513,7 @@ export default class ManagementSystem extends BaseRecordComponent<any> {
|
||||||
|
|
||||||
//查看附件
|
//查看附件
|
||||||
public showDetails(el, data) {
|
public showDetails(el, data) {
|
||||||
const isTarget = el.target.classList.contains("link");
|
const isTarget = el.target.classList.contains("text_link");
|
||||||
if (isTarget) {
|
if (isTarget) {
|
||||||
if (data.resourceId) {
|
if (data.resourceId) {
|
||||||
this.tableService.getFileUrls({ ids: data.resourceId.split(",") }).then((files: any) => {
|
this.tableService.getFileUrls({ ids: data.resourceId.split(",") }).then((files: any) => {
|
||||||
|
|
|
@ -302,7 +302,7 @@ export default class Programme extends BaseRecordComponent<any> {
|
||||||
this.tableColumn.push({
|
this.tableColumn.push({
|
||||||
name: '附件', width: "300px", key: "resourceName", showTip: true, render: (data) => {
|
name: '附件', width: "300px", key: "resourceName", showTip: true, render: (data) => {
|
||||||
if (data.resourceName) {
|
if (data.resourceName) {
|
||||||
return `<span class="link">${data.resourceName}</span>`
|
return `<span class="text_link">${data.resourceName}</span>`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -526,7 +526,7 @@ export default class Programme extends BaseRecordComponent<any> {
|
||||||
|
|
||||||
//查看附件
|
//查看附件
|
||||||
public showDetails(el, data) {
|
public showDetails(el, data) {
|
||||||
const isTarget = el.target.classList.contains("link");
|
const isTarget = el.target.classList.contains("text_link");
|
||||||
if (isTarget) {
|
if (isTarget) {
|
||||||
if (data.resourceId) {
|
if (data.resourceId) {
|
||||||
this.tableService.getFileUrls({ ids: data.resourceId.split(",") }).then((files: any) => {
|
this.tableService.getFileUrls({ ids: data.resourceId.split(",") }).then((files: any) => {
|
||||||
|
|
Loading…
Reference in New Issue