bug
This commit is contained in:
@@ -30,6 +30,8 @@
|
||||
<!-- :disabled="!canSubmit" -->
|
||||
<el-button class="footer_button" :disabled="!canSubmit" type="primary" @click="clueSubmit">确 定</el-button>
|
||||
<el-button class="footer_button" @click="toBackClue">取 消</el-button>
|
||||
<el-button class="footer_button" v-if="!clueForm.state" v-hasPermi="['zs:clue:discard']" type="primary" @click="handleDiscard()">释放</el-button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<el-divider />
|
||||
@@ -163,9 +165,9 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getClueInfo, getConsultRecord, addClue, updateClue, } from '@/api/zs/clue'
|
||||
import empApi from '@/api/system/employee'
|
||||
import { getAllPlaces } from '@/api/sch/place'
|
||||
import { getClueInfo, getConsultRecord, addClue, updateClue, discardClue} from '@/api/zs/clue';
|
||||
import empApi from '@/api/system/employee';
|
||||
import { getAllPlaces } from '@/api/sch/place';
|
||||
|
||||
import PlaceMap from './components/PlaceMap.vue';
|
||||
import FollowRecord from './components/FollowRecord.vue';
|
||||
@@ -360,7 +362,24 @@ export default {
|
||||
toBackClue() {
|
||||
const obj = { path: "/zs/clue" };
|
||||
this.$tab.closeOpenPage(obj);
|
||||
},
|
||||
// 释放线索操作
|
||||
handleDiscard() {
|
||||
this.$confirm('是否确认释放该条线索(“' + this.clueForm.name + '/' + this.clueForm.phone + '”)到公海?', '警告', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
})
|
||||
.then((res) => {
|
||||
discardClue(this.clueForm).then((resp) => {
|
||||
if (resp && resp.code === 200) {
|
||||
this.$message.success('释放成功');
|
||||
this.toBackClue();
|
||||
}
|
||||
});
|
||||
})
|
||||
.catch(function () { });
|
||||
},
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user