|
@ -438,7 +438,6 @@ export default { |
|
|
await this.getServiceTypeDictOptions(); |
|
|
await this.getServiceTypeDictOptions(); |
|
|
await this.getDictOptions(); |
|
|
await this.getDictOptions(); |
|
|
await this.loadScopeTree(); |
|
|
await this.loadScopeTree(); |
|
|
await this.loadDemandoption(); |
|
|
|
|
|
await this.getDemandOptions(); |
|
|
await this.getDemandOptions(); |
|
|
if (this.formType === "add") { |
|
|
if (this.formType === "add") { |
|
|
this.$refs.ref_form.resetFields(); |
|
|
this.$refs.ref_form.resetFields(); |
|
@ -645,26 +644,6 @@ export default { |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 获取服务范围树 |
|
|
|
|
|
loadDemandoption() { |
|
|
|
|
|
const url = "/governance/icresidemanddict/demandoption"; |
|
|
|
|
|
// const url = 'http://yapi.elinkservice.cn/mock/245/gov/org/isServiceProject/service/serviceScopeTree' |
|
|
|
|
|
let params = {}; |
|
|
|
|
|
window.app.ajax.post( |
|
|
|
|
|
url, |
|
|
|
|
|
params, |
|
|
|
|
|
(data, rspMsg) => { |
|
|
|
|
|
this.demandOptions = this.getFlagData( |
|
|
|
|
|
this.getTreeData(data), |
|
|
|
|
|
"usableFlag" |
|
|
|
|
|
); |
|
|
|
|
|
}, |
|
|
|
|
|
(rspMsg, data) => { |
|
|
|
|
|
this.$message.error(rspMsg); |
|
|
|
|
|
} |
|
|
|
|
|
); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
async handleAdd() { |
|
|
async handleAdd() { |
|
|
// var oDate1 = new Date(this.formData.startDate); |
|
|
// var oDate1 = new Date(this.formData.startDate); |
|
|
// var oDate2 = new Date(this.formData.endDate); |
|
|
// var oDate2 = new Date(this.formData.endDate); |
|
|