-
-
- 搜索
-
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
@@ -19,7 +27,7 @@
查看
编辑
- 删除
+ 删除
@@ -154,6 +162,8 @@ export default {
total: 0,
varList: [],
KEYWORDS: '',
+ KEYWORDS_ORG_NAME: '',
+ KEYWORDS_ORG_TYPE: '',
dialogFormEdit: false,
dialogFormShow: false,
dialogType: 'add',
@@ -315,6 +325,11 @@ export default {
this.getDepartmentList()
},
methods: {
+ resetQuery() {
+ this.KEYWORDS_ORG_NAME = ''
+ this.KEYWORDS_ORG_TYPE = ''
+ this.getQuery()
+ },
goList(page, CASE_ID, ticketType) {
this.$parent.activeName = page
this.$parent.CASE_ID = CASE_ID
@@ -347,7 +362,8 @@ export default {
requestFN(
'/major/transportation/list?showCount=' + this.listQuery.limit + '¤tPage=' + this.listQuery.page,
{
- name: this.KEYWORDS
+ ORG_NAME: this.KEYWORDS_ORG_NAME,
+ ORG_TYPE: this.KEYWORDS_ORG_TYPE
}
).then((data) => {
this.listLoading = false
@@ -400,7 +416,7 @@ export default {
CARGO_TRANSPORT_CAPACITY: data.CARGO_TRANSPORT_CAPACITY,
EMERGENCY_CAPACITY_DESCRIPTION: data.EMERGENCY_CAPACITY_DESCRIPTION,
REMARK: data.REMARK,
- ID: data.ID
+ Id: data.ID
}
}).catch((e) => {
console.error('获取详情数据失败', e)
@@ -413,27 +429,11 @@ export default {
this.$refs.upload.clearFiles()
},
confirm() {
- this.$refs.form.validate(valid => {
- if (valid) {
- if (this.FFILE.length > 0) {
- this.upload((v) => {
- this.form.FILE_URL = v
- this.$refs.upload.clearFiles()
- this.dataSave()
- })
- } else {
- this.dataSave()
- }
- } else {
- return false
- }
- })
+ this.dataSave()
},
dataSave() {
this.listLoading = true
- requestFN(
- '/major/transportation/save', this.form
- ).then((data) => {
+ requestFN('/major/transportation/save', this.form).then((data) => {
this.listLoading = false
this.dialogFormEdit = false
this.varList = []
@@ -444,15 +444,15 @@ export default {
})
},
//* *****************************删除********************************
- handleDelete(id, name) {
- this.$confirm('确定要删除[' + name + ']吗?', {
+ handleDelete(id, ORG_NAME) {
+ this.$confirm('确定要删除[' + ORG_NAME + ']吗?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.listLoading = true
requestFN(
- '/caseLibrary/delete',
+ '/major/transportation/delete',
{
id: id
}
@@ -489,7 +489,7 @@ export default {
}).then(() => {
this.listLoading = true
requestFN(
- '/caseLibrary/deleteAll',
+ '/major/transportation/deleteAll',
{
ids: ids
}