修改
This commit is contained in:
parent
496a3842d7
commit
4eea8d695e
@ -28,7 +28,7 @@ export function triggerCondition(id) {
|
||||
export function triggerConditionedit(data) {
|
||||
return request({
|
||||
url: `/system/triggerCondition/edit`,
|
||||
method: 'post',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
@ -85,7 +85,7 @@
|
||||
</div>
|
||||
<div>
|
||||
<!-- @click.stop="goManageNodeInformation" -->
|
||||
<i class="el-icon-edit"></i>
|
||||
<i class="el-icon-edit" @click="triggerConditionedit(item)"></i>
|
||||
<i class="el-icon-delete"></i>
|
||||
</div>
|
||||
</div>
|
||||
@ -128,6 +128,40 @@
|
||||
<el-button @click="openfalse">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<!-- 修改触发条件 -->
|
||||
<el-dialog title="修改触发条件" :visible.sync="editopen" width="800px" append-to-body>
|
||||
<!-- <el-button type="primary" plain size="mini" @click="addtriggerCondition"
|
||||
style="float: right;">添加触发条件</el-button> -->
|
||||
<el-descriptions title="触发条件">
|
||||
</el-descriptions>
|
||||
<el-form ref="updataform" :model="updataform" :rules="rules" label-width="80px">
|
||||
<el-select v-model="updataform.triggerConditionName" style="width:120px">
|
||||
<el-option label="诊断" value="DIAGNOSIS" />
|
||||
<el-option label="换药日期" value="DRESSING_CHANGE_DATE" />
|
||||
<el-option label="治疗方式" value="TREATMENT_METHOD" />
|
||||
<el-option label="手术名称" value="SURGICAL_NAME" />
|
||||
<el-option label="药品名称" value="DRUG_NAME" />
|
||||
</el-select>
|
||||
<el-select v-model="updataform.triggerConditionOperator" style="width: 100px;">
|
||||
<el-option label="包含" value="CONTAIN" />
|
||||
<el-option label="不包含" value="NOT_CONTAIN" />
|
||||
<el-option label="等于" value="EQUAL_TO" />
|
||||
<el-option label="不等于" value="NOT_EQUAL_TO" />
|
||||
</el-select>
|
||||
<!-- <el-select v-model="updataform.suitRange" style="width: 120px;">
|
||||
<el-option label="在院" value="IN_THE_HOSPITAL" />
|
||||
<el-option label="出院" value="DISCHARGE" />
|
||||
<el-option label="门诊" value="OUTPATIENT_SERVICE" />
|
||||
<el-option label="门诊+出院" value="OUTPATIENT_SERVICE_DISCHARGE" />
|
||||
</el-select> -->
|
||||
<el-input v-model="updataform.triggerConditionValue" style="width: 300px;"
|
||||
placeholder="请输入触发条件"></el-input>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="editupload">确 定</el-button>
|
||||
<el-button @click="editopenfalse">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -136,7 +170,7 @@ import {
|
||||
updateSpecialDiseaseRoute,
|
||||
} from "@/api/system/specialDiseaseRoute";
|
||||
import {
|
||||
specialDiseaseRoute, selectSpecialDisease, triggerConditiondel, specialDiseaseRoutedel, triggerConditionadd
|
||||
specialDiseaseRoute, selectSpecialDisease, triggerConditiondel, specialDiseaseRoutedel, triggerConditionadd, triggerCondition, triggerConditionedit
|
||||
} from "@/api/system/editorialSpecialization";
|
||||
export default {
|
||||
name: "editorialSpecialization",
|
||||
@ -158,6 +192,8 @@ export default {
|
||||
triggerConditionValue: '',
|
||||
}],
|
||||
},
|
||||
editopen: false,
|
||||
updataform: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
routeName: [
|
||||
@ -224,6 +260,29 @@ export default {
|
||||
triggerConditionValue: '',
|
||||
})
|
||||
},
|
||||
editopenfalse() {
|
||||
this.updataform = {}
|
||||
this.editopen = false
|
||||
this.resetForm("updataform");
|
||||
},
|
||||
editupload() {
|
||||
const loading = this.$loading({
|
||||
lock: true,
|
||||
text: 'Loading',
|
||||
spinner: 'el-icon-loading',
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
});
|
||||
triggerConditionedit(this.updataform).then(res => {
|
||||
loading.close();
|
||||
this.$notify({
|
||||
type: 'success',
|
||||
title: '提示',
|
||||
message: '修改触发条件成功',
|
||||
});
|
||||
this.info();
|
||||
this.editopenfalse();
|
||||
})
|
||||
},
|
||||
openfalse() {
|
||||
this.updata.triggerConditionList = [{
|
||||
routeId: '',
|
||||
@ -236,18 +295,25 @@ export default {
|
||||
this.resetForm("updata");
|
||||
},
|
||||
upload() {
|
||||
const loading = this.$loading({
|
||||
lock: true,
|
||||
text: 'Loading',
|
||||
spinner: 'el-icon-loading',
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
});
|
||||
this.updata.triggerConditionList.forEach(e => {
|
||||
e.routeId = this.$route.query.id
|
||||
e.routeName = this.$route.query.routeName
|
||||
})
|
||||
triggerConditionadd(this.updata).then(res => {
|
||||
this.open = false
|
||||
loading.close();
|
||||
this.$notify({
|
||||
type: 'success',
|
||||
title: '提示',
|
||||
message: '新增触发条件成功',
|
||||
});
|
||||
this.info();
|
||||
this.openfalse();
|
||||
})
|
||||
},
|
||||
//保存
|
||||
@ -273,6 +339,20 @@ export default {
|
||||
});
|
||||
})
|
||||
},
|
||||
//触发条件修改详情
|
||||
triggerConditionedit(item) {
|
||||
const loading = this.$loading({
|
||||
lock: true,
|
||||
text: 'Loading',
|
||||
spinner: 'el-icon-loading',
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
});
|
||||
triggerCondition(item.triggerConditionId).then(res => {
|
||||
loading.close();
|
||||
this.editopen = true
|
||||
this.updataform = res.data
|
||||
})
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user