限制项目名称中不能存在单引号

This commit is contained in:
itgaojian163 2025-07-21 16:11:40 +08:00
parent ceb138ec07
commit 8228d9a809
8 changed files with 64 additions and 39 deletions

View File

@ -178,7 +178,9 @@
@change="changeLang"> @change="changeLang">
<block v-for="(item,index) in langList" :key="index"> <block v-for="(item,index) in langList" :key="index">
<radio style="margin-top: 10rpx;" :checked="selectLang==item" :value="item"> <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> </radio>
</block> </block>
</radio-group> </radio-group>
@ -255,8 +257,8 @@
有效期:{{item.coupon.useGmtStart}}{{item.coupon.useGmtEnd}}</view> 有效期:{{item.coupon.useGmtStart}}{{item.coupon.useGmtEnd}}</view>
</view> </view>
<view class="r-tickets"> <view class="r-tickets">
<radio style="margin-left: 5px;" <radio style="margin-left: 5px;" :value="index+''"
:value="index+''" :checked="tempCoupons.couponId==item.couponId"> :checked="tempCoupons.couponId==item.couponId">
</radio> </radio>
</view> </view>
</view> </view>
@ -522,7 +524,15 @@
}, },
// //
inputProjectName(e) { 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) { doSelectProjectName(e) {
@ -788,6 +798,12 @@
_self.$refs.msg.open() _self.$refs.msg.open()
return false return false
} }
if (_self.projectName.includes("'")) {
_self.msgTxt = '请去除项目名称中的英文单引号'
_self.msgType = 'error'
_self.$refs.msg.open()
return false
}
if (Object.keys(_self.selectContact).length <= 0) { if (Object.keys(_self.selectContact).length <= 0) {
_self.msgTxt = '请选中产权联系人' _self.msgTxt = '请选中产权联系人'
_self.msgType = 'error' _self.msgType = 'error'

View File

@ -368,7 +368,6 @@
setTimeout(() => { setTimeout(() => {
this.$nextTick(() => { this.$nextTick(() => {
this.showPoptrans() this.showPoptrans()
console.log('DOM', this.messageChild)
if (this.messageChild && this.type === 'message') { if (this.messageChild && this.type === 'message') {
this.messageChild.timerClose() 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

View File

@ -7339,7 +7339,7 @@ function isConsoleWritable() {
function initRuntimeSocketService() { function initRuntimeSocketService() {
const hosts = "127.0.0.1,192.168.0.114"; const hosts = "127.0.0.1,192.168.0.114";
const port = "8090"; const port = "8090";
const id2 = "mp-baidu_brQRdd"; const id2 = "mp-baidu_K-M1jr";
const lazy = typeof swan !== "undefined"; const lazy = typeof swan !== "undefined";
let restoreError = lazy ? () => { let restoreError = lazy ? () => {
} : initOnError(); } : initOnError();

View File

@ -97,7 +97,7 @@ const _sfc_main = {
const priceParams = options.price; const priceParams = options.price;
const isUrgentParams = options.isUrgent; const isUrgentParams = options.isUrgent;
const pId = options.pId; 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) { if (priceParams && priceParams > 0) {
this.price = priceParams; this.price = priceParams;
this.proPrice = priceParams; this.proPrice = priceParams;
@ -118,7 +118,7 @@ const _sfc_main = {
} else { } else {
this.isShowUrgent = false; 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.doGetContactList();
this.doGetPackage(); this.doGetPackage();
this.doGetCoupons(); this.doGetCoupons();
@ -220,7 +220,7 @@ const _sfc_main = {
_self.langList = res; _self.langList = res;
_self.selectLang = res[0]; _self.selectLang = res[0];
}).catch((err) => { }).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; const _self = this;
common_js_net_projectApi.ProApi.doGetPrice().then((res) => { 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; _self.urgent = res.additional.urgent;
}).catch((err) => { }).catch((err) => {
_self.msgTxt = "数据有误,请稍后重试"; _self.msgTxt = "数据有误,请稍后重试";
@ -243,7 +243,15 @@ const _sfc_main = {
}, },
//项目名称输入 //项目名称输入
inputProjectName(e) { 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) { doSelectProjectName(e) {
@ -266,7 +274,7 @@ const _sfc_main = {
}; };
common_js_net_projectApi.ProApi.doGetCommendProjectName(data).then((res) => { common_js_net_projectApi.ProApi.doGetCommendProjectName(data).then((res) => {
common_vendor.index.hideLoading(); 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) { if (res && res.length > 0) {
_self.projectNameList = res; _self.projectNameList = res;
} else { } else {
@ -316,7 +324,7 @@ const _sfc_main = {
}, },
//清除完成时间 //清除完成时间
clearTime() { 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 = ""; this.completeDate = "";
}, },
//显示套餐包弹窗 //显示套餐包弹窗
@ -412,7 +420,7 @@ const _sfc_main = {
}, },
//新建联系人电话监听 //新建联系人电话监听
inputContactPhone(e) { 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; this.contactPhone = e.detail.value;
}, },
//新建联系人公司监听 //新建联系人公司监听
@ -468,7 +476,7 @@ const _sfc_main = {
_self.contactCompany = ""; _self.contactCompany = "";
_self.doGetContactList(); _self.doGetContactList();
}).catch((err) => { }).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(); common_vendor.index.hideLoading();
_self.msgTxt = err.msg ? err.msg : "新建失败,请稍后重试"; _self.msgTxt = err.msg ? err.msg : "新建失败,请稍后重试";
_self.msgType = "error"; _self.msgType = "error";
@ -501,6 +509,12 @@ const _sfc_main = {
_self.$refs.msg.open(); _self.$refs.msg.open();
return false; return false;
} }
if (_self.projectName.includes("'")) {
_self.msgTxt = "请去除项目名称中的英文单引号";
_self.msgType = "error";
_self.$refs.msg.open();
return false;
}
if (Object.keys(_self.selectContact).length <= 0) { if (Object.keys(_self.selectContact).length <= 0) {
_self.msgTxt = "请选中产权联系人"; _self.msgTxt = "请选中产权联系人";
_self.msgType = "error"; _self.msgType = "error";
@ -546,7 +560,7 @@ const _sfc_main = {
//优惠卷ID //优惠卷ID
}; };
common_js_net_projectApi.ProApi.doCreateProject(data).then((res) => { 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(); common_vendor.index.hideLoading();
_self.msgType = "success"; _self.msgType = "success";
_self.msgTxt = "项目创建流程圆满完成,系统正在生成配套材料,请您耐心等候。"; _self.msgTxt = "项目创建流程圆满完成,系统正在生成配套材料,请您耐心等候。";
@ -556,7 +570,7 @@ const _sfc_main = {
}, 1500); }, 1500);
}).catch((err) => { }).catch((err) => {
common_vendor.index.hideLoading(); 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.msgTxt = err.msg ? err.msg : "网络错误,请稍后重试";
_self.msgType = "error"; _self.msgType = "error";
_self.$refs.msg.open(); _self.$refs.msg.open();

View File

@ -1,22 +1,19 @@
{ {
"appid": "118838711", "appid": "118838711",
"compilation-args": { "compilation-args": {
"common": { "common": {
"babelSetting": { "babelSetting": {
"ignore": [] "ignore": []
}, },
"enhance": true, "enhance": true,
"ignorePrefixCss": false "ignorePrefixCss": false
},
"selected": -3
}, },
"host": "baiduboxapp", "selected": -3
"projectname": "ts_aimz", },
"setting": { "host": "baiduboxapp",
"autoAudits": false, "projectname": "ts_aimz",
"urlCheck": false "setting": {
}, "autoAudits": false,
"preview": { "urlCheck": false
"packageId": 1209242 }
}
} }

View File

@ -270,7 +270,6 @@ const _sfc_main = {
setTimeout(() => { setTimeout(() => {
this.$nextTick(() => { this.$nextTick(() => {
this.showPoptrans(); 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") { if (this.messageChild && this.type === "message") {
this.messageChild.timerClose(); this.messageChild.timerClose();
} }