|
@@ -266,13 +266,25 @@
|
|
</el-row>
|
|
</el-row>
|
|
</el-form>
|
|
</el-form>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+ <!-- 导入错误信息列表 -->
|
|
|
|
+ <el-dialog title="错误提示" :visible.sync="errDialog">
|
|
|
|
+ <div
|
|
|
|
+ v-for="errMessage in errMessages"
|
|
|
|
+ :key="errMessage.lineNum"
|
|
|
|
+ class="text-danger"
|
|
|
|
+ >
|
|
|
|
+ {{ errMessage }}
|
|
|
|
+ </div>
|
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
|
+ <el-button @click="errDialog = false">确定</el-button>
|
|
|
|
+ </span>
|
|
|
|
+ </el-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { CORE_API, EXAM_WORK_API } from "@/constants/constants.js";
|
|
import { CORE_API, EXAM_WORK_API } from "@/constants/constants.js";
|
|
import { mapState } from "vuex";
|
|
import { mapState } from "vuex";
|
|
-import qs from "qs";
|
|
|
|
export default {
|
|
export default {
|
|
name: "IpConfig",
|
|
name: "IpConfig",
|
|
data() {
|
|
data() {
|
|
@@ -514,9 +526,10 @@ export default {
|
|
}).then(() => {
|
|
}).then(() => {
|
|
var url = EXAM_WORK_API + "/org/ip/delete";
|
|
var url = EXAM_WORK_API + "/org/ip/delete";
|
|
this.$httpWithMsg
|
|
this.$httpWithMsg
|
|
- .post(url, qs.stringify({ ids: ids.join(",") }), {
|
|
|
|
|
|
+ // .post(url, qs.stringify({ ids: ids.join(",") }), {
|
|
|
|
+ .post(url, ids, {
|
|
headers: {
|
|
headers: {
|
|
- "content-type": "application/x-www-form-urlencoded",
|
|
|
|
|
|
+ "content-type": "application/json",
|
|
},
|
|
},
|
|
})
|
|
})
|
|
.then(() => {
|
|
.then(() => {
|