@@ -51,11 +51,10 @@ | |||||
<el-col :span="1.5"> | <el-col :span="1.5"> | ||||
<el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete" v-hasPermi="['business:export:remove']">删除</el-button> | <el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete" v-hasPermi="['business:export:remove']">删除</el-button> | ||||
</el-col> | </el-col> | ||||
--> | |||||
<el-col :span="1.5"> | <el-col :span="1.5"> | ||||
<el-button type="success" plain icon="el-icon-upload2" size="mini" @click="handleImport" v-hasPermi="['business:export:import']">导入</el-button> | <el-button type="success" plain icon="el-icon-upload2" size="mini" @click="handleImport" v-hasPermi="['business:export:import']">导入</el-button> | ||||
</el-col> | </el-col> | ||||
--> | |||||
<el-col :span="1.5"> | <el-col :span="1.5"> | ||||
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" v-hasPermi="['business:export:export']">导出</el-button> | <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" v-hasPermi="['business:export:export']">导出</el-button> | ||||
</el-col> | </el-col> | ||||
@@ -315,8 +314,8 @@ export default { | |||||
deptId: null, | deptId: null, | ||||
deptName: null, | deptName: null, | ||||
orgCode: null, | orgCode: null, | ||||
fileType: null, | |||||
coordinateSystem: null, | |||||
fileType: '1', | |||||
coordinateSystem: '2', | |||||
fileUrl: null, | fileUrl: null, | ||||
taskStatus: '1', | taskStatus: '1', | ||||
} | } | ||||
@@ -340,6 +339,10 @@ export default { | |||||
}, | }, | ||||
/** 新增按钮操作 */ | /** 新增按钮操作 */ | ||||
handleAdd() { | handleAdd() { | ||||
if(this.selectDeptName == null || this.selectDeptName == ''){ | |||||
this.$modal.msgWarning("请先选择县级及以下行政区划!") | |||||
return | |||||
} | |||||
this.reset() | this.reset() | ||||
this.form.deptId = this.queryParams.deptId; | this.form.deptId = this.queryParams.deptId; | ||||
this.form.deptName = this.selectDeptName; | this.form.deptName = this.selectDeptName; | ||||
@@ -56,11 +56,10 @@ | |||||
<el-col :span="1.5"> | <el-col :span="1.5"> | ||||
<el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete" v-hasPermi="['business:import:remove']">删除</el-button> | <el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete" v-hasPermi="['business:import:remove']">删除</el-button> | ||||
</el-col> | </el-col> | ||||
--> | |||||
<el-col :span="1.5"> | <el-col :span="1.5"> | ||||
<el-button type="success" plain icon="el-icon-upload2" size="mini" @click="handleImport" v-hasPermi="['business:import:import']">导入</el-button> | <el-button type="success" plain icon="el-icon-upload2" size="mini" @click="handleImport" v-hasPermi="['business:import:import']">导入</el-button> | ||||
</el-col> | </el-col> | ||||
--> | |||||
<el-col :span="1.5"> | <el-col :span="1.5"> | ||||
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" v-hasPermi="['business:import:export']">导出</el-button> | <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" v-hasPermi="['business:import:export']">导出</el-button> | ||||
</el-col> | </el-col> | ||||
@@ -346,9 +345,9 @@ export default { | |||||
deptId: null, | deptId: null, | ||||
deptName: null, | deptName: null, | ||||
orgCode: null, | orgCode: null, | ||||
fileType: null, | |||||
importType: null, | |||||
coordinateSystem: null, | |||||
fileType: '1', | |||||
importType: '1', | |||||
coordinateSystem: '1', | |||||
fileUrl: null, | fileUrl: null, | ||||
taskStatus: '1', | taskStatus: '1', | ||||
} | } | ||||
@@ -372,6 +371,10 @@ export default { | |||||
}, | }, | ||||
/** 新增按钮操作 */ | /** 新增按钮操作 */ | ||||
handleAdd() { | handleAdd() { | ||||
if(this.selectDeptName == null || this.selectDeptName == ''){ | |||||
this.$modal.msgWarning("请先选择县级及以下行政区划!") | |||||
return | |||||
} | |||||
this.reset() | this.reset() | ||||
this.open = true | this.open = true | ||||
this.form.deptId = this.queryParams.deptId; | this.form.deptId = this.queryParams.deptId; | ||||