限制项目名称中不能存在单引号
This commit is contained in:
parent
ceb138ec07
commit
8228d9a809
@ -178,7 +178,9 @@
|
||||
@change="changeLang">
|
||||
<block v-for="(item,index) in langList" :key="index">
|
||||
<radio style="margin-top: 10rpx;" :checked="selectLang==item" :value="item">
|
||||
<view style="margin-left: 20rpx;text-align: center;padding: 15rpx 0rpx;">{{item}}</view>
|
||||
<view style="margin-left: 20rpx;text-align: center;padding: 15rpx 0rpx;">
|
||||
{{item}}
|
||||
</view>
|
||||
</radio>
|
||||
</block>
|
||||
</radio-group>
|
||||
@ -255,8 +257,8 @@
|
||||
有效期:{{item.coupon.useGmtStart}}至{{item.coupon.useGmtEnd}}</view>
|
||||
</view>
|
||||
<view class="r-tickets">
|
||||
<radio style="margin-left: 5px;"
|
||||
:value="index+''" :checked="tempCoupons.couponId==item.couponId">
|
||||
<radio style="margin-left: 5px;" :value="index+''"
|
||||
:checked="tempCoupons.couponId==item.couponId">
|
||||
</radio>
|
||||
</view>
|
||||
</view>
|
||||
@ -522,7 +524,15 @@
|
||||
},
|
||||
//项目名称输入
|
||||
inputProjectName(e) {
|
||||
this.projectName = e.detail.value
|
||||
var value = e.detail.value;
|
||||
var hasSingle = value.includes("'");
|
||||
this.projectName = value
|
||||
if (hasSingle) {
|
||||
this.projectName = value.replace(/'/g, '')
|
||||
this.msgTxt = '项目名称中不能存在英文单引号,请去除'
|
||||
this.msgType = 'error'
|
||||
this.$refs.msg.open()
|
||||
}
|
||||
},
|
||||
//选中推荐的系统名称
|
||||
doSelectProjectName(e) {
|
||||
@ -788,6 +798,12 @@
|
||||
_self.$refs.msg.open()
|
||||
return false
|
||||
}
|
||||
if (_self.projectName.includes("'")) {
|
||||
_self.msgTxt = '请去除项目名称中的英文单引号'
|
||||
_self.msgType = 'error'
|
||||
_self.$refs.msg.open()
|
||||
return false
|
||||
}
|
||||
if (Object.keys(_self.selectContact).length <= 0) {
|
||||
_self.msgTxt = '请选中产权联系人'
|
||||
_self.msgType = 'error'
|
||||
|
@ -368,7 +368,6 @@
|
||||
setTimeout(() => {
|
||||
this.$nextTick(() => {
|
||||
this.showPoptrans()
|
||||
console.log('DOM', this.messageChild)
|
||||
if (this.messageChild && this.type === 'message') {
|
||||
this.messageChild.timerClose()
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
unpackage/dist/dev/mp-baidu/common/vendor.js
vendored
2
unpackage/dist/dev/mp-baidu/common/vendor.js
vendored
@ -7339,7 +7339,7 @@ function isConsoleWritable() {
|
||||
function initRuntimeSocketService() {
|
||||
const hosts = "127.0.0.1,192.168.0.114";
|
||||
const port = "8090";
|
||||
const id2 = "mp-baidu_brQRdd";
|
||||
const id2 = "mp-baidu_K-M1jr";
|
||||
const lazy = typeof swan !== "undefined";
|
||||
let restoreError = lazy ? () => {
|
||||
} : initOnError();
|
||||
|
@ -97,7 +97,7 @@ const _sfc_main = {
|
||||
const priceParams = options.price;
|
||||
const isUrgentParams = options.isUrgent;
|
||||
const pId = options.pId;
|
||||
common_vendor.index.__f__("log", "at pages/copyright/createProjectInfo/createProjectInfo.vue:358", priceParams);
|
||||
common_vendor.index.__f__("log", "at pages/copyright/createProjectInfo/createProjectInfo.vue:360", priceParams);
|
||||
if (priceParams && priceParams > 0) {
|
||||
this.price = priceParams;
|
||||
this.proPrice = priceParams;
|
||||
@ -118,7 +118,7 @@ const _sfc_main = {
|
||||
} else {
|
||||
this.isShowUrgent = false;
|
||||
}
|
||||
common_vendor.index.__f__("log", "at pages/copyright/createProjectInfo/createProjectInfo.vue:379", "是否加急:", this.isUrgent);
|
||||
common_vendor.index.__f__("log", "at pages/copyright/createProjectInfo/createProjectInfo.vue:381", "是否加急:", this.isUrgent);
|
||||
this.doGetContactList();
|
||||
this.doGetPackage();
|
||||
this.doGetCoupons();
|
||||
@ -220,7 +220,7 @@ const _sfc_main = {
|
||||
_self.langList = res;
|
||||
_self.selectLang = res[0];
|
||||
}).catch((err) => {
|
||||
common_vendor.index.__f__("log", "at pages/copyright/createProjectInfo/createProjectInfo.vue:500", err);
|
||||
common_vendor.index.__f__("log", "at pages/copyright/createProjectInfo/createProjectInfo.vue:502", err);
|
||||
});
|
||||
},
|
||||
//获取单价
|
||||
@ -230,7 +230,7 @@ const _sfc_main = {
|
||||
});
|
||||
const _self = this;
|
||||
common_js_net_projectApi.ProApi.doGetPrice().then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/copyright/createProjectInfo/createProjectInfo.vue:511", res);
|
||||
common_vendor.index.__f__("log", "at pages/copyright/createProjectInfo/createProjectInfo.vue:513", res);
|
||||
_self.urgent = res.additional.urgent;
|
||||
}).catch((err) => {
|
||||
_self.msgTxt = "数据有误,请稍后重试";
|
||||
@ -243,7 +243,15 @@ const _sfc_main = {
|
||||
},
|
||||
//项目名称输入
|
||||
inputProjectName(e) {
|
||||
this.projectName = e.detail.value;
|
||||
var value = e.detail.value;
|
||||
var hasSingle = value.includes("'");
|
||||
this.projectName = value;
|
||||
if (hasSingle) {
|
||||
this.projectName = value.replace(/'/g, "");
|
||||
this.msgTxt = "项目名称中不能存在英文单引号,请去除";
|
||||
this.msgType = "error";
|
||||
this.$refs.msg.open();
|
||||
}
|
||||
},
|
||||
//选中推荐的系统名称
|
||||
doSelectProjectName(e) {
|
||||
@ -266,7 +274,7 @@ const _sfc_main = {
|
||||
};
|
||||
common_js_net_projectApi.ProApi.doGetCommendProjectName(data).then((res) => {
|
||||
common_vendor.index.hideLoading();
|
||||
common_vendor.index.__f__("log", "at pages/copyright/createProjectInfo/createProjectInfo.vue:549", res);
|
||||
common_vendor.index.__f__("log", "at pages/copyright/createProjectInfo/createProjectInfo.vue:559", res);
|
||||
if (res && res.length > 0) {
|
||||
_self.projectNameList = res;
|
||||
} else {
|
||||
@ -316,7 +324,7 @@ const _sfc_main = {
|
||||
},
|
||||
//清除完成时间
|
||||
clearTime() {
|
||||
common_vendor.index.__f__("log", "at pages/copyright/createProjectInfo/createProjectInfo.vue:599", "清除时间");
|
||||
common_vendor.index.__f__("log", "at pages/copyright/createProjectInfo/createProjectInfo.vue:609", "清除时间");
|
||||
this.completeDate = "";
|
||||
},
|
||||
//显示套餐包弹窗
|
||||
@ -412,7 +420,7 @@ const _sfc_main = {
|
||||
},
|
||||
//新建联系人电话监听
|
||||
inputContactPhone(e) {
|
||||
common_vendor.index.__f__("log", "at pages/copyright/createProjectInfo/createProjectInfo.vue:695", e);
|
||||
common_vendor.index.__f__("log", "at pages/copyright/createProjectInfo/createProjectInfo.vue:705", e);
|
||||
this.contactPhone = e.detail.value;
|
||||
},
|
||||
//新建联系人公司监听
|
||||
@ -468,7 +476,7 @@ const _sfc_main = {
|
||||
_self.contactCompany = "";
|
||||
_self.doGetContactList();
|
||||
}).catch((err) => {
|
||||
common_vendor.index.__f__("log", "at pages/copyright/createProjectInfo/createProjectInfo.vue:754", err);
|
||||
common_vendor.index.__f__("log", "at pages/copyright/createProjectInfo/createProjectInfo.vue:764", err);
|
||||
common_vendor.index.hideLoading();
|
||||
_self.msgTxt = err.msg ? err.msg : "新建失败,请稍后重试";
|
||||
_self.msgType = "error";
|
||||
@ -501,6 +509,12 @@ const _sfc_main = {
|
||||
_self.$refs.msg.open();
|
||||
return false;
|
||||
}
|
||||
if (_self.projectName.includes("'")) {
|
||||
_self.msgTxt = "请去除项目名称中的英文单引号";
|
||||
_self.msgType = "error";
|
||||
_self.$refs.msg.open();
|
||||
return false;
|
||||
}
|
||||
if (Object.keys(_self.selectContact).length <= 0) {
|
||||
_self.msgTxt = "请选中产权联系人";
|
||||
_self.msgType = "error";
|
||||
@ -546,7 +560,7 @@ const _sfc_main = {
|
||||
//优惠卷ID
|
||||
};
|
||||
common_js_net_projectApi.ProApi.doCreateProject(data).then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/copyright/createProjectInfo/createProjectInfo.vue:830", res);
|
||||
common_vendor.index.__f__("log", "at pages/copyright/createProjectInfo/createProjectInfo.vue:846", res);
|
||||
common_vendor.index.hideLoading();
|
||||
_self.msgType = "success";
|
||||
_self.msgTxt = "项目创建流程圆满完成,系统正在生成配套材料,请您耐心等候。";
|
||||
@ -556,7 +570,7 @@ const _sfc_main = {
|
||||
}, 1500);
|
||||
}).catch((err) => {
|
||||
common_vendor.index.hideLoading();
|
||||
common_vendor.index.__f__("log", "at pages/copyright/createProjectInfo/createProjectInfo.vue:841", err);
|
||||
common_vendor.index.__f__("log", "at pages/copyright/createProjectInfo/createProjectInfo.vue:857", err);
|
||||
_self.msgTxt = err.msg ? err.msg : "网络错误,请稍后重试";
|
||||
_self.msgType = "error";
|
||||
_self.$refs.msg.open();
|
||||
|
@ -15,8 +15,5 @@
|
||||
"setting": {
|
||||
"autoAudits": false,
|
||||
"urlCheck": false
|
||||
},
|
||||
"preview": {
|
||||
"packageId": 1209242
|
||||
}
|
||||
}
|
@ -270,7 +270,6 @@ const _sfc_main = {
|
||||
setTimeout(() => {
|
||||
this.$nextTick(() => {
|
||||
this.showPoptrans();
|
||||
common_vendor.index.__f__("log", "at uni_modules/uni-popup/components/uni-popup/uni-popup.vue:371", "DOM", this.messageChild);
|
||||
if (this.messageChild && this.type === "message") {
|
||||
this.messageChild.timerClose();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user