Commit 3985a700 by liupeng

Merge branch 'dev_xzeq' of http://47.92.108.28/changchao/founder_vue into dev_xzeq

parents 863ae343 87b8b0b0
...@@ -1825,37 +1825,6 @@ ...@@ -1825,37 +1825,6 @@
"webpack-merge": "^4.2.2" "webpack-merge": "^4.2.2"
}, },
"dependencies": { "dependencies": {
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"debug": { "debug": {
"version": "4.2.0", "version": "4.2.0",
"resolved": "https://registry.npm.taobao.org/debug/download/debug-4.2.0.tgz?cache=0&sync_timestamp=1600502871403&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdebug%2Fdownload%2Fdebug-4.2.0.tgz", "resolved": "https://registry.npm.taobao.org/debug/download/debug-4.2.0.tgz?cache=0&sync_timestamp=1600502871403&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdebug%2Fdownload%2Fdebug-4.2.0.tgz",
...@@ -1865,35 +1834,11 @@ ...@@ -1865,35 +1834,11 @@
"ms": "2.1.2" "ms": "2.1.2"
} }
}, },
"loader-utils": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz",
"integrity": "sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==",
"dev": true,
"optional": true,
"requires": {
"big.js": "^5.2.2",
"emojis-list": "^3.0.0",
"json5": "^2.1.2"
}
},
"ms": { "ms": {
"version": "2.1.2", "version": "2.1.2",
"resolved": "https://registry.npm.taobao.org/ms/download/ms-2.1.2.tgz", "resolved": "https://registry.npm.taobao.org/ms/download/ms-2.1.2.tgz",
"integrity": "sha1-0J0fNXtEP0kzgqjrPM0YOHKuYAk=", "integrity": "sha1-0J0fNXtEP0kzgqjrPM0YOHKuYAk=",
"dev": true "dev": true
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.5.0",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.5.0.tgz",
"integrity": "sha512-WXh+7AgFxGTgb5QAkQtFeUcHNIEq3PGVQ8WskY5ZiFbWBkOwcCPRs4w/2tVyTbh2q6TVRlO3xfvIukUtjsu62A==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
}
} }
} }
}, },
...@@ -12211,6 +12156,63 @@ ...@@ -12211,6 +12156,63 @@
} }
} }
}, },
"vue-loader-v16": {
"version": "npm:vue-loader@16.5.0",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.5.0.tgz",
"integrity": "sha512-WXh+7AgFxGTgb5QAkQtFeUcHNIEq3PGVQ8WskY5ZiFbWBkOwcCPRs4w/2tVyTbh2q6TVRlO3xfvIukUtjsu62A==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
},
"dependencies": {
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"loader-utils": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz",
"integrity": "sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==",
"dev": true,
"optional": true,
"requires": {
"big.js": "^5.2.2",
"emojis-list": "^3.0.0",
"json5": "^2.1.2"
}
}
}
},
"vue-router": { "vue-router": {
"version": "3.4.6", "version": "3.4.6",
"resolved": "https://registry.npm.taobao.org/vue-router/download/vue-router-3.4.6.tgz?cache=0&sync_timestamp=1602077426782&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fvue-router%2Fdownload%2Fvue-router-3.4.6.tgz", "resolved": "https://registry.npm.taobao.org/vue-router/download/vue-router-3.4.6.tgz?cache=0&sync_timestamp=1602077426782&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fvue-router%2Fdownload%2Fvue-router-3.4.6.tgz",
......
...@@ -3,10 +3,24 @@ import axios from "axios"; ...@@ -3,10 +3,24 @@ import axios from "axios";
import { Message, MessageBox } from "element-ui"; import { Message, MessageBox } from "element-ui";
import qs from "qs"; import qs from "qs";
var arr = document.cookie.split("; ");
let userToken = "";
let appToken = "";
arr.forEach((item) => {
if (item.includes("userToken")) {
userToken = item.split("userToken")[1];
}
if (item.includes("appToken")) {
appToken = item.split("appToken")[1];
}
});
debugger
axios.defaults.timeout = 0; axios.defaults.timeout = 0;
axios.defaults.headers = { axios.defaults.headers = {
"X-Requested-With": "XMLHttpRequest", "X-Requested-With": "XMLHttpRequest",
"authorization": "Basic c2FiZXI6c2FiZXJfc2VjcmV0" "authorization": "Basic c2FiZXI6c2FiZXJfc2VjcmV0",
"token": userToken,
"appToken": appToken,
}; };
axios.defaults.responseType = "json"; axios.defaults.responseType = "json";
// axios.defaults.withCredentials = true; // axios.defaults.withCredentials = true;
...@@ -14,14 +28,18 @@ axios.defaults.responseType = "json"; ...@@ -14,14 +28,18 @@ axios.defaults.responseType = "json";
var instance = axios.create({ var instance = axios.create({
headers: { headers: {
"content-type": "multipart/form-data", "content-type": "multipart/form-data",
"authorization": "Basic c2FiZXI6c2FiZXJfc2VjcmV0" "authorization": "Basic c2FiZXI6c2FiZXJfc2VjcmV0",
"token": userToken,
"appToken": appToken,
} }
}); });
var json = axios.create({ var json = axios.create({
headers: { headers: {
"content-type": "application/json", "content-type": "application/json",
"authorization": "Basic c2FiZXI6c2FiZXJfc2VjcmV0" "authorization": "Basic c2FiZXI6c2FiZXJfc2VjcmV0",
"token": userToken,
"appToken": appToken,
} }
}); });
...@@ -39,7 +57,6 @@ axios.interceptors.request.use( ...@@ -39,7 +57,6 @@ axios.interceptors.request.use(
config.headers["Content-Type"] = "application/x-www-form-urlencoded"; config.headers["Content-Type"] = "application/x-www-form-urlencoded";
let token = sessionStorage.getItem("token") let token = sessionStorage.getItem("token")
if (config.url.indexOf("/api/blade-auth/token") === -1) { if (config.url.indexOf("/api/blade-auth/token") === -1) {
config.headers["blade-auth"] = token; config.headers["blade-auth"] = token;
} }
......
...@@ -30,26 +30,6 @@ export default { ...@@ -30,26 +30,6 @@ export default {
index: 0, index: 0,
data: [ data: [
{ {
name: "任务名称:",
id: "rwmc",
type: "text",
prop: "checkEmpty",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "任务类型:",
id: "rwlxdm",
type: "codeTree",
prop: "checkEmpty",
value: "",
placeholder: "请选择",
col: "2",
codeOptions: [],
codeTree: "CODE_XSJSBD_RWLXDM",
},
{
name: "案件编号:", name: "案件编号:",
id: "asjbh", id: "asjbh",
type: "textTq", type: "textTq",
...@@ -68,6 +48,9 @@ export default { ...@@ -68,6 +48,9 @@ export default {
col: "2", col: "2",
}, },
{ {
col: "2",
},
{
name: "录入时间:", name: "录入时间:",
id: "asjfssjKssj", id: "asjfssjKssj",
type: "dates", type: "dates",
...@@ -88,24 +71,46 @@ export default { ...@@ -88,24 +71,46 @@ export default {
codeOptions: [], codeOptions: [],
codeTree: "CODE_AJLB", codeTree: "CODE_AJLB",
}, },
{
col: "2",
},
{ {
name: "简要案情:", name: "简要案情:",
id: "jyaq", id: "jyaq",
type: "text", type: "textarea",
prop: "checkEmpty", prop: "checkEmpty",
value: "", value: "",
placeholder: "请输入", placeholder: "请输入",
col: "3",
},
{
col: "2", col: "2",
}, },
{ {
name: "任务描述:", name: "任务名称:",
id: "rwxq", id: "rwmc",
type: "text", type: "text",
prop: "checkEmpty",
value: "", value: "",
placeholder: "请输入", placeholder: "请输入",
col: "2", col: "2",
}, },
{ {
name: "任务类型:",
id: "rwlxdm",
type: "codeTree",
prop: "checkEmpty",
value: "",
placeholder: "请选择",
col: "2",
codeOptions: [],
codeTree: "CODE_XSJSBD_RWLXDM",
},
{
col: "2",
},
{
name: "接收人姓名:", name: "接收人姓名:",
id: "jsrXm", id: "jsrXm",
type: "setValue", type: "setValue",
...@@ -115,12 +120,23 @@ export default { ...@@ -115,12 +120,23 @@ export default {
col: "2", col: "2",
}, },
{ {
col: "2",
},
{
name: "任务描述:",
id: "rwxq",
type: "textarea",
value: "",
placeholder: "请输入",
col: "3",
},
{
name: "图片列表:", name: "图片列表:",
id: "picList", id: "picList",
type: "file", type: "file",
value: "", value: "",
requestUrl: "/flwsFj/tbstasjflwsCj/save", requestUrl: "/flwsFj/tbstasjflwsCj/save",
col: "11", col: "1",
acceptType: "image/jpeg,image/gif,image/png", acceptType: "image/jpeg,image/gif,image/png",
}, },
{ {
...@@ -129,7 +145,7 @@ export default { ...@@ -129,7 +145,7 @@ export default {
type: "file", type: "file",
value: "", value: "",
requestUrl: "/flwsFj/tbstasjflwsCj/save", requestUrl: "/flwsFj/tbstasjflwsCj/save",
col: "11", col: "1",
acceptType: "image/jpeg,image/gif,image/png", acceptType: "image/jpeg,image/gif,image/png",
}, },
], ],
...@@ -138,23 +154,6 @@ export default { ...@@ -138,23 +154,6 @@ export default {
formLabelAlign: { formLabelAlign: {
// lrsj: this.$moment().format("YYYY-MM-DD HH:mm:ss"), // lrsj: this.$moment().format("YYYY-MM-DD HH:mm:ss"),
}, },
Breadcrumb: [
{
name: "号码线索管理",
to: "/hmxsGl",
isActive: false,
},
{
name: "号码线索管理",
to: "/hmxsGl",
isActive: false,
},
{
name: "新增号码线索",
to: "/addHmxs",
isActive: true,
},
],
jsrList: [], jsrList: [],
}; };
}, },
...@@ -168,13 +167,6 @@ export default { ...@@ -168,13 +167,6 @@ export default {
self.propFormField[0].data.forEach((fieldItem) => { self.propFormField[0].data.forEach((fieldItem) => {
//遍历配置文件,拿到数据返回来的xs实体。 //遍历配置文件,拿到数据返回来的xs实体。
var fieldVale; var fieldVale;
// if (entityName) {
// if (result[entityName] && fieldItem.id) {
// fieldVale = result[entityName][fieldItem.id];
// } else {
// fieldVale = result[fieldItem.id];
// }
// }
if (fieldItem.type == "file") { if (fieldItem.type == "file") {
self.$set(self.formLabelAlign, fieldItem.id, []); self.$set(self.formLabelAlign, fieldItem.id, []);
if (result[fieldItem.id]) { if (result[fieldItem.id]) {
...@@ -200,29 +192,95 @@ export default { ...@@ -200,29 +192,95 @@ export default {
}); });
}, },
submit(params) { submit(params) {
debugger; let self = this;
let loading = this.$loading({ let loading = this.$loading({
lock: true, lock: true,
text: "正在保存...", text: "正在保存...",
spinner: "el-icon-loading", spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)", background: "rgba(255, 255, 255, 0.7)",
}); });
addBdrw(params) let str = this.formLabelAlign.rwlxdm;
.then((res) => { if (str == "01" || str == "02") {
debugger; debugger
// this.$message.success("保存成功"); if (self.formLabelAlign.picList.length > 0) {
this.$alert("保存成功!", "提示", { addBdrw(params)
confirmButtonText: "确定", .then((res) => {
type: "success", debugger;
// callback: () => { this.$alert("保存成功!", "提示", {
// this.$router.push("hmxsGl"); confirmButtonText: "确定",
// loading.close(); type: "success",
// }, callback: () => {
}); this.$router.push("queryRwbd");
}) loading.close();
.catch((res) => { },
loading.close(); });
}); })
.catch((res) => {
loading.close();
});
} else {
self
.$confirm("请上传图片", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
loading.close();
});
}
} else if (str == "04") {
if (
self.formLabelAlign.picList.length > 0 &&
self.formLabelAlign.videoList.length > 0
) {
addBdrw(params)
.then((res) => {
debugger;
self
.$confirm("保存成功", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "success",
})
.then(() => {
self.$router.push("queryRwbd");
loading.close();
});
})
.catch((res) => {
loading.close();
});
} else {
self
.$confirm("请上传图片和视频", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
loading.close();
});
}
}else{
addBdrw(params)
.then((res) => {
debugger;
self
.$confirm("保存成功", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "success",
})
.then(() => {
self.$router.push("queryRwbd");
loading.close();
});
})
.catch((res) => {
loading.close();
});
}
}, },
getJsr(val) { getJsr(val) {
let type = ""; let type = "";
...@@ -245,16 +303,15 @@ export default { ...@@ -245,16 +303,15 @@ export default {
arr.push({ arr.push({
label: item.trueName, label: item.trueName,
value: item.identitycard, value: item.identitycard,
unitname: item.unitname, jsrDwmc: item.unitname,
unitcode: item.unitcode, jsrDwdm: item.unitcode,
}); });
}); });
self.$set(self.propFormField[0].data[8], "codeOptions", arr); self.$set(self.propFormField[0].data[11], "codeOptions", arr);
}); });
}, },
}, },
created() { created() {
this.$store.commit("user/SET_Breadcrumb", this.Breadcrumb);
this.getJsr(); this.getJsr();
}, },
watch: { watch: {
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-09-11 10:30:42 * @Date: 2021-09-11 10:30:42
* @LastEditTime: 2021-09-11 18:58:10 * @LastEditTime: 2021-09-13 11:12:19
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \founder_vue\src\views\xsjsdb\detailRwbd.vue * @FilePath: \founder_vue\src\views\xsjsdb\detailRwbd.vue
...@@ -19,33 +19,44 @@ ...@@ -19,33 +19,44 @@
<div <div
:class="'col' + item.col" :class="'col' + item.col"
v-for="item in thanTheTaskProps" v-for="item in thanTheTaskProps"
v-show="
thanTaskData['sfqsPdbz'] == '1' ||
(item.prop !== 'qssj' && item.prop !== 'fksj')
"
:key="item.prop" :key="item.prop"
> >
<span class="label">{{ item.label }}</span> <div>
<p <span class="label">{{ item.label }}</span>
class="cont" <p
v-if="item.type == 'file' && fileList.length > 0" class="cont"
> v-if="item.type == 'video' || item.type == 'photo'"
<span
class="fileItem"
v-for="fitem in fileList"
:key="fitem.id"
> >
<span <span
><i class="el-icon-tickets"></i>{{ fitem.label }}</span class="fileItem"
v-for="fitem in fileType(item.type, 'fileList')"
:key="fitem.id"
> >
<span @click="preview(fitem)">{{ <span
fitem.fjLxdm == "01" ? "预览" : "播放" ><i class="el-icon-tickets"></i>{{ fitem.label }}</span
}}</span> >
</span> <span @click="preview(fitem)">{{
</p> fitem.fjLxdm == "01" ? "预览" : "播放"
<p class="cont" v-else>{{ thanTaskData[item.prop] || "-" }}</p> }}</span>
</span>
<span v-if="fileType(item.type, 'fileList').length <= 0"
>-</span
>
</p>
<p class="cont" v-else>
{{ thanTaskData[item.prop] || "-" }}
</p>
</div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="mb20 page2"> <div class="mb20 page2" v-if="sffkPdbz == '1'">
<div class="header"> <div class="header">
<span class="title">反馈任务详情</span> <span class="title">反馈任务详情</span>
</div> </div>
...@@ -60,11 +71,11 @@ ...@@ -60,11 +71,11 @@
<span class="label">{{ item.label }}</span> <span class="label">{{ item.label }}</span>
<p <p
class="cont" class="cont"
v-if="item.type == 'file' && fileList2.length > 0" v-if="item.type == 'video' || item.type == 'photo'"
> >
<span <span
class="fileItem" class="fileItem"
v-for="fitem in fileList2" v-for="fitem in fileType(item.type, 'fileList2')"
:key="fitem.id" :key="fitem.id"
> >
<span <span
...@@ -74,6 +85,9 @@ ...@@ -74,6 +85,9 @@
fitem.fjLxdm == "01" ? "预览" : "播放" fitem.fjLxdm == "01" ? "预览" : "播放"
}}</span> }}</span>
</span> </span>
<span v-if="fileType(item.type, 'fileList2').length <= 0"
>-</span
>
</p> </p>
<p class="cont" v-else> <p class="cont" v-else>
{{ feedbackTaskData[item.prop] || "-" }} {{ feedbackTaskData[item.prop] || "-" }}
...@@ -147,11 +161,6 @@ export default { ...@@ -147,11 +161,6 @@ export default {
//比对任务详情 //比对任务详情
thanTheTaskProps: [ thanTheTaskProps: [
{ {
label: "主键编号:",
prop: "xxzjbh",
col: "3",
},
{
label: "任务名称:", label: "任务名称:",
prop: "rwmc", prop: "rwmc",
col: "3", col: "3",
...@@ -205,12 +214,12 @@ export default { ...@@ -205,12 +214,12 @@ export default {
{ {
label: "简要案情:", label: "简要案情:",
prop: "jyaq", prop: "jyaq",
col: "6", col: "10",
}, },
{ {
label: "任务描述:", label: "任务描述:",
prop: "rwxq", prop: "rwxq",
col: "6", col: "10",
}, },
{ {
label: "任务状态:", label: "任务状态:",
...@@ -246,65 +255,37 @@ export default { ...@@ -246,65 +255,37 @@ export default {
col: "3", col: "3",
}, },
{ {
label: "接收人证件号码:",
prop: "jsrZjhm",
col: "3",
},
{
label: "接收人单位代码:",
prop: "jsrDwdm",
col: "3",
type: "codeTree",
codeTree: "QGCODE_UNIT",
},
{
label: "接收人单位名称:", label: "接收人单位名称:",
prop: "jsrDwmc", prop: "jsrDwmc",
col: "3", col: "3",
}, },
{ {
label: "是否签收:",
prop: "sfqsPdbz",
col: "3",
},
{
label: "签收时间:", label: "签收时间:",
prop: "qssj", prop: "qssj",
col: "3", col: "3",
}, },
{ {
label: "是否反馈:",
prop: "sffkPdbz",
col: "3",
},
{
label: "反馈时间:", label: "反馈时间:",
prop: "fksj", prop: "fksj",
col: "3", col: "3",
}, },
{ {
label: "附件详情:", label: "照片:",
prop: "srwxq", col: "10",
type: "photo",
},
{
label: "视频附件:",
col: "10", col: "10",
type: "file", type: "video",
}, },
], ],
//反馈任务详情 //反馈任务详情
feedbackTaskProps: [ feedbackTaskProps: [
{ {
label: "反馈编号:",
prop: "xxzjbh",
col: "3",
},
{
label: "比对任务编号:",
prop: "bdrwbh",
col: "3",
},
{
label: "反馈结果概要:", label: "反馈结果概要:",
prop: "fkjgJyqk", prop: "fkjgJyqk",
col: "3", col: "10",
}, },
{ {
label: "登记单位名称:", label: "登记单位名称:",
...@@ -322,14 +303,19 @@ export default { ...@@ -322,14 +303,19 @@ export default {
col: "3", col: "3",
}, },
{ {
label: "附件详情:", label: "照片:",
prop: "srwxq",
col: "10", col: "10",
type: "file", type: "photo",
},
{
label: "视频附件:",
col: "10",
type: "video",
}, },
], ],
fileList: [], fileList: [],
fileList2: [], fileList2: [],
sffkPdbz: "",
defaultProps: { defaultProps: {
parent: "parentId", // 父级唯一标识 parent: "parentId", // 父级唯一标识
value: "id", // 唯一标识 value: "id", // 唯一标识
...@@ -346,20 +332,27 @@ export default { ...@@ -346,20 +332,27 @@ export default {
myVideo: "", myVideo: "",
xxzjbh: "", xxzjbh: "",
index: 1, index: 1,
loadingIndex: 0,
}; };
}, },
methods: { methods: {
//比对任务详情接口 //比对任务详情接口
getThanTaskData() { getThanTaskData() {
const loading = this.$loading({ const loading = this.$loading({
target: "#detailRwbd",
lock: true, lock: true,
text: "Loading", text: "Loading",
}); });
let _this = this; let _this = this;
selectRwqkById({ xxzjbh: _this.xxzjbh }).then((res) => { selectRwqkById({ xxzjbh: _this.xxzjbh }).then((res) => {
loading.close();
if (res.success && res.code == 200) { if (res.success && res.code == 200) {
let result = res.data.rows; let result = res.data.rows;
_this.sffkPdbz = result.sffkPdbz;
if (_this.sffkPdbz == "1") {
_this.getFeedbackTaskData(loading);
} else {
loading.close();
}
_this.filterTreeCode(result, _this.thanTheTaskProps, "thanTaskData"); _this.filterTreeCode(result, _this.thanTheTaskProps, "thanTaskData");
} }
}); });
...@@ -367,6 +360,7 @@ export default { ...@@ -367,6 +360,7 @@ export default {
//比对任务详情附件 //比对任务详情附件
getThanTaskFile() { getThanTaskFile() {
const loading = this.$loading({ const loading = this.$loading({
target: "#detailRwbd",
lock: true, lock: true,
text: "Loading", text: "Loading",
}); });
...@@ -385,12 +379,19 @@ export default { ...@@ -385,12 +379,19 @@ export default {
} }
}); });
}, },
fileType(type, key) {
let str = type == "video" ? "02" : "01";
return this[key].filter((i) => i.fjLxdm == str);
},
//反馈任务详情接口 //反馈任务详情接口
getFeedbackTaskData() { getFeedbackTaskData(loading) {
const loading = this.$loading({ if (!loading) {
lock: true, var loading = this.$loading({
text: "Loading", target: ".page2",
}); lock: true,
text: "Loading",
});
}
let _this = this; let _this = this;
selectByRwbh({ selectByRwbh({
bdrwbh: _this.xxzjbh, bdrwbh: _this.xxzjbh,
...@@ -541,7 +542,7 @@ export default { ...@@ -541,7 +542,7 @@ export default {
mounted() { mounted() {
this.getThanTaskData(); this.getThanTaskData();
this.getThanTaskFile(); this.getThanTaskFile();
this.getFeedbackTaskData(); // this.getFeedbackTaskData();
}, },
}; };
</script> </script>
...@@ -616,7 +617,7 @@ export default { ...@@ -616,7 +617,7 @@ export default {
color: #363636; color: #363636;
font-weight: bold; font-weight: bold;
display: inline-block; display: inline-block;
width: 80px; width: 110px;
text-align: left; text-align: left;
vertical-align: top; vertical-align: top;
} }
...@@ -624,7 +625,7 @@ export default { ...@@ -624,7 +625,7 @@ export default {
color: #000; color: #000;
font-size: 15px; font-size: 15px;
display: inline-block; display: inline-block;
width: calc(100% - 80px); width: calc(100% - 110px);
box-sizing: border-box; box-sizing: border-box;
padding-right: 15px; padding-right: 15px;
padding-left: 10px; padding-left: 10px;
......
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