参数替换

main
limingtao 11 months ago
parent 905bd8dfdd
commit cf163012ee
  1. 32
      pages/investigation/components/investigation-item2.vue
  2. 2
      pages/investigation/task.vue

@ -114,7 +114,7 @@
item.fileList = []; item.fileList = [];
} }
switch ( switch (
item.type item.type
) { ) {
// case "1": // case "1":
@ -131,7 +131,10 @@
let arr = item.standar.split(',') let arr = item.standar.split(',')
for (let itm of arr) { for (let itm of arr) {
if (itm) { if (itm) {
item.fileList.push({ url: itm, name: '' }) item.fileList.push({
url: itm,
name: ''
})
} }
} }
@ -172,7 +175,10 @@
console.log(arr, 4343242342423) console.log(arr, 4343242342423)
for (let item of arr) { for (let item of arr) {
if (item) { if (item) {
this.fileList.push({ url: item, name: '' }) this.fileList.push({
url: item,
name: ''
})
} }
} }
@ -187,7 +193,7 @@
} }
}, },
// //
onShow() { }, onShow() {},
// //
computed: {}, computed: {},
// //
@ -201,7 +207,7 @@
len = !len ? 36 : len; len = !len ? 36 : len;
binary = !binary ? 16 : binary; binary = !binary ? 16 : binary;
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx" return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"
.replace(/[xy]/g, function (c) { .replace(/[xy]/g, function(c) {
var r = (Math.random() * binary) | 0, var r = (Math.random() * binary) | 0,
v = c == "x" ? r : (r & 0x3) | 0x8; v = c == "x" ? r : (r & 0x3) | 0x8;
return v.toString(binary); return v.toString(binary);
@ -313,11 +319,12 @@
this.$emit("change", this.formData); this.$emit("change", this.formData);
}, },
getData2() { getData2() {
console.log(this.$props.json)
this.$request this.$request
.globalRequest( .globalRequest(
"/hiddenDanger/highDanger/getImportDangerInfo", "/hiddenDanger/highDanger/getImportDangerInfo", {
{ // sid: this.$props.json.nid,
sid: this.$props.json.nid, dangerId: this.$props.json.id,
}, },
"GET" "GET"
) )
@ -351,8 +358,7 @@
getData() { getData() {
this.$request this.$request
.globalRequest( .globalRequest(
"/hiddenDanger/highDanger/getImportDangerDisplayDetail", "/hiddenDanger/highDanger/getImportDangerDisplayDetail", {
{
dangerId: this.$props.json.id, dangerId: this.$props.json.id,
businessId: this.$props.businessId, businessId: this.$props.businessId,
}, },
@ -416,9 +422,9 @@
}); });
}, },
}, },
onReady() { }, onReady() {},
// //
onUnload() { }, onUnload() {},
// //
onPullDownRefresh() { onPullDownRefresh() {
// //
@ -427,7 +433,7 @@
}, 1500); }, 1500);
}, },
// //
onReachBottom() { }, onReachBottom() {},
}; };
</script> </script>

@ -590,7 +590,7 @@
}, },
showInvestigationTag2(v) { showInvestigationTag2(v) {
console.log(v, this.investigationSelectList) // console.log(v, this.investigationSelectList)
if (this.checked.includes(v.id)) { if (this.checked.includes(v.id)) {
this.showInvestigation2 = true; this.showInvestigation2 = true;
this.showInvestigation2Item = v this.showInvestigation2Item = v

Loading…
Cancel
Save