Commit 65d609a2 by xue_wengang

任务新增,删除组件无用代码

parent a58f3c03
...@@ -48,6 +48,9 @@ export default { ...@@ -48,6 +48,9 @@ export default {
col: "2", col: "2",
}, },
{ {
col: "2",
},
{
name: "录入时间:", name: "录入时间:",
id: "asjfssjKssj", id: "asjfssjKssj",
type: "dates", type: "dates",
...@@ -68,9 +71,9 @@ export default { ...@@ -68,9 +71,9 @@ export default {
codeOptions: [], codeOptions: [],
codeTree: "CODE_AJLB", codeTree: "CODE_AJLB",
}, },
{ {
col: "2", col: "2",
}, },
{ {
name: "简要案情:", name: "简要案情:",
...@@ -81,10 +84,10 @@ export default { ...@@ -81,10 +84,10 @@ export default {
placeholder: "请输入", placeholder: "请输入",
col: "3", col: "3",
}, },
{ {
col: "2", col: "2",
}, },
{ {
name: "任务名称:", name: "任务名称:",
id: "rwmc", id: "rwmc",
type: "text", type: "text",
...@@ -105,14 +108,9 @@ export default { ...@@ -105,14 +108,9 @@ export default {
codeTree: "CODE_XSJSBD_RWLXDM", codeTree: "CODE_XSJSBD_RWLXDM",
}, },
{ {
name: "任务描述:", col: "2",
id: "rwxq",
type: "textarea",
value: "",
placeholder: "请输入",
col: "3",
}, },
{ {
name: "接收人姓名:", name: "接收人姓名:",
id: "jsrXm", id: "jsrXm",
type: "setValue", type: "setValue",
...@@ -122,6 +120,17 @@ export default { ...@@ -122,6 +120,17 @@ 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",
...@@ -145,23 +154,6 @@ export default { ...@@ -145,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: [],
}; };
}, },
...@@ -200,28 +192,95 @@ export default { ...@@ -200,28 +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.$alert("保存成功!", "提示", { if (self.formLabelAlign.picList.length > 0) {
confirmButtonText: "确定", addBdrw(params)
type: "success", .then((res) => {
callback: () => { debugger;
this.$router.push("queryRwbd"); this.$alert("保存成功!", "提示", {
loading.close(); confirmButtonText: "确定",
}, type: "success",
}); callback: () => {
}) this.$router.push("queryRwbd");
.catch((res) => { loading.close();
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 = "";
...@@ -248,12 +307,11 @@ export default { ...@@ -248,12 +307,11 @@ export default {
jsrDwdm: item.unitcode, jsrDwdm: item.unitcode,
}); });
}); });
self.$set(self.propFormField[0].data[4], "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: {
......
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