Browse Source

fix():修改路内样式

tags/PMS_Frontend_v1.0.6-develop
guoxin 1 year ago
parent
commit
7b5f8a2f0a
  1. 23
      src/pages/InRoadMgm/BusinessMgm/Blacklist/loadable.jsx
  2. 1
      src/pages/InRoadMgm/BusinessMgm/SpecialRecord/loadable.jsx

23
src/pages/InRoadMgm/BusinessMgm/Blacklist/loadable.jsx

@ -66,23 +66,29 @@ function Blacklist(props) {
} }
if (getAddData.plate == '') { if (getAddData.plate == '') {
message.error('请输入车牌号') message.error('请输入车牌号')
} else if (getAddData.operator_id == '') {
} else if (getAddData.operator_id ) {
message.error('请选择商户名称') message.error('请选择商户名称')
} else if (getAddData.plate_color_id == '') {
message.error('请选择车牌颜色')
} else { } else {
ajax.addChange(data).then(res => { ajax.addChange(data).then(res => {
if (res.status === 20000) { if (res.status === 20000) {
setGetAddVisible(false) setGetAddVisible(false)
getData(formData) getData(formData)
setGetAddData({
plate: '',
operator: '',
plate_color: '',
detail: '',
})
} }
}) })
} }
} }
const cancel = () => { const cancel = () => {
setGetAddVisible(false)
setEditVisible(false) setEditVisible(false)
setDeleteVisible(false) setDeleteVisible(false)
}
const cancelAdd = () => {
setGetAddVisible(false)
setGetAddData({ setGetAddData({
plate: '', plate: '',
operator: '', operator: '',
@ -245,7 +251,14 @@ function Blacklist(props) {
} }
const addModal = () => { const addModal = () => {
setGetAddVisible(false) setGetAddVisible(false)
setGetAddData({
plate: '',
operator: '',
plate_color: '',
detail: '',
})
} }
//
const addData = () => { const addData = () => {
setGetAddVisible(true) setGetAddVisible(true)
} }
@ -395,7 +408,7 @@ function Blacklist(props) {
</div> </div>
<div className="submitBtn"> <div className="submitBtn">
<button className="submit colorBtn" onClick={() => { applySubmit() }}>提交</button> <button className="submit colorBtn" onClick={() => { applySubmit() }}>提交</button>
<button className="cancel colorReset" onClick={() => { cancel() }}>取消</button>
<button className="cancel colorReset" onClick={() => { cancelAdd() }}>取消</button>
</div> </div>
</div> </div>
</Modal> </Modal>

1
src/pages/InRoadMgm/BusinessMgm/SpecialRecord/loadable.jsx

@ -421,6 +421,7 @@ function CollectorWorkStat(props) {
setExamineVisible(true) setExamineVisible(true)
setGetCheckData(record) setGetCheckData(record)
columnList(record) columnList(record)
getTable()
} }
const examineModal = () => { const examineModal = () => {
setExamineVisible(false) setExamineVisible(false)

Loading…
Cancel
Save