Commit de1ebb16 by 唐玉峰

.

parent 68c4e055
...@@ -63,8 +63,9 @@ axios.interceptors.response.use( ...@@ -63,8 +63,9 @@ axios.interceptors.response.use(
export default { export default {
post(url, params, option) { post(url, params, option) {
if (!url.includes("/ClinicalRoute/ClinicalRoute/GetTCMDiseases")) {
loadingInstance = Vue.prototype.$loading(loadingOption); loadingInstance = Vue.prototype.$loading(loadingOption);
}
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
axios axios
.post(domain + url, params, { ...{ headers: createHeader() }, ...option }) .post(domain + url, params, { ...{ headers: createHeader() }, ...option })
...@@ -74,9 +75,7 @@ export default { ...@@ -74,9 +75,7 @@ export default {
reject(res.data); reject(res.data);
return; return;
} }
loadingInstance.close(); loadingInstance.close();
resolve(res.data.data || res.data); resolve(res.data.data || res.data);
}) })
.catch((error) => { .catch((error) => {
...@@ -89,7 +88,6 @@ export default { ...@@ -89,7 +88,6 @@ export default {
}, },
//医院的接口数据用 //医院的接口数据用
postFn(url, params, option) { postFn(url, params, option) {
loadingInstance = Vue.prototype.$loading(loadingOption);
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
axios axios
.post(url, params, { ...{ headers: createHeader() }, ...option }) .post(url, params, { ...{ headers: createHeader() }, ...option })
......
...@@ -69,9 +69,13 @@ ...@@ -69,9 +69,13 @@
<span></span> <span></span>
<div style="color: red" v-show="show">有未保存排序内容!</div> <div style="color: red" v-show="show">有未保存排序内容!</div>
<div class=""> <div class="">
<el-button size="mini" type="primary" @click="rightadd()">添加</el-button> <el-checkbox v-mode="isZY" @change="checkAl">中医</el-checkbox>
<el-button size="mini" type="primary" class="mar-left-15" @click="rightadd()">添加</el-button>
<el-button size="mini" type="danger" @click="rightdelarr()">删除</el-button> <el-button size="mini" type="danger" @click="rightdelarr()">删除</el-button>
<el-button size="mini" type="success" @click="saveSort(2, righttableData, '/ClinicalRoute/ClinicalRoute/UpdateMapCRAProject')" <el-button
size="mini"
type="success"
@click="saveSort(2, righttableData, `/ClinicalRoute/ClinicalRoute/UpdateMapCRAProject?isZY=${isZY}`)"
>保存排序</el-button >保存排序</el-button
> >
</div> </div>
...@@ -438,6 +442,7 @@ export default { ...@@ -438,6 +442,7 @@ export default {
medicUseModeoptionsLise: [], medicUseModeoptionsLise: [],
medicUsePlanoptions: [], //频率 medicUsePlanoptions: [], //频率
medicUsePlanoptionsList: [], medicUsePlanoptionsList: [],
isZY: false,
}; };
}, },
mounted() { mounted() {
...@@ -459,6 +464,10 @@ export default { ...@@ -459,6 +464,10 @@ export default {
cridChange(e) { cridChange(e) {
this.ruleForm.crid = e; this.ruleForm.crid = e;
}, },
checkAl(e) {
this.isZY = e;
this.getRightList();
},
GetCopyGetCRInfo(query) { GetCopyGetCRInfo(query) {
http.post(`/ClinicalRoute/ClinicalRoute/CopyGetCRInfo?searchQuery=${query}`, {}).then((data) => { http.post(`/ClinicalRoute/ClinicalRoute/CopyGetCRInfo?searchQuery=${query}`, {}).then((data) => {
this.options = data; this.options = data;
...@@ -647,7 +656,7 @@ export default { ...@@ -647,7 +656,7 @@ export default {
arr.push(item); arr.push(item);
}); });
http.post(`/ClinicalRoute/ClinicalRoute/CreateMapCRAProject?ApplyDoctor=${this.$route.query.ApplyDoctor * 1}`, arr) http.post(`/ClinicalRoute/ClinicalRoute/CreateMapCRAProject?ApplyDoctor=${this.$route.query.ApplyDoctor * 1}&isZY=${this.isZY}`, arr)
.then((data) => { .then((data) => {
Message.success({ Message.success({
message: "添加成功!", message: "添加成功!",
...@@ -664,7 +673,7 @@ export default { ...@@ -664,7 +673,7 @@ export default {
}, },
rightselectbtn() { rightselectbtn() {
if (this.rightnameinput) { if (this.rightnameinput) {
http.post(`/ClinicalRoute/ClinicalRoute/GetProjectInfo?searchQuery=${this.rightnameinput}`, {}) http.post(`/ClinicalRoute/ClinicalRoute/GetProjectInfo?searchQuery=${this.rightnameinput}&isZY=${this.isZY}`, {})
.then((data) => { .then((data) => {
if (data && data.length) { if (data && data.length) {
data.map((item) => { data.map((item) => {
...@@ -684,7 +693,7 @@ export default { ...@@ -684,7 +693,7 @@ export default {
//获取左侧 初始化数据 //获取左侧 初始化数据
getRightList() { getRightList() {
http.post(`/ClinicalRoute/ClinicalRoute/GetMapCRAProjectInfo?adviceid=${this.adviceid}`, {}) http.post(`/ClinicalRoute/ClinicalRoute/GetMapCRAProjectInfo?adviceid=${this.adviceid}&isZY=${this.isZY}`, {})
.then((data) => { .then((data) => {
this.show = false; this.show = false;
this.righttableData = data; this.righttableData = data;
...@@ -788,6 +797,8 @@ export default { ...@@ -788,6 +797,8 @@ export default {
}, },
rightadd() { rightadd() {
if (this.adviceid) { if (this.adviceid) {
this.rightdialogData = [];
this.rightnameinput = "";
this.RightdialogTableVisible = true; this.RightdialogTableVisible = true;
} else { } else {
Message.warning({ Message.warning({
...@@ -815,7 +826,7 @@ export default { ...@@ -815,7 +826,7 @@ export default {
newarr.push(this.rightarr[key].id); newarr.push(this.rightarr[key].id);
}); });
if (newarr.length > 0) { if (newarr.length > 0) {
http.post(`/ClinicalRoute/ClinicalRoute/RemoveMapCRAProject?ApplyDoctor=${this.$route.query.ApplyDoctor * 1}`, newarr) http.post(`/ClinicalRoute/ClinicalRoute/RemoveMapCRAProject?ApplyDoctor=${this.$route.query.ApplyDoctor * 1}&isZY=${this.isZY}`, newarr)
.then((data) => { .then((data) => {
Message.success({ Message.success({
message: `${data.message}`, message: `${data.message}`,
......
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