Browse Source

Merge branch 'develop' of http://120.27.195.166:3000/chenglb/PMS_Frontend_v1.0.0.git into develop

tags/PMS_V1.0.0_Alpha6
chenglb 1 year ago
parent
commit
4cc4f8f1cd
  1. 2
      src/components/Export/ExportBtnNew/index.jsx
  2. 21
      src/pages/DataAnalysisPrediction/ParkingOverview/loadable.jsx
  3. 6
      src/pages/FinancialMgm/Invoice/CreateInvoice/index.scss
  4. 2
      src/pages/FinancialMgm/Invoice/CreateInvoice/loadable.jsx
  5. 4
      src/pages/OffPeak/OffPeakShareRecords/StallCount/loadable.jsx
  6. 28
      src/pages/OutRoadMgm/OutDeviceMgm/OutNvrMgm/loadable.jsx

2
src/components/Export/ExportBtnNew/index.jsx

@ -234,7 +234,7 @@ const ExportBtn = forwardRef((props, ref) => {
// } else {
// }
message.info(res.message)
downloadFile(res.data.url || res.data.export_url)
// downloadFile(res.data.url || res.data.export_url)
handleCancel()
// setInProcess("2");
// setProcess(res.data?.task_url)

21
src/pages/DataAnalysisPrediction/ParkingOverview/loadable.jsx

@ -677,6 +677,7 @@ const ParkingOverview = connect(function mapStateToProps(state) {
: null;
seriesItem.itemStyle = itemStyle;
}
// pieData[i].value &&
series.push(seriesItem);
}
@ -739,9 +740,6 @@ const ParkingOverview = connect(function mapStateToProps(state) {
legend: {
selectedMode: false,
data: legendData,
// formatter: function (name) {
// return `${name}:\n{|1000}}`;
// },
y: "bottom",
textStyle: {
color: "#fff",
@ -834,9 +832,6 @@ const ParkingOverview = connect(function mapStateToProps(state) {
if ((height * 25) / series[0].pieData.value > 30) {
return 30;
}
// if (!(height * 25) / series[0].pieData.value > 30) {
// return 20;
// }
return (height * 25) / series[0].pieData.value;
};
@ -1051,20 +1046,6 @@ const ParkingOverview = connect(function mapStateToProps(state) {
// label线2d使labelLine3dsetOption
option.series.push({
// name: "pie2d",
// type: "pie",
// labelLine: {
// length: 10,
// length2: 10,
// },
// startAngle: -25, //[0, 360]
// clockwise: false, //3d
// radius: ["65%", "65%"],
// center: ["55%", "48%"], //线
// data: data,
// itemStyle: {
// opacity: 0,
// },
name: "mouseoutSeries",
type: "surface",
parametric: true,

6
src/pages/FinancialMgm/Invoice/CreateInvoice/index.scss

@ -149,18 +149,20 @@ $color-primary : var(--color-primary);
}
}
.modal-invoicerepeat {
.modal-criarinvoicerepeat {
.ant-form-item {
height: 54px;
margin-bottom: 0;
}
.ant-form-item-label>label {
.ant-form-horizontal .ant-form-item-label label {
position: relative;
display: inline-flex;
align-items: center;
max-width: 100%;
height: 32px;
white-space: inherit;
flex-wrap: nowrap;
color: hsla(0, 0%, 100%, .85);
font-size: 14px;
}

2
src/pages/FinancialMgm/Invoice/CreateInvoice/loadable.jsx

@ -796,7 +796,7 @@ function CreateInvoice() {
setOpen(false);
}}
width={800}
className="modal-invoicerepeat"
className="modal-criarinvoicerepeat"
title={"开具电子发票"}
>
{lo == 2 ? FormTable(pushreds, []) : FormTable(pushred, [])}

4
src/pages/OffPeak/OffPeakShareRecords/StallCount/loadable.jsx

@ -60,14 +60,14 @@ function StallCount() {
type: "SearchSelect",
label: "车场名称",
placeholder: "请输入车场名称",
name: "parkName",
name: "parkId",
options: [{label: '全部', value: ""}, ...parkList]
},
];
//
const initFormData = {
time: moment().startOf("day"),
parkName: ""
parkId: ""
};
//
const [tableData, setTableData] = useState([]);

28
src/pages/OutRoadMgm/OutDeviceMgm/OutNvrMgm/loadable.jsx

@ -431,7 +431,7 @@ function OutNvrMgm(props) {
let pattern = /^([0-9]{1,3}\.){3}[0-9]{1,3}$/;
let duankou = /^([1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])$/;
let shiping_duan_kou = /^\+?[1-9][0-9]*$/
if(values.nvr_type == 1){
if (values.nvr_type == 1) {
if (!pattern.test(values.ip_address)) {
message.warning("请输入合理格式的ip地址")
return false
@ -444,8 +444,8 @@ function OutNvrMgm(props) {
return false
}
}
let reg=/^[1-9]\d*$/
if(!reg.test(values.standard_code)&&values.standard_code){
let reg = /^[1-9]\d*$/
if (!reg.test(values.standard_code) && values.standard_code) {
message.warning("国标编号为纯数字")
return false
}
@ -471,7 +471,21 @@ function OutNvrMgm(props) {
//
const handleAdd = () => {
setRowData(defRowData);
form.setFieldsValue({ nvr_type: "", standard_code: '' });
form.setFieldsValue({
nvr_type: "",
standard_code: '',
name: "",
operator_id: "",
road_id: "",
ip_address: "",
port: "",
video_port: "",
network_mode: "",
user_name: "",
password: "",
lng_lat: "",
address: "",
});
// form.resetFields();
setVisible(true);
};
@ -629,7 +643,7 @@ function OutNvrMgm(props) {
className="form-con"
placeholder="请选择"
allowClear={false}
options={[{label: '全部',value: 0},{label: '非国标',value: 1},{label: '国标',value: 2}]}
options={[{ label: '全部', value: 0 }, { label: '非国标', value: 1 }, { label: '国标', value: 2 }]}
value={formData?.nvr_type || 0}
onChange={(v) => {
setFormData({ ...formData, nvr_type: v });
@ -764,7 +778,7 @@ function OutNvrMgm(props) {
>
<Select
placeholder="请选择"
options={[{label: '非国标NVR', value: '1'} , {label: '国标NVR', value: '2'}]}
options={[{ label: '非国标NVR', value: '1' }, { label: '国标NVR', value: '2' }]}
/>
</Form.Item>
</div>
@ -782,7 +796,7 @@ function OutNvrMgm(props) {
name={"standard_code"}
rules={[{ required: true, message: "国标编号不能为空" }]}
>
<Input autoComplete="off" maxLength={30}/>
<Input autoComplete="off" maxLength={30} />
</Form.Item>
</div>

Loading…
Cancel
Save